/* ==========================================================
   CTRL ROOM. — brand tokens
   ========================================================== */
@font-face {
  font-family: "CTRL Room Display";
  src: url("assets/fonts/CTRLRoomDisplay-Black.woff2") format("woff2"),
       url("assets/fonts/CTRLRoomDisplay-Black.woff") format("woff");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --off-white: #e8e8e8;
  --acid: #b4ff00;
  --graphite: #1a1a1a;
  --steel: #6b6b6b;

  --display: "CTRL Room Display","Archivo Black", "Arial Black", sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 2.5vw, 40px);
  --section: clamp(96px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .1, 1);

  --fs-body: clamp(16px, 1.1vw, 18px);
  --fs-h2: clamp(34px, 5vw, 80px);
  --fs-lead: clamp(24px, 3vw, 46px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--off-white);
  font: 400 var(--fs-body)/1.55 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, fieldset { margin: 0; }
::selection { background: var(--acid); color: var(--black); }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--acid); color: var(--black); padding: 10px 14px; }
.skip:focus { top: 10px; }

/* ---------- Wordmark: Monument + acid-green full stop ---------- */
.wordmark {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-transform: uppercase;
}
.dot {
  display: inline-block;
  width: .2em; height: .2em;
  margin-left: .06em;
  background: var(--acid);
  border-radius: .02em;
  vertical-align: baseline;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--acid); color: var(--black);
  font: 700 15px/1 var(--mono);
  padding: 18px 24px;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background .2s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translate(3px, -3px); }
.btn:active { transform: scale(.97); }
.btn--sm { padding: 12px 16px; font-size: 13px; }
.btn--dark { background: var(--black); color: var(--acid); }
.link { font-size: 15px; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.link:hover { color: var(--acid); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: var(--black);
  transition: transform .4s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__mark { font: 800 18px/1 var(--display); text-decoration: none; letter-spacing: 0; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 40px); }
.nav__links a { text-decoration: none; font-size: 14px; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--acid); transition: right .3s var(--ease); }
.nav__links a:hover::after { right: 0; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(72px + 3vh) var(--gutter) 28px;
  display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px);
}
.hero__title .wordmark { font-size: 12.4vw; color: var(--off-white); }
.hero__grid {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 6vw; align-items: end;
}
.hero__lead {
  font: 800 var(--fs-lead)/1.12 var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
}
.lock { position: relative; display: inline-block; color: var(--acid); padding: 0 .18em; margin: 0 -.06em; transition: width .5s var(--ease); white-space: nowrap; vertical-align: bottom; }
.lock__word { display: inline-block; transition: opacity .25s, transform .35s var(--ease); }
.lock__word.is-out { opacity: 0; transform: translateY(.3em); }
.lock__frame { position: absolute; inset: -.06em 0 -.02em; pointer-events: none; }
.lock__frame i, .focus i {
  position: absolute; width: .3em; height: .3em;
  border: .09em solid var(--acid);
}
.lock__frame i:nth-child(1), .focus i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.lock__frame i:nth-child(2), .focus i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.lock__frame i:nth-child(3), .focus i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.lock__frame i:nth-child(4), .focus i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.hero__side p { max-width: 44ch; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero__meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding-top: 20px; background: linear-gradient(var(--graphite), var(--graphite)) top / 100% 2px no-repeat;
  font-size: 14px;
}
.hero__meta dt { color: var(--steel); }
.live { display: inline-block; width: 9px; height: 9px; background: var(--acid); margin-right: 8px; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--acid); color: var(--black); overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; gap: 28px; width: max-content; animation: tick 38s linear infinite; font: 800 clamp(20px, 2.4vw, 34px)/1 var(--display); text-transform: uppercase; align-items: center; }
.ticker__track b { font-size: .5em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section) var(--gutter); }
.section--light { background: var(--off-white); color: var(--black); }
.section__head { display: grid; grid-template-columns: 1.8fr 1fr; gap: 6vw; align-items: end; margin-bottom: clamp(48px, 7vw, 100px); }
.h2 { font: 800 var(--fs-h2)/.95 var(--display); letter-spacing: 0; text-transform: uppercase; }
.section__note { max-width: 46ch; }

/* ---------- Work ---------- */
.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.project--a { grid-column: 1 / span 7; }
.project--b { grid-column: 8 / span 5; margin-top: 18vw; }
.project--c { grid-column: 1 / -1; margin-top: 2vw; }
.project__link { display: block; text-decoration: none; }
.poster { position: relative; overflow: hidden; aspect-ratio: 4 / 3; transition: transform .6s var(--ease); }
.project--b .poster { aspect-ratio: 4 / 5; }
.project--c .poster { aspect-ratio: 21 / 8; }
.project__link:hover .poster { transform: scale(.985); }
.project__info { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding-top: 18px; }
.project__info h3 { font: 800 clamp(20px, 2vw, 30px)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0; }
.project__info p { grid-column: 1; max-width: 52ch; color: var(--off-white); }
.tag { grid-column: 2; grid-row: 1; align-self: center; font-size: 13px; color: var(--acid); }

/* Concept: Zero Mile Coffee */
.poster--zero { background: #f08a24; color: #1a0f05; padding: 5%; display: grid; grid-template-rows: auto 1fr auto; }
.zm__badge { width: 22%; aspect-ratio: 1; border-radius: 50%; background: #1a0f05; color: #f08a24; display: grid; place-items: center; font: 800 clamp(28px, 4vw, 64px)/1 var(--display); justify-self: end; }
.zm__name { font: 800 clamp(48px, 9vw, 150px)/.82 var(--display); letter-spacing: -0.04em; align-self: end; }
.zm__sub { font-size: clamp(10px, .9vw, 13px); margin-top: 16px; }
.zm__cups { position: absolute; right: 6%; bottom: 6%; display: flex; gap: 10px; align-items: flex-end; }
.zm__cups i { width: clamp(30px, 4vw, 62px); aspect-ratio: 3 / 4; background: #fff3e6; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); }
.zm__cups i:nth-child(2) { height: auto; width: clamp(36px, 5vw, 76px); background: #1a0f05; }
.zm__cups i:nth-child(3) { width: clamp(24px, 3vw, 48px); }

/* Concept: Kokum & Co. */
.poster--kokum { background: #3a0b2a; display: flex; align-items: center; justify-content: center; gap: 6%; }
.kk__can { width: 34%; aspect-ratio: 1 / 2; background: #c2185b; border-radius: 10px / 6px; display: flex; flex-direction: column; justify-content: space-between; padding: 14% 8%; color: #ffe9f1; transform: rotate(-6deg); }
.kk__can span { font: 800 clamp(11px, 2vw, 30px)/.9 var(--display); white-space: nowrap; }
.kk__can em { font-style: normal; font-size: clamp(9px, .8vw, 12px); }
.kk__can--2 { background: #ffe9f1; color: #3a0b2a; transform: rotate(5deg) translateY(8%); }

/* Concept: Ritu */
.poster--ritu { background: #c9d3bd; color: #2f3a2b; padding: 3% 4%; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4%; }
.rt__name { font: 800 clamp(64px, 13vw, 220px)/.8 var(--display); letter-spacing: -0.05em; text-transform: lowercase; }
.rt__seasons { position: absolute; top: 8%; left: 5%; display: flex; gap: 18px; font-size: clamp(10px, .9vw, 13px); flex-wrap: wrap; }


.rt__jars { display: flex; gap: clamp(8px, 1vw, 16px); align-items: flex-end; }
.rt__jar { width: clamp(44px, 7vw, 120px); aspect-ratio: 1 / 1.15; background: #f3efe6; border-radius: 4px; border-top: clamp(10px, 1.4vw, 24px) solid var(--c, #2f3a2b); display: grid; place-items: center; font-size: clamp(8px, .75vw, 12px); color: #2f3a2b; }
.rt__jar::after { content: attr(data-s); }
.rt__jar:nth-child(1) { --c: #d98e3a; } .rt__jar:nth-child(2) { --c: #3f6b5a; height: auto; width: clamp(52px, 8.4vw, 144px); }
.rt__jar:nth-child(3) { --c: #b9a26a; } .rt__jar:nth-child(4) { --c: #6b5b4b; }

/* Extra concept details */
.zm__menu { position: absolute; right: 5%; top: 38%; width: 30%; background: #fff3e6; color: #1a0f05; padding: 3%; display: flex; flex-direction: column; gap: 4px; font-size: clamp(8px, .72vw, 11px); transform: rotate(3deg); }
.zm__menu b { font: 800 clamp(10px, 1vw, 15px)/1 var(--display); margin-bottom: 4px; }
.zm__menu span { display: flex; justify-content: space-between; gap: 8px; }
.zm__menu em { font-style: normal; }
.kk__sticker { position: absolute; right: 9%; top: 9%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--acid); color: #3a0b2a; display: grid; place-items: center; text-align: center; font: 800 clamp(10px, 1.1vw, 16px)/1 var(--display); text-transform: uppercase; transform: rotate(12deg); }

/* ---------- Statement ---------- */
.statement { background: var(--acid); color: var(--black); padding: var(--section) var(--gutter); display: grid; grid-template-columns: 1.6fr 1fr; gap: 6vw; align-items: end; }
.statement__h { font: 800 clamp(30px, 4.6vw, 76px)/1 var(--display); letter-spacing: 0; text-transform: uppercase; }
.statement__body { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; font-size: clamp(16px, 1.2vw, 19px); }
.statement__body p { max-width: 44ch; }
.statement .btn--dark { margin-top: 12px; }

/* ---------- Services ---------- */
.svc__row { background: linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat; }
.svc__row:last-child { box-shadow: inset 0 -2px 0 currentColor; }
.svc details summary {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 16px;
  padding: clamp(20px, 2.6vw, 36px) 0; cursor: pointer; list-style: none;
}
.svc summary::-webkit-details-marker { display: none; }
.svc__n { font-size: 14px; }
.svc__t { font: 800 clamp(24px, 4vw, 64px)/1 var(--display); text-transform: uppercase; letter-spacing: 0; transition: transform .35s var(--ease); }
.svc summary:hover .svc__t { transform: translateX(12px); }
.svc__x { width: 28px; height: 28px; position: relative; }
.svc__x::before, .svc__x::after { content: ""; position: absolute; inset: 12px 0; background: currentColor; transition: transform .35s var(--ease); }
.svc__x::after { transform: rotate(90deg); }
details[open] .svc__x::after { transform: rotate(0); }
details[open] .svc__t { color: var(--black); }
details[open] summary .svc__n { background: var(--acid); padding: 2px 6px; justify-self: start; }
.svc__body { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 16px; padding-bottom: 36px; }
.svc__body p { grid-column: 2; max-width: 44ch; font-size: clamp(16px, 1.3vw, 20px); }
.svc__body ul { grid-column: 3; columns: 2; column-gap: 24px; }
.svc__body li { padding: 4px 0; break-inside: avoid; }
.svc__body li::before { content: "■ "; font-size: .7em; vertical-align: .15em; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; background: var(--black); }
.step { background: var(--graphite); padding: clamp(24px, 2.4vw, 40px); min-height: 360px; display: flex; flex-direction: column; gap: 16px; transition: background .3s, color .3s; }
.step:hover { background: var(--acid); color: var(--black); }
.step:hover .step__n { color: var(--black); }
.step__n { font: 800 clamp(40px, 4vw, 64px)/1 var(--display); color: var(--acid); }
.step h3 { font: 800 clamp(20px, 1.8vw, 28px)/1 var(--display); text-transform: uppercase; margin-top: auto; }

/* ---------- About ---------- */
.about { background: var(--graphite); display: grid; grid-template-columns: 1fr 1.3fr; gap: 6vw; align-items: center; }
.about__symbol { color: var(--acid); }
.about__symbol svg { width: 100%; max-width: 560px; }
.about__text { display: flex; flex-direction: column; gap: 28px; }
.about__big { font: 800 clamp(20px, 1.9vw, 30px)/1.2 var(--display); text-transform: uppercase; letter-spacing: 0; max-width: 34ch; }
.about__text > p:not(.about__big) { max-width: 56ch; }
.voice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.voice b { color: var(--acid); font-weight: 700; }

/* ---------- Contact / brief ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 6vw; align-items: start; }
.contact__intro { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }
.contact__intro > p { max-width: 42ch; }
.contact__direct { line-height: 2; }
.contact__direct a:first-child { font: 800 clamp(18px, 1.8vw, 26px)/1.4 var(--display); text-transform: lowercase; text-decoration: none; background: linear-gradient(var(--acid), var(--acid)) 0 88% / 100% .35em no-repeat; }
.contact__direct a + a { margin-right: 18px; }
.brief { display: flex; flex-direction: column; gap: 36px; }
fieldset { border: 0; padding: 0; }
legend { font: 800 clamp(16px, 1.4vw, 20px)/1 var(--display); text-transform: uppercase; margin-bottom: 16px; padding: 0; }
.hint { font-size: 13px; color: #4a4a4a; margin: -6px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 12px 16px; background: #d4d4d4; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); font-size: 14px; }
.chips label:hover span { background: #c4c4c4; }
.chips input:checked + span { background: var(--black); color: var(--acid); }
.chips input:focus-visible + span { outline: 3px solid var(--black); outline-offset: 2px; }
.chips label:active span { transform: scale(.96); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--black);
  background: #fff; border: 2px solid transparent; padding: 14px; border-radius: 0; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--black); }
.field input.is-invalid { border-color: #d0021b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.brief__out.is-sent { background: var(--acid); color: var(--black); }
.brief__out.is-error { background: #d0021b; color: #fff; }
.brief__out.is-error a, .brief__out.is-sent a { color: inherit; }
.brief button[disabled] { opacity: .6; cursor: progress; }
.brief__out { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--black); color: var(--off-white); padding: 20px 20px 20px 24px; }
.brief__preview { font-size: 14px; max-width: 48ch; }
.brief__out .btn { background: var(--acid); color: var(--black); flex: none; }

/* ---------- Grain (brand texture) ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: .07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); } }

/* ---------- Footer ---------- */
.foot { padding: 80px var(--gutter) var(--gutter); }
.foot__row { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px; font-size: 14px; margin-bottom: 40px; }
.foot__row a { text-decoration: none; }
.foot__row a:hover { color: var(--acid); }
.foot__mark { font-size: 12.4vw; color: var(--off-white); }
.foot__tech { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; color: var(--steel); margin-top: 28px; }
.barcode { width: 140px; height: 28px; background: repeating-linear-gradient(90deg, var(--off-white) 0 2px, transparent 2px 4px, var(--off-white) 4px 5px, transparent 5px 9px, var(--off-white) 9px 12px, transparent 12px 13px); }

/* ---------- Focus frame (signature) ---------- */
.focus {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 28px; height: 28px; font-size: 40px; opacity: 0;
  transition: transform .28s var(--ease), width .28s var(--ease), height .28s var(--ease), opacity .2s;
}
.focus i { width: 10px; height: 10px; border-width: 3px; }
.focus.is-on { opacity: 1; }
.section--light .focus i { border-color: var(--black); }
@media (hover: none), (pointer: coarse) { .focus { display: none; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .hero__grid, .section__head, .about, .contact, .statement { grid-template-columns: 1fr; }
  .project--c .poster { aspect-ratio: 16 / 9; }
  .project--b .poster { aspect-ratio: 4 / 3; }
  .kk__can { width: 24%; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { min-height: 280px; }
  .project--a, .project--b, .project--c { grid-column: 1 / -1; margin-top: 0; }
  .work__grid { row-gap: 64px; }
  .about__symbol svg { max-width: 220px; }
  .contact__intro { position: static; }
  .svc__body { grid-template-columns: 1fr; }
  .svc__body p, .svc__body ul { grid-column: 1; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .nav__links { display: none; }
  .hero { padding-top: 96px; }
  .hero__title .wordmark { font-size: 21vw; white-space: normal; line-height: .86; }
  .hero__title .wordmark .dot { margin-left: .04em; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step h3 { margin-top: 8px; }
  .svc details summary { grid-template-columns: 36px 1fr auto; }
  .svc__body ul { columns: 1; }
  .fields, .voice { grid-template-columns: 1fr; }
  .project__info { grid-template-columns: 1fr; }
  .tag { grid-column: 1; grid-row: auto; }
  .brief__out { flex-direction: column; align-items: stretch; }
  .brief__out .btn { justify-content: center; }
  .foot__row { grid-template-columns: 1fr 1fr; }
  .foot__mark { font-size: 12.6vw; }
  .foot__tech span:last-child { display: none; }
  .zm__menu { display: none; }
  .project--c .poster { aspect-ratio: 4 / 3; grid-template-columns: 1fr; align-content: end; }
  .rt__jars { position: absolute; right: 5%; top: 10%; }
  .rt__seasons { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .grain { animation: none; }
}
