/* ---------------------------------------------------------------
   Surname & Surname — design system
   Built from Figma file A0BtTAC67KX2sD1TECrCi3
   --------------------------------------------------------------- */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Switzer";
  src: url("../assets/fonts/Switzer-Variable.woff2") format("woff2-variations"),
       url("../assets/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("../assets/fonts/Switzer-VariableItalic.woff2") format("woff2-variations"),
       url("../assets/fonts/Switzer-VariableItalic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-Variable.ttf") format("truetype-variations"),
       url("../assets/fonts/JetBrainsMono-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces */
  --bg: #dfdfdf;
  --bg-2: #c9c9c9;
  --fg: #000000;
  --muted: #797979;
  --muted-2: #6a6a6a;
  --muted-3: #b3b3b3;
  --line: rgba(0, 0, 0, 0.14);
  --line-soft: rgba(0, 0, 0, 0.08);

  /* Project accents (used sparingly) */
  --champ-pink: #ffb3c2;
  --champ-yellow: #ffcb05;
  --martha-red: #ff5235;
  --martha-yellow: #ffc46b;

  /* Nav glass — Apple-style liquid glass layered effect */
  --glass-tint: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-highlight: rgba(255, 255, 255, 0.9);
  --glass-shadow-inner: rgba(0, 0, 0, 0.06);
  --glass-shadow-outer: 0 1px 1px rgba(0, 0, 0, 0.05),
                       0 4px 16px -6px rgba(0, 0, 0, 0.18),
                       0 14px 40px -14px rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-sans: "Switzer", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale — fluid (375–1920) */
  --text-mono: clamp(12px, 0.8vw, 13px);
  --text-xs: clamp(10px, 0.75vw, 12px);
  --text-sm: clamp(12px, 0.85vw, 14px);
  --text-base: clamp(15px, 1.05vw, 17px);
  --text-lg: clamp(18px, 1.4vw, 22px);
  --text-xl: clamp(22px, 2vw, 30px);
  --text-2xl: clamp(28px, 3vw, 44px);
  --text-3xl: clamp(40px, 5.4vw, 80px);
  --text-mega: clamp(72px, 11vw, 168px);
  --text-ultra: clamp(120px, 18vw, 260px);

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;
  --s-40: 160px;

  /* Layout */
  --container-pad: clamp(20px, 3vw, 56px);
  --container-max: 1760px;
  --section-pad: clamp(64px, 9vw, 160px);

  /* Effects */
  --radius-pill: 9999px;
  --radius-md: 5px;
  --radius-lg: 20px;

  /* Motion */
  --d-fast: 180ms;
  --d-base: 320ms;
  --d-slow: 600ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.45;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

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

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

.section {
  padding-block: var(--section-pad);
}

.section-tight {
  padding-top: clamp(56px, 6.94vw, 100px);
  padding-bottom: clamp(64px, 10.83vw, 156px);
  position: relative;
}

.section-tight::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--container-pad);
  right: var(--container-pad);
  border-top: 1px solid var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-loaded .section-tight::before {
  transform: scaleX(1);
}

/* ---------------------------------------------------------------
   Typography utilities
   --------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-feature-settings: "tnum";
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

.muted   { color: var(--muted-2); }
.muted-2 { color: var(--muted); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------
   Page-to-page transitions — native View Transitions API
   A one-line opt-in: the browser automatically cross-fades the outgoing
   and incoming page on every same-origin navigation. Unsupported
   browsers just navigate normally — no polyfill, no JS.
   --------------------------------------------------------------- */

@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 480ms;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ---------------------------------------------------------------
   First-load splash — solid ink curtain with the S&S mark, shown
   once per session (see js/main.js). Falls down to reveal the page.
   --------------------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  display: grid;
  place-items: center;
  pointer-events: none;
  /* Default = fully covering (no flash of content before JS runs) */
  transform: translateY(0);
  transition: transform 900ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

/* Resting-hidden state: parked just below the viewport */
.loader.loader--down {
  transform: translateY(100%);
}

.loader.is-removed { display: none; }

.loader__mark {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 500ms var(--ease),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mark is visible whenever the curtain is covering the screen */
.loader:not(.loader--down) .loader__mark {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 180ms;
}

.loader__mark img {
  width: clamp(160px, 30vw, 460px);
  height: auto;
  display: block;
  /* Logo ships black; invert to white against the ink panel */
  filter: invert(1);
}

/* ---------------------------------------------------------------
   Top navigation (two glass pills)
   --------------------------------------------------------------- */

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 2vw, 32px) var(--container-pad);
  pointer-events: none;
}

.topnav__pill,
.topnav__nav,
.topnav__burger {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  position: relative;
  background:
    radial-gradient(
      130% 150% at 22% -25%,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0) 55%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.04) 100%
    ),
    var(--glass-tint);
  border: none;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(40px) saturate(220%) brightness(1.08);
  -webkit-backdrop-filter: blur(40px) saturate(220%) brightness(1.08);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 1px 0 var(--glass-shadow-inner),
    var(--glass-shadow-outer);
  transition: background var(--d-base) var(--ease),
    border-color var(--d-base) var(--ease),
    box-shadow var(--d-base) var(--ease);
}

/* Specular highlight that runs along the top edge */
.topnav__pill::before,
.topnav__nav::before,
.topnav__burger::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 32%
  );
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.topnav__pill {
  padding: 10px 21px;
  min-height: 52px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    background var(--d-base) var(--ease),
    border-color var(--d-base) var(--ease),
    box-shadow var(--d-base) var(--ease),
    opacity var(--d-base) var(--ease),
    transform var(--d-base) var(--ease);
}

.topnav__pill img {
  width: auto;
  height: 16px;
  max-height: 16px;
  max-width: 60px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

/* Home: hide the S&S pill while the hero is in view, reveal once past it */
.is-home .topnav__pill {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-12px);
}

.is-home.past-hero .topnav__pill {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* The mobile-menu overlay covers the hero entirely, so the pill should
   always be visible while it's open — regardless of Home scroll position. */
.menu-open .topnav__pill {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.topnav__nav {
  padding: 6px;
}

.topnav__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg);
  border-radius: var(--radius-pill);
  transition: color var(--d-fast) var(--ease);
}

.topnav__nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.07);
  opacity: 0;
  transition: opacity var(--d-fast) var(--ease);
}

.topnav__nav a:hover::before {
  opacity: 1;
}

/* Active page: bullet marker before the label (matches redesign) */
.topnav__nav a[aria-current="page"] > span::before {
  content: "•";
  margin-right: 0.42em;
  font-weight: 700;
}

.topnav__nav a > span {
  position: relative;
}

/* Mobile menu trigger — glass styling inherited from shared rule above */
.topnav__burger {
  display: none;
  width: 48px;
  height: 48px;
  justify-content: center;
}

.topnav__burger span {
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  position: relative;
  z-index: 1;
}

.topnav__burger span::before,
.topnav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--fg);
  transition: transform var(--d-fast) var(--ease);
}

.topnav__burger span::before { top: -5px; }
.topnav__burger span::after  { top: 5px; }

.menu-open .topnav__burger span { background: transparent; }
.menu-open .topnav__burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .topnav__burger span::after  { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  /* Topnav pill bottom edge sits at a constant 72px (20px pad + 52px pill)
     throughout the mobile-menu breakpoint — pad the same "gap" below it
     so the space above the links matches the space below them exactly. */
  --menu-gap: 100px;
  justify-content: flex-start;
  padding-top: calc(72px + var(--menu-gap));
  align-items: center;
  padding-inline: var(--container-pad);
  gap: var(--menu-gap);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-base) var(--ease);
}

.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mobile-menu__links a {
  font-size: clamp(44px, 11vw, 76px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.mobile-menu__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-8);
  text-align: center;
}

.mobile-menu__col h4 {
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}

.mobile-menu__col a {
  color: var(--muted);
}

.mobile-menu__social-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu__col .socials {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.mobile-menu__col .socials a {
  font-size: var(--text-base);
}

@media (max-width: 760px) {
  .topnav__nav { display: none; }
  .topnav__burger { display: inline-flex; }
}

/* ---------------------------------------------------------------
   Home — hero
   --------------------------------------------------------------- */

.hero {
  padding-top: clamp(24px, 3.68vw, 53px);
  padding-bottom: clamp(56px, 8.47vw, 122px);
}

.hero__mark {
  font-size: clamp(120px, 22vw, 360px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-weight: 500;
  margin-bottom: clamp(40px, 5.35vw, 77px);
}

.hero__mark img {
  width: clamp(170px, 35.63vw, 513px);
  height: auto;
  display: block;
  margin-left: 0;
}

.hero__lede {
  font-size: clamp(28px, 3.47vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: none;
  font-weight: 500;
  margin-bottom: clamp(48px, 6.25vw, 90px);
}

.hero__lede .gray {
  color: var(--muted);
}

/* Hero visual — video, sized to its own 3:2 so object-fit: cover has
   nothing to crop */
.hero__visual {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #050505;
  isolation: isolate;
}

/* ---------------------------------------------------------------
   Featured / project grid
   --------------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: clamp(32px, 4.86vw, 70px);
}

.h-section {
  font-size: clamp(28px, 3.47vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.featured-grid,
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 5vw, 88px);
}

/* Zigzag: odd cards anchor left, even cards anchor right */
.featured-grid .project-card,
.projects-grid .project-card {
  width: 85%;
}

.featured-grid .project-card:nth-child(odd),
.projects-grid .project-card:nth-child(odd) {
  justify-self: start;
}

/* Home — featured projects (asymmetric layout matching Figma) */
.featured-stack {
  display: flex;
  flex-direction: column;
}

.featured-row {
  display: grid;
  grid-template-columns: 7fr 6fr;
  gap: var(--s-4);
  align-items: start;
}

.featured-card--aromaria .project-card__media { aspect-ratio: 723 / 696; }
.featured-card--macros .project-card__media { aspect-ratio: 621 / 381; }
.featured-wide .project-card__media { aspect-ratio: 3 / 2; }

.featured-wide {
  margin-top: clamp(24px, 3.82vw, 55px);
}

.project-card__meta.featured-title-row {
  margin-top: clamp(8px, 1vw, 14px);
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: var(--s-2);
}

.coming-soon-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.34;
  color: var(--fg);
}

@media (max-width: 720px) {
  .featured-row { grid-template-columns: 1fr; gap: clamp(32px, 6vw, 48px); }
}

.featured-grid .project-card:nth-child(even),
.projects-grid .project-card:nth-child(even) {
  justify-self: end;
}

@media (max-width: 720px) {
  .featured-grid .project-card,
  .projects-grid .project-card {
    width: 100%;
  }
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1a1a1a;
  isolation: isolate;
}

/* Placeholder slots inside a dark project card need dark-context styling,
   not the light page-background fill — otherwise blurring on hover reads
   as a gray glow instead of blending into the card. */
.project-card__media .img-slot {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.5);
}

/* Real images fill their media container */
.project-card__media img,
.hero__visual img,
.proj-cover img,
.proj-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The source clip has a thin black bar baked into its top/bottom edge —
   overscan the video 10px past the container on each side (clipped by
   .hero__visual's overflow: hidden) so it never shows. */
.hero__visual video {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: calc(100% + 20px);
  object-fit: cover;
  display: block;
}

.awards__media img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card__media > * {
  transition: filter var(--d-base) var(--ease),
    transform var(--d-slow) var(--ease);
}

/* Hover: image blurs, plus + "See more" overlay appears */
.project-card:hover .project-card__media > * {
  filter: blur(18px);
  transform: scale(1.06);
}

/* Big thin plus icon via pseudo-element (horizontal + vertical lines) */
.project-card__media::before {
  content: "";
  position: absolute;
  top: calc(50% - 4%);
  left: 50%;
  width: clamp(80px, 18%, 180px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(
      to right,
      transparent calc(50% - 0.5px),
      rgba(255, 255, 255, 0.95) calc(50% - 0.5px),
      rgba(255, 255, 255, 0.95) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(50% - 0.5px),
      rgba(255, 255, 255, 0.95) calc(50% - 0.5px),
      rgba(255, 255, 255, 0.95) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    );
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity var(--d-base) var(--ease);
}

/* "VIEW" label below the plus */
.project-card__media::after {
  content: "VIEW";
  position: absolute;
  top: calc(50% + 14%);
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity var(--d-base) var(--ease);
}

.project-card:hover .project-card__media::before,
.project-card:hover .project-card__media::after {
  opacity: 1;
}

/* Hide legacy markup if present (Martha cards still ship the inner div) */
.project-card__see {
  display: none;
}

.project-card__meta {
  margin-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-card__title {
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.project-card__sub {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.see-all {
  display: inline-block;
  margin-top: clamp(32px, 4.93vw, 71px);
  font-size: clamp(28px, 3.47vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: opacity var(--d-fast) var(--ease);
}

.see-all:hover {
  opacity: 0.6;
}

/* ---------------------------------------------------------------
   Mega service block + CTA
   --------------------------------------------------------------- */

.megablock {
  padding-top: clamp(56px, 7.01vw, 101px);
  padding-bottom: clamp(40px, 5vw, 80px);
  position: relative;
}

.megablock::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--container-pad);
  right: var(--container-pad);
  border-top: 1px solid var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-loaded .megablock::before {
  transform: scaleX(1);
}

.megablock h2 {
  font-size: clamp(48px, 8.33vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 500;
  text-transform: uppercase;
}

.cta-mega {
  padding-bottom: clamp(80px, 9vw, 140px);
  margin-top: 0;
}

/* When the CTA is standalone (e.g. contact page) — no border/margin, hero-like top */
.cta-mega--solo {
  margin-top: 0;
  padding-top: clamp(140px, 17vw, 240px);
}

.cta-mega__row {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--fg);
}

.cta-mega--solo .cta-mega__row {
  padding-top: 0;
  border-top: 0;
}

.cta-mega__q,
.cta-mega__a {
  font-size: clamp(48px, 8.33vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 500;
  text-transform: uppercase;
  display: block;
  overflow-wrap: anywhere;
}

.cta-mega__a {
  /* No spaces to wrap on, unlike the question above it — needs its own
     lower floor so "INFO@SURNAME.STUDIO" fits on one line on narrow phones. */
  font-size: clamp(30px, 8.33vw, 120px);
  color: var(--muted);
  transition: color var(--d-base) var(--ease);
}

.cta-mega__a:hover {
  color: var(--fg);
}

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

.footer {
  padding-top: clamp(56px, 7vw, 112px);
  padding-bottom: clamp(28px, 3vw, 48px);
}

.footer__row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(var(--s-8), 4vw, 96px);
  align-items: start;
}

.footer__row--top {
  margin-bottom: clamp(56px, 8vw, 128px);
}

.footer__zone {
  border-top: 1px solid var(--fg);
  padding-top: var(--s-4);
}

.footer__zone--wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
}

.footer__row--top .footer__zone--wide {
  grid-template-columns: 1fr;
}

.footer__brand {
  font-size: var(--text-sm);
  font-weight: 500;
}

.footer__claim {
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--muted-2);
  max-width: 38ch;
}

.footer__col {
  font-size: var(--text-sm);
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: var(--s-3);
}

.footer__col a {
  display: inline;
  position: relative;
  transition: color var(--d-fast) var(--ease);
}

.footer__col a:hover {
  color: var(--muted-2);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.clock {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
}

@media (max-width: 760px) {
  .footer__row {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .footer__zone--wide {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

/* ---------------------------------------------------------------
   Page header — centered page title + hairline
   (About, Journal, Contact)
   --------------------------------------------------------------- */

.page-head {
  padding-top: clamp(96px, 13vw, 180px);
  padding-bottom: clamp(28px, 3.5vw, 56px);
  text-align: center;
  position: relative;
}

.page-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--container-pad);
  right: var(--container-pad);
  border-top: 1px solid var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-loaded .page-head::after {
  transform: scaleX(1);
}

.page-title {
  font-size: clamp(48px, 8.33vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 500;
}

/* ---------------------------------------------------------------
   Projects index — header / filter pills
   --------------------------------------------------------------- */

/* Projects page — filter row centered below the shared page-head hairline */
.projects-filters {
  padding-top: clamp(20px, 2.5vw, 36px);
  padding-bottom: clamp(24px, 2.99vw, 43px);
  display: flex;
  justify-content: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: none;
}

.filter-pill {
  font-family: var(--font-mono);
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--fg);
  border-radius: var(--radius-pill);
  transition: background var(--d-fast) var(--ease),
    color var(--d-fast) var(--ease),
    border-color var(--d-fast) var(--ease);
}

.filter-pill[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}

.filter-pill:hover {
  background: rgba(0, 0, 0, 0.06);
}

.filter-pill[aria-pressed="true"]:hover {
  background: var(--fg);
}

.project-card[hidden] { display: none; }

/* Projects grid — asymmetric masonry rows matching Figma, using each row's
   exact pixel widths as fr ratios (CSS fr accepts any positive number). */
.projects-stack {
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(56px, 7.22vw, 104px);
}

.projects-row {
  display: grid;
  gap: var(--s-4);
  align-items: start;
}

.projects-row--r1 { grid-template-columns: 723fr 621fr; }
.projects-row--r3 { grid-template-columns: 374fr 970fr; margin-top: clamp(32px, 3.82vw, 55px); }
.projects-row--r4 { grid-template-columns: 972fr 372fr; margin-top: clamp(32px, 3.82vw, 55px); }
.projects-row--r5 { grid-template-columns: 326fr 1014fr; margin-top: clamp(40px, 5vw, 72px); }

.projects-wide {
  margin-top: clamp(32px, 3.82vw, 55px);
}
.projects-wide .project-card__media { aspect-ratio: 1359 / 906; }

.proj-card--aromaria .project-card__media  { aspect-ratio: 723 / 696; }
.proj-card--macros .project-card__media    { aspect-ratio: 621 / 381; }
.proj-card--marthas .project-card__media   { aspect-ratio: 374 / 346; }
.proj-card--flou .project-card__media      { aspect-ratio: 970 / 647; }
.proj-card--mentados .project-card__media  { aspect-ratio: 972 / 649; }
.proj-card--merkabal .project-card__media  { aspect-ratio: 372 / 308; }
.proj-card--eyelab .project-card__media    { aspect-ratio: 326 / 314; }
.proj-card--astras .project-card__media    { aspect-ratio: 1014 / 676; }

@media (max-width: 720px) {
  .projects-row { grid-template-columns: 1fr !important; gap: clamp(32px, 6vw, 48px); }
}

/* ---------------------------------------------------------------
   Project visuals (CSS art covers)
   --------------------------------------------------------------- */

/* Flou — rainbow prism */
.art-flou {
  width: 100%;
  height: 100%;
  position: relative;
  background:
    radial-gradient(140% 90% at 30% 90%, #060812 0%, #050505 60%, #000 100%);
  overflow: hidden;
}

.art-flou::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -20%;
  top: 30%;
  bottom: -10%;
  background: linear-gradient(
    100deg,
    transparent 5%,
    rgba(255, 60, 80, 0.9) 14%,
    rgba(255, 160, 60, 0.9) 22%,
    rgba(255, 240, 70, 0.95) 30%,
    rgba(80, 230, 90, 0.9) 40%,
    rgba(60, 160, 250, 0.95) 52%,
    rgba(140, 60, 240, 0.85) 62%,
    rgba(255, 40, 180, 0.8) 70%,
    transparent 88%
  );
  filter: blur(40px) saturate(140%);
  transform: rotate(-6deg);
  mix-blend-mode: screen;
  opacity: 0.95;
}

.art-flou::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 12%;
  top: 22%;
  bottom: 22%;
  background: radial-gradient(60% 60% at 50% 60%, rgba(255,255,255,0.55), transparent 70%);
  filter: blur(40px);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.art-flou__word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  font-size: clamp(60px, 12vw, 220px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.9);
  text-shadow:
    -2px 0 rgba(255, 60, 80, 0.7),
    -4px 0 rgba(255, 200, 60, 0.5),
    2px 0 rgba(80, 200, 255, 0.65),
    4px 0 rgba(140, 60, 240, 0.55);
  filter: blur(0.4px);
  user-select: none;
}

/* Martha's Gardens — packaging mosaic */
.art-martha {
  width: 100%;
  height: 100%;
  position: relative;
  background: #050a25;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 14px;
  padding: 18px;
  overflow: hidden;
}

.art-martha__card {
  background: linear-gradient(135deg, #ff5235 0%, #e63a26 100%);
  border-radius: 4px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffe6c0;
  font-size: clamp(7px, 0.7vw, 10px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transform: rotate(var(--rot, 0deg));
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.art-martha__card--alt {
  background: linear-gradient(135deg, #ffc46b 0%, #e0a042 100%);
  color: #6a1e10;
}

.art-martha__card span {
  font-size: 0.85em;
  display: block;
  opacity: 0.85;
}

.art-martha__card .star {
  width: 16px;
  height: 16px;
  margin: 4px auto;
  background: currentColor;
  -webkit-mask: radial-gradient(circle at center, transparent 26%, black 28%);
  mask: radial-gradient(circle at center, transparent 26%, black 28%);
  display: block;
}

/* Champ Hotel card */
.art-champ {
  width: 100%;
  height: 100%;
  background: #050505;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.art-champ__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 96px solid var(--champ-yellow);
  border-left: 96px solid transparent;
}

.art-champ__card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  width: min(74%, 600px);
  gap: 0;
  background: var(--champ-pink);
  font-family: var(--font-mono);
  color: #c4153e;
  letter-spacing: 0.04em;
  line-height: 1.3;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}

.art-champ__logo {
  padding: 28px 24px;
  display: grid;
  place-items: center;
  border-right: 1px dashed rgba(196, 21, 62, 0.4);
  font-family: var(--font-sans);
  font-weight: 600;
}

.art-champ__logo strong {
  font-size: clamp(20px, 3vw, 38px);
  letter-spacing: 0.04em;
  display: block;
  text-align: center;
  color: #1a1a1a;
}

.art-champ__logo em {
  font-style: normal;
  display: block;
  text-align: center;
  font-size: clamp(10px, 1vw, 14px);
  letter-spacing: 0.5em;
  margin-top: 6px;
  color: #1a1a1a;
  border-top: 1px solid #1a1a1a;
  padding-top: 4px;
}

.art-champ__info {
  padding: 22px 18px;
  text-align: center;
  font-size: clamp(8px, 0.85vw, 11px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

/* Martha's tote — cloth poster */
.art-tote {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 80% at 50% 50%, #0d0d0d 0%, #000 80%);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--martha-red);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow: hidden;
}

.art-tote__grid {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(34px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-align: center;
}

.art-tote__grid span {
  display: block;
  transform: skew(-6deg);
}

.art-tote__star {
  position: absolute;
  width: 14%;
  aspect-ratio: 1;
  background: #16224a;
  -webkit-mask: radial-gradient(circle at center, black 60%, transparent 62%);
  mask: radial-gradient(circle at center, black 60%, transparent 62%);
  filter: drop-shadow(0 0 15px rgba(0,0,0,0.4));
}

/* Tote bag look — paper bag with mark */
.art-bag {
  width: 100%;
  height: 100%;
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 35%, #4a4a4a 0%, #2a2a2a 60%, #0e0e0e 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.art-bag::before {
  content: "";
  position: absolute;
  inset: 14%;
  background: linear-gradient(180deg, #d6ae7e 0%, #c69464 100%);
  border-radius: 6px;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.2),
    0 30px 40px rgba(0,0,0,0.5);
}

.art-bag__mark {
  position: relative;
  z-index: 2;
  color: var(--martha-red);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(18px, 2.6vw, 34px);
  line-height: 1;
}

.art-bag__mark span {
  display: block;
  transform: skew(-6deg);
}

/* Palm — yellow card */
.art-palm {
  width: 100%;
  height: 100%;
  background: var(--martha-yellow);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--martha-red);
}

.art-palm svg {
  width: 56%;
  height: 56%;
}

/* ---------------------------------------------------------------
   About page — formula, diagrams, motto, stat, awards, services
   --------------------------------------------------------------- */

.about-hero {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 6vw, 80px);
  text-align: center;
}

.about-formula {
  font-size: clamp(48px, 8.68vw, 125px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 500;
  max-width: 22ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2vw, 32px);
}

.about-formula__row {
  display: block;
}

.about-formula__sym {
  font-style: normal;
  display: block;
  font-size: 1em;
  color: var(--muted-2);
  font-weight: 500;
}

/* Diagrams row (small) */
.diagrams {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4.4vw, 80px);
  flex-wrap: wrap;
  padding-block: clamp(48px, 7vw, 112px);
}

.diagram {
  width: clamp(120px, 14vw, 200px);
  aspect-ratio: 1;
  color: var(--muted-2);
}

.diagram svg {
  width: 100%;
  height: 100%;
}

/* Big Venn diagram */
.venn {
  padding-block: clamp(40px, 5vw, 80px);
  display: grid;
  place-items: center;
}

.venn svg {
  width: clamp(280px, 44vw, 560px);
  height: auto;
  color: var(--fg);
}

.venn text {
  font-family: var(--font-sans);
  font-size: 18px;
  letter-spacing: -0.005em;
  font-weight: 500;
  fill: currentColor;
}

.venn .venn__center {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (max-width: 720px) {
  .venn text { font-size: 13px; }
  .venn .venn__center { font-size: 32px; }
}

/* Big motto */
.motto {
  font-size: clamp(48px, 8.33vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 500;
  text-transform: uppercase;
  max-width: none;
  padding-block: clamp(56px, 8vw, 120px) clamp(12px, 1.6vw, 24px);
}

/* Lead paragraph under the motto */
.about-lead {
  padding-bottom: 0;
}

.about-lead p {
  font-size: clamp(28px, 3.47vw, 50px);
  font-weight: 500;
  line-height: 1.08;
  max-width: none;
  letter-spacing: -0.04em;
}

/* Mid-size statement text — between the big headline and body copy */
.about-statement {
  font-size: clamp(28px, 3.47vw, 50px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: none;
  padding-block: clamp(40px, 5vw, 80px);
}

.about-statement .gray {
  color: #797979;
}

/* About segment subtitle — mid-size text with a full-black hairline beneath */
.about-subtitle {
  font-size: clamp(28px, 3.47vw, 50px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
  padding-bottom: clamp(14px, 1.6vw, 24px);
  border-bottom: 1px solid var(--fg);
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* Services subtitle: no hairline directly beneath it */
.about-subtitle--flush {
  border-bottom: none;
  padding-bottom: 0;
}

/* Awards subtitle spans the full grid width; grid gap handles spacing below */
.awards .about-subtitle {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

/* Stat */
.stat {
  padding-block: 0 clamp(48px, 6vw, 96px);
}

.stat__number {
  font-size: clamp(120px, 37vw, 534px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 500;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.stat__caption {
  font-size: var(--text-sm);
  color: var(--martha-red);
  margin-top: var(--s-3);
  max-width: 56ch;
  line-height: 1.4;
}

/* Awards */
.awards {
  padding-block: clamp(48px, 7vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}

.awards__media {
  width: 100%;
}

.awards__col {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.awards__col h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.awards__col ul {
  display: flex;
  flex-direction: column;
}

.awards__col ul li {
  padding-block: 6px;
  font-size: 20px;
  line-height: 20px;
  color: var(--fg);
}

@media (max-width: 760px) {
  .awards { grid-template-columns: 1fr; gap: var(--s-8); }
  .awards__col { gap: var(--s-5); }
  .awards__col ul li {
    font-size: 11.5px;
    line-height: 14px;
    padding-block: 1px;
  }
}

/* Services */
.services {
  padding-block: clamp(48px, 6vw, 96px);
  position: relative;
}

.services__header {
  font-size: clamp(48px, 8.33vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: clamp(48px, 6vw, 96px);
  max-width: 18ch;
}

.services__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  padding-block: var(--s-6);
  border-top: 1px solid var(--fg);
  align-items: start;
}

.services__row:last-child {
  border-bottom: none;
}

.services__row h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.34;
  text-transform: uppercase;
  color: var(--fg);
  padding-top: 4px;
}

.services__row ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px var(--s-8);
  font-size: 20px;
}

.services__row ul li {
  padding-block: 2px;
  line-height: 20px;
}

@media (max-width: 720px) {
  .services__row { grid-template-columns: 1fr; gap: var(--s-8); padding-block: var(--s-8); }
  .services__row ul { grid-template-columns: 1fr; gap: 8px; }
  .services__row ul li { padding-block: 2px; }
}

/* ---------------------------------------------------------------
   Individual project page
   --------------------------------------------------------------- */

.proj-meta-section {
  padding-top: clamp(88px, 14.46vw, 208px);
  padding-bottom: clamp(20px, 3.06vw, 44px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.proj-title {
  font-size: clamp(32px, 5.9vw, 85px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.proj-meta {
  font-family: var(--font-mono);
  text-align: right;
  font-size: 12px;
  letter-spacing: -0.04em;
  line-height: 1.34;
  text-transform: uppercase;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .proj-meta-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .proj-title,
  .proj-meta {
    text-align: center;
  }

  .proj-meta {
    line-height: 1.3;
    gap: 0;
  }
}

.proj-cover {
  width: 100%;
  aspect-ratio: 1361 / 751;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: clamp(48px, 7.36vw, 106px);
}

.proj-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.71vw, 39px);
  padding-bottom: clamp(56px, 8.33vw, 120px);
}

.proj-block h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.34;
  text-transform: uppercase;
  color: var(--fg);
  padding-bottom: clamp(12px, 1.25vw, 18px);
  border-bottom: 1px solid var(--fg);
  margin-bottom: clamp(13px, 1.32vw, 19px);
}

.proj-block p {
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 500;
}

@media (max-width: 900px) {
  .proj-blocks { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
@media (max-width: 520px) {
  .proj-blocks { grid-template-columns: 1fr; gap: 48px; }
}

.proj-gallery-stack {
  padding-bottom: clamp(56px, 10.56vw, 152px);
}

.proj-gallery__item {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1a1a1a;
  margin-top: clamp(20px, 2.29vw, 33px);
}

.proj-gallery__item:first-child {
  margin-top: 0;
}

.proj-lede {
  margin-top: clamp(64px, 9.72vw, 140px);
  margin-bottom: clamp(64px, 9.72vw, 140px);
  font-size: clamp(28px, 3.47vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: none;
}

.proj-lede .gray { color: var(--muted); }

.proj-next {
  padding-block: clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-6);
}

.proj-next a {
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* ---------------------------------------------------------------
   Contact page
   --------------------------------------------------------------- */

.contact-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(110px, 14vw, 200px);
  padding-bottom: clamp(40px, 5vw, 80px);
  gap: var(--s-8);
}

.contact-hero h1 {
  font-size: clamp(40px, 7vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
  text-transform: uppercase;
  max-width: 12ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-12);
  padding-block: clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--fg);
}

.contact-grid h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: var(--s-3);
}

.contact-grid p,
.contact-grid a {
  font-size: var(--text-lg);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.contact-grid a {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ---------------------------------------------------------------
   Journal page (coming soon)
   --------------------------------------------------------------- */

.journal-soon {
  padding-block: clamp(56px, 16.46vw, 237px);
  display: grid;
  place-items: center;
}

.soon-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.34;
  text-transform: uppercase;
  color: var(--bg);
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  background: #a0a0a0;
}

/* Contact page — sentence-case CTA under the title */
.contact-cta {
  padding-top: clamp(48px, 8.4vw, 121px);
  padding-bottom: clamp(56px, 10.4vw, 150px);
}

.contact-cta .cta-mega__q,
.contact-cta .cta-mega__a {
  text-transform: none;
  text-align: center;
}

/* The email has no spaces to wrap on, so it can't shrink-to-fit the way
   "Something in mind?" does — needs its own lower floor on narrow screens. */
.contact-cta .cta-mega__a {
  font-size: clamp(24px, 7.2vw, 120px);
}

/* About — section label + raster-art placeholders (real art supplied later) */
.about-visuals {
  padding-block: clamp(48px, 6vw, 96px);
}

.about-img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.section-label {
  font-size: var(--text-sm);
  color: var(--muted-2);
  margin-bottom: clamp(24px, 3vw, 48px);
}

.img-slot {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--s-6);
}

/* ---------------------------------------------------------------
   Reveal on scroll
   --------------------------------------------------------------- */

/* ---------------------------------------------------------------
   Reveal system — scroll-triggered (text) + variant for images
   --------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image-flavored reveal: emerges from blur + slight scale */
.reveal-image {
  opacity: 0;
  transform: scale(1.045);
  filter: blur(12px);
  transition:
    opacity 1400ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1400ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-image.is-visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* Stagger adjacent reveals via data-delay (set in HTML when needed) */
.reveal[data-delay="1"],
.reveal-image[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"],
.reveal-image[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"],
.reveal-image[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"],
.reveal-image[data-delay="4"] { transition-delay: 320ms; }

/* ---------------------------------------------------------------
   Line-mask reveal system (andagain-style)
   JS splits text into .fx-line > .fx-line__inner; each inner line
   rises up out of an overflow-hidden mask, staggered by --line.
   --------------------------------------------------------------- */

.fx-line {
  display: block;
  overflow: hidden;
  /* Symmetric breathing room so caps/descenders aren't clipped by the mask;
     negative margins keep the net line rhythm intact. */
  padding-block: 0.16em;
  margin-block: -0.16em;
}

.fx-line__inner {
  display: block;
  transform: translateY(120%);
  transition: transform 1050ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--line, 0) * 90ms);
  will-change: transform;
}

.fx-lines.is-visible .fx-line__inner {
  transform: translateY(0);
}

/* ---------------------------------------------------------------
   Page-load animation sequence
   Triggered when body gets .is-loaded (after curtain lifts)
   --------------------------------------------------------------- */

@keyframes ssRise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ssMediaReveal {
  from {
    opacity: 0;
    transform: scale(1.045);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* Hero mark: unveils bottom-up behind a clip mask while rising */
.hero__mark {
  clip-path: inset(0 0 105% 0);
  transform: translateY(24px);
  opacity: 0;
}

body.is-loaded .hero__mark {
  animation: heroMarkReveal 1200ms cubic-bezier(0.16, 1, 0.3, 1) 220ms forwards;
}

@keyframes heroMarkReveal {
  from { clip-path: inset(0 0 105% 0); transform: translateY(24px); opacity: 0; }
  to   { clip-path: inset(0 0 -5% 0);  transform: translateY(0);    opacity: 1; }
}

/* Hero visual media reveal */
.hero__visual { opacity: 0; }

body.is-loaded .hero__visual {
  animation: ssMediaReveal 1400ms cubic-bezier(0.16, 1, 0.3, 1) 640ms forwards;
}


/* Per-page hero variants that still animate as a block (not line-split) */
body.is-loaded .about-formula,
body.is-loaded .contact-hero h1,
body.is-loaded .proj-title,
body.is-loaded .proj-meta {
  animation: ssRise 1100ms cubic-bezier(0.16, 1, 0.3, 1) 180ms backwards;
}

body.is-loaded .proj-meta {
  animation-delay: 240ms;
}

/* Reduced motion: kill everything, show final state */
@media (prefers-reduced-motion: reduce) {
  .hero__mark,
  .hero__lede,
  .hero__visual,
  .reveal,
  .reveal-image,
  .fx-line__inner,
  .loader__mark,
  body.is-loaded .hero__mark,
  body.is-loaded .hero__lede,
  body.is-loaded .hero__visual,
  body.is-loaded .projects-title,
  body.is-loaded .about-formula,
  body.is-loaded .contact-hero h1,
  body.is-loaded .journal-hero h1,
  body.is-loaded .proj-title,
  body.is-loaded .proj-meta {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
  .loader { transition: none !important; }
}

/* ---------------------------------------------------------------
   Body scroll lock when menu is open
   --------------------------------------------------------------- */

.menu-open {
  overflow: hidden;
}
