/* Automize Studios portfolio.
   Layout: "edit suite". Warm near-black timeline ground, the caption gold that runs through every cover as the one
   accent, condensed caption-style display type, italic serif for the kinetic accent words, mono for timecodes.
   Single dark theme on purpose: the clips and covers are dark, and the site reads as the editor's monitor. */
:root {
  --sc-canvas: #0b0a08;
  --sc-surface: #15130f;
  --sc-ink: #f3eee4;
  --sc-ink-soft: #a59d8e;
  --sc-accent: #f5c518;
  --sc-accent-ink: #0b0a08;
  --line: rgba(243, 238, 228, 0.12);
  --line-strong: rgba(243, 238, 228, 0.24);
  --gold-soft: rgba(245, 197, 24, 0.14);
  --rec: #e5484d;
  --sc-font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --sc-font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sc-canvas); color: var(--sc-ink); font: 400 17px/1.6 var(--sc-font-text); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
em { font-style: italic; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--sc-accent); color: var(--sc-accent-ink); padding: 8px 14px; border-radius: 8px; }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 12px/1 var(--sc-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sc-accent); }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px rgba(229, 72, 77, .18); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.h2 { font: 400 clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem)/0.98 var(--sc-font-display); text-transform: uppercase; letter-spacing: .005em; }
.h2 em, .h3 em, .cta__h em, .hero__line--serif em { font-family: var(--serif); text-transform: none; font-weight: 400; color: var(--sc-accent); letter-spacing: 0; }
.h3 { font: 400 clamp(2rem, 1.4rem + 2.4vw, 3.3rem)/1 var(--sc-font-display); text-transform: uppercase; }
.lede { font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); color: var(--sc-ink-soft); max-width: 58ch; margin: 18px 0 0; }

/* header */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 3px; width: 100%; z-index: 60; background: var(--sc-accent); transform-origin: 0 50%; transform: scaleX(var(--sc-progress, 0)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--sc-canvas); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in oklab, var(--sc-canvas) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__in { max-width: 1240px; margin-inline: auto; padding: 12px var(--gutter-r) 12px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 22px/1 var(--sc-font-display); text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.brand em { font-family: var(--serif); text-transform: none; font-size: 1.12em; color: var(--sc-accent); }
.brand__mark { width: 22px; height: 22px; border-radius: 6px; background: var(--sc-accent); position: relative; flex: none; }
.brand__mark::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid var(--sc-accent-ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--sc-ink-soft); }
.nav a:hover { color: var(--sc-ink); }
.top__cta { display: flex; gap: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--sc-font-text); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--sc-accent); color: var(--sc-accent-ink); }
.btn--gold:hover { background: #ffd43b; }
.btn--ghost { border-color: var(--line-strong); color: var(--sc-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--sc-ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.wa-ico { width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--wa) center/contain no-repeat; mask: var(--wa) center/contain no-repeat;
  --wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38a9.9 9.9 0 0 0 4.74 1.21h.01c5.46 0 9.91-4.45 9.91-9.91A9.85 9.85 0 0 0 12.04 2Zm5.8 14.06c-.24.68-1.42 1.3-1.95 1.35-.5.05-.97.23-3.27-.68-2.77-1.09-4.52-3.92-4.66-4.1-.13-.18-1.11-1.48-1.11-2.83 0-1.34.7-2 .95-2.28.25-.27.54-.34.72-.34h.52c.17 0 .39-.06.61.47.24.55.8 1.92.87 2.06.07.14.11.3.02.48-.09.18-.14.3-.27.46-.14.16-.29.36-.41.48-.14.14-.28.29-.12.56.16.27.71 1.17 1.52 1.9 1.05.93 1.93 1.22 2.2 1.36.27.14.43.11.59-.07.16-.18.68-.8.87-1.07.18-.27.36-.23.61-.14.25.09 1.6.75 1.87.89.27.14.45.2.52.32.07.11.07.66-.17 1.33Z'/%3E%3C/svg%3E"); }

/* hero */
.hero { padding-block: clamp(48px, 8vh, 96px) clamp(64px, 10vh, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__h1 { font: 400 clamp(3.1rem, 1.6rem + 6.4vw, 7.4rem)/0.9 var(--sc-font-display); text-transform: uppercase; letter-spacing: .002em; }
.hero__line { display: block; opacity: 0; transform: translateY(0.4em); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero__line:nth-child(2) { animation-delay: .12s; }
.hero__line:nth-child(3) { animation-delay: .26s; }
.hero__line--serif { font-family: var(--serif); text-transform: none; font-size: 1.08em; line-height: 1; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__specs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; font: 400 13px/1.4 var(--sc-font-mono); color: var(--sc-ink-soft); }
.hero__specs li::before { content: "● "; color: var(--sc-accent); }
.hero__phone { display: flex; justify-content: center; }

/* phone frames */
.phone { margin: 0; position: relative; }
.phone__screen { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 6px var(--sc-surface), 0 0 0 7px var(--line); }
.phone__screen video { width: 100%; height: 100%; object-fit: cover; }
.phone--hero { width: min(340px, 78vw); }
.phone__play { position: absolute; inset: 0; width: 100%; border: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 40%); cursor: pointer; display: grid; place-items: end start; padding: 16px; }
.phone__play span { width: 52px; height: 52px; border-radius: 50%; background: var(--sc-accent); display: grid; place-items: center; transition: transform .2s ease; }
.phone__play span::after { content: ""; margin-left: 4px; border-left: 15px solid var(--sc-accent-ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.phone__play:hover span { transform: scale(1.08); }
.safe { position: absolute; inset: 9% 6% 18% 6%; border: 1px dashed rgba(245, 197, 24, .35); border-radius: 10px; pointer-events: none; }
.tc { margin-top: 18px; text-align: center; font: 400 12px/1 var(--sc-font-mono); color: var(--sc-ink-soft); letter-spacing: .04em; }
.tc span { color: var(--rec); font-weight: 500; }

/* before / after: one pinned stage, --sc-p drives the crop from 16:9 down to 9:16 */
.ba { border-top: 1px solid var(--line); }
.ba__stage { overflow: hidden; min-height: 100vh; display: grid; align-content: center; gap: 22px; padding-block: 72px 32px; }
.ba__head { text-align: center; }
.ba__stage {
  --t: clamp(0, (var(--sc-p, 0) - 0.18) * 2.6, 1);
  --f: clamp(0, (var(--sc-p, 0) - 0.5) * 4, 1);
}
.ba__frame {
  position: relative; margin-inline: auto; width: min(960px, calc(100vw - 32px), calc((100vh - 280px) * 16 / 9)); aspect-ratio: 16 / 9; }
.ba__raw, .ba__edit { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 18px; }
.ba__raw { object-fit: cover; clip-path: inset(0 calc(var(--t) * 34.2%) round 18px); filter: saturate(calc(1 - var(--f) * .6)) brightness(calc(1 - var(--f) * .5)); }
.ba__edit { object-fit: contain; opacity: var(--f); }
.ba__edit { left: 34.2%; right: 34.2%; width: auto; }
.ba__tag { position: absolute; bottom: -38px; font: 500 12px/1 var(--sc-font-mono); letter-spacing: .08em; color: var(--sc-ink-soft); white-space: nowrap; }
.ba__tag--raw { left: 0; opacity: calc(1 - var(--f)); }
.ba__tag--edit { left: 50%; translate: -50% 0; color: var(--sc-accent); opacity: var(--f); }
.ba__note { text-align: center; margin: 40px 0 0; font-size: 13px; color: var(--sc-ink-soft); padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* styles */
.styles { padding-block: clamp(80px, 12vh, 140px) 40px; border-top: 1px solid var(--line); }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vh, 72px); }
.style { padding-block: clamp(48px, 8vh, 96px); border-top: 1px solid var(--line); }
.style__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.style__copy { position: sticky; top: 110px; display: grid; gap: 18px; }
.style__copy > p { margin: 0; color: var(--sc-ink-soft); max-width: 52ch; }
.style__name { font-size: clamp(2.8rem, 1.6rem + 4.6vw, 5.4rem); line-height: .92; color: var(--sc-accent); }
.style__copy > .tagline { margin: -6px 0 0; font: 400 clamp(1.4rem, 1.15rem + 1vw, 2rem)/1.15 var(--serif); color: var(--sc-ink); }
.tagline em { color: var(--sc-ink); }
.chip { justify-self: start; display: inline-block; margin: 0; padding: 7px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--sc-accent); font: 500 12px/1 var(--sc-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--sc-accent); border-bottom: 2px solid var(--sc-accent); transform: rotate(-45deg); }
.fits { font: 400 13px/1.5 var(--sc-font-mono) !important; color: var(--sc-ink) !important; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.style__clips { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.style__clips .clip:nth-child(2) { margin-top: clamp(40px, 8vw, 110px); }
.clip h4 { margin-top: 18px; font: 600 17px/1.3 var(--sc-font-text); }
.meta { margin: 6px 0 0; font-size: 14px; color: var(--sc-ink-soft); }
.meta span { font-family: var(--sc-font-mono); font-size: 12px; color: var(--sc-accent); margin-right: 8px; }

/* covers rail */
.covers { border-top: 1px solid var(--line); }
.covers__stage { height: 100vh; display: flex; align-items: center; overflow: hidden; }
.rail { gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter) var(--gutter-r); align-items: center; }
.rail__lead { flex: 0 0 min(420px, 80vw); padding-right: 24px; }
.cover { flex: 0 0 clamp(190px, 21vw, 280px); padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.cover:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 0 0 2px var(--sc-accent); }
.cover img { width: 100%; height: auto; }

/* process */
.process { padding-block: clamp(80px, 12vh, 140px); border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--line-strong); }
.steps li { padding: 26px 22px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--sc-accent); }
.steps__tc { font: 500 12px/1 var(--sc-font-mono); letter-spacing: .12em; color: var(--sc-accent); }
.steps h3 { margin: 12px 0 8px; font: 600 20px/1.25 var(--sc-font-text); }
.steps p { margin: 0; color: var(--sc-ink-soft); font-size: 15px; }

/* cta */
.cta { padding-block: clamp(90px, 14vh, 160px); border-top: 1px solid var(--line); background: radial-gradient(80% 60% at 50% 100%, rgba(245, 197, 24, .10), transparent 70%); }
.cta__in { text-align: center; display: grid; justify-items: center; }
.cta__h { font: 400 clamp(2.4rem, 1.3rem + 4.4vw, 5.2rem)/0.98 var(--sc-font-display); text-transform: uppercase; max-width: 16ch; }
.cta__h em { display: block; margin-top: .12em; font-size: .78em; line-height: 1.05; }
.cta .lede { margin-inline: auto; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.cta__hours { margin: 22px 0 0; font: 400 13px/1.5 var(--sc-font-mono); color: var(--sc-ink-soft); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
.foot__in { display: grid; gap: 18px; }
.foot__disc { margin: 0; max-width: 92ch; font-size: 14px; color: var(--sc-ink-soft); }
.foot__disc strong { color: var(--sc-ink); }
.foot__small { margin: 0; font: 400 12px/1.6 var(--sc-font-mono); color: var(--sc-ink-soft); }

/* player */
.player { padding: 0; border: 0; background: transparent; color: var(--sc-ink); max-width: none; max-height: none; width: 100%; height: 100%; }
.player::backdrop { background: rgba(5, 5, 4, .88); backdrop-filter: blur(6px); }
.player__in { height: 100%; display: grid; grid-template-columns: auto minmax(0, 320px); align-items: center; justify-content: center; gap: 32px; padding: max(24px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(24px, env(safe-area-inset-bottom, 0px)) var(--gutter); }
.player video { height: min(86vh, 860px); aspect-ratio: 9 / 16; width: auto; max-width: calc(100vw - 32px); border-radius: 22px; background: #000; }
.player__meta { display: grid; gap: 12px; }
.player__meta h3 { font: 400 2rem/1 var(--sc-font-display); text-transform: uppercase; }
.player__x { position: fixed; top: max(16px, env(safe-area-inset-top, 0px)); right: var(--gutter-r); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--sc-surface); color: var(--sc-ink); font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }

/* responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero__grid, .style__grid { grid-template-columns: minmax(0, 1fr); }
  .style__copy { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .player__in { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 16px; }
  .player video { height: min(72vh, 760px); }
  .player__meta { text-align: center; justify-items: center; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .top__in { gap: 12px; }
  .brand { font-size: 18px; }
  .btn--sm { padding: 0 13px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .style__clips .clip:nth-child(2) { margin-top: 44px; }
  .ba__tag { font-size: 10px; }
  /* on a phone the vertical slice of a 16:9 frame is tiny: grow the frame as it narrows */
  .ba__frame { transform: scale(calc(1 + var(--t) * 1.15)); transform-origin: 50% 0; }
  .ba__tag { bottom: -16px; }
  .ba__tag--edit { scale: calc(1 / (1 + var(--t) * 1.15)); transform-origin: 50% 0; }
  .ba__stage { gap: 26px; padding-top: 56px; }
  .ba__note { margin-top: calc(34px + var(--t) * 225px); }
  .cta__btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__line { animation: none; opacity: 1; transform: none; }
  .rec { animation: none; }
  .btn, .cover, .phone__play span { transition: none; }
}
