/* ==============================================
   layout.css — Navigation, Hero, Section scaffold
   ============================================== */

/* Navigation */
nav {
  position:fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gut);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
nav.sc { border-color: var(--rule); }
.nav-logo { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400; font-style: normal;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none; position: relative; padding-bottom: 3px; transition: color 0.22s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent); border-radius: 1px;
  transition: width 0.38s var(--eout);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

/* Hero — FIXED so it never moves. Sections scroll over it. */
/* ── Hero wrap: full viewport, warm paper bg ── */
.hero-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background-color: #ffffff;
  background-image:
    linear-gradient(to right,  #e5e5e5 1px, transparent 1px),
    linear-gradient(to bottom, #e5e5e5 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
  transition: opacity 0.6s ease;
}
.hero-wrap::before { display: none; }

/* Canvas hidden — checked grid only */
#hero-canvas {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;             /* above the CSS grid background */
  pointer-events: auto;
  display: block;
  background: transparent;
}

/* Hero text: above canvas, dark ink on paper */
.hero {
  height: 100vh;
  min-height: 500px;
  position: relative;
  z-index: 2;
  background: transparent;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--col); margin: 0 auto; padding: 0 var(--gut);
  overflow: visible;
  pointer-events: none;
}
.hero::before { display: none; }
.hero a, .hero button { pointer-events: auto; }
/* Spacer reserves 100vh of scroll distance in document flow
   so Work section begins scrolling into view only after hero
   has had full viewport time */
.hero-spacer {
  height: 100vh;
  width: 100%;
  pointer-events: none;
  display: block;
  flex-shrink: 0;
}
.hero-content { position: relative; z-index: 2; }
.hero-annot   { z-index: 3; }
.hero-scroll  { z-index: 2; }
.hero-eye {
  font-family:var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #000000;
  background: #FFC200; font-style: normal;
  border: none;
  display: inline-block; padding: 0.3rem 0.85rem; border-radius: 3px;
  margin-bottom: 1.8rem; opacity: 0; animation: riseIn 0.7s var(--eout) 0.2s forwards;
}
.hero-h1 {
  font-family: var(--sans); font-size: 6rem; font-style: normal;
  font-weight: 700; line-height: 0.95; letter-spacing: -0.03em;
  opacity: 0; animation: riseIn 0.95s var(--eout) 0.45s forwards;
  position: relative; display:block;
}
.hero-h1::after {
  content: ''; position: absolute; left: -0.04em; bottom: -0.08em;
  height: 0.0em; width: 0; background: var(--accent); opacity: 0.6; border-radius: 1px;
  animation: brushIn 1s var(--epaint) 1.5s forwards; pointer-events: none; z-index: -1;
}
.hero-h1 em { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 0.3em; line-height: 1.4; display: block; color: var(--ink-3); margin-top: 1.3rem; letter-spacing: .02rem; width: 70%;}
.hero-tagline {
  font-family: var(--sans); font-size: 1.4rem; font-style: italic; color: var(--ink-3);
  margin-top: 2rem; line-height: 1.65; max-width: 420px;
  opacity: 0; animation: riseIn 0.7s var(--sans) 0.9s forwards;
}
.hero-annot {
  position: absolute; bottom: 5.5rem; right: calc(var(--gut) + 0.5rem);
  font-family: var(--hand); font-size: 1.3rem; color: var(--red);
  transform: rotate(-4deg); opacity: 0; animation: riseIn 0.6s var(--eout) 1.1s forwards;
  pointer-events: none; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem;
}
.hero-annot-arrow { display: block; overflow: visible; }
.hero-annot-arrow .arrow-body {
  fill: none; stroke: var(--red); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 130; stroke-dashoffset: 130; animation: drawArrowBody 1s var(--epaint) 1.45s forwards;
}
.hero-annot-arrow .arrow-head {
  fill: none; stroke: var(--red); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 28; stroke-dashoffset: 28; animation: drawArrowHead 0.4s var(--epaint) 2.3s forwards;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: var(--gut);
  display: flex; align-items: center; gap: 0.9rem; font-style: normal;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  opacity: 0; animation: riseIn 0.5s var(--eout) 0.9s forwards; z-index: 2;
}
.hero-scroll::before { content: ''; width: 30px; height: 2px; background: #FFC200; border-radius: 1px; }

/* Sections */
.sec {
  width: 100vw;
  position: relative;
  min-height: 100vh;         /* always tall enough to fully cover fixed hero */
  opacity: 0;
  /* No translateY — that gap exposes the fixed hero behind */
  transition: opacity 0.9s var(--eout);
  overflow: hidden;
  background: #111111;       /* dark fallback — never white flash */
  margin-bottom: -1px;
}
/* Work needs overflow:visible so sticky slides aren't clipped */
#work { overflow: visible !important; }
.sec.vis { opacity: 1; }
/* Sections — each opaque, stacked over fixed hero */


/* ── Each slide: 100vh, clips its card ── */

/* ── Card: sticky, fills full slide height ── */

/* ── Inner content: the actual card grid ── */

/* ── Parallax scroll effect ── */
/* JS drives --slide-progress per slide: 0=entering, 1=exiting */
/* Inner rises at 30% of slide scroll = evident fold feel */


/* Work slides — defined below after #work rules */

/* ══ WORK: whole section stacks, slides fold in ════════════
   #work is NOT sticky — it scrolls normally over the fixed hero.
   .work-header is sticky top:0 — label pins while slides scroll.
   Each .w-slide is sticky top:var(--hh) so it pins just below
   the header. Escalating z-index means each slide sits on top
   of the previous — next slide rolls over previous on scroll.
   The whole #work section scrolls away when Skills arrives.
   ═══════════════════════════════════════════════════════════ */

#work {
  overflow: visible;
  min-height: 0;
  background: #111111;
  position: relative;
}

/* Header — normal flow, not sticky */
.work-header {
  position: relative;
  background: #111111;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 5rem var(--gut) 1.2rem;
}
.work-header-inner {
  max-width: var(--col);
  margin: 0 auto;
}
/* sec-lbl — no bottom margin when stuck */
.work-header .sec-lbl { margin-bottom: 0; }

/* Stmt collapses smoothly via grid-rows */
.work-stmt-wrap {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.4s ease, opacity 0.4s ease;
}
/* stmt always visible */

/* ════════════════════════════════════════════════════════════
   WORK SLIDES — sticky stacking / fold-over effect
   ─────────────────────────────────────────────────────────
   #work has 6 direct children:
     child 1 = .work-header
     child 2 = .w-slide (project 1)  → z-index 2
     child 3 = .w-slide (project 2)  → z-index 3
     child 4 = .w-slide (project 3)  → z-index 4
     child 5 = .w-slide (project 4)  → z-index 5
     child 6 = .w-slide (project 5)  → z-index 6  ← MUST be 6
   nth-child counts ALL siblings including work-header.
   ════════════════════════════════════════════════════════════ */
.w-slide {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #111111;
  display: flex;
  align-items: center;   /* vertically centre the card in the slide */
  justify-content: center;
  overflow: hidden;
  padding-top:    clamp(3rem, 6vh, 6rem);   /* breathing room top */
  padding-bottom: clamp(3rem, 6vh, 6rem);   /* breathing room bottom */
}

/* nth-child 2-6: work-header is child 1, slides are 2-6 */
.w-slide:nth-child(2) { z-index: 2; }
.w-slide:nth-child(3) { z-index: 3; }
.w-slide:nth-child(4) { z-index: 4; }
.w-slide:nth-child(5) { z-index: 5; }
.w-slide:nth-child(6) { z-index: 6; }
.w-slide:nth-child(7) { z-index: 7; }
.w-slide:nth-child(8) { z-index: 8; }

/* ── Card layout ──────────────────────────────────────────
   Image bleeds to the viewport edge on its side.
   Normal card (.w-card): image LEFT → no left padding, right padding only.
   Flipped card (.w-card.flip): image RIGHT → left padding only.
   Text board is a fixed 360px — never squashed at any resolution.
   ─────────────────────────────────────────────────────── */
.w-slide .w-card {
  width: 100%;
  height: auto;
  align-items: stretch;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 0;
  background: #111111;
  position: relative;
  transform: translateY(var(--card-y, 0px));
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Slides: no padding — card is full viewport width.
   Gutter lives inside the text board padding so image
   occupies exactly its column % of the full viewport.   */
.w-slide { padding: 0; }

/* Image left (normal): card col 55vw image / 45vw text */
.w-slide .w-card {
  grid-template-columns: 55% 45%;
}

/* Image right (flip): 45vw text / 55vw image */
.w-slide .w-card.flip { grid-template-columns: 45% 55%; }
.w-slide .w-card.flip .w-img-wrap   { order: 2; }
.w-slide .w-card.flip .w-text-board { order: 1; }

/* Image: aspect-ratio drives height — fully fluid at every resolution.
   16/9 on a 55vw column = ~31vw tall. No hardcoded height. */
.w-slide .w-img-wrap {
  aspect-ratio: 13 / 9;
  width: 100%;
  overflow: hidden;
}
.w-slide .w-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Text board: matches image height, text vertically centred */
.w-slide .w-text-board {
  width: 100%;
  min-width: 0;
  padding: clamp(2rem, 3vh, 3.5rem) clamp(2.5rem, 5vw, 6rem) clamp(2rem, 3vh, 3.5rem) clamp(2.5rem, 4vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  overflow: hidden;
}
.w-slide .w-card.flip .w-text-board {
  padding: clamp(2rem, 3vh, 3.5rem) clamp(2.5rem, 4vw, 5rem) clamp(2rem, 3vh, 3.5rem) clamp(2.5rem, 5vw, 6rem);
}


/* ── Per-slide background: derived from each project image ── */
/* All slides: black background */
#work .w-slide:nth-child(1),
#work .w-slide:nth-child(2),
#work .w-slide:nth-child(3),
#work .w-slide:nth-child(4),
#work .w-slide:nth-child(5) { background: #111111; }

/* Card background matches slide */
/* Card backgrounds: black */
#work .w-slide .w-card { background: #111111; }
#skills     { z-index: 12; background: #FFC200; }  /* above all w-slides (max z:8) */
#process    { z-index: 11; background: #131d2b; overflow: visible; min-height: 50vh; }
#experience { z-index: 11; background: #106b49; overflow: visible; }
#about      { z-index: 13; background: #ffffff; min-height: auto; }
#theperson  { z-index: 14; background: #ffffff; min-height: auto; }
/* Checked grid — full section width, same pattern as Hero */
#theperson .sec-inner {
  background-image:
    linear-gradient(to right, #e5e5e5 1px, transparent 1px),
    linear-gradient(to bottom, #e5e5e5 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ══ The Person: sticky note cards ════════════════════════ */
#theperson .interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.8rem;
  margin-top: 1.5rem;
  position: relative;
}
/* Base sticky note */
#theperson .int-card {
  position: relative !important;
  padding: 2rem 1.6rem 1.6rem !important;
  border-radius: 2px !important;
  border: none !important;
  overflow: visible !important;
  min-height: 160px;
  box-shadow:
    2px 4px 0 rgba(0,0,0,0.10),
    4px 10px 22px rgba(0,0,0,0.14) !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
#theperson .int-card:hover {
  transform: translateY(-5px) rotate(0deg) !important;
  box-shadow: 3px 10px 28px rgba(0,0,0,0.18) !important;
}
/* Tape strip at top centre */
#theperson .int-card::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: -10px !important;
  left: 50% !important;
  transform: translateX(-50%) rotate(var(--tape-rot, -1deg)) !important;
  width: 52px !important;
  height: 18px !important;
  background: rgba(195,182,148,0.70) !important;
  border-radius: 2px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset, 0 2px 5px rgba(0,0,0,0.16) !important;
  z-index: 5 !important;
}
#theperson .int-card::after { display: none !important; }

/* Six pastel sticky note colours */
#theperson .interests-grid .int-card:nth-child(1) {
  background: #FFF9C4 !important;
  transform: rotate(-1.8deg) translateY(8px);
  --tape-rot: -2deg;
}
#theperson .interests-grid .int-card:nth-child(2) {
  background: #B3E5FC !important;
  transform: rotate(1.2deg) translateY(-4px);
  --tape-rot: 1.5deg;
}
#theperson .interests-grid .int-card:nth-child(3) {
  background: #C8E6C9 !important;
  transform: rotate(-0.8deg) translateY(12px);
  --tape-rot: -1deg;
}
#theperson .interests-grid .int-card:nth-child(4) {
  background: #F8BBD0 !important;
  transform: rotate(1.5deg) translateY(-6px);
  --tape-rot: 2deg;
}
#theperson .interests-grid .int-card:nth-child(5) {
  background: #E1BEE7 !important;
  transform: rotate(-1.3deg) translateY(6px);
  --tape-rot: -1.5deg;
}
#theperson .interests-grid .int-card:nth-child(6) {
  background: #FFE0B2 !important;
  transform: rotate(0.9deg) translateY(-2px);
  --tape-rot: 1deg;
}
/* Typography on pastel bg */
#theperson .int-ico  { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
#theperson .int-name {
  font-family: var(--sans) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #1a1a10 !important;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding-bottom: 0.4rem;
}
#theperson .int-desc {
  font-family: var(--serif) !important;
  font-size: 0.9rem !important;
  font-style: italic !important;
  color: #2a2a18 !important;
  line-height: 1.65 !important;
}
#contact    { z-index: 15; background: #141414; min-height: auto; }
footer      { position: relative; z-index: 16; width: 100vw; background: #141414; min-height: 0; }
.footer-inner {
  max-width: var(--col);   /* matches sec-inner — left/right align with all sections */
  margin: 0 auto;
  padding: 1.6rem var(--gut) 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Section inner content — centred, padded */
.sec-inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 6rem var(--gut) 8rem;
  /* Fold parallax — JS sets --fold-y; inner lags as section enters */
  transform: translateY(var(--fold-y, 0px));
  will-change: transform;
}

/* About — reduced bottom spacing */
#about .sec-inner { padding-bottom: 3rem; }
/* The person — reduced top spacing */
#theperson .sec-inner { padding-top: 2.5rem; }

.sec-lbl {
  display: flex; align-items: center; gap: 0.1rem;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 400; font-style: normal;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2rem;
}
.sec-lbl::before { content: ''; width: 20px; height: 2px; background: var(--accent); border-radius: 1px; flex-shrink: 0; margin-right: 10px;}



.stmt {
  font-family: var(--serif); font-size: clamp(1.8rem,3.8vw,2.6rem);
  font-weight: 400; font-style: italic; line-height: 1.4; color: var(--ink);
  margin-bottom: 2.8rem; position: relative;
}
.stmt::before { content: ''; background: none; }
.stmt .wr { display: inline-block; opacity: 0; transform: translateY(12px); transition: opacity 0.55s var(--eout), transform 0.55s var(--eout); }
.sec.vis .stmt .wr { opacity: 1; transform: none; }
.sec.vis .stmt .wr:nth-child(1)  { transition-delay:0.05s }
.sec.vis .stmt .wr:nth-child(2)  { transition-delay:0.10s }
.sec.vis .stmt .wr:nth-child(3)  { transition-delay:0.15s }
.sec.vis .stmt .wr:nth-child(4)  { transition-delay:0.20s }
.sec.vis .stmt .wr:nth-child(5)  { transition-delay:0.25s }
.sec.vis .stmt .wr:nth-child(6)  { transition-delay:0.30s }
.sec.vis .stmt .wr:nth-child(7)  { transition-delay:0.35s }
.sec.vis .stmt .wr:nth-child(8)  { transition-delay:0.40s }
.sec.vis .stmt .wr:nth-child(9)  { transition-delay:0.45s }
.sec.vis .stmt .wr:nth-child(10) { transition-delay:0.50s }
.sec.vis .stmt .wr:nth-child(n+11){ transition-delay:0.55s }




.prose { font-family: var(--serif); font-size: 1.2rem; font-style: italic; font-weight: 400; line-height: 1.9; color: var(--ink-2); }
.prose p { margin-bottom: 1.5rem; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; font-weight: 400; color: var(--ink-3); }


/* ════ NZ SECTION COLOUR SYSTEM ════
   Work      → black   #111111
   Skills    → amber   #FFC200
   Experience→ green   #3A5A1C
   About     → red     #C0392B
   Contact   → black   #111111
   All text colours adjusted for contrast (WCAG AA minimum).
═══════════════════════════════════ */

/* ── WORK — full viewport black ── */
/* #work colours set in section stack block */
/* work-header — sticky label that stays top while cards scroll */

/* work-header content constrained by .work-header-inner max-width */
#work .sec-lbl        { color: #ffffff; }
#work .sec-lbl::before{ background: #FFC200; }
#work .stmt           { color: rgba(255,255,255,0.9); }
#work .w-type         { color: rgba(255,255,255,1); }
#work .w-title        { color: #ffffff; background-image: linear-gradient(#FFC200,#FFC200); }
#work .w-desc         { color: rgba(255,255,255,0.72); }
#work .w-link         { color: #FFC200; border-bottom-color: rgba(255,198,0,0.35); }
#work .w-link:hover   { color: #ffffff; border-bottom-color: rgba(255,255,255,0.6); }
#work .w-text-board   { background: none; border-left: 0px solid rgba(255,255,255,0.08); }
#work .w-annot        { color: #FFC200; }



/* ══ WORK SECTION — slide stack ══════════════════════
   Each
/* Stmt smooth height collapse */
.work-header.stuck
/* ── Work grid — block container ── */


/* ── Each slide — 100vh scroll container ── */
/* Active — pinned at 45vh, fully visible */
/* Incoming overlay — next card slides in from below OVER the active card.
   Starts below the active card and rises up, covering it.
   z-index higher than active so it truly overlays. */
/* Was-active — fades out IN PLACE (translateY stays 0) while

#skills .sec-lbl  { color: #111111; }
#skills .sec-lbl::before { background: #111111; }
#skills .stmt     { color: #111111; }
#skills .sk-title { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
#skills .sk-items { color: #fff; }
#skills .paper    {
  background: rgba(0,0,0,0.75);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
#skills .paper::before { display: none; }

/* ── EXPERIENCE — kiwi green bg ── */
#experience { background: #106b49; }
#experience .sec-lbl  { color: #ffffff; }
#experience .sec-lbl::before { background: #FFC200; }
#experience .stmt     { color: #ffffff; }
#experience .exp-role { color: #ffffff; }
#experience .exp-co   { color: rgba(255,255,255,0.75); }
#experience .exp-period { color: rgba(255,255,255,0.8); }
#experience .exp-pts li { color: rgba(255,255,255,0.85); }
#experience .exp-pts li::before { color: #FFC200; }
#experience .exp-list { border-top-color: rgba(255,255,255,0.12); }
#experience .exp-item { border-bottom-color: rgba(255,255,255,0.10); }


#experience .tlink  { color: #FFC200; border-bottom-color: rgba(255,198,0,0.4); }
#experience .tlink:hover { color: #fff; border-bottom-color: #fff; }
#experience .q-open { color: #FFC200; }

#experience .q-body { color: rgba(255,255,255,0.88); }


#experience .q-by   { color: rgba(255,255,255,0.65); }
#experience .quote-list { background: transparent; }
#experience .paper.quote-card {
  background: none;
  border: none;
  box-shadow: none;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

/* ── ABOUT — kiwi red bg ── */
#about { background: #ffffff; }
#about .sec-lbl   { color: var(--ink-3); }
#about .sec-lbl::before { background: var(--accent); }
#about .stmt      { color: var(--ink); }
#about .prose     { color: var(--ink-2); }
#about .prose p   { color: var(--ink-2); }
#about .prose strong { color: var(--ink); }
#about .prose em  { color: var(--ink-3); }
#about .int-name  { color: var(--ink); }
#about .int-desc  { color: var(--ink-3); }
#about .int-ico   { filter: none; }
#about .paper     {
  background: var(--paper-y);
  border-color: var(--rule);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
#about .paper::before { background: var(--tape); }


/* ── CONTACT — black bg ── */
#contact { background: #111111; }
#contact .sec-lbl     { color: #ffffff; }
#contact .sec-lbl::before { background: #FFC200; }
#contact .contact-lead { color: rgba(255,255,255,0.85); }
#contact .c-rows      { border-top-color: rgba(255,255,255,0.15); }
#contact .c-row       { border-bottom-color: rgba(255,255,255,0.1); }
#contact .c-lbl       { color: rgba(255,255,255,0.5); }
#contact .c-val       { color: #ffffff; }
#contact .c-row:hover .c-val { color: #FFC200; font-style: normal; }
#contact .c-row::before { background: #FFC200; }
#contact .f-copy      { color: rgba(255,255,255,0.4); }

/* footer styles consolidated below */
footer .f-copy { color: rgba(255,255,255,0.4); }
footer .tlink  { color: rgba(255,255,255,0.6); border-bottom-color: rgba(255,255,255,0.2); }
footer .tlink:hover { color: #FFC200; }

/* ── Testimonials — scattered horizontal, casual ── */
.quote-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  position: static;
  left: auto;
  transform: none;
  background: none;
  border: none;
}
.quote-card {
  flex: 0 1 500px;
  max-width: 500px;
  padding: 1.8rem 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.quote-card:nth-child(1) { transform: none; }
.quote-card:nth-child(2) { transform: none; }
.quote-card:nth-child(3) { transform: none; }
.quote-card::before { display: none; }
.quote-card::after  { display: none; }


/* ══ NAV ══ */
nav { transition: transform 0.55s cubic-bezier(0.16,1,0.3,1), opacity 0.55s ease, border-color 0.3s; }
/* Hamburger toggle — hidden on desktop */
/* ── Modern hamburger toggle ── */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: none;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  z-index: 300;
  position: relative;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav-toggle:hover {
  border-color: rgba(0,0,0,0.30);
  background: rgba(0,0,0,0.04);
}
/* Three-bar icon using spans */
.nav-toggle span {
  display: block;
  position: absolute;
  left: 9px;
  width: 20px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              opacity   0.25s ease,
              width     0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; width: 14px; } /* shorter middle */
.nav-toggle span:nth-child(3) { top: 25px; }
/* Morphs to × when open */
.nav-toggle.open { border-color: rgba(0,0,0,0.20); }
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  width: 20px;
}
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 20px;
}
nav.nav-hidden { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-img { height: 32px; width: auto; display: block; }

/* ══ WORK — black ══ */
/* #work text colours defined in work section block above */

/* ══ SKILLS — amber ══ */
#skills .sec-lbl  { color: #111; }
#skills .sec-lbl::before { background: #111; }
#skills .stmt     { color: #111; }
#skills .sk-title { color: #2a2a18; border-bottom-color: rgba(0,0,0,0.15); }
#skills .sk-items { color: #3a3828; }
#skills .paper {
  background: var(--paper) !important; border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 4px !important; overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.10) !important;
}
#skills .paper::before {
  display: block !important; content: '' !important; position: absolute !important;
  top: -10px !important; left: 20px !important; width: 46px !important; height: 20px !important;
  background: var(--tape) !important; border-radius: 2px !important;
  transform: rotate(-2deg) !important; box-shadow: 0 1px 3px rgba(55,50,35,0.14) !important; z-index: 2 !important;
}
#skills .stickies .sticky:nth-child(even) .paper::before { transform: rotate(2deg) !important; }
#skills .paper::after {
  content: '' !important; position: absolute !important; inset: 0 !important; border-radius: 2px !important;
  background-image: repeating-linear-gradient(0deg,transparent,transparent 26px,rgba(0,0,0,0.055) 26px,rgba(0,0,0,0.055) 27px) !important;
  pointer-events: none !important; z-index: 0 !important;
}
#skills .paper > * { position: relative; z-index: 1; }
#skills .stickies .sticky:nth-child(1) { transform: rotate(-0.6deg); }
#skills .stickies .sticky:nth-child(2) { transform: rotate(0.5deg); }
#skills .stickies .sticky:nth-child(3) { transform: rotate(-0.3deg); }
#skills .stickies .sticky:nth-child(4) { transform: rotate(0.65deg); }
#skills .stickies .sticky:nth-child(5) { transform: rotate(-0.5deg); }
#skills .stickies .sticky:nth-child(6) { transform: rotate(0.4deg); }

/* ══ PROCESS — near-black ══ */
#process { overflow: visible; min-height: 60vh; }
#process .sec-lbl  { color: rgba(255,220,160,0.80); }
#process .sec-lbl::before { background: #FFC200; }
#process .stmt { color: rgba(255,235,190,0.92); font-weight: 400; }
#process .stmt em { color: #FFC200; font-style: italic; }
.proc-art { display: none; }  /* pencil art removed */
#process .sec-inner { position: relative; z-index: 2; }
/* proc-art hidden */
/* pa-path unused */
/* pa-path unused */
.proc-stmt { font-size: clamp(1.2rem,2.4vw,1.8rem); line-height: 1.6; color: rgba(255,235,190,0.95) !important; }

/* ══ EXPERIENCE — kiwi green ══ */
#experience .sec-lbl   { color: #fff; }
#experience .sec-lbl::before { background: #FFC200; }
#experience .stmt      { color: #fff; }
#experience .exp-role  { color: #fff; }
#experience .exp-co    { color: rgba(255,255,255,0.75); }
#experience .exp-period{ color: rgba(255,255,255,0.65); }
#experience .exp-pts li{ color: rgba(255,255,255,0.85); }
#experience .exp-pts li::before { color: #FFC200; }
#experience .exp-list  { border-top-color: rgba(255,255,255,0.2); }
#experience .exp-item  { border-bottom-color: rgba(255,255,255,0.15); }
#experience .tlink     { color: #FFC200; border-bottom-color: rgba(255,198,0,0.4); }
#experience .tlink:hover { color: #fff; }
#experience .q-open { color: #FFC200; }
#experience .q-body { color: rgba(255,255,255,0.88); }
#experience .q-by   { color: rgba(255,255,255,0.65); }

/* Testimonials wall */
/* ══ TESTIMONIALS: notebook page feel ════════════════════════
   Cream paper background with ruled lines and red margin line.
   Each quote card looks like a notebook page. Caveat handwriting.
   ════════════════════════════════════════════════════════════ */
.testimonials-wall {
  width: 100%;
  position: relative;
  z-index: 1;
  display: block;
  margin: 0; padding: 0;
  /* Clean off-white — professional notebook feel */
  background-color: #f7f4ee;
}
.testimonials-wall::before { display: none; }

.testimonials-wall-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3.5rem 0 4rem;
}

/* Header aligned to col — matches all other sections */
.testimonials-wall-inner .tw-header {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* sec-lbl — standard style, dark on cream */
.testimonials-wall-inner .sec-lbl {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;               /* 4.7:1 on cream ✓ AA */
}
.testimonials-wall-inner .sec-lbl::before { background: #FFC200; }

/* stmt — standard serif, dark */
.testimonials-wall-inner .stmt {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: #333;               /* 8.5:1 on cream ✓ AAA */
  margin-bottom: 0;
}

.tw-header .stmt{font-size: 2.6rem !important}

/* LinkedIn link */
.testimonials-wall-inner .tlink {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: #444444 !important;
  border-bottom-color: rgba(0,0,0,0.20) !important;
  margin-top: 1.8rem;
  display: inline-block;
}
.testimonials-wall-inner .tlink:hover { color: #111111 !important; }

/* Quote cards in testimonials wall — bare, no chrome */
.testimonials-wall-inner .quote-card {
  background: none;
  border: none;
  box-shadow: none;
}

/* Attribution line — normal (non-italic) */
.testimonials-wall-inner .q-by {
  font-style: normal;
}

/* Quote list — full viewport width */
.testimonials-wall-inner .quote-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
  margin: 2.5rem 0 0;
  padding: 0 max(1.5rem, 2vw);   /* wide — minimal edge breathing room */
  background: transparent;
  box-sizing: border-box;
}

/* Each card — clean white notebook page, professional */
.testimonials-wall-inner .quote-card {
  flex: 1 1 0;
  position: relative;
  display: flex;
  flex-direction: column;
  /* background: #ffffff !important; */
  background-image: none !important;   /* no gradient over text */
  border: none !important;
  border-radius: 3px !important;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06) !important; */
  padding: 2rem !important;
  clip-path: none !important;
  overflow: visible !important;  /* never clip text */
}
/* No spiral holes, no tilts — clean professional look */
.testimonials-wall-inner .quote-card::before { display: none !important; }
.testimonials-wall-inner .quote-card::after  { display: none !important; }

.quote-card:hover{box-shadow: none !important; border:0px !important; background-color: none !important;}

/* Large decorative quote mark */
.testimonials-wall-inner .q-open {
  font-family: Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 0.7;
  margin-bottom: 0.8rem;
  display: block;
  color: #FFC200;            /* amber — brand colour */
}

/* Quote body — Georgia italic, excellent legibility */
.testimonials-wall-inner .q-body {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.9;
  margin-bottom: 1.2rem;
  flex: 1;
  color: #222;               /* 15:1 on white ✓ AAA */
}

/* Override #experience white text — testimonials is on white cards */
.testimonials-wall .q-open { color: #FFC200 !important; }
.testimonials-wall .q-body { color: #1a1a1a !important; }
.testimonials-wall .q-by   { color: #444444 !important; }
.testimonials-wall .sec-lbl { color: #555 !important; }
.testimonials-wall .stmt    { color: #333 !important; }

/* Attribution — Poppins, smaller, clearly legible */
.testimonials-wall-inner .q-by {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #555;               /* 4.7:1 on white ✓ AA */
  line-height: 1.55;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.10);
}



/* ═══ BRANDS SECTION ════════════════════════════════════════════════
   Full viewport width, checked grid of company logos.
   Title aligns to .col width (same as all other sections).
   ═══════════════════════════════════════════════════════════════ */
.brands-section {
  background: #ffffff;
  width: 100%;
}

.brands-section .sec-lbl{color:#555 !important;}
.brands-section .stmt{color: #333 !important; font-size:2.6rem !important; font-family: var(--serif) !important;}
.brands-label {
  max-width: var(--col);
  margin: 0 auto;
  padding: 3.5rem var(--gut) 2rem;
  margin-bottom: 50px;
}
/* Scoped colours — ensure contrast on white bg */
.brands-section .sec-lbl { color: var(--ink-2); }
.brands-section .sec-lbl::before { background: var(--accent); }
.brands-section .stmt { color: var(--ink-2); font-family: var(--sans); font-size: 0.95rem; }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-top: 1px solid rgba(0,0,0,0.09);
  border-left: 1px solid rgba(0,0,0,0.09);
}
.brand-cell {
  border-right: 1px solid rgba(0,0,0,0.09);
  border-bottom: 1px solid rgba(0,0,0,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.8rem 1.5rem;
  min-height: 130px;
  transition: background 0.2s;
  filter: grayscale();
}
.brand-cell:hover { /* background: #f9f8f6; */ }
.brand-cell svg { display: block; }
@media (max-width: 860px) {
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-cell  { padding: 2rem 1rem; min-height: 90px; }
}




.about-hero em{color: #FFC200;}
