/* =============================================================
   SHEPHERD HOLDING — Design System
   Brand: pure black, white, grey accents. Typeface: Open Sans.
   Aesthetic: minimalist, architectural, gallery-grade.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --black: #000000;
  --bg: #000000;
  --surface: #0b0b0c;
  --surface-2: #121214;
  --surface-3: #17171a;
  --ink: #ffffff;
  --muted: #9a9da1;        /* secondary text */
  --muted-2: #6c6f73;      /* tertiary text */
  --grey-accent: #9aa0a6;  /* the logo square grey */
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.22);

  --font: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1300px;
  --gutter: clamp(20px, 5vw, 60px);
  --section-y: clamp(58px, 8vw, 122px);

  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  --track-eyebrow: 0.28em;
  --track-wide: 0.2em;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* The clients marquee is purely decorative and intentionally keeps scrolling. */
  .marquee__track {
    animation-duration: 46s !important;
    animation-iteration-count: infinite !important;
  }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
::selection { background: #fff; color: #000; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
:where(section[id], [id].section, .anchor) { scroll-margin-top: calc(var(--header-h) + 12px); }
.section--tight { padding-block: clamp(42px, 5.5vw, 80px); }
.divider { height: 1px; background: var(--line-soft); border: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; }
.display {
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.h2 { font-size: clamp(1.9rem, 4.4vw, 3.5rem); font-weight: 300; letter-spacing: -0.015em; }
.h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 400; letter-spacing: -0.01em; }
.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 300;
  line-height: 1.55;
  color: #d7d8da;
  letter-spacing: -0.005em;
}
.body { color: var(--muted); font-size: 1rem; line-height: 1.75; }
strong, .em { font-weight: 600; color: var(--ink); }
.fw-semi { font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--line-strong);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

.index-num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  color: var(--muted-2);
}
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.balance { text-wrap: balance; }
.maxw-prose { max-width: 62ch; }

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: clamp(1.8rem, 3.4vw, 3.1rem);
}
.section-head .eyebrow { margin-bottom: 0.2rem; }
.section-head__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-head p.body { max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.95em;
  --pad-x: 1.6em;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: var(--pad-y) var(--pad-x);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn .btn__arrow { transition: transform 0.45s var(--ease); }
.btn:hover { background: var(--ink); color: var(--black); border-color: var(--ink); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: var(--black); border-color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost { border-color: transparent; padding-inline: 0; }
.btn--ghost:hover { background: transparent; color: var(--muted); }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.link-underline::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }
.link-underline .arrow { transition: transform 0.45s var(--ease); }
.link-underline:hover .arrow { transform: translateX(4px); }

:where(a, button, .btn):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- Logo lockup ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.logo__img {
  display: block;
  width: auto;
  height: 54px;
  transition: height 0.5s var(--ease);
}
.header.is-scrolled .logo__img { height: 46px; }
.footer .logo__img { height: 84px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), height 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line-soft);
  height: 70px;
}
.nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav__link {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.4s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.header__cta { display: inline-flex; align-items: center; gap: 1.5rem; }

/* Burger */
.burger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  z-index: 120;
}
.burger span {
  position: absolute; left: 8px; right: 8px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.is-menu-open .burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.is-menu-open .burger span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: #000;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease);
  visibility: hidden;
}
.is-menu-open .mobile-menu { transform: translateY(0); visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__link {
  font-size: clamp(2rem, 9vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  padding: 0.32em 0;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(24px);
  transition: color 0.4s var(--ease);
}
.mobile-menu__link .idx { font-size: 0.8rem; font-weight: 600; color: var(--muted-2); letter-spacing: 0.1em; }
.mobile-menu__link:hover { color: var(--muted); }
.is-menu-open .mobile-menu__link {
  animation: menuIn 0.6s var(--ease) forwards;
}
.is-menu-open .mobile-menu__link:nth-child(1) { animation-delay: 0.18s; }
.is-menu-open .mobile-menu__link:nth-child(2) { animation-delay: 0.25s; }
.is-menu-open .mobile-menu__link:nth-child(3) { animation-delay: 0.32s; }
.is-menu-open .mobile-menu__link:nth-child(4) { animation-delay: 0.39s; }
.is-menu-open .mobile-menu__link:nth-child(5) { animation-delay: 0.46s; }
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }
.mobile-menu__footer {
  margin-top: 3rem; display: flex; flex-direction: column; gap: 0.5rem;
  color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(40px, 7vh, 84px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.34;
  transform: scale(1.08);
  filter: grayscale(18%) contrast(102%);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 32%, rgba(0,0,0,0.55) 64%, rgba(0,0,0,0.96) 100%),
    radial-gradient(120% 80% at 80% 10%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}
.hero__inner { width: 100%; }
.hero__eyebrow { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.hero h1 { max-width: 16ch; }
.hero__title-line { display: block; overflow: hidden; }
.hero__title-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.hero.is-in .hero__title-line > span { transform: translateY(0); }
.hero.is-in .hero__title-line:nth-child(2) > span { transition-delay: 0.09s; }
.hero.is-in .hero__title-line:nth-child(3) > span { transition-delay: 0.18s; }
.hero__sub {
  max-width: 54ch;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s var(--ease) 0.5s, transform 0.9s var(--ease) 0.5s;
}
.hero__actions {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s var(--ease) 0.66s, transform 0.9s var(--ease) 0.66s;
}
.hero.is-in .hero__sub, .hero.is-in .hero__actions { opacity: 1; transform: translateY(0); }

.hero__meta {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: clamp(40px, 7vh, 84px);
  display: flex; justify-content: space-between; align-items: flex-end;
  pointer-events: none;
}
.scroll-cue {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue__line { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(-100%); animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* page hero (interior pages) */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 11vw, 120px));
  padding-bottom: clamp(36px, 6vw, 72px);
  position: relative;
}
.page-hero h1 { max-width: 18ch; margin-top: 1.4rem; }
.page-hero .lead { margin-top: clamp(1.4rem, 3vw, 2rem); max-width: 60ch; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: clamp(1.6rem, 3vw, 2.6rem) 0; border-bottom: 1px solid var(--line); }
.stat + .stat { padding-left: clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; letter-spacing: -0.02em; }
.stat__label {
  margin-top: 0.6rem; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Split / about ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split--text-first { grid-template-columns: 1.1fr 0.9fr; }
.media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface-2);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }

/* ---------- Group / division cards ---------- */
.group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1px, 0.2vw, 2px);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.group-card {
  background: var(--black);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  transition: background 0.5s var(--ease);
}
.group-card:hover { background: var(--surface-2); }
.group-card__no { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted-2); }
.group-card__body { display: flex; flex-direction: column; gap: 0.5rem; }
.group-card__name { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 300; letter-spacing: -0.01em; }
.group-card__tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey-accent);
}
.group-card__desc { color: var(--muted); max-width: 56ch; font-size: 0.96rem; }
.group-card__cta { color: var(--muted); transition: transform 0.45s var(--ease), color 0.4s var(--ease); }
.group-card:hover .group-card__cta { color: var(--ink); transform: translateX(5px); }
@media (max-width: 760px) {
  .group-card { grid-template-columns: 1fr; gap: 1rem; }
  .group-card__cta { justify-self: start; }
}

/* ---------- Capability list ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.cap {
  background: var(--black);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  min-height: clamp(180px, 22vw, 230px);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.5s var(--ease);
}
.cap:hover { background: var(--surface-2); }
.cap__no { font-size: 0.72rem; font-weight: 600; color: var(--muted-2); letter-spacing: 0.12em; }
.cap__name { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 400; letter-spacing: -0.01em; margin-top: auto; }
.cap__desc { color: var(--muted); font-size: 0.9rem; margin-top: 0.7rem; }

/* ---------- Work grid ---------- */
.work-controls {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter-btn {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  padding: 0.7em 1.3em;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.filter-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.filter-btn.is-active { color: var(--black); background: var(--ink); border-color: var(--ink); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.project {
  grid-column: span 6;
  cursor: pointer;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.project.is-hidden { display: none; }
.project--wide { grid-column: span 12; }
.project__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface-2);
  aspect-ratio: 3 / 2;
}
.project--portrait .project__media { aspect-ratio: 4 / 5; }
.project--wide .project__media { aspect-ratio: 21 / 9; }
.project__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(8%);
}
.project:hover .project__media img { transform: scale(1.05); filter: grayscale(0%); }
.project__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.7) 100%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.project:hover .project__media::after { opacity: 1; }
.project__cat {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(0,0,0,0.4); backdrop-filter: blur(6px);
  padding: 0.5em 0.9em; border: 1px solid var(--line); border-radius: 100px;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.project:hover .project__cat { opacity: 1; transform: translateY(0); }
.project__view {
  position: absolute; bottom: 16px; right: 16px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(0,0,0,0.35); backdrop-filter: blur(6px);
  display: grid; place-items: center;
  opacity: 0; transform: scale(0.7); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.4s var(--ease);
}
.project:hover .project__view { opacity: 1; transform: scale(1); }
.project__view:hover { background: var(--ink); color: var(--black); }
.project__info {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-top: 1.1rem;
}
.project__title { font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 400; letter-spacing: -0.01em; }
.project__loc { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; }

/* Featured (bento) layout */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(1rem, 1.6vw, 1.4rem);
}
.featured-grid .project { grid-column: span 4; }
.featured-grid .project.f-lg { grid-column: span 8; }
.featured-grid .project.f-lg .project__media { aspect-ratio: 16 / 10; }
.featured-grid .project.f-sm .project__media { aspect-ratio: 4 / 5; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(1.4rem, 2.4vw, 2rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 5rem);
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 300; letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: clamp(2.5rem, 5vw, 5rem);
}
.marquee__item::after { content: "—"; color: var(--muted-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Philosophy ---------- */
.philosophy { counter-reset: phil; }
.phil-list { display: grid; gap: 0; }
.phil-item {
  display: grid;
  grid-template-columns: clamp(60px, 8vw, 110px) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.phil-item:last-child { border-bottom: 1px solid var(--line); }
.phil-item__no::before {
  counter-increment: phil; content: counter(phil, decimal-leading-zero);
  font-size: 0.8rem; font-weight: 600; color: var(--muted-2); letter-spacing: 0.1em;
}
.phil-item__text {
  font-size: clamp(1.2rem, 2.5vw, 2rem); font-weight: 300; line-height: 1.32; letter-spacing: -0.01em;
  color: #e8e9ea; max-width: 30ch;
}
.phil-item:hover .phil-item__text { color: #fff; }

/* ---------- Founders ---------- */
.founders { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.founder { display: flex; flex-direction: column; gap: 1.2rem; }
.founder__avatar {
  aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; background: var(--surface);
  position: relative; overflow: hidden;
}
.founder__initials { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 200; color: var(--muted); letter-spacing: 0.02em; }
.founder__avatar::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,0.06), transparent 60%);
}
.founder__name { font-size: 1.25rem; font-weight: 400; }
.founder__role { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-accent); margin-top: 0.3rem; }
.founder__bio { color: var(--muted); font-size: 0.92rem; margin-top: 0.8rem; }

/* ---------- Contact / CTA ---------- */
.cta {
  text-align: center;
  padding-block: clamp(64px, 9vw, 140px);
  position: relative;
}
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta .eyebrow { justify-content: center; }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 6vw, 5rem); text-align: left;
}
.contact-card { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.contact-card__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 300; margin-top: 0.7rem; }
.contact-card__value a { transition: color 0.3s var(--ease); }
.contact-card__value a:hover { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer__brand { max-width: 38ch; }
.footer__tagline { color: var(--muted); margin-top: 1.4rem; font-size: 0.95rem; }
.footer__col h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer__col a { color: #cfd0d2; font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--line-soft);
  font-size: 0.78rem; color: var(--muted-2); letter-spacing: 0.03em;
}
.to-top {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  transition: color 0.3s var(--ease);
}
.to-top:hover { color: var(--ink); }
.to-top svg { transition: transform 0.4s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ---------- Modal / lightbox ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
  width: min(1100px, 100%);
  max-height: 90svh; overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; grid-template-columns: 1.25fr 1fr;
  transform: translateY(24px) scale(0.99); transition: transform 0.6s var(--ease);
  scrollbar-width: thin;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__media { background: var(--black); position: relative; min-height: 320px; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(1.8rem, 3vw, 3rem); display: flex; flex-direction: column; }
.modal__cat { color: var(--grey-accent); }
.modal__title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; letter-spacing: -0.015em; margin: 0.8rem 0 1.4rem; }
.modal__desc { color: var(--muted); line-height: 1.75; }
.modal__meta { margin-top: auto; padding-top: 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.modal__meta dt { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.modal__meta dd { margin-top: 0.4rem; font-size: 0.95rem; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  display: grid; place-items: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.modal__close:hover { background: var(--ink); color: var(--black); transform: rotate(90deg); }
.modal__nav { display: flex; gap: 0.6rem; margin-top: 1.6rem; }
.modal__navbtn {
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.modal__navbtn:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .split, .split--text-first { grid-template-columns: 1fr; gap: 2.5rem; }
  .founders { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .modal__dialog { grid-template-columns: 1fr; }
  .modal__media { aspect-ratio: 16/10; min-height: 0; }
}
@media (max-width: 880px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: none; padding-left: 0; }
  .stat:nth-child(2) { border-left: 1px solid var(--line); padding-left: clamp(1rem,4vw,2rem); }
  .stat:nth-child(4) { border-left: 1px solid var(--line); padding-left: clamp(1rem,4vw,2rem); }
  .featured-grid .project, .featured-grid .project.f-lg { grid-column: span 12; }
  .featured-grid .project .project__media,
  .featured-grid .project.f-lg .project__media { aspect-ratio: 16/10; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .project, .project--wide { grid-column: span 12; }
  .project__media { aspect-ratio: 4/3; }
  .cap-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .section-head__row { align-items: flex-start; }
  .hero__meta { display: none; }
}
