/* ==========================================================================
   Tony Lardie — Product Designer
   ========================================================================== */

:root {
  --ink: #0B0B0F;
  --ink-2: #14141A;
  --ink-3: #1E1E26;
  --paper: #F7F5F0;
  --paper-2: #ECE8E0;
  --muted: #6B6862;
  --muted-on-dark: rgba(255, 255, 255, 0.62);
  --accent: #FF4A1C;
  --accent-2: #FFB800;
  --line: rgba(11, 11, 15, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1560px;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.wrap-narrow {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(72px, 11vw, 180px);
  position: relative;
}

.section--tight { padding-block: clamp(56px, 7vw, 110px); }

.section--dark {
  background: var(--ink);
  color: #fff;
}

.section--paper2 { background: var(--paper-2); }

/* ---------- Type scale ---------- */


.t-hero,
.t-xl,
.t-l,
.t-m {
  font-family: var(--display);
  margin: 0;
  text-wrap: balance;
}

.t-hero {
  font-size: clamp(3rem, 11.5vw, 10.5rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: initial;
}

.t-xl {
  font-size: clamp(2.4rem, 7vw, 5.75rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

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


.t-l {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.t-m {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.eyebrow--plain::before { display: none; }

.lede {
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 60ch;
}

.section--dark .lede { color: rgba(255, 255, 255, 0.9); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.body-col p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.72;
  max-width: 62ch;
}

.section--dark .body-col p { color: var(--muted-on-dark); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 22px;
  transition: padding 0.4s var(--ease), color 0.4s var(--ease);
}

/* The stuck background lives on a pseudo-element: putting backdrop-filter on
   the header itself would make it the containing block for the fixed mobile
   nav, collapsing the nav to the header's height. */
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.4s var(--ease);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header--over { color: #fff; }

.site-header--over::before {
  content: '';
  position: absolute;
  inset: -1px 0 auto 0;
  height: 160px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0.7), rgba(11, 11, 15, 0));
}

.site-header--stuck {
  padding-block: 14px;
  color: var(--ink);
}

.site-header--stuck::after { opacity: 1; }

.logo {
  font-family: var(--display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  position: relative;
  z-index: 95;
}

.logo::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}

.main-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-block: 4px;
  opacity: 0.85;
  transition: opacity 0.25s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { opacity: 1; }

.icon-link svg { width: 19px; height: 19px; display: block; }
.icon-link::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
  color: inherit;
  position: relative;
  z-index: 95;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.nav-toggle span + span { margin-top: 7px; }

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 2.4s var(--ease) forwards;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(11,11,15,0.95) 0%, rgba(11,11,15,0.66) 42%, rgba(11,11,15,0.44) 68%, rgba(11,11,15,0.68) 100%);
}

.hero__inner {
  width: 100%;
  padding-block: clamp(48px, 9vh, 110px) clamp(40px, 7vh, 80px);
}

.hero__name {
  margin: 0 0 clamp(20px, 3vw, 34px);
}

.hero__name span { display: block; white-space: nowrap; }
.hero__name .accent { display: inline; color: var(--accent); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line-on-dark);
}

.hero__meta span {
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero__meta .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  padding: 0;
}

.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: clamp(40px, 7vh, 80px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: cue 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--accent);
  color: #fff;
  padding-block: clamp(14px, 1.8vw, 22px);
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  border-block: 1px solid var(--ink);
}

.marquee__track {
  display: flex;
  gap: 0;
  animation: slide 38s linear infinite;
  flex: none;
}

.marquee span {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding-inline: clamp(18px, 2.6vw, 40px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}

.marquee span::after {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--ink);
  border-radius: 50%;
  flex: none;
}

@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */

.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.statement__grid .t-l { max-width: 18ch; }

/* ---------- Work / project cards ---------- */

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 70px);
}

.work-head p {
  color: var(--muted-on-dark);
  max-width: 42ch;
  margin: 0;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 40px);
}

.project {
  position: relative;
  display: block;
  border-radius: clamp(14px, 1.6vw, 26px);
  overflow: hidden;
  min-height: clamp(420px, 74vh, 780px);
  background: var(--ink-2);
  isolation: isolate;
}

.project__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.project::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11,11,15,0.95) 4%, rgba(11,11,15,0.7) 32%, rgba(11,11,15,0.22) 62%, rgba(11,11,15,0.08) 100%);
  transition: opacity 0.5s;
}

.project:hover .project__media img { transform: scale(1.05); }

.project__body {
  position: relative;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3.4vw, 60px);
  color: #fff;
}

.project__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: auto;
}

.project__index {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
}

.project__co {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(11, 11, 15, 0.55);
  border: 1px solid var(--line-on-dark);
  padding: 8px 16px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}

.project__title {
  margin: 0 0 14px;
  max-width: 16ch;
}

.project__desc {
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  margin: 0 0 clamp(20px, 2.4vw, 30px);
  font-size: clamp(0.98rem, 1.3vw, 1.15rem);
}

.project__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project__cta i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.4s var(--ease);
}

.project__cta svg { width: 16px; height: 16px; }
.project:hover .project__cta i { transform: translateX(8px); }

/* ---------- Case study hero ---------- */

.case-hero {
  position: relative;
  min-height: clamp(560px, 92svh, 940px);
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.case-hero__media { position: absolute; inset: 0; z-index: -2; }

.case-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11,11,15,0.96) 0%, rgba(11,11,15,0.80) 38%, rgba(11,11,15,0.56) 68%, rgba(11,11,15,0.70) 100%);
}

.case-hero__inner {
  width: 100%;
  padding-block: clamp(40px, 8vh, 90px);
}

.case-hero .t-hero { margin-bottom: clamp(20px, 3vw, 34px); max-width: 15ch; }

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 72px);
  padding-top: clamp(20px, 2.6vw, 32px);
  border-top: 1px solid var(--line-on-dark);
}

.meta-bar div { min-width: 120px; }

.meta-bar dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.meta-bar dd {
  margin: 0;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  color: #fff;
}

/* ---------- Content blocks ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}

.split__label { position: sticky; top: 110px; }

.split__label h2 { margin: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 4vw, 64px);
}

/* Numbered goal / list cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(16px, 2vw, 28px);
  counter-reset: card;
}

.card {
  counter-increment: card;
  padding: clamp(24px, 2.6vw, 38px);
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.55;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card::before {
  content: counter(card, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 16px;
}

.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(11,11,15,0.1); }

.section--dark .card {
  background: var(--ink-2);
  border-color: var(--line-on-dark);
  color: rgba(255, 255, 255, 0.86);
}

/* Bullet lists */

ul.plain { list-style: none; margin: 0; padding: 0; }

ul.plain li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.6;
}

ul.plain li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.section--dark ul.plain li { color: var(--muted-on-dark); }

ul.plain li strong { color: var(--ink); font-weight: 600; }
.section--dark ul.plain li strong { color: #fff; }

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(20px, 3vw, 48px);
  border-top: 1px solid var(--line-on-dark);
  padding-top: clamp(28px, 3.4vw, 48px);
}

.stat__num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--accent);
  margin-bottom: 12px;
}

.stat__label {
  font-size: 0.95rem;
  color: var(--muted-on-dark);
  max-width: 26ch;
  line-height: 1.5;
}

.section:not(.section--dark) .stats { border-top-color: var(--line); }
.section:not(.section--dark) .stat__label { color: var(--muted); }

/* Team */

.team {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 48px);
}

.team__person {
  padding: 20px 0;
  border-top: 2px solid var(--ink);
  min-width: 200px;
  flex: 1 1 200px;
}

.section--dark .team__person { border-top-color: var(--accent); }

.team__person strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.team__person span { font-size: 0.9rem; color: var(--muted); }
.section--dark .team__person span { color: var(--muted-on-dark); }

/* Brand assets ship as cards with their own opaque backgrounds, so they are
   framed rather than recoloured. */
.brand-logo {
  width: clamp(168px, 19vw, 212px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 32px;
}

/* ---------- Figures & galleries ---------- */

.figure {
  margin: 0;
  border-radius: clamp(12px, 1.4vw, 20px);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

/* Cap every framed image at roughly one screen so nothing needs scrolling to
   take in. Landscape art is unaffected; tall art is centred on its stage. */
.figure img {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

/* Device mockups are ~2:1 portrait: at full container width they render several
   viewports tall, so cap them by height and centre the device on a plain stage. */
.figure--phone {
  display: flex;
  justify-content: center;
  background: none;
  border: 0;
}

.figure--phone img {
  width: auto;
  max-width: 100%;
  max-height: min(74vh, 720px);
  border-radius: clamp(12px, 1.4vw, 20px);
}

.section--dark .figure { border-color: var(--line-on-dark); background: var(--ink-2); }

.figure--bleed {
  border-radius: 0;
  border-inline: 0;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

.figure--bleed img {
  width: 100%;
  max-height: 92vh;
  object-fit: cover;
}

.stack { display: grid; gap: clamp(16px, 2vw, 28px); }

.gallery {
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  scrollbar-width: thin;
}

.gallery img {
  height: clamp(340px, 52vh, 560px);
  width: auto;
  flex: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  scroll-snap-align: center;
  cursor: zoom-in;
  background: #fff;
}

.section--dark .gallery img { border-color: var(--line-on-dark); }
.gallery--tall img { height: clamp(420px, 66vh, 720px); }

.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
.gallery::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.logo-row img {
  height: clamp(22px, 2.4vw, 32px);
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
}

.logo-row img:hover { opacity: 1; filter: none; }
.section--dark .logo-row img { filter: grayscale(1) brightness(0) invert(1); opacity: 0.6; }
.section--dark .logo-row img:hover { opacity: 1; }

/* ---------- Resume ---------- */

.roles { border-top: 1px solid var(--line); }

.role-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 2.8vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-inline 0.4s var(--ease), background 0.4s;
  flex-wrap: wrap;
}

.role-row:hover { padding-inline: clamp(8px, 1.4vw, 24px); background: rgba(255, 74, 28, 0.05); }
.role-row h3 { margin: 0; }
.role-row span { font-size: 0.95rem; color: var(--muted); font-weight: 500; }

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  counter-reset: skill;
}

.skill {
  counter-increment: skill;
  border: 1px solid var(--line-on-dark);
  border-radius: 14px;
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  align-items: baseline;
  gap: 16px;
  transition: background 0.35s, transform 0.35s var(--ease);
}

.skill::before {
  content: '0' counter(skill);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.skill strong {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.skill:hover { background: var(--ink-2); transform: translateY(-4px); }

/* ---------- About photos ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
}

.photo-grid .figure { margin: 0; height: 100%; }
.photo-grid .figure img { height: 100%; object-fit: cover; }

.pg-7 { grid-column: span 7; }
.pg-5 { grid-column: span 5; }
.pg-12 { grid-column: span 12; }

/* ---------- Next / pagination ---------- */

.next-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--line-on-dark);
  border-radius: 16px;
  transition: background 0.4s, transform 0.4s var(--ease), border-color 0.4s;
}

.next-link:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-5px); }
.next-link small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 10px;
}
.next-link:hover small { color: rgba(255,255,255,0.85); }
.next-link strong {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.next-link svg { width: 26px; height: 26px; flex: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(70px, 10vw, 150px) 40px;
}

.footer-cta {
  display: block;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.footer-cta .t-hero { transition: color 0.4s; }
.footer-cta:hover .t-hero { color: var(--accent); }

.footer-mail {
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  display: inline-block;
  word-break: break-word;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(28px, 4vw, 60px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line-on-dark);
}

.footer-grid h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.footer-grid p, .footer-grid a { color: var(--muted-on-dark); font-size: 1rem; }
.footer-grid a:hover { color: #fff; }

.footer-social { display: flex; gap: 14px; }

.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.footer-social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  margin-top: clamp(40px, 5vw, 70px);
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 6, 9, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 60px);
  cursor: zoom-out;
}

.lightbox.open { display: flex; animation: fade 0.25s ease; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .statement__grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__label { position: static; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 15vh var(--pad) 0;
    overflow-y: auto;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.55s var(--ease), visibility 0s linear 0.55s;
    z-index: 90;
  }

  body.nav-open .main-nav {
    transform: none;
    visibility: visible;
    transition: transform 0.55s var(--ease), visibility 0s;
  }

  .main-nav a {
    font-family: var(--display);
    font-size: clamp(2rem, 9vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    opacity: 1;
    padding-block: 12px;
  }

  .main-nav .icon-link { margin-top: 24px; }
  .main-nav .icon-link svg { width: 26px; height: 26px; }

  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { color: #fff; }
  body.nav-open .site-header::after { opacity: 0; }

  .photo-grid .pg-7, .photo-grid .pg-5 { grid-column: span 12; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .project { min-height: 68vh; }
  .project__top { margin-bottom: clamp(80px, 22vh, 200px); }
  .meta-bar { gap: 20px 32px; }
  .footer-bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
