/* ============================================================
   layout.css — structure, spacing, alignment (lane: layout)
   Colors / families / scale come only from theme tokens.
   Left spine at --gutter; everything hangs off it.
   ============================================================ */

:root {
  --gutter: 7vw;          /* the single left spine */
  --hang: 5.5rem;         /* how far list numbers hang into the margin */
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg, #F2F1EE);
  color: var(--ink, #1B1A17);
  font-family: var(--font-body, "Helvetica Neue", Helvetica, Arial, sans-serif);
  overflow-x: clip;
  min-height: 100vh;
}

h1, h2, p, figure, ol { margin: 0; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- header: tiny, whisper-quiet ---------- */

.site-top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2.4rem var(--gutter) 0;
}

.brand {
  font-size: var(--step--1, 0.85rem);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 2.6rem;
}

.site-nav a {
  font-size: var(--step--1, 0.85rem);
  color: var(--ink-dim, #5F5D57);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink, #1B1A17); }

/* ---------- hero: giant staggered name left, cloud right, air everywhere ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter) 7vh;
}

.hero-name {
  position: relative;
  z-index: 2;
  font-family: var(--font-display, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: min(calc(var(--step-4, 4.25rem) * 2.3), 11vw);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  font-weight: inherit;
}

.hero-name .ln { display: block; }
.hero-name .ln-2 { margin-left: 0.72em; }   /* the stagger */

.hero-role {
  z-index: 2;
  margin-top: 2.6rem;
  margin-left: min(8vw, 9.5rem);            /* sits under the staggered line */
  font-size: var(--step-0, 1.05rem);
  color: var(--ink-dim, #5F5D57);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.hero-3d {
  position: absolute;
  z-index: 1;
  top: 15vh;
  right: 7.5vw;
  width: min(31vw, 36rem);
}

.hero-3d img {
  width: 100%;
  height: auto;
}

.hero-hint {
  position: absolute;
  left: var(--gutter);
  bottom: 3.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: var(--step--1, 0.85rem);
  color: var(--ink-dim, #5F5D57);
  letter-spacing: 0.3em;
  text-transform: lowercase;
}

.hero-hint::after {
  content: "";
  width: 4rem;
  height: 1px;
  background: var(--ink-dim, #5F5D57);
}

/* ---------- sections: one column, table-of-contents rhythm ---------- */

.work    { padding: 24vh var(--gutter) 0; }
.about   { padding: 26vh var(--gutter) 0; }
.contact { padding: 26vh var(--gutter) 0; }

.sec-title {
  font-size: var(--step--1, 0.85rem);
  font-weight: inherit;
  color: var(--ink-dim, #5F5D57);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  margin-bottom: 6.5rem;
}

/* work: numbered index, numbers hang left of the spine in the accent */

.work-list {
  list-style: none;
  counter-reset: work;
  max-width: 74rem;
  margin-left: var(--hang);
}

.work-item {
  counter-increment: work;
  position: relative;
  padding: 3.1rem 0;
}

.work-item::before {
  content: counter(work, decimal-leading-zero);
  position: absolute;
  left: calc(-1 * var(--hang));
  top: 3.55rem;
  font-size: var(--step--1, 0.85rem);
  color: var(--accent, #C96F4A);
  letter-spacing: 0.12em;
}

.work-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 3rem;
  text-decoration: none;
}

a.work-row:hover,
a.work-row:focus-visible { opacity: 0.55; transition: opacity 0.25s ease; }

.work-name {
  font-family: var(--font-display, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: var(--step-3, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: lowercase;
}

.work-meta {
  flex-shrink: 0;
  max-width: 24rem;
  text-align: right;
  font-size: var(--step--1, 0.85rem);
  color: var(--ink-dim, #5F5D57);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

/* about: text steps off the spine to break the rhythm */

.about-text {
  margin-left: min(14vw, 16rem);
  max-width: 44ch;
  font-size: var(--step-1, 1.35rem);
  line-height: 1.55;
}

/* contact: the calls to action — stacked flush left, one per line. Set a step
   below the old single-link size so the longest handle still fits on one line
   at desktop; flex blockifies the inline-block children, so they never collide. */

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.65rem, 1.5vw, 1.15rem);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.46em;
  font-family: var(--font-display, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: var(--step-2, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: lowercase;
  text-decoration: none; /* the rule moves to .contact-label so it never underlines the mark */
}

/* platform marks: inline SVG, monochrome, sized off the label so they scale with it */
.contact-ico {
  flex: none;
  width: 0.72em;
  height: 0.72em;
  fill: currentColor;
  transform: translateY(-0.02em); /* optical centre against the serif x-height */
}

.contact-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.contact-link:hover,
.contact-link:focus-visible { color: var(--accent, #C96F4A); }

/* ---------- footer ---------- */

.site-end {
  padding: 26vh var(--gutter) 3rem;
}

.site-end small {
  font-size: var(--step--1, 0.85rem);
  color: var(--ink-dim, #5F5D57);
  letter-spacing: 0.06em;
}

/* ---------- motion hygiene (layout contributes none of its own) ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.work-row:hover,
  a.work-row:focus-visible { transition: none; }
}
