/* Howl — thisishowl.com (v2)
   Black, footage-led, one typeface. The work supplies the colour. */

@font-face {
  font-family: "Geist";
  src: url("Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --black: #000000;
  --ink: #F2F1EC;        /* primary text */
  --mute: #8E8D88;       /* secondary text */
  --line: #262626;       /* hairlines */
  --raise: #0E0E0E;      /* raised surfaces: dialog, empty frames */

  --font: "Geist", "Helvetica Neue", Arial, sans-serif;

  --t-display: clamp(2.4rem, 5.4vw, 5.6rem);
  --t-lede: clamp(1.6rem, 3.2vw, 3.1rem);
  --t-h3: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.8125rem;

  --pad: clamp(1.25rem, 3.2vw, 3rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --section: clamp(6rem, 13vw, 11rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--ink);
  font: 400 var(--t-body)/1.5 var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--black); }

.skip { position: absolute; left: -999px; top: .75rem; background: var(--ink); color: var(--black); padding: .5rem .9rem; z-index: 50; }
.skip:focus { left: .75rem; }

/* Bar: fixed, sits over footage */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.35rem var(--pad);
  mix-blend-mode: difference;
  font-size: .9375rem;
}
.bar-logo img { height: 1.35rem; width: auto; }
.bar nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.bar nav a, .bar-time { color: var(--ink); }
.bar nav a { position: relative; }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.bar nav a:hover::after { transform: scaleX(1); }
.bar-time { justify-self: end; font-variant-numeric: tabular-nums; }
.bar-time time { margin-left: .4em; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; }
.hero-media, .hero-media canvas, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); }
.hero-inner {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem;
  padding: 0 var(--pad) clamp(1.75rem, 4vw, 3.25rem);
}
.hero h1 {
  font-size: var(--t-display); font-weight: 400; line-height: 1.02; letter-spacing: -0.042em;
  max-width: 19ch; text-wrap: balance;
  animation: rise 1.4s var(--ease) .2s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }

.reel-btn {
  display: inline-flex; align-items: center; gap: .8rem;
  font: 500 .9375rem/1 var(--font); color: var(--ink);
  background: none; border: 0; padding: .5rem 0; cursor: pointer; white-space: nowrap;
}
.reel-icon { width: 3rem; height: 3rem; border: 1px solid rgba(242,241,236,.5); border-radius: 50%; display: grid; place-items: center; transition: background .4s var(--ease), border-color .4s; }
.reel-icon::before { content: ""; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.reel-btn:hover .reel-icon { background: var(--ink); border-color: var(--ink); color: var(--black); }

/* Shared section furniture */
section:not(.hero) { padding: var(--section) var(--pad) 0; }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: var(--gap); }
.head h2, .minor, .minor-h { font-size: var(--t-small); font-weight: 500; letter-spacing: 0; color: var(--ink); }
.count { font-size: var(--t-small); color: var(--mute); }

/* Intro */
.lede {
  font-size: var(--t-lede); font-weight: 400; line-height: 1.12; letter-spacing: -0.03em;
  max-width: 24ch; text-wrap: balance;
}
.intro { padding-top: var(--section); }

/* Work tiles: one strict grid, every frame 16:9 */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) var(--gap); }
.frame { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--raise); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover .frame img { transform: scale(1.04); }
.cap { padding-top: 1rem; }
.cap h3 { font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: .4rem; }
.cap p { color: var(--mute); font-size: .9375rem; max-width: 40ch; }

/* Principles: text only, three columns on a hairline */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding-top: clamp(1rem, 2vw, 1.5rem); }
.cols h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: .8rem; }
.cols p { color: var(--mute); font-size: .9375rem; max-width: 34ch; }

/* Studio */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 8rem); padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.statement { font-size: clamp(1.4rem, 2.2vw, 2.1rem); line-height: 1.22; letter-spacing: -0.025em; max-width: 30ch; }
.founders { display: grid; gap: 2.25rem; }
.founders li { padding-top: 1rem; border-top: 1px solid var(--line); }
.founders h3 { font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.02em; }
.founders .role { color: var(--mute); font-size: var(--t-small); margin: .2rem 0 .75rem; }
.founders p:last-child { color: var(--mute); font-size: .9375rem; max-width: 44ch; }
.rows li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows li span:last-child { color: var(--mute); text-align: right; }

/* Contact */
section.contact { padding-bottom: var(--section); }
.contact-title { font-size: var(--t-lede); font-weight: 400; line-height: 1.12; letter-spacing: -0.03em; color: var(--mute); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.mail {
  display: inline-block; font-size: clamp(2.2rem, 7.4vw, 7.5rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: .12em;
  transition: background-size .7s var(--ease); overflow-wrap: anywhere;
}
.mail:hover { background-size: 100% 1px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--mute); font-size: .9375rem; }
.contact-grid p:first-child { color: var(--ink); max-width: 32ch; }
.contact-grid a:hover { color: var(--ink); }

/* Footer */
.foot { padding: 0 var(--pad) 1.5rem; }
.foot-mark { width: 100%; height: auto; opacity: .95; }
.foot-row { display: flex; justify-content: space-between; padding-top: 1.25rem; font-size: var(--t-small); color: var(--mute); }
.foot-row a:hover { color: var(--ink); }

/* Reel dialog */
.reel { width: min(92vw, 1400px); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.reel::backdrop { background: rgba(0,0,0,.92); }
.reel[open] { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.reel-frame { position: relative; aspect-ratio: 16 / 9; background: var(--raise); }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .75rem; text-align: center; padding: 2rem; }
.reel-empty p { font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; }
.reel-empty a { color: var(--mute); border-bottom: 1px solid var(--line); }
.reel-empty a:hover { color: var(--ink); }
.reel-close { position: absolute; right: 0; bottom: calc(100% + .75rem); background: none; border: 0; color: var(--ink); font: 500 .9375rem var(--font); cursor: pointer; padding: .4rem 0; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar-time { display: none; }
  .bar nav { justify-self: end; }
  .hero-inner { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
