/* ==========================================================================
   840 Studios — home page styles
   Palette and type come from the logo: deep purple, gold, a Didone serif for
   the numerals and a wide retro-futurist sans (Michroma) for "STUDIOS".
   ========================================================================== */

:root {
  --purple: #2C144C;
  --purple-deep: #1A0C33;
  --purple-ink: #110722;
  --gold: #C0985C;
  --gold-2: #DBBC7E;
  --gold-3: #8E6E3B;
  --gold-ink: #74552B; /* gold for TEXT on cream: 5.9:1 against --cream */
  --cream: #F4EEE3;
  --cream-2: #E9DFCD;
  --ink: #1B1030;
  --ink-2: #554868;
  --white: #FBF8F2;

  --bg: var(--purple-deep);
  --fg: var(--white);
  --muted: rgba(251, 248, 242, .66);
  --line: rgba(192, 152, 92, .28);
  --line-strong: rgba(192, 152, 92, .55);

  --f-display: "Bodoni Moda", "Bodoni 72", "Didot", Georgia, serif;
  --f-label: "Michroma", "Eurostile", "Avenir Next", "Helvetica Neue", sans-serif;
  --f-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1360px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--gold); color: var(--purple-ink); border-radius: var(--r); }
.skip:focus { top: 16px; }

/* film grain over everything, very light */
body::after {
  content: "";
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 300px 300px;
  mix-blend-mode: soft-light;
}

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */
.label {
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.label.plain::before { display: none; }

.display { font-family: var(--f-display); font-weight: 500; line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; }
.display em { font-style: italic; font-weight: 400; color: var(--gold-2); }
.light .display em { color: var(--gold-ink); }
.light .label { color: var(--gold-ink); }
.light .label::before { background: var(--gold-ink); }
.h1 { font-size: clamp(3rem, 8.2vw, 6.6rem); font-variation-settings: "opsz" 96; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-variation-settings: "opsz" 72; }
.h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.15; font-variation-settings: "opsz" 36; -webkit-text-stroke: .3px currentColor; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 54ch; text-wrap: pretty; }
.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.light { --bg: var(--cream); --fg: var(--ink); --muted: var(--ink-2); --line: rgba(44, 20, 76, .16); --line-strong: rgba(44, 20, 76, .4); background: var(--bg); color: var(--fg); }
.dark { background: var(--purple-deep); color: var(--white); }
.sec-head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(44px, 6vw, 84px); }
.sec-head .lede { max-width: 60ch; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--f-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  padding: 18px 30px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--purple-ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-ghost { border-color: var(--line-strong); color: inherit; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.light .btn-ghost:hover { color: var(--purple); border-color: var(--purple); }
.btn-sm { padding: 13px 22px; font-size: 10px; }
.btn .arrow { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, body.menu-open .nav {
  background: rgba(26, 12, 51, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); }
.brand-mark { height: 38px; width: auto; fill: currentColor; }
.brand-word { font-family: var(--f-label); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--white); padding-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav-menu > a:not(.btn) {
  font-family: var(--f-label); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(251, 248, 242, .8); position: relative; padding: 6px 0;
}
.nav-menu > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .4s var(--ease); }
.nav-menu > a:not(.btn):hover { color: var(--white); }
.nav-menu > a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer;
}
.nav-toggle span:not(.sr-only) { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--gold); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
body.menu-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 0 0; background: var(--purple-deep);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 8px; padding: 32px var(--gutter) 40px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
  }
  .nav-menu > a:not(.btn) { font-size: 13px; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { margin-top: 20px; }
  body.menu-open .nav-menu { opacity: 1; transform: none; pointer-events: auto; }
  body.menu-open .nav, body.menu-open .nav.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--purple-deep); }
  body.menu-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 110px;
  display: grid; align-items: center;
  background:
    radial-gradient(60% 50% at 78% 48%, rgba(192, 152, 92, .20), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(44, 20, 76, .9), transparent 70%),
    var(--purple-deep);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero-copy .h1 { max-width: 11ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-meta {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; /* label | value, so long values wrap in their own column */
  font-family: var(--f-label); font-size: 10px; letter-spacing: .2em; line-height: 1.7; text-transform: uppercase; color: var(--muted);
}
.hero-meta b { color: var(--gold); font-weight: 400; }
@media (max-width: 560px) { /* phones: label over value, so each value gets the full width */
  .hero-meta { grid-template-columns: 1fr; gap: 0; }
  .hero-meta b { margin-top: 14px; }
  .hero-meta b:first-child { margin-top: 0; }
}

/* the lens */
.hero-visual { position: relative; aspect-ratio: 1; max-width: 620px; width: 100%; margin-inline: auto; padding: 8%; }
.hero-visual::before, .hero-visual::after {
  content: ""; position: absolute; width: 34%; height: 44%; border: 2px solid var(--gold); pointer-events: none;
}
.hero-visual::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 32px; }
.hero-visual::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 32px; }
.iris { width: 100%; height: 100%; overflow: hidden; }
.iris-ring { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .55; }
.iris-ring-2 { fill: none; stroke: var(--gold); stroke-width: .5; opacity: .25; stroke-dasharray: 2 6; }
.iris-blades polygon { fill: var(--gold); }
.iris-blades polygon:nth-child(even) { fill: #B38C52; }
.iris-core { font-family: var(--f-display); font-size: 54px; fill: var(--gold-2); text-anchor: middle; letter-spacing: -.02em; font-variation-settings: "opsz" 96; }
.iris-core-label { font-family: var(--f-label); font-size: 7.5px; letter-spacing: .32em; fill: var(--gold); text-anchor: middle; }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 40px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-label); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue::after { content: ""; width: 56px; height: 1px; background: var(--line-strong); }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 24px); }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { max-width: 260px; order: -1; margin-bottom: 0; }
  .scroll-cue { display: none; }
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */
.ticker { border-block: 1px solid var(--line); background: var(--purple-ink); overflow: hidden; padding: 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track ul { display: flex; align-items: center; }
.ticker-track li {
  display: inline-flex; align-items: center; gap: 28px; padding: 18px 28px 18px 0;
  font-family: var(--f-label); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); white-space: nowrap;
}
.ticker-track li .sep { width: 14px; height: 14px; color: var(--gold); fill: currentColor; opacity: .8; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.service {
  padding: 40px clamp(20px, 2.6vw, 40px) 48px 0; display: grid; gap: 18px; align-content: start;
  border-bottom: 1px solid var(--line); position: relative;
}
.service + .service { padding-left: clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--line); }
.service .num { font-family: var(--f-label); font-size: 10.5px; letter-spacing: .3em; color: var(--gold-ink); }
.service p { color: var(--muted); text-wrap: pretty; }
.service ul { display: grid; gap: 10px; margin-top: 8px; }
.service li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.service li .dot { width: 12px; height: 12px; color: var(--gold-3); fill: currentColor; flex: none; }
.service .num::after { content: ""; display: block; width: 36px; height: 2px; background: var(--gold); margin-top: 14px; }
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .service + .service { padding-left: 0; border-left: 0; }
}

/* --------------------------------------------------------------------------
   Work
   -------------------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; border-radius: 6px; border: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at 70% 20%, rgba(192, 152, 92, .22), transparent 60%),
    linear-gradient(160deg, #3A1C63 0%, var(--purple) 40%, var(--purple-ink) 100%);
  min-height: 300px; display: grid; align-content: end; padding: 26px;
  transition: transform .6s var(--ease), border-color .4s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.tile.t1, .tile.t4 { grid-column: span 7; aspect-ratio: 16 / 9; }
.tile.t2, .tile.t3 { grid-column: span 5; aspect-ratio: 4 / 3; }
.tile .big {
  position: absolute; top: 10px; left: 20px; font-family: var(--f-display); font-size: clamp(5rem, 10vw, 9rem); line-height: 1;
  color: var(--gold); opacity: .10; font-variation-settings: "opsz" 96; pointer-events: none;
}
.tile .wm {
  position: absolute; right: -6%; top: 50%; width: 46%; transform: translateY(-50%) rotate(0deg);
  color: var(--gold); fill: currentColor; opacity: .12; transition: transform 1.6s var(--ease), opacity .6s;
}
.tile:hover .wm { transform: translateY(-50%) rotate(30deg); opacity: .2; }
.tile .tag {
  position: absolute; top: 18px; right: 18px; font-family: var(--f-label); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-2); border: 1px solid var(--line-strong); padding: 8px 12px; border-radius: 999px; background: rgba(17, 7, 34, .5);
}
.tile .cat { font-family: var(--f-label); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.tile .title { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; font-variation-settings: "opsz" 48; -webkit-text-stroke: .3px currentColor; }
.tile .desc { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 40ch; }
.tile .frame { position: absolute; inset: 14px; pointer-events: none; opacity: 0; transition: opacity .5s; }
.tile .frame::before, .tile .frame::after { content: ""; position: absolute; width: 36px; height: 36px; border: 1.5px solid var(--gold); }
.tile .frame::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.tile .frame::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.tile:hover .frame { opacity: 1; }
/* video tiles: a still behind the copy, a play ring, and a purple veil so the type stays readable */
.tile.has-video { padding-top: 90px; }
.tile .still {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .72; filter: saturate(.85); transform: scale(1.001);
  transition: transform 1.6s var(--ease), opacity .6s;
}
.tile.has-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(44, 20, 76, .30) 0%, rgba(26, 12, 51, .42) 45%, rgba(17, 7, 34, .94) 100%);
}
.tile.has-video .wm { display: none; }
.tile .big, .tile .tag, .tile .frame, .tile .cat, .tile .title, .tile .desc { position: relative; z-index: 2; }
.tile .big, .tile .tag, .tile .frame { position: absolute; }
.tile .play {
  position: absolute; z-index: 2; left: 50%; top: 44%; width: 76px; height: 76px; border-radius: 50%;
  transform: translate(-50%, -50%); display: grid; place-items: center;
  border: 1.5px solid var(--gold); color: var(--gold-2); background: rgba(17, 7, 34, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .6s var(--ease), background .4s, color .4s;
}
.tile .play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.tile:hover .still { transform: scale(1.04); opacity: .85; }
.tile:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--gold); color: var(--purple-ink); }
/* a tile on a cream section keeps its own dark palette */
.light .tile { color: var(--white); --muted: rgba(251, 248, 242, .66); --line: rgba(192, 152, 92, .28); --line-strong: rgba(192, 152, 92, .55); }
/* commercial feature: one wide, letterboxed spot */
.tile.feature { aspect-ratio: 21 / 9; min-height: 340px; padding: 34px; }
.tile.feature .title { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.tile.feature .desc { font-size: 16px; max-width: 48ch; }
.work-foot { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; gap: 14px; }
  .tile.t1, .tile.t2, .tile.t3, .tile.t4 { grid-column: auto; aspect-ratio: 4 / 3; min-height: 260px; }
  .tile.feature { aspect-ratio: 4 / 3; min-height: 260px; padding: 26px; }
  .tile.has-video { aspect-ratio: 1 / 1; } /* square on phones so the play ring clears the copy */
  .tile .play { width: 60px; height: 60px; top: 34%; }
  .tile .play svg { width: 20px; height: 20px; }
}

/* --------------------------------------------------------------------------
   Video lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 72px 20px 32px;
  background: rgba(17, 7, 34, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox .player-wrap { width: min(1120px, 100%); }
.lightbox .player {
  aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  transform: translateY(14px) scale(.985); transition: transform .5s var(--ease);
}
.lightbox.open .player { transform: none; }
.lightbox.vertical .player-wrap { width: min(calc((100vh - 140px) * 9 / 16), 100%); }
.lightbox.vertical .player { aspect-ratio: 9 / 16; }
.lightbox .player iframe { display: block; width: 100%; height: 100%; border: 0; }
.lightbox .caption {
  margin-top: 16px; font-family: var(--f-label); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2);
}
.lightbox .close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(17, 7, 34, .5); color: var(--white); display: grid; place-items: center;
  transition: border-color .3s, color .3s, transform .4s var(--ease);
}
.lightbox .close svg { width: 20px; height: 20px; }
.lightbox .close:hover { border-color: var(--gold); color: var(--gold); transform: rotate(90deg); }
body.lightbox-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Manifesto band
   -------------------------------------------------------------------------- */
.manifesto { background: var(--gold); color: var(--purple-ink); padding-block: clamp(70px, 9vw, 120px); overflow: hidden; }
.manifesto .wrap { display: grid; gap: 30px; justify-items: center; text-align: center; }
.manifesto .quote { font-family: var(--f-display); font-size: clamp(1.5rem, 3.2vw, 2.8rem); line-height: 1.22; max-width: 34ch; font-variation-settings: "opsz" 72; text-wrap: balance; -webkit-text-stroke: .2px currentColor; }
.manifesto .quote em { font-style: italic; font-weight: 400; }
.manifesto .label { color: var(--purple); }
.manifesto .label::before { background: var(--purple); }
.manifesto .ap { width: 44px; height: 44px; color: var(--purple); fill: currentColor; }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.member { display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.avatar {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-3); background: radial-gradient(circle at 35% 30%, #fff 0%, var(--cream-2) 70%);
  font-family: var(--f-display); font-size: 30px; color: var(--purple); font-variation-settings: "opsz" 72; position: relative;
}
.avatar::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid var(--line); }
.member .name { font-weight: 600; font-size: 17px; }
.member .role { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .avatar { width: 76px; height: 76px; font-size: 24px; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { background: radial-gradient(50% 60% at 15% 20%, rgba(192, 152, 92, .14), transparent 70%), var(--purple-ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-copy { display: grid; gap: 24px; }
.contact-copy .h2 { max-width: 17ch; }
.details { display: grid; gap: 22px; margin-top: 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.details dt { font-family: var(--f-label); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.details dd { margin: 0; color: var(--muted); font-size: 16px; }
.details a { color: var(--white); border-bottom: 1px solid var(--line-strong); transition: border-color .3s; }
.details a:hover { border-color: var(--gold); }

.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-label); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 12px 0 14px; font-size: 17px; color: var(--white); transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(251, 248, 242, .32); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-done { display: none; padding: 36px; border: 1px solid var(--line-strong); border-radius: 6px; gap: 12px; }
.form.sent { display: none; }
.form.sent + .form-done { display: grid; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--purple-ink); border-top: 1px solid var(--line); padding-block: 56px 32px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-logo { width: min(260px, 70%); }
.footer-tag { margin-top: 18px; max-width: 34ch; }
.footer h4 { font-family: var(--f-label); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: rgba(251, 248, 242, .8); transition: color .3s; }
.footer ul a:hover { color: var(--gold-2); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--f-label); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; }
.footer-bottom .locs i { font-style: normal; }
@media (min-width: 901px) { .footer-bottom .locs br { display: none; } }   /* one line on desktop */
@media (max-width: 900px) { .footer-bottom .locs i { display: none; } .footer-bottom .locs { line-height: 1.9; } } /* three clean lines below */
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .btn, .tile, .tile .wm, .tile .still, .tile .play, .lightbox, .lightbox .player, .lightbox .close { transition: none; }
}
