/* =========================================================================
   AdamTake2 — cinematic studio landing
   Palette: tinted near-black, warm bone white, rose-crimson accent (from logo)
   Type:    Fraunces (display serif) · Hanken Grotesk (body) · JetBrains Mono (labels)
   ========================================================================= */

:root {
  /* surface */
  --bg:        #0a090c;
  --bg-2:      #0d0c10;
  --panel:     #121016;
  --line:      rgba(244, 241, 236, 0.10);
  --line-soft: rgba(244, 241, 236, 0.06);

  /* ink */
  --ink:       #f3efe9;
  --ink-soft:  #b6afb4;
  --ink-dim:   #756f76;

  /* accent — rose/crimson pulled from the A2 mark */
  --rose:      #f23557;
  --rose-soft: #ff5d78;
  --rose-deep: #b51d3c;
  --ember:     #ff6a3d;

  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 64px);

  --f-display: "Fraunces", Georgia, serif;
  --f-body:    "Hanken Grotesk", -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--rose); color: #fff; }

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

/* ---- atmosphere: grain + vignette ------------------------------------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 9000; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 4%); }
  80% { transform: translate(5%, 2%); }
}
.vignette {
  position: fixed; inset: 0; z-index: 8999; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 35%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10000;
  background: var(--rose); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
  font: 500 13px/1 var(--f-mono);
}
.skip-link:focus { left: 0; }

/* ---- shared section primitives ---------------------------------------- */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 13vh, 160px) var(--pad);
}
.section__head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 720px; }

.kicker {
  display: inline-block;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section__title {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-top: 26px;
}
.section__sub {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  max-width: 60ch;
}
.hl { color: var(--rose); font-style: italic; }
.eyebrow { color: var(--ink-soft); }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font: 500 14px/1 var(--f-body);
  letter-spacing: 0.02em;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn--primary { background: var(--rose); color: #fff; }
.btn--primary:hover { background: var(--rose-soft); transform: translateY(-2px); }
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-soft); transform: translateY(-2px); }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  padding: 13px var(--pad);
  background: rgba(10, 9, 12, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line-soft);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark { width: 34px; height: 34px; border-radius: 7px; }
.nav__word {
  font-family: var(--f-display);
  font-weight: 500; font-size: 1.12rem; letter-spacing: -0.01em;
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font: 500 13.5px/1 var(--f-body);
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -7px; height: 1px; width: 0;
  background: var(--rose); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  font: 500 13px/1 var(--f-body); color: var(--ink);
  padding: 11px 20px; border: 1px solid var(--line); border-radius: 100px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.nav__cta:hover { border-color: var(--rose); color: var(--rose); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 0;
  max-width: var(--maxw);
  margin: 0 auto;
  overflow: hidden;
}
.hero__field { position: absolute; inset: 0; z-index: -1; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.hero__glow--a {
  width: 60vw; height: 60vw; top: -22vw; right: -16vw;
  background: radial-gradient(circle, var(--rose-deep), transparent 62%);
  animation: drift 22s var(--ease) infinite alternate;
}
.hero__glow--b {
  width: 46vw; height: 46vw; bottom: -20vw; left: -14vw;
  background: radial-gradient(circle, #2a1430, transparent 64%);
  animation: drift 26s var(--ease) infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(5%, 6%) scale(1.12); }
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 40%, #000 30%, transparent 80%);
  opacity: 0.6;
}
/* letterbox bars sliding away on load */
.hero__bars span {
  position: fixed; left: 0; right: 0; height: 7vh; background: #000; z-index: 50;
  pointer-events: none;
}
.hero__bars span:first-child { top: 0; animation: barUp 1.1s 0.1s var(--ease) forwards; }
.hero__bars span:last-child  { bottom: 0; animation: barDown 1.1s 0.1s var(--ease) forwards; }
@keyframes barUp   { to { transform: translateY(-100%); } }
@keyframes barDown { to { transform: translateY(100%); } }

.hero__inner { max-width: 900px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 4px;
  font: 500 12.5px/1 var(--f-mono);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 30px;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 12px var(--rose); }

.hero__title {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: clamp(3.2rem, 11.5vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { color: var(--rose); font-style: italic; }

.hero__lede {
  margin-top: 34px;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.5;
}
.hero__actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__foot {
  margin-top: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 40px 0 28px;
}
.marquee { overflow: hidden; max-width: 60%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track {
  display: inline-flex; align-items: center; gap: 22px; white-space: nowrap;
  animation: slide 26s linear infinite;
  font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--ink-soft);
}
.marquee__track i { color: var(--rose); font-style: normal; font-size: 0.7rem; }
@keyframes slide { to { transform: translateX(-50%); } }

.scrollcue { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.scrollcue span:first-child { font: 500 11px/1 var(--f-mono); letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-dim); }
.scrollcue__line { width: 1px; height: 46px; background: linear-gradient(var(--rose), transparent); position: relative; overflow: hidden; }
.scrollcue__line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 120%; } }

/* =========================================================================
   WHO
   ========================================================================= */
.who__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.who__statement {
  font-family: var(--f-display); font-weight: 380;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -0.02em;
}
.who__statement .hl { font-style: italic; }
.who__body { padding-top: 8px; }
.who__body p { color: var(--ink-soft); font-size: 1.05rem; }
.who__body p + p { margin-top: 18px; }

/* =========================================================================
   MANIFESTO
   ========================================================================= */
.manifesto { text-align: left; }
.manifesto__lines { max-width: 980px; }
.manifesto__lines p {
  font-family: var(--f-display); font-weight: 360;
  font-size: clamp(1.6rem, 4.6vw, 3.4rem); line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 0.18em;
}
.manifesto__lines .dim { color: var(--ink-dim); }
.manifesto__lines .accenty { color: var(--rose); }
.manifesto__belief {
  margin-top: clamp(48px, 8vw, 90px); margin-left: auto; max-width: 60ch;
  padding-left: 28px; border-left: 2px solid var(--rose);
}
.manifesto__belief p { color: var(--ink-soft); font-size: clamp(1.02rem, 1.6vw, 1.2rem); }

/* =========================================================================
   MEDIUMS
   ========================================================================= */
.mediums__list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; }
.medium { background: var(--bg-2); padding: clamp(28px, 3.4vw, 46px); position: relative; transition: background 0.4s var(--ease); }
.medium.wide { grid-column: 1 / -1; }
.medium:hover { background: var(--panel); }
.medium__no { font-family: var(--f-mono); font-size: 12px; color: var(--rose); letter-spacing: 0.2em; }
.medium h3 { font-family: var(--f-display); font-weight: 440; font-size: clamp(1.4rem, 2.4vw, 1.95rem); letter-spacing: -0.01em; margin: 16px 0 12px; }
.medium p { color: var(--ink-soft); font-size: 1rem; max-width: 52ch; }
.medium::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--rose); transition: width 0.5s var(--ease); }
.medium:hover::after { width: 100%; }

/* =========================================================================
   VALUES
   ========================================================================= */
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 38px); }
.value { padding-top: 26px; border-top: 1px solid var(--line); }
.value h3 { font-family: var(--f-display); font-weight: 440; font-size: 1.35rem; letter-spacing: -0.01em; margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; }
.value h3 span { font-family: var(--f-mono); font-size: 12px; color: var(--rose); }
.value p { color: var(--ink-soft); font-size: 0.98rem; }

/* =========================================================================
   WORK / SHOWCASE
   ========================================================================= */
.work__gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 1.8vw, 26px); }
.card { grid-column: span 3; border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; background: var(--bg-2); transition: transform 0.5s var(--ease), border-color 0.4s; }
.card--lg { grid-column: span 4; grid-row: span 2; }
.card--lg + .card { grid-column: span 2; }
.card--wide { grid-column: span 4; }
.card:hover { transform: translateY(-5px); border-color: var(--line); }

.card__still { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.card--lg .card__still { aspect-ratio: 4 / 5; height: 100%; }
.card__still::before {
  content: ""; position: absolute; inset: 0; transition: transform 0.8s var(--ease);
  background-size: 180% 180%; background-position: 30% 40%;
}
.card:hover .card__still::before { transform: scale(1.06); }
.card__frameline { position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,0.16); border-radius: 4px; z-index: 2; pointer-events: none; }
.card__frameline::before, .card__frameline::after { content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid rgba(255,255,255,0.4); }
.card__frameline::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card__frameline::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* cinematic "stills" — gradient meshes, all in the warm/dark/rose family */
.still--ember::before { background-image: radial-gradient(60% 70% at 30% 20%, #ff6a3d 0%, transparent 55%), radial-gradient(50% 60% at 80% 80%, var(--rose-deep) 0%, transparent 60%), linear-gradient(160deg, #1a0c10, #0b0709); }
.still--rose::before  { background-image: radial-gradient(70% 80% at 70% 25%, var(--rose) 0%, transparent 58%), radial-gradient(60% 70% at 15% 85%, #45142a 0%, transparent 60%), linear-gradient(200deg, #160a12, #0a0709); }
.still--plum::before  { background-image: radial-gradient(65% 75% at 25% 30%, #6a2150 0%, transparent 60%), radial-gradient(55% 65% at 85% 70%, #2a1240 0%, transparent 62%), linear-gradient(140deg, #130b18, #09070b); }
.still--mono::before  { background-image: radial-gradient(60% 70% at 50% 25%, #2c2830 0%, transparent 62%), radial-gradient(50% 60% at 80% 90%, var(--rose-deep) 0%, transparent 70%), linear-gradient(180deg, #15131a, #0a090c); }
.still--amber::before { background-image: radial-gradient(55% 80% at 20% 30%, #ff8a4c 0%, transparent 52%), radial-gradient(60% 70% at 75% 60%, var(--rose) 0%, transparent 58%), linear-gradient(150deg, #1c0e0c, #0a0708); }

.card__meta { padding: clamp(20px, 2.4vw, 30px); }
.tag { font: 500 11px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose-soft); }
.card__meta h3 { font-family: var(--f-display); font-weight: 440; font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -0.01em; margin: 14px 0 10px; }
.card__meta p { color: var(--ink-soft); font-size: 0.97rem; }

/* =========================================================================
   HORIZON
   ========================================================================= */
.horizon { position: relative; }
.horizon::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 100% at 50% 0%, rgba(181,29,60,0.14), transparent 60%);
}
.horizon__inner { max-width: var(--maxw); }
.horizon__title { font-family: var(--f-display); font-weight: 360; font-size: clamp(2.1rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 18ch; margin: 26px 0 clamp(40px, 6vw, 70px); }
.horizon__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.horizon__cols p { color: var(--ink-soft); font-size: clamp(1.02rem, 1.5vw, 1.16rem); }

/* =========================================================================
   CONNECT
   ========================================================================= */
.connect { text-align: center; }
.connect__inner { max-width: 720px; margin: 0 auto; }
.connect__title { font-family: var(--f-display); font-weight: 380; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.025em; margin: 24px 0 18px; }
.connect__sub { color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 54ch; margin: 0 auto; }

.signup { margin: 42px auto 0; max-width: 520px; }
.hp { position: absolute; left: -9999px; }
.signup__row { display: flex; gap: 10px; padding: 7px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,0.02); transition: border-color 0.3s; }
.signup__row:focus-within { border-color: var(--rose); }
.signup__input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--ink); font: 400 15px/1 var(--f-body); padding: 0 18px; }
.signup__input::placeholder { color: var(--ink-dim); }
.signup__btn { white-space: nowrap; }
.signup__status { font: 500 13px/1.4 var(--f-mono); margin-top: 16px; min-height: 18px; letter-spacing: 0.02em; }
.signup__status.ok { color: var(--rose-soft); }
.signup__status.err { color: #ff7a7a; }

.connect__social { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.social { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); font: 500 13px/1 var(--f-body); transition: color 0.3s, border-color 0.3s, transform 0.3s; }
.social:hover { color: var(--ink); border-color: var(--rose); transform: translateY(-2px); }
.social svg { color: var(--rose); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid var(--line); max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 80px) var(--pad) 40px; }
.footer__top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__brand img { width: 46px; height: 46px; border-radius: 9px; }
.footer__line { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--ink); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.footer__bottom span { font: 400 12.5px/1.5 var(--f-mono); color: var(--ink-dim); letter-spacing: 0.04em; }
.footer__tag { color: var(--ink-soft) !important; }

/* =========================================================================
   REVEAL ANIMATIONS
   ========================================================================= */
.reveal, .reveal-up { opacity: 0; }
.reveal { transform: translateY(115%); }
.hero__title .line.reveal { transition: transform 1s var(--ease), opacity 1s var(--ease); }
.eyebrow.reveal, .hero__lede.reveal, .hero__actions.reveal { transform: translateY(24px); transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-up { transform: translateY(34px); transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); }
.reveal-up.in { opacity: 1; transform: translateY(0); }

[data-d="1"] { transition-delay: 0.08s; }
[data-d="2"] { transition-delay: 0.16s; }
[data-d="3"] { transition-delay: 0.24s; }
[data-d="4"] { transition-delay: 0.32s; }
[data-d="5"] { transition-delay: 0.40s; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .who__grid { grid-template-columns: 1fr; }
  .mediums__list { grid-template-columns: 1fr; }
  .medium.wide { grid-column: auto; }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .horizon__cols { grid-template-columns: 1fr; }
  .work__gallery { grid-template-columns: 1fr 1fr; }
  .card, .card--lg, .card--wide, .card--lg + .card { grid-column: span 2; grid-row: auto; }
  .card--lg .card__still { aspect-ratio: 16 / 10; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .marquee { max-width: 100%; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .values__grid { grid-template-columns: 1fr; }
  .work__gallery { grid-template-columns: 1fr; }
  .card, .card--lg, .card--wide, .card--lg + .card { grid-column: auto; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .signup__row { flex-direction: column; border-radius: 18px; }
  .signup__btn { justify-content: center; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-up { opacity: 1 !important; transform: none !important; }
  .hero__bars span { display: none; }
}
