:root {
  --bg: #0e0e10;
  --fg: #e8e8ea;
  --muted: #a29c92;        /* warm grey, harmonised toward the amber signal */
  --line: #2a2723;
  --accent: #f2a93c;        /* signal amber */
  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --axis: color-mix(in srgb, var(--accent) 22%, var(--line));
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Faint discrete-sampling dot grid — instrument paper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(242, 169, 60, 0.05) 1px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Asymmetric two-column: sticky identity rail | work */
main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.5fr);
  max-width: 1080px;
  margin: 0 auto;
  padding: 13vh 40px 14vh;
}

.identity {
  grid-column: 1;
  position: sticky;
  top: 13vh;
  align-self: start;
  padding-right: 3rem;
}

.content {
  grid-column: 2;
  padding-left: 4rem;
  border-left: 1px dotted var(--axis);
}

footer { grid-column: 1 / -1; }

/* Identity / wordmark */
h1 {
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0 0 0.7rem;
}

.positioning {
  color: var(--accent);
  font-weight: 500;
  font-size: 1.04rem;
  margin: 0 0 0.3rem;
}

.location {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}

/* Hero value statement */
.lead {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0 0 3.5rem;
}

.lead span { display: block; }

.lead-tail {
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 0.9rem;
}

/* Section — mono instrument label */
section { margin-bottom: 0; }

h2 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dotted color-mix(in srgb, var(--accent) 45%, var(--line));
}

/* Expandable rows — discrete dotted dividers */
details {
  border-bottom: 1px dotted var(--axis);
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 0;
  font-size: 1.08rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 500;
  width: 1rem;
  flex: 0 0 auto;
}

details[open] > summary::before { content: "\2013"; }

.cap {
  color: var(--fg);
  transition: color 0.16s ease;
}

.tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: lowercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease, transform 0.18s ease;
}

.tag::before { content: "\27e8"; color: var(--accent); opacity: 0.5; margin-right: 0.15em; }
.tag::after  { content: "\27e9"; color: var(--accent); opacity: 0.5; margin-left: 0.15em; }

summary:hover .cap { color: #fff; }
summary:hover .tag { color: var(--accent); transform: translateX(-3px); }
details[open] > summary .tag { color: var(--accent); }

details > p {
  margin: 0 0 1.1rem 1.7rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 46ch;
}

/* Links */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
}

details a { font-size: inherit; }

/* Footer */
footer {
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px dotted color-mix(in srgb, var(--accent) 30%, var(--line));
}

.colophon {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.footer-contact { display: none; }

/* Collapse to single column */
@media (max-width: 860px) {
  main {
    grid-template-columns: 1fr;
    padding: 8vh 22px 10vh;
  }
  .identity {
    position: static;
    padding-right: 0;
    margin-bottom: 3.2rem;
  }
  .content {
    grid-column: 1;
    padding-left: 0;
    border-left: 0;
  }
  footer { grid-column: 1; }
  .lead { margin-bottom: 2.8rem; }
  .footer-contact {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 1.4rem;
    color: var(--accent);
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
}

/* One-time staggered "sampling" entrance — gated so reduced-motion shows all immediately */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: rise 0.55s cubic-bezier(0.22, 0.8, 0.2, 1) forwards;
  }
  .identity.reveal { animation-delay: 0.04s; }
  .lead.reveal { animation-delay: 0.14s; }
  h2.reveal { animation-delay: 0.22s; }
  section details.reveal:nth-of-type(1) { animation-delay: 0.28s; }
  section details.reveal:nth-of-type(2) { animation-delay: 0.34s; }
  section details.reveal:nth-of-type(3) { animation-delay: 0.40s; }
  section details.reveal:nth-of-type(4) { animation-delay: 0.46s; }
  section details.reveal:nth-of-type(5) { animation-delay: 0.52s; }
  section details.reveal:nth-of-type(6) { animation-delay: 0.58s; }
  footer.reveal { animation-delay: 0.64s; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
