/* 246 Studio — studio.twoforsix.id. Sibling of twoforsix.id: same tokens, quieter page. */
:root {
  --ink: #0B0D17;
  --ink-2: #121524;
  --ink-3: #1A1E30;
  --paper: #F6F5F0;
  --paper-2: #ECEAE2;
  --orange: #F24A0C;
  --orange-deep: #C93A06;
  --on-ink: rgba(246, 245, 240, .68);
  --on-ink-line: rgba(246, 245, 240, .14);
  --on-paper: rgba(11, 13, 23, .66);
  --on-paper-line: rgba(11, 13, 23, .14);
  --error-ink: #FF8A5C;
  --error-paper: #B83206;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 5vw, 56px);
  --header-h: 68px;
  --r: 18px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: var(--ink-3) var(--ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--orange); color: var(--ink); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.dark { background: var(--ink); color: var(--paper); }
.light { background: var(--paper); color: var(--ink); }
.dark .muted, .dark .lead { color: var(--on-ink); }
.light .muted, .light .lead { color: var(--on-paper); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; max-width: 36em; }
.small { font-size: 15px; }
.quiet { color: var(--on-paper); font-size: 1.05rem; max-width: 40em; padding-block: 8px; }
.dark .quiet { color: var(--on-ink); }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--orange); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.section { padding-block: clamp(80px, 11vw, 136px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 44em; }

/* ---------- buttons & links ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .2s, border-color .2s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn-primary { --bg: var(--orange); --fg: var(--ink); }
.btn-primary:hover { --bg: #FF5A1F; }
.btn-ghost { --fg: var(--paper); --bd: rgba(246, 245, 240, .26); }
.btn-ghost:hover { --bg: rgba(246, 245, 240, .07); --bd: rgba(246, 245, 240, .5); }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-ink:hover { box-shadow: 0 12px 28px -12px rgba(11, 13, 23, .55); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:hover svg { transform: translateX(4px); }
.text-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; color: var(--paper); }
.text-link:hover { color: var(--orange); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 13, 23, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--on-ink-line); color: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark { width: 28px; height: 28px; color: var(--paper); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand-sub { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--on-ink); padding-left: 10px; border-left: 1px solid rgba(246, 245, 240, .22); line-height: 1.1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 500; color: rgba(246, 245, 240, .78); transition: color .2s; }
.nav-link:hover { color: var(--paper); }
.nav .btn { margin-left: 10px; }
@media (max-width: 720px) { .nav-link { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(64px, 10vw, 128px) clamp(64px, 8vw, 104px); }
.hero-copy { max-width: 900px; }
.hero-copy .lead { margin-top: 28px; }
.reel { margin: clamp(56px, 8vw, 96px) 0 0; }
.reel-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--ink-2); border: 1px solid var(--on-ink-line); }
.reel-frame iframe, .reel-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-play { display: block; }
.reel-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .4s; filter: saturate(.92) brightness(.82); }
.reel-play:hover .reel-thumb { transform: scale(1.02); filter: saturate(1) brightness(.9); }
.reel-btn { position: absolute; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); transition: transform .3s var(--ease-out); }
.reel-btn svg { width: 22px; height: 22px; color: var(--orange); }
.reel-play:hover .reel-btn { transform: translateY(-2px); }
.reel-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 16px; }
.reel-title { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--on-ink); }
.reel-title::before { content: "Showreel · "; color: var(--paper); }
.reel-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; }
.reel-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.reel-link:hover svg { transform: translateX(3px); }

/* The one authored moment: the reel opens like a shutter as the page arrives. */
@media (prefers-reduced-motion: no-preference) {
  .reel:not([hidden]) .reel-frame { animation: shutter 1.1s var(--ease-out) both .15s; }
  @keyframes shutter { from { clip-path: inset(0 0 100% 0 round var(--r)); } to { clip-path: inset(0 0 0 0 round var(--r)); } }
}

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px); }
.work-card { display: grid; gap: 18px; }
.work-media { display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.work-img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.work-img.is-blank { display: block; background: var(--paper-2) url(/assets/logo-mark.svg) center / 64px no-repeat; }
.work-card:hover .work-img { transform: scale(1.035); }
.work-text { display: grid; gap: 6px; }
.work-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.02em; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.work-card:hover .work-title { text-decoration-color: var(--orange); }
.work-meta { font-size: 14px; font-weight: 500; color: var(--on-paper); }
.work-summary { color: var(--on-paper); max-width: 34em; }
@media (min-width: 700px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Odd count: the newest piece runs full width so the grid never ends on a gap. */
  .work-grid:not(:has(> :nth-child(even):last-child)) > :first-child { grid-column: 1 / -1; }
}

/* ---------- proof ---------- */
.channel-list { border-top: 1px solid var(--on-ink-line); }
.ch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 16px 32px; padding: 24px 4px; border-bottom: 1px solid var(--on-ink-line); transition: background-color .2s; }
a.ch-row:hover { background: rgba(246, 245, 240, .03); }
.ch-row > svg { width: 20px; height: 20px; color: var(--on-ink); transition: transform .3s var(--ease-out), color .2s; }
a.ch-row:hover > svg { transform: translate(2px, -2px); color: var(--orange); }
.ch-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.ch-platform { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.025em; }
.ch-handle { color: var(--on-ink); overflow-wrap: anywhere; }
.ch-brand { font-size: 13px; color: var(--on-ink); border: 1px solid var(--on-ink-line); border-radius: 999px; padding: 2px 10px; }
.ch-count { display: grid; justify-items: end; text-align: right; }
.ch-num { font-family: var(--font-mono); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ch-when { font-size: 13px; color: var(--on-ink); }
.posts { margin-top: clamp(48px, 7vw, 80px); }
.posts h3 { margin-bottom: 16px; }
.post-list { border-top: 1px solid var(--on-ink-line); }
.post-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto 18px; align-items: center; gap: 8px 24px; padding: 18px 4px; border-bottom: 1px solid var(--on-ink-line); transition: background-color .2s; }
.post-row:hover { background: rgba(246, 245, 240, .03); }
.post-row > svg { width: 18px; height: 18px; color: var(--on-ink); }
.post-row:hover > svg { color: var(--orange); }
.post-title { font-weight: 600; overflow-wrap: anywhere; }
.post-where { font-size: 14px; color: var(--on-ink); }
.post-stats { font-family: var(--font-mono); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  .ch-row { grid-template-columns: minmax(0, 1fr) 20px; }
  .ch-count { grid-column: 1; grid-row: 2; justify-items: start; text-align: left; }
  .ch-row > svg { grid-column: 2; grid-row: 1; }
  .post-row { grid-template-columns: minmax(0, 1fr) 18px; }
  .post-row > :not(svg) { grid-column: 1; }
  .post-row > svg { grid-column: 2; grid-row: 1; }
}

/* ---------- services ---------- */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--on-paper-line); }
.service { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 28px 28px 20px 0; border-bottom: 1px solid var(--on-paper-line); }
.service-blurb { color: var(--on-paper); }
.service-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.service-price { font-family: var(--font-mono); font-size: 13px; color: var(--on-paper); font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .service + .service { padding-left: 28px; border-left: 1px solid var(--on-paper-line); }
  .service-list { border-bottom: 0; }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* ---------- form ---------- */
.start-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.start-copy { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 899px) { .start-grid { grid-template-columns: 1fr; } .start-copy { position: static; } }
.form-shell { background: var(--ink-2); border: 1px solid var(--on-ink-line); border-radius: var(--r); padding: clamp(20px, 3.5vw, 40px); }
.request-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
@media (max-width: 560px) { .request-form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--on-ink); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  font: inherit; font-size: 16px; color: var(--paper); caret-color: var(--orange);
  background: var(--ink); border: 1px solid rgba(246, 245, 240, .2);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23F6F5F0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field select option { background: var(--ink); color: var(--paper); }
.field ::placeholder { color: rgba(246, 245, 240, .5); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(246, 245, 240, .36); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 74, 12, .25); }
.field [aria-invalid="true"] { border-color: var(--error-ink); }
.field-error { min-height: 22px; font-size: 13.5px; color: var(--error-ink); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 16px; justify-items: start; margin-top: 8px; }
.turnstile { min-height: 65px; }
.form-status { color: var(--error-ink); font-size: 14.5px; }
.form-status:empty { display: none; }
.is-sending .btn-primary { cursor: progress; }
.thanks { display: grid; gap: 16px; justify-items: start; outline: none; }
.thanks h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-copy { display: grid; gap: 18px; justify-items: start; }
.about-copy p:not(.lead) { color: var(--on-paper); max-width: 34em; }
@media (max-width: 799px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--on-ink-line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--on-ink); transition: color .2s; }
.footer-links a:hover { color: var(--paper); }
.footer-note { font-size: 13px; }

/* ---------- /work/<slug> ---------- */
.case-main { min-height: 60vh; }
.case { padding-block: clamp(32px, 5vw, 56px) clamp(64px, 9vw, 112px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--on-ink); transition: color .2s; }
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); transition: transform .3s var(--ease-out); }
.back-link:hover { color: var(--paper); }
.back-link:hover svg { transform: rotate(180deg) translateX(3px); }
.loading { margin-top: 40px; }
.case-head { display: grid; gap: 24px; margin-top: clamp(24px, 4vw, 40px); max-width: 960px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.case-meta div { display: grid; gap: 2px; }
.case-meta dt { font-size: 13px; color: var(--on-ink); }
.case-meta dd { margin: 0; font-weight: 500; }
.case-results { margin-top: 40px; padding: 22px 24px; border: 1px solid var(--on-ink-line); border-radius: var(--r); background: var(--ink-2); max-width: 760px; display: grid; gap: 6px; }
.case-results h2 { font-size: 14px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; color: var(--orange); }
.case-results p { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; letter-spacing: -0.015em; }
.case-media { display: grid; gap: 24px; margin-top: clamp(40px, 6vw, 64px); }
.media-video { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--ink-2); border: 1px solid var(--on-ink-line); }
.media-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.media-img { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.case-img { width: 100%; }
.social-embed { margin: 0 auto !important; max-width: 540px; width: 100%; }
.media-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; width: 100%; max-width: 540px; padding: 0 22px; border-radius: var(--r); border: 1px solid var(--on-ink-line); background: var(--ink-2); font-weight: 600; transition: border-color .2s; }
.media-link svg { width: 18px; height: 18px; }
.media-link:hover { border-color: var(--orange); }
.prose { max-width: 68ch; margin-top: clamp(40px, 6vw, 64px); color: rgba(246, 245, 240, .86); font-size: 1.06rem; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { color: var(--paper); margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: .35em; }
.prose a[href] { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--orange); }
.prose img { border-radius: 12px; }
.prose blockquote { margin: 0; padding-left: 18px; border-left: 1px solid var(--orange); color: var(--on-ink); }
.prose code { font-family: var(--font-mono); font-size: .9em; }
.case-missing { display: grid; gap: 20px; margin-top: clamp(24px, 4vw, 40px); }
.case-missing .actions { margin-top: 12px; }
.case-cta { padding-block: clamp(56px, 8vw, 96px); }
.case-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }

/* With no Proof section, Work and Services are both light: keep one gap, not two. */
#proof[hidden] + #services { padding-top: 0; }
