/* ============================================================================
   WOLF — Experimental Production Company
   Design system: white canvas, near-black ink, cinematic negative space.
   Light mode only. Motion is slow, organic, and fluid throughout.
   ========================================================================== */

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --bg:           #ffffff;          /* white canvas                         */
  --ink:          #0b0b0c;          /* near-black primary type              */
  --ink-soft:     #56565a;          /* secondary type                       */
  --ink-faint:    #9a9a9e;          /* eyebrows, numerals, meta             */
  --line:         rgba(11, 11, 12, 0.12);
  --line-soft:    rgba(11, 11, 12, 0.06);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;

  /* Fluid type scale — clamps keep every size graceful from phone to cinema */
  --step-eyebrow: clamp(0.68rem, 0.62rem + 0.3vw, 0.78rem);
  --step-body:    clamp(1rem, 0.95rem + 0.4vw, 1.18rem);
  --step-lede:    clamp(1.45rem, 1.1rem + 1.7vw, 2.6rem);
  --step-h2:      clamp(2rem, 1.4rem + 3vw, 4rem);
  --step-display: clamp(3.5rem, 2rem + 7vw, 9rem);

  /* Vertical rhythm between major sections */
  --section-pad: clamp(7rem, 14vh, 16rem);
  --gutter:      clamp(1.5rem, 6vw, 9rem);

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);   /* confident deceleration  */
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);   /* organic, slow in + out  */
}

/* ── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
  /* Gentle native snapping. Proximity never traps a section; dropping
     scroll-behavior:smooth keeps the mouse wheel crisp instead of laggy
     (nav links still glide via a scripted smooth scroll). */
  scroll-snap-type: y proximity;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--step-body);
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

.eyebrow {
  display: block;
  font-size: var(--step-eyebrow);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Cinematic grain — a whisper of film texture over the whole canvas ──── */
.grain {
  position: fixed; top: -50%; left: -50%;
  width: 200%; height: 200%;
  z-index: 400; pointer-events: none;
  /* No mix-blend-mode: blending a full-screen layer against the page forces a
     repaint every scroll frame and makes scrolling choppy. Plain low-opacity
     noise reads the same at this strength and composites for free. */
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain 0.55s steps(4) infinite;
  will-change: transform;
}
/* Gentle, ever-moving film grain (subtle — fromanother.love lens) */
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -2%); }
  75%  { transform: translate(-2%, -3%); }
  100% { transform: translate(0, 0); }
}

/* ── Navigation — centred serif wordmark, inverts over content ──────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; justify-content: center;
  padding: clamp(1.1rem, 2.5vh, 2rem) var(--gutter);
  pointer-events: none;                  /* only the inner cluster is live   */
  mix-blend-mode: difference;            /* blend against the page behind it  */
  transition: opacity 1s var(--ease), padding 0.7s var(--ease);
}

.nav__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: auto;
}
.nav__brand {
  font-family: var(--serif);
  color: #fff;                           /* white + difference = auto-invert  */
  font-size: clamp(1.2rem, 0.95rem + 0.7vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.36em;
  padding-left: 0.36em;
  line-height: 1;
}
.nav__links {
  display: flex; gap: clamp(1.3rem, 2.4vw, 2.6rem);
  margin-top: clamp(0.55rem, 1.3vh, 0.95rem);
  visibility: hidden;
  transition: visibility 0.6s var(--ease-soft);
}
/* Links build out only on hover or keyboard focus */
.nav__inner:hover .nav__links,
.nav__inner:focus-within .nav__links { visibility: visible; }

.nav__links a {
  font-family: var(--serif);
  color: #fff;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  letter-spacing: 0.04em;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.55s var(--ease-soft), transform 0.55s var(--ease-soft);
}
.nav__inner:hover .nav__links a,
.nav__inner:focus-within .nav__links a { opacity: 0.9; transform: none; }
.nav__links a:hover { opacity: 1; }
.nav__links a:nth-child(2) { transition-delay: 0.05s; }
.nav__links a:nth-child(3) { transition-delay: 0.10s; }
.nav__links a:nth-child(4) { transition-delay: 0.15s; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  text-align: center;
  padding: clamp(13vh, 17vh, 21vh) var(--gutter) clamp(3rem, 8vh, 6rem);
  position: relative;
}
.hero__media {
  width: min(440px, 72vw);
}
.hero__img { width: 100%; }

.hero__sub {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  max-width: 36ch;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.5rem);
  font-weight: 200;
  color: var(--ink);
  line-height: 1.5;
}
.hero__support {
  margin-top: 1.1rem;
  max-width: 44ch;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ── Shared section layout ─────────────────────────────────────────────── */
section { padding-left: var(--gutter); padding-right: var(--gutter); scroll-snap-align: start; }
/* Capabilities and Founders are taller than the viewport — let them scroll
   freely so every capability and every founder is easy to reach. */
.work, .founders { scroll-snap-align: none; }

.intro, .philosophy, .contact, .founders { padding-block: var(--section-pad); }
.work { padding-block: var(--section-pad); }

.section-head { margin-bottom: clamp(3rem, 7vh, 6rem); }
.section-head h2,
.philosophy .statement {
  font-family: var(--serif);
  font-weight: 300;
}
.section-head h2 {
  margin-top: 1rem;
  font-size: var(--step-h2);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

/* ── Intro / lede + mosaic ─────────────────────────────────────────────── */
.intro { max-width: 1200px; margin-inline: auto; }
.intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
/* Keep the mosaic beside the lede for every laptop / desktop width;
   stack only on phones. */
@media (max-width: 680px) {
  .intro__grid {
    grid-template-columns: 1fr;
    gap: clamp(2.4rem, 6vh, 4rem);
    text-align: center;          /* centre the about copy + mosaic on phones */
  }
  .lede { margin-inline: auto; }
}
.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--step-lede);
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: var(--ink);
  max-width: 26ch;            /* short measure → editorial poise */
}
.intro__art { margin: 0; }
.intro__art img {
  width: 100%; height: auto; display: block;
  box-shadow: 0 30px 70px -34px rgba(11, 11, 12, 0.4);
  transition: transform 0.9s var(--ease-soft), box-shadow 0.9s var(--ease-soft);
}
@media (hover: hover) {
  .intro__art img:hover {
    transform: scale(1.02);
    box-shadow: 0 44px 90px -34px rgba(11, 11, 12, 0.5);
  }
}
@media (max-width: 680px) { .intro__art { max-width: 520px; margin-inline: auto; } }

/* ── Capabilities ──────────────────────────────────────────────────────── */
.work { max-width: 1200px; margin-inline: auto; }
.capabilities {
  list-style: none;
  border-top: 1px solid var(--line);
}
.cap {
  position: relative;
  display: grid;
  grid-template-columns: 2.6em 1fr;
  gap: clamp(1rem, 3vw, 3.5rem);
  align-items: start;
  padding: clamp(1.8rem, 4vh, 3rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease-soft);
}
/* .cap also carries .reveal, whose transition would otherwise clobber the
   hover easing. Combine both (higher specificity) so the indent keeps its
   timing — fluid, just quicker. */
.cap.reveal {
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease),
              padding-left 0.5s var(--ease-soft);
}
.cap__no {
  font-size: var(--step-eyebrow);
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  padding-top: 0.6em;
  transition: color 0.85s var(--ease-soft);
}
.cap__name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  transition: color 0.85s var(--ease-soft);
}
.cap__desc {
  margin-top: clamp(0.7rem, 1.6vh, 1.1rem);
  max-width: 54ch;
  font-weight: 300;
  color: var(--ink-soft);
  transition: color 0.85s var(--ease-soft);
}
/* Hover: the row eases inward, the line draws, the copy deepens — all slow */
@media (hover: hover) {
  .cap:hover { padding-left: clamp(0.6rem, 1.6vw, 1.6rem); }
  .cap:hover .cap__no { color: var(--ink); }
  .cap:hover .cap__desc { color: var(--ink); }
}

/* ── Philosophy ────────────────────────────────────────────────────────── */
.philosophy {
  max-width: 1000px; margin-inline: auto; text-align: center;
}
.philosophy .eyebrow { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.statement {
  font-size: var(--step-lede);
  line-height: 1.4;
  letter-spacing: 0.005em;
  border: 0;
  max-width: 24ch;
  margin-inline: auto;
}

/* ── Founders ──────────────────────────────────────────────────────────── */
.founders { max-width: 1200px; margin-inline: auto; }
.founders__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.4rem, 5vw, 4.5rem) clamp(2rem, 6vw, 6rem);
}
@media (max-width: 760px) { .founders__grid { grid-template-columns: 1fr; } }

.founder {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: clamp(1.4rem, 3vh, 2rem);
}
.founder__no {
  display: block;
  font-size: var(--step-eyebrow);
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  margin-bottom: clamp(0.9rem, 2vh, 1.4rem);
}
.founder__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 1rem + 2.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.005em;
}
.founder__bio {
  margin-top: 0.9rem;
  max-width: 46ch;
  color: var(--ink-soft);
  font-weight: 300;
}
.founder__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.55em;
  margin-top: 1.3rem;
  font-size: var(--step-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.founder__link::after {
  content: ""; position: absolute; left: 0; bottom: -0.4em;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.75s var(--ease-soft);
}
.founder__link:hover::after { transform: scaleX(1); }
.founder__link .arrow { transition: transform 0.6s var(--ease-soft); }
.founder__link:hover .arrow { transform: translateX(6px); }

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact { text-align: center; max-width: 1000px; margin-inline: auto; }
.contact .eyebrow { margin-bottom: clamp(1.6rem, 4vh, 2.6rem); }
.contact__email {
  position: relative; display: inline-block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 4vw, 5rem);
  letter-spacing: 0.005em;
  transition: opacity 0.5s var(--ease-soft);
}
.contact__email::after {
  content: ""; position: absolute; left: 0; bottom: 0.08em;
  width: 100%; height: 1px; background: var(--ink-soft);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.85s var(--ease-soft);
}
.contact__email:hover::after { transform: scaleX(1); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter);
  border-top: 1px solid var(--line);
  font-size: var(--step-eyebrow);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
}
.footer__brand { letter-spacing: 0.42em; color: var(--ink-soft); padding-left: 0.42em; }

/* ── Scroll-reveal primitive — slow, luxurious settle ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Honour users who prefer less motion — kill transforms & ambient loops */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .grain { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
