/* ============================================================
   Chloe Kim — Portfolio
   Design system + layout
   ============================================================ */

:root {
  --bg: #faf9f6;
  --bg-alt: #f1efe9;
  --ink: #1c1b19;
  --ink-soft: #4b4945;
  --ink-faint: #86837c;
  --line: #e2ded4;
  --accent: #15803d;      /* forest green */
  --accent-soft: #dcfce7;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --shadow: 0 1px 2px rgba(28,27,25,.04), 0 8px 30px rgba(28,27,25,.06);
  --shadow-lg: 0 20px 60px rgba(28,27,25,.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .4em;
  text-wrap: balance; /* avoid a lone word on the last line of headings */
}

p { margin: 0 0 1em; text-wrap: pretty; /* avoid single-word orphans */ }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.eyebrow {
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 52rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.text-accent { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(250,249,246,.82);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav__brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.nav__links { display: flex; gap: clamp(1rem, 3vw, 2.2rem); align-items: center; }
.nav__links a { font-size: .95rem; color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__cta {
  border: 1px solid var(--ink); border-radius: 100px;
  padding: .5rem 1.1rem !important; color: var(--ink) !important;
  transition: background .2s, color .2s;
}
.nav__cta:hover { background: var(--ink); color: var(--bg) !important; }
.nav__toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #14532d; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.arrow { transition: transform .2s; }
.btn:hover .arrow, .card:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 11vw, 8rem) clamp(2.5rem, 7vw, 5rem); }
/* single-column heroes (Work, Beyond): inherit the standard 1180px
   container so the text lines up with the sections below and the nav —
   no narrower cap (which centered/indented it) and no full-bleed. */
.hero__inner .hero__lede { max-width: 44rem; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.3rem);
  line-height: 1.02; margin-bottom: 1.2rem;
}

/* Hero interactive device visual */
.hero__visual {
  position: relative; aspect-ratio: 1 / .88; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.hero__visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--line) 1.3px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 55% 45%, #000 52%, transparent 78%);
  mask-image: radial-gradient(circle at 55% 45%, #000 52%, transparent 78%);
  opacity: .7;
}
.hv-orb {
  position: absolute; width: 66%; height: 66%; left: 17%; top: 10%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(21,128,61,.28), rgba(21,128,61,0) 70%);
  filter: blur(6px); animation: hvfloat 9s ease-in-out infinite;
}

/* Device frame */
.device {
  position: relative; z-index: 1; width: min(94%, 350px);
  background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: hvfloat 8s ease-in-out infinite;
}
.device__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.device__bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #cfc9bd; }
.device__tab { margin-left: 8px; height: 15px; width: 48%; border-radius: 7px; background: var(--white); border: 1px solid var(--line); }
.device__screen { position: relative; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.scr-hero { background: var(--accent-soft); border-radius: 12px; padding: 15px; display: flex; flex-direction: column; gap: 9px; }
.scr-badge { width: 36px; height: 10px; border-radius: 5px; background: var(--accent); }
.scr-title { height: 9px; border-radius: 5px; background: #a7d8bb; }
.scr-title.short { width: 55%; }
.scr-row { display: flex; gap: 12px; }
.scr-card { flex: 1; height: 54px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); }
.scr-btn {
  align-self: flex-start; height: 30px; width: 98px; border-radius: 9px;
  background: var(--accent); border: none; position: relative; overflow: hidden;
  animation: btnPress 5s ease-in-out infinite; cursor: default;
}
.ripple {
  position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%; background: rgba(255,255,255,.6); transform: scale(0);
  animation: ripple 5s ease-out infinite;
}
.cursor {
  position: absolute; z-index: 3; width: 20px; height: 20px; left: 76%; top: 20%;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.25));
  animation: cursorMove 5s ease-in-out infinite;
}
.cursor path { fill: var(--ink); stroke: #fff; stroke-width: 1.3; }

@keyframes hvfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes cursorMove {
  0%   { left: 76%; top: 20%; transform: scale(1); }
  38%  { left: 22%; top: 82%; transform: scale(1); }
  44%  { left: 22%; top: 84%; transform: scale(.82); }
  50%  { left: 22%; top: 82%; transform: scale(1); }
  70%  { left: 70%; top: 52%; transform: scale(1); }
  100% { left: 76%; top: 20%; transform: scale(1); }
}
@keyframes ripple {
  0%, 43% { transform: scale(0); opacity: .6; }
  44% { transform: scale(0); opacity: .65; }
  72% { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}
@keyframes btnPress {
  0%, 42% { transform: translateY(0); filter: brightness(1); }
  46% { transform: translateY(1.5px); filter: brightness(.92); }
  52% { transform: translateY(0); filter: brightness(1); }
  100% { transform: translateY(0); filter: brightness(1); }
}
.hero__lede { font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--ink-soft); max-width: 44rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem;
  margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.hero__meta .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); display:block; margin-bottom:.25rem; }
.hero__meta .v { font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.04); }
.card__body { padding: clamp(1.3rem, 2.5vw, 1.9rem); display: flex; flex-direction: column; flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.card__title { font-size: 1.5rem; margin-bottom: .35rem; }
.card__sub { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1.1rem; }
.card__foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.card__stat { font-size: .9rem; color: var(--ink-faint); }
.card__stat b { color: var(--ink); font-size: 1.05rem; font-family: var(--serif); }
.card__link { color: var(--accent); font-weight: 500; font-size: .95rem; display:inline-flex; gap:.35rem; align-items:center; }

.tag {
  font-size: .74rem; font-weight: 500; letter-spacing: .02em;
  padding: .3rem .65rem; border-radius: 100px;
  background: var(--accent-soft); color: #166534;
}

/* ---------- Process strip ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
.process-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
}
.process-card .pc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.process-card .pc-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
}
.process-card .pc-ico svg { width: 24px; height: 24px; }
.process-card .n { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); line-height: 1; margin: 0; }
/* staggered, snappy scroll-in ("roll down") for the process cards; replays each pass */
.process-card.reveal { transform: translateY(26px); transition: opacity .34s ease, transform .4s cubic-bezier(.2,.85,.25,1); }
.process-card h3 { font-size: 1.2rem; }
.process-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- About teaser / split ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width:100%; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip { font-size: .85rem; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 100px; background: var(--white); }

/* ---------- CTA band ---------- */
.cta {
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.cta h2 { color: var(--bg); font-size: clamp(1.9rem, 5vw, 3rem); }
.cta p { color: rgba(250,249,246,.72); max-width: 34rem; margin-inline: auto; }
.cta .btn--primary { margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer__brand { font-family: var(--serif); font-size: 1.4rem; }
.footer a { color: var(--ink-soft); transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer__contact { display: flex; flex-direction: column; gap: .3rem; font-size: .95rem; }
.footer__legal { color: var(--ink-faint); font-size: .85rem; margin-top: 2rem; }

/* ---------- About page ---------- */
.about-hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about-hero__photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-hero__text p { color: var(--ink-soft); font-size: 1.06rem; }
.run-block { display: flex; gap: 1.6rem; align-items: flex-start; }
.run-block__text { flex: 1; min-width: 0; }
.run-block__text p { color: var(--ink-soft); font-size: 1.06rem; }
.run-block__text p:last-child { margin-bottom: 0; }
.run-figure { width: min(42%, 220px); flex-shrink: 0; margin: .3rem 0 0; }
.run-figure img { width: 100%; display: block; border-radius: 14px; box-shadow: var(--shadow); }
/* Full-width band (its own section) */
.run-block--wide { align-items: center; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 1rem; }
.run-block--wide .run-figure { width: min(40%, 340px); margin: 0; }
@media (max-width: 600px) {
  .run-block { flex-direction: column; }
  .run-figure { width: 62%; align-self: center; }
  .run-block--wide .run-figure { width: 80%; }
}
.about-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.reslist { list-style: none; padding: 0; margin: 0; }
.reslist li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; align-items:baseline; }
.reslist li:first-child { padding-top: 0; }
.reslist .org { font-weight: 500; }
.reslist .sub { color: var(--ink-soft); font-size: .92rem; }
.reslist .yr { color: var(--ink-faint); font-size: .9rem; white-space: nowrap; }

/* ---------- Case study ---------- */
.cs-hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem,4vw,2.5rem); }
.cs-back { color: var(--ink-faint); font-size: .92rem; display:inline-flex; gap:.4rem; margin-bottom: 1.6rem; }
.cs-back:hover { color: var(--accent); }
.cs-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin-bottom: .5rem; }
.cs-hero .sub { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--ink-soft); max-width: 46rem; }
.cs-cover { border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow); margin-top: 2rem; }
.cs-cover img { width:100%; aspect-ratio: 16/9; object-fit: cover; }
.cs-cover video { width: 100%; height: auto; display: block; background: #1c1b19; }

.cs-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding: 2rem 0; border-block: 1px solid var(--line); margin-top: 2.5rem;
}
.cs-meta .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: .35rem; }
.cs-meta .v { font-weight: 500; font-size: .98rem; }

.cs-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cs-section h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.cs-lead { max-width: 46rem; }
.cs-lead p { font-size: 1.12rem; color: var(--ink-soft); }

.pill-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.pill-list li { padding-left: 1.6rem; position: relative; color: var(--ink-soft); }
.pill-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }

/* Process timeline */
.timeline { display: grid; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; }
.tl-step {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.3rem;
  padding-bottom: clamp(1.5rem, 4vw, 3rem); border-bottom: 1px solid var(--line);
}
.tl-step:last-child { border-bottom: 0; padding-bottom: 0; }
.tl-side { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.tl-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
}
.tl-ico svg { width: 24px; height: 24px; }
.tl-n { font-family: var(--serif); font-size: 1.1rem; color: var(--accent); line-height: 1; }
.tl-body h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.tl-body > p { color: var(--ink-soft); max-width: 44rem; }
.tl-note { margin-top: 1.1rem; }
.tl-points { margin-top: 1rem; padding-left: 1.15rem; color: var(--ink-soft); }
.tl-points li { margin: .35rem 0; line-height: 1.55; }
.tl-blocks p { color: var(--ink-soft); max-width: 44rem; }
.tl-blocks > * + * { margin-top: 1.1rem; }
.tl-blocks img { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.tl-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-top: 1.1rem; }
.tl-images img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.tl-images--grid2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px){ .tl-images--grid2 { grid-template-columns: 1fr; } }
/* "3 stacked + 1 tall" split — first three bigger on the left, tall image right */
.tl-images--split { display: grid; grid-template-columns: 1.35fr 1fr; gap: .8rem; align-items: stretch; }
.tl-images--split .tl-col { display: flex; flex-direction: column; gap: .8rem; }
.tl-images--split .tl-col img { width: 100%; display: block; }
/* tall image scales down to match the height of the stacked column */
.tl-images--split .tl-col--tall { position: relative; }
.tl-images--split .tl-col--tall img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  border: none; box-shadow: none; background: transparent;
}
@media (max-width: 640px) {
  .tl-images--split { grid-template-columns: 1fr; }
  .tl-images--split .tl-col--tall { position: static; }
  .tl-images--split .tl-col--tall img { position: static; height: auto; object-fit: contain; border: 1px solid var(--line); box-shadow: var(--shadow); }
}
/* "feature-top": big first image, remaining images in a row below */
.tl-images--feature { display: flex; flex-direction: column; gap: .8rem; }
.tl-images--feature .tl-feature { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
/* justified rows: equal height, full width, no crop.
   widths are proportional to each image's aspect ratio (flex-grow set in JS). */
.tl-images.tl-images--even,
.tl-images--feature .tl-row { display: flex; gap: .8rem; align-items: stretch; }
.tl-images--even img,
.tl-images--feature .tl-row img { flex: 1 1 0; min-width: 0; width: auto; height: auto; display: block; }
@media (max-width: 520px) {
  .tl-images.tl-images--even,
  .tl-images--feature .tl-row { flex-wrap: wrap; }
  .tl-images--even img,
  .tl-images--feature .tl-row img { flex-basis: 45%; }
}

.tl-images--stacked { display: flex; flex-direction: column; gap: .8rem; }
.tl-images--stacked img { width: 100%; height: auto; }

.tl-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.1rem; }
.tl-videos--stacked { grid-template-columns: 1fr; gap: 1.1rem; }
@media (max-width: 640px){ .tl-videos { grid-template-columns: 1fr; } }
.tl-vfig { margin: 0; }
.tl-vfig video { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #1c1b19; }
.tl-vfig figcaption { margin-top: .5rem; text-align: center; color: var(--ink-soft); font-weight: 600; }
.tl-labeled { margin: 0; }
.tl-labeled figcaption { margin-top: .5rem; text-align: center; color: var(--ink-soft); font-weight: 600; }
.tl-video { margin-top: 1.1rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #1c1b19; }
.tl-video video { width: 100%; height: auto; display: block; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.6rem; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem;
}
.feature h4 { font-size: 1.1rem; margin-bottom: .3rem; }
.feature p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.stat-band { background: var(--accent-soft); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); }
.stat-band .big { font-family: var(--serif); font-size: clamp(2.5rem, 7vw, 4rem); color: var(--accent); line-height: 1; }
.stat-band .lbl { color: #166534; font-size: 1.05rem; margin-top: .4rem; }

.quote { border-left: 3px solid var(--accent); padding-left: 1.4rem; margin: 0; }
.quote p { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--ink); font-style: italic; }
.quote cite { color: var(--ink-faint); font-style: normal; font-size: .95rem; }

.cs-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1rem; margin-top: 1.5rem; }
.cs-gallery img { border-radius: var(--radius); box-shadow: var(--shadow); width:100%; }
.cs-gallery img:only-child { max-width: 760px; margin-inline: auto; }

.cs-nav { display: flex; justify-content: space-between; gap:1rem; flex-wrap: wrap; padding-block: clamp(2rem,5vw,3.5rem); border-top: 1px solid var(--line); }

.collab-note { color: var(--ink-soft); font-size: 1rem; }
.link-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Beyond Design galleries ---------- */
.masonry { column-count: 3; column-gap: 14px; }
.masonry .shot {
  width: 100%; margin: 0 0 14px; border-radius: 12px; display: block;
  break-inside: avoid; cursor: zoom-in; background: var(--bg-alt);
  border: 1px solid var(--line); transition: opacity .25s ease, transform .25s ease;
}
.masonry .shot:hover { opacity: .9; transform: translateY(-2px); }
.masonry--med { column-count: 4; }

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,19,17,.93); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.lb.open { opacity: 1; pointer-events: auto; }
.lb img { max-width: 92vw; max-height: 88vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb__btn {
  position: absolute; background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lb__btn:hover { background: rgba(255,255,255,.26); }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .85rem; letter-spacing: .05em; }

@media (max-width: 900px) { .masonry { column-count: 2; } .masonry--med { column-count: 3; } }
@media (max-width: 560px) {
  .masonry, .masonry--med { column-count: 2; column-gap: 10px; }
  .masonry .shot { margin-bottom: 10px; }
  .lb__prev { left: 8px; } .lb__next { right: 8px; }
}

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(1.5rem,4vw,3rem); }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #14532d; transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .25s ease; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .split, .about-hero, .about-cols { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 260px; max-width: 420px; margin-inline: auto; width: 100%; }
  .cs-meta { grid-template-columns: repeat(2,1fr); }
  .feature-grid, .grid-2 { grid-template-columns: 1fr; }

  /* mobile nav: hamburger + dropdown panel */
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; padding: 0 11px; border: 1px solid var(--line);
    border-radius: 10px; background: var(--white); cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .4rem 0; display: none;
  }
  .nav--open .nav__links { display: flex; }
  .nav__links a:not(.nav__cta) { padding: .9rem clamp(1.25rem, 5vw, 3rem); font-size: 1rem; }
  .nav__links .nav__cta { margin: .5rem clamp(1.25rem, 5vw, 3rem) .7rem; text-align: center; padding: .7rem 1.1rem !important; }
}
@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .tl-step { grid-template-columns: 1fr; gap:.7rem; }
  .tl-side { flex-direction: row; gap: .7rem; }
  .hero__visual { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-orb, .device, .cursor, .ripple, .scr-btn { animation: none !important; }
  .cursor { left: 22%; top: 78%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
