/* OffScript Studios — site styles. Mobile first. */

:root {
  --bg: #0b0b0a;
  --bg-2: #131311;
  --bg-3: #1b1b18;
  --line: rgba(236, 232, 225, 0.12);
  --line-2: rgba(236, 232, 225, 0.22);
  --text: #ece8e1;
  --muted: #9b958b;
  --accent: #d1a46a;
  --gutter: 16px;
  --max: 1240px;
  --head-h: 60px;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --head-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .055;
  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");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 200; background: var(--text); color: var(--bg); padding: 8px 14px; }

/* ---------- type */
h1, h2, h3, .f-big, .mark {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-variation-settings: "wdth" 68; line-height: .95; letter-spacing: .005em; margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 11vw, 128px); }
h2 { font-size: clamp(34px, 7vw, 76px); }
h3 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.05; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--text); max-width: 40ch; margin-top: 20px; }
.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px; display: flex; gap: 12px; align-items: baseline;
}
.label .num, .num { font-family: var(--mono); color: var(--accent); font-size: 12px; letter-spacing: .08em; }
.prose { max-width: 62ch; color: #d9d4cb; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(28px, 5vw, 44px); margin: 1.6em 0 .5em; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .4em; }
.muted { color: var(--muted); }

/* ---------- layout */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.wide { max-width: 1600px; }
.sec { padding: clamp(64px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.sec.tight { padding: clamp(40px, 6vw, 80px) 0; }
.sec.flush-top { border-top: 0; padding-top: clamp(32px, 5vw, 64px); }
.sec.alt { background: var(--bg-2); }
.sec-head { margin-bottom: clamp(32px, 5vw, 64px); max-width: 900px; }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
  .split.flip .split-a { order: 2; }
  .split.top { align-items: start; }
}
.stack > * + * { margin-top: 24px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 768px) { .pair { gap: 16px; } }

/* ---------- header */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); border-bottom: 1px solid var(--line); }
/* the blur sits on a layer behind the header: a backdrop-filter on the header itself would trap the
   fixed-position phone menu inside the header's own height */
.site-head::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 11, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-head:has(.menu:not([hidden]))::before { background: var(--bg); }
.head-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.mark { font-size: 22px; text-decoration: none; display: flex; gap: 6px; align-items: baseline; letter-spacing: .04em; }
.mark span { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .24em; color: var(--muted); }
.nav { display: none; margin-left: auto; gap: 28px; }
.nav a { text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #cfc9bf; }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--accent); }
.site-head .head-cta { margin-left: auto; min-height: 38px; padding: 0 12px; font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
.head-tel { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--text); border: 1px solid var(--line); }
.head-tel:hover { border-color: var(--text); }
.site-head .menu-btn { margin-left: 0; }
@media (max-width: 429px) {
  .site-head .head-in { gap: 8px; }
  .site-head .os-mark { width: 112px; }
  .site-head .os-text .os-fallback { font-size: 17px; }
  .site-head .mark, .site-head .head-cta, .head-tel, .site-head .menu-btn { flex-shrink: 0; }
  .head-tel { width: 38px; height: 38px; }
  .site-head .head-cta { padding: 0 9px; letter-spacing: .06em; font-size: 10.5px; }
  .site-head .menu-btn { width: 40px; }
  .site-head .menu-btn span:not(.sr) { left: 9px; right: 9px; }
}
@media (max-width: 374px) { .head-cta .cta-long { display: none; } }
@media (min-width: 375px) { .head-cta .cta-short { display: none; } }
@media (max-width: 959px) { .head-in { gap: 12px; } }
.menu-btn { margin-left: auto; width: 44px; height: 44px; background: none; border: 0; color: var(--text); position: relative; cursor: pointer; }
.menu-btn span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; inset: var(--head-h) 0 0 0; background: var(--bg); padding: 32px var(--gutter); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu { z-index: 60; overscroll-behavior: contain; }
.menu nav a { font-family: var(--display); font-variation-settings: "wdth" 68; font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 9vw, 44px); line-height: 1.15; text-decoration: none; border-bottom: 1px solid var(--line); padding: 10px 0; color: var(--text); }
.menu nav a[aria-current="page"] { color: var(--accent); }
.menu-foot { color: var(--muted); font-size: 14px; }
@media (min-width: 960px) {
  .nav, .site-head .head-cta { display: flex; }
  .site-head .head-cta { margin-left: 0; }
  .head-tel { display: none; }
  .menu-btn, .menu { display: none !important; }
}

/* ---------- buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--text); transition: background .2s, color .2s, border-color .2s; cursor: pointer; font-family: var(--body); }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 11px; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.links-row a { text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }

/* ---------- hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 72svh; padding: 48px 0 clamp(40px, 7vw, 88px); overflow: hidden; isolation: isolate; }
.hero.tall { min-height: calc(100svh - var(--head-h)); }
.hero.no-img { min-height: 0; padding-top: clamp(56px, 9vw, 120px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: slowpush 24s var(--ease) both; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,10,.35) 0%, rgba(11,11,10,.15) 35%, rgba(11,11,10,.85) 82%, var(--bg) 100%); }
@keyframes slowpush { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-in { position: relative; }
.hero h1 { max-width: 14ch; }
.hero-sub { font-size: clamp(18px, 2.3vw, 23px); line-height: 1.45; max-width: 38ch; margin: 22px 0 0; color: #e3ded5; }
.crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs .sep { opacity: .5; }
nav.crumbs.wrap { padding-top: 24px; margin-bottom: 0; }

/* ---------- frames and galleries */
.frame { margin: 0; position: relative; overflow: hidden; background: var(--bg-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.frame figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 10px; background: var(--bg); }
.r-4x5 { aspect-ratio: 4 / 5; } .r-1x1 { aspect-ratio: 1; } .r-3x2 { aspect-ratio: 3 / 2; }
.r-16x9 { aspect-ratio: 16 / 9; } .r-scope { aspect-ratio: 2.39 / 1; } .r-9x16 { aspect-ratio: 9 / 16; }
.r-2x3 { aspect-ratio: 2 / 3; }
.frame:has(figcaption) { aspect-ratio: auto; }
.frame:has(figcaption) img { aspect-ratio: inherit; }
.zoom { display: block; height: 100%; cursor: zoom-in; }
.gallery { columns: 2; column-gap: 10px; }
.gallery .g-item { display: block; margin: 0 0 10px; break-inside: avoid; overflow: hidden; background: var(--bg-3); cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .8s var(--ease), opacity .4s; }
.gallery .g-item:hover img, .card a:hover .frame img { transform: scale(1.03); }
@media (min-width: 768px) {
  .gallery { column-gap: 16px; } .gallery .g-item { margin-bottom: 16px; }
  .gallery.cols-3 { columns: 3; } .gallery.cols-4 { columns: 4; }
}
.img-missing { background: repeating-linear-gradient(135deg, var(--bg-3) 0 12px, var(--bg-2) 12px 24px); }
.g-item.img-missing { min-height: 220px; }

/* ---------- cards */
.cards { display: grid; gap: 32px 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } .cards.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card a { text-decoration: none; display: block; }
.card-t { padding-top: 16px; }
.card-t .label { margin-bottom: 8px; }
.card h3 { font-size: clamp(24px, 3vw, 32px); }
.card p:not(.label) { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.card a:hover h3 { color: var(--accent); }
.card[hidden] { display: none; }

/* ---------- filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filters button { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: none; color: var(--muted); border: 1px solid var(--line-2); padding: 9px 14px; cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }

/* ---------- slate list */
.slate { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.slate li { border-bottom: 1px solid var(--line); }
.slate a { display: grid; grid-template-columns: 40px 1fr 24px; gap: 4px 12px; padding: 22px 0; text-decoration: none; align-items: baseline; }
.slate .s-t { font-family: var(--display); font-variation-settings: "wdth" 68; font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 4.4vw, 48px); line-height: 1; }
.slate .s-b { grid-column: 2; color: var(--muted); font-size: 15px; }
.slate .arrow { grid-column: 3; grid-row: 1; justify-self: end; color: var(--muted); transition: transform .3s var(--ease); }
.slate a:hover .arrow { transform: translateX(4px); color: var(--accent); }
.slate a:hover .s-t { color: var(--accent); }
@media (min-width: 900px) {
  .slate a { grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 32px; padding: 28px 0; align-items: center; }
  .slate .s-b { grid-column: 3; }
  .slate .arrow { grid-column: 4; }
}

/* ---------- steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { background: var(--bg); padding: 28px 24px 32px; }
.steps h3 { margin: 18px 0 10px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- quote */
.quote { margin: 0; max-width: 980px; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 300; font-size: clamp(30px, 5.4vw, 64px); line-height: 1.05; margin: 0; text-wrap: balance; }
.quote p::before { content: "\201C"; color: var(--accent); }
.quote p::after { content: "\201D"; color: var(--accent); }
.quote figcaption { margin-top: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.quote figcaption strong { color: var(--text); font-weight: 500; }
.quote-sm p { font-size: clamp(24px, 3.4vw, 38px); }
.quote-named figcaption { align-items: center; gap: 14px; }
.q-pic { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.q-who { display: flex; flex-direction: column; gap: 4px; }
.quotes { display: grid; gap: 48px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(2, 1fr); gap: 56px 64px; } }

/* ---------- stats, meta */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 32px 0; }
.stat { background: var(--bg); padding: 20px; }
.stat strong { display: block; font-family: var(--display); font-variation-settings: "wdth" 68; font-size: clamp(36px, 6vw, 60px); line-height: 1; text-transform: uppercase; }
.stat span { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.meta-row dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.meta-row dd { margin: 0; font-size: 15px; }
@media (min-width: 900px) { .meta-row { grid-template-columns: repeat(4, 1fr); } }

/* ---------- lists */
.ticks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 12px; height: 1px; background: var(--accent); }

/* ---------- FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 300; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 22px; color: #d3cec5; max-width: 66ch; }
.faq-a p { margin: 0; }

/* ---------- tiles (business / personal split) */
.tiles { display: grid; gap: 10px; }
@media (min-width: 800px) { .tiles { grid-template-columns: 1fr 1fr; gap: 16px; } }
.tile { position: relative; display: flex; align-items: flex-end; min-height: 460px; padding: 28px; overflow: hidden; text-decoration: none; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(11,11,10,.9)); }
.tile:hover img { transform: scale(1.04); }
.tile h2 { font-size: clamp(40px, 6vw, 72px); }
.tile p { margin: 10px 0 0; color: #ddd8cf; max-width: 34ch; }
.tile .label { color: #ddd8cf; }
.tile:hover { color: var(--text); }
.tile:hover h2 { color: var(--accent); }

/* ---------- video */
.yt { cursor: pointer; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(236,232,225,.7); background: rgba(11,11,10,.45); backdrop-filter: blur(6px); cursor: pointer; transition: transform .3s var(--ease), background .3s; }
.play span { position: absolute; left: 31px; top: 25px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent var(--text); }
.yt:hover .play { transform: scale(1.06); background: rgba(209,164,106,.55); }
.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.shorts > * { scroll-snap-align: start; }
@media (min-width: 800px) { .shorts { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 340px)); gap: 16px; overflow: visible; } }
@media (min-width: 1100px) { .shorts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- CTA band */
.cta-band { position: relative; padding: clamp(96px, 14vw, 200px) 0; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 60%, rgba(11,11,10,.2), rgba(11,11,10,.85)); }
.cta-band h2 { max-width: 12ch; font-size: clamp(44px, 9vw, 112px); }

/* ---------- forms */
.form { display: grid; gap: 18px; }
.form .two { display: grid; gap: 18px; }
@media (min-width: 700px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 0;
  padding: 14px; font: inherit; font-size: 16px; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field .req { color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--muted); }

/* ---------- contact block */
.contact-lines { display: grid; gap: 20px; margin-top: 32px; }
.contact-lines a { font-size: clamp(18px, 2.4vw, 22px); text-decoration: none; border-bottom: 1px solid var(--line-2); }

/* ---------- service area */
.area { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area li { background: var(--bg); padding: 22px; }
.area strong { display: block; font-family: var(--display); font-variation-settings: "wdth" 68; text-transform: uppercase; font-size: 28px; line-height: 1; margin-bottom: 8px; }
.area span { color: var(--muted); font-size: 15px; }
.area li:has(a) { padding: 0; }
.area a { display: block; padding: 22px; height: 100%; transition: background .3s; }
.area a:hover { background: var(--bg-2, #151513); }
.area a strong::after { content: " \2192"; font-size: .7em; opacity: .5; }
@media (min-width: 700px) { .area { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .area { grid-template-columns: repeat(3, 1fr); } }

/* ---------- journal */
.post-list { display: grid; gap: 40px; }
.post-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.article { max-width: 720px; margin: 0 auto; }
.article .prose { max-width: none; font-size: 18px; }
.article figure { margin: 40px 0; }

/* ---------- delivery pages */
.delivery-box { border: 1px solid var(--line-2); padding: clamp(24px, 4vw, 48px); background: var(--bg-2); }
.delivery-box .btn { width: 100%; }
@media (min-width: 700px) { .delivery-box .btn { width: auto; } }

/* ---------- footer */
.site-foot { border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 120px) 0 32px; background: var(--bg); }
.f-big { font-size: clamp(48px, 12vw, 180px); line-height: .85; margin-bottom: clamp(48px, 7vw, 96px); color: var(--text); }
.f-grid { display: grid; gap: 40px 24px; grid-template-columns: 1fr 1fr; }
.f-contact { grid-column: 1 / -1; }
.f-contact p { color: #cfc9bf; font-size: 15px; max-width: 40ch; }
.f-col ul { list-style: none; padding: 0; margin: 0; }
.f-col li { margin-bottom: 8px; font-size: 15px; }
.f-col a { text-decoration: none; color: #cfc9bf; }
.f-col a:hover { color: var(--accent); }
.f-social { display: flex; gap: 18px; flex-wrap: wrap; }
.f-social a { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.f-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.f-base a { color: var(--muted); }
@media (min-width: 900px) { .f-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } .f-contact { grid-column: auto; } }

/* ---------- lightbox */
.lb { position: fixed; inset: 0; z-index: 150; background: rgba(5,5,5,.96); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: var(--text); font-size: 30px; width: 52px; height: 52px; cursor: pointer; font-family: var(--mono); }
.lb .lb-x { top: 6px; right: 6px; }
.lb .lb-p { left: 4px; top: 50%; transform: translateY(-50%); }
.lb .lb-n { right: 4px; top: 50%; transform: translateY(-50%); }
.lb .lb-c { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 24px; }

/* ---------- reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- misc */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-l { margin-top: clamp(40px, 6vw, 80px); }
.note { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; color: #d3cec5; max-width: 60ch; }
.big-num { font-family: var(--display); font-variation-settings: "wdth" 68; font-weight: 700; font-size: clamp(120px, 26vw, 360px); line-height: .8; color: var(--bg-3); }
.err-wrap { min-height: 60svh; display: flex; flex-direction: column; justify-content: center; }

.next-link { text-decoration: none; display: block; margin-top: 8px; }
.next-link:hover h2 { color: var(--accent); }
.vert { max-width: 400px; margin: 0 auto; }
@media (min-width: 900px) { .vert { margin: 0 0 0 auto; } }
.vid-grid { display: grid; gap: 32px 16px; }
.vid-cell p { margin: 14px 0 0; font-size: 15px; max-width: 52ch; }
@media (min-width: 800px) { .vid-grid { grid-template-columns: 1fr 1fr; } }
.ig-tag { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: rgba(11,11,10,.7); padding: 5px 8px; }
.ig.ig-on { background: #fff; }
.ig.ig-on img, .ig.ig-on .ig-tag, .ig.ig-on .play { display: none; }
.ig-card { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 22px; background: radial-gradient(ellipse at 30% 20%, #2a2620, var(--bg-3) 70%); }
.ig-card span { font-family: var(--display); font-variation-settings: "wdth" 68; font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1; max-width: 12ch; }
.ig iframe { background: #fff; }
.embed-solo { max-width: 400px; }
@media (min-width: 900px) { .split-b .embed-solo { margin-left: auto; } }
.r-3x4 { aspect-ratio: 3 / 4; }
.shorts { align-items: start; }

/* ---------- logos */
.os-logo { display: block; position: relative; overflow: hidden; }
/* the file is 1500x1000; wordmark sits at x160-1290, y505-885; full art at y16-878 */
.os-logo img { position: absolute; width: 132.74%; max-width: none; height: auto; left: -14.16%; }
.os-mark { width: 132px; aspect-ratio: 1130 / 380; }
.os-mark img { top: -132.9%; }
.os-full { width: 100%; max-width: 420px; aspect-ratio: 1130 / 862; }
.os-full img { top: -1.86%; }
/* if the logo file ever fails to load, show the name in type instead */
.os-fallback { display: none; }
.os-text img { display: none; }
.os-text .os-fallback { display: flex; align-items: center; height: 100%; font-family: var(--display); font-variation-settings: "wdth" 68; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; line-height: 1; font-size: 20px; color: var(--text); }
.os-full.os-text .os-fallback { font-size: clamp(32px, 6vw, 56px); justify-content: center; text-align: center; }
.mark { gap: 0; }
@media (min-width: 768px) { .os-mark { width: 150px; } }
.f-logo { width: min(360px, 70vw); max-width: none; margin-bottom: 40px; }
.about-logo { margin: 0 auto; }
.clients { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients > .client { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .clients { grid-template-columns: repeat(5, 1fr); } }
.client { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 20px; background: var(--bg); text-decoration: none; transition: background .3s; }
a.client:hover { background: var(--bg-2); }
.cl-face { display: flex; align-items: center; justify-content: center; gap: 12px; }
.client img { max-height: 64px; max-width: 150px; width: auto; height: auto; object-fit: contain; opacity: .92; transition: opacity .3s, transform .3s var(--ease); }
a.client:hover img { opacity: 1; transform: scale(1.04); }
.client img.cl-white { filter: brightness(0) invert(.92); max-height: 56px; }
.cl-name { font-family: var(--display); font-variation-settings: "wdth" 68; font-weight: 700; text-transform: uppercase; font-size: 20px; line-height: 1.05; text-align: center; color: #d9d4cb; }
a.client:hover .cl-name { color: var(--accent); }
.case-logo { margin-bottom: 24px; }
.case-logo .client { justify-content: flex-start; min-height: 0; padding: 0; background: none; }
.case-logo .client img { max-height: 84px; max-width: 200px; }
.case-logo .cl-name { text-align: left; }
.client img.cl-badge { max-height: 84px; border-radius: 8px; }
.case-logo .client img.cl-badge { max-height: 110px; }
/* overflow guards */
.split-a, .split-b, .cards > *, .clients > *, .vid-grid > * { min-width: 0; }
.frame img, .client img { max-width: 100%; }
.cl-face { flex-wrap: wrap; text-align: center; min-width: 0; }
.client { overflow: hidden; }
@media (max-width: 699px) {
  .client { min-height: 96px; padding: 14px 10px; }
  .client img { max-height: 48px; max-width: 120px; }
  .client img.cl-white { max-height: 34px; }
  .client img.cl-badge { max-height: 64px; }
  .cl-name { font-size: 16px; }
}
.gd iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.client img.cl-mono { filter: brightness(0) invert(.92); max-height: 84px; }

/* contact: on phones the form comes before the explainer */
@media (max-width: 899px) { .form-first { display: flex; flex-direction: column; } .form-first .split-a { display: contents; } .form-first .c-top { order: 1; } .form-first .split-b { order: 2; } .form-first .c-rest { order: 3; } }

.results-src { margin-top: 14px; font-size: 13px; }

.menu-call { display: inline-block; font-size: 18px; color: var(--text); margin-bottom: 8px; }

/* ---------- atmosphere (js/fx.js) */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.fx-haze { position: absolute; border-radius: 50%; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(236, 232, 225, .5) 0%, rgba(236, 232, 225, .2) 40%, rgba(236, 232, 225, 0) 70%);
  filter: blur(6px); }
.fx-bat { position: absolute; left: 0; top: 0; width: 58px; height: 28px; margin: -14px 0 0 -29px; will-change: transform, opacity; }
.fx-bat svg { display: block; width: 100%; height: 100%; fill: #0b0b0a; transform-origin: 50% 45%;
  filter: drop-shadow(0 0 1px rgba(209, 164, 106, .9)) drop-shadow(0 0 7px rgba(209, 164, 106, .45));
  animation: fx-flap .14s ease-in-out infinite alternate; }
@keyframes fx-flap { from { transform: scaleY(1); } to { transform: scaleY(.45) translateY(8%); } }
@media (prefers-reduced-motion: reduce) { .fx-layer { display: none; } }

/* ---------- fog (js/fx.js adds the layers; the texture is generated noise, no image files) */
:root { --fog: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1800' height='700' viewBox='0 0 1800 700' preserveAspectRatio='none'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0032 0.0085' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.93 0 0 0 0 0.91 0 0 0 0 0.88 1.5 0 0 0 -0.5'/%3E%3C/filter%3E%3Crect width='1800' height='700' filter='url%28%23f%29'/%3E%3C/svg%3E"); }
.fx-fog { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fx-fog i { position: absolute; left: -50%; width: 200%; bottom: -12%; height: 62%; background: var(--fog) center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent); mask-image: linear-gradient(to top, #000 35%, transparent);
  opacity: .3; will-change: transform; animation: fog-drift 70s ease-in-out infinite alternate; }
.fx-fog i + i { bottom: -22%; height: 48%; opacity: .2; transform: scaleX(-1); animation-duration: 95s; animation-name: fog-drift-b; }
.cta-band .fx-fog i { opacity: .26; }
.cta-band .fx-fog i + i { opacity: .16; }
@keyframes fog-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(14%, -3%, 0); } }
@keyframes fog-drift-b { from { transform: scaleX(-1) translate3d(0, 0, 0); } to { transform: scaleX(-1) translate3d(14%, 2%, 0); } }
/* the first page of a visit: fog over the whole hero that lifts as the page settles */
.fx-fog b { position: absolute; inset: -15%; background: var(--fog) center / cover no-repeat; opacity: 0;
  animation: fog-lift 2.8s cubic-bezier(.3, .1, .3, 1) both; }
@keyframes fog-lift { from { opacity: .6; transform: scale(1.05); } to { opacity: 0; transform: scale(1.3) translate3d(0, -6%, 0); } }
/* work cards: a little fog rolls in on hover */
.card .frame::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: -30%; height: 75%; pointer-events: none;
  background: var(--fog) center / cover no-repeat; -webkit-mask-image: linear-gradient(to top, #000 30%, transparent); mask-image: linear-gradient(to top, #000 30%, transparent);
  opacity: 0; transform: translate3d(-8%, 18%, 0); transition: opacity 1.1s var(--ease), transform 1.6s var(--ease); }
.card a:hover .frame::after, .card a:focus-visible .frame::after { opacity: .4; transform: translate3d(0, 0, 0); }
@media (prefers-reduced-motion: reduce) { .fx-fog i { animation: none; } .fx-fog b { display: none; } .card .frame::after { transition: none; } }

/* thin script logos need more height to read */
.client img[src*="asc-logo"] { max-height: 86px; max-width: 170px; }
.frame-wide { margin-top: 28px; }
