/* Vault00 Design — shared styles */
:root {
  --ink: #0e0e0e;
  --ink-2: #1a1a1a;
  --paper: #f3f2ee;
  --paper-2: #e8e6df;
  --line: #d4d1c8;
  --muted: #5d5b56;
  --accent: #ff4f1f;   /* vermilion — doodles, highlights */
  --cobalt: #2340ff;
  --lemon: #e6ef3a;
  --stone: #d9d2c3;
  --gutter: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Type ---------- */
.d {
  font-family: 'Archivo', sans-serif;
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.004em;
}
.i { font-style: italic; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; text-transform: none; letter-spacing: 0; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; max-width: 34em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.logo {
  font-family: 'Archivo', sans-serif; font-stretch: 62%; font-weight: 900;
  font-size: 30px; line-height: 1; letter-spacing: -.01em; text-transform: uppercase;
  color: var(--ink); transition: color .2s;
}
.site-header.on-dark .logo { color: var(--paper); }
.logo .i { margin-left: .02em; }
.nav-pill {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 5px;
  background: var(--paper); border: 1px solid var(--line);
}
.nav-pill a {
  position: relative; display: block; padding: 9px 16px;
  font-stretch: 62%; font-weight: 800; font-size: 16px; letter-spacing: .02em; text-transform: uppercase;
}
.nav-pill a[aria-current="page"] .squiggle { opacity: 1; }
.squiggle {
  position: absolute; left: 12px; right: 12px; bottom: 2px; height: 8px;
  opacity: 0; pointer-events: none; overflow: visible;
}
.squiggle path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--paper); border: 1px solid var(--line);
  font-stretch: 62%; font-weight: 800; font-size: 16px; letter-spacing: .02em; text-transform: uppercase;
}
.header-cta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.menu-btn { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 90px var(--gutter) 40px;
  transform: translateY(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s;
}
.mobile-menu.open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.mobile-menu a { font-size: 19vw; }
.mobile-menu a[aria-current="page"] { color: var(--accent); font-style: italic; }
.mobile-menu .close { position: absolute; top: 18px; right: var(--gutter); font-stretch: 62%; font-weight: 800; font-size: 18px; text-transform: uppercase; color: var(--paper); }
.mobile-menu .mm-foot { margin-top: 30px; font-size: 16px; color: #aaa; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 26px;
  background: var(--ink); color: var(--paper);
  font-stretch: 62%; font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(18px, 1.5vw, 23px); line-height: 1;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { background: var(--accent); color: #fff; }
.btn.outline { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn.outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Big label chip (the "Specialisms" button, made readable) */
.chip {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 24px; border: 2px solid var(--ink);
  font-stretch: 62%; font-weight: 900; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(20px, 2.1vw, 30px); line-height: 1;
  background: var(--paper);
}
.chip .dot { width: .38em; height: .38em; border-radius: 50%; background: var(--accent); }
.chip.sm { font-size: clamp(16px, 1.3vw, 19px); padding: 10px 16px; border-width: 1.5px; }
.chip.on-dark { background: transparent; border-color: var(--paper); color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--gutter) 90px;
}
.hero-title { width: 100%; }
.hero-title .row { display: flex; align-items: center; gap: .16em; white-space: nowrap; width: max-content; margin-inline: auto; }
.hero-title .row + .row { margin-top: .02em; }
.hero-title .row.indent { padding-left: .35em; }
.hero-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  font-size: clamp(15px, 1.2vw, 18px);
}
.scroll-btn {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  border: 1.5px solid rgba(243, 242, 238, .5); transition: background .2s, border-color .2s;
}
.scroll-btn:hover { background: var(--accent); border-color: var(--accent); }
.scroll-btn svg { width: 18px; height: 18px; }

/* The inline media slot inside the hero headline */
.slot {
  position: relative; display: inline-block; flex: none;
  width: 1.12em; height: .8em; overflow: hidden; background: var(--ink-2);
  transform: translateY(-.01em);
}
.slot > [data-tile] { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(100% 0 0 0); transition: clip-path .5s var(--ease); }
.slot > [data-tile].on { clip-path: inset(0 0 0 0); z-index: 2; }
.slot > [data-tile].was { clip-path: inset(0 0 0 0); z-index: 1; transition: none; }

/* ---------- Tiles (little inline "images") ---------- */
[data-tile] { display: inline-block; overflow: hidden; background: var(--ink-2); }
[data-tile="web"] { background: #141414; }
[data-tile="reels"] { background: var(--accent); }
[data-tile="ads"] { background: var(--cobalt); }
[data-tile="brand"] { background: var(--lemon); }
[data-tile="auto"] { background: var(--stone); }
[data-tile="social"] { background: #141414; }
[data-tile] svg { width: 100%; height: 100%; }

/* ---------- Specialisms ---------- */
.section { padding: clamp(80px, 11vw, 160px) var(--gutter); }
.specialisms { text-align: center; }
.specialisms .chip-wrap { position: relative; display: inline-block; margin-bottom: clamp(28px, 4vw, 56px); }
.doodle-arrow { position: absolute; left: calc(100% + 14px); top: 20%; width: clamp(70px, 8vw, 120px); overflow: visible; }
.doodle-arrow path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spec-list { list-style: none; font-size: clamp(58px, 11.4vw, 205px); }
.spec-list li { display: flex; justify-content: center; }
.spec-list li + li { margin-top: .045em; }
.spec-link { display: inline-flex; align-items: center; gap: .1em; position: relative; }
.spec-link .word { display: inline-block; transition: transform .35s var(--ease), color .2s; transform-origin: 50% 80%; }
.spec-link [data-tile] { width: .9em; height: .9em; flex: none; transition: transform .35s var(--ease); }
.spec-link:hover .word { transform: skewX(-11deg); color: var(--accent); }
.spec-link:hover [data-tile] { transform: rotate(-4deg) scale(1.06); }
.spec-copy { margin: clamp(36px, 4vw, 60px) auto 30px; max-width: 30em; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.5; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); border-top: 1px solid var(--line); padding-top: var(--gutter); }
.split-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: min(80vh, 760px); }
.split-copy h2 { font-size: clamp(44px, 5.4vw, 92px); }
.split-copy p { margin-top: 22px; }
.collage { position: relative; background: var(--ink); min-height: min(80vh, 760px); overflow: hidden; }
.collage .c-browser { position: absolute; left: 8%; top: 12%; width: 70%; background: var(--paper); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.c-bar { height: 26px; background: var(--paper-2); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.c-bar i { width: 8px; height: 8px; border-radius: 50%; background: #bbb; }
.c-bar i:first-child { background: var(--accent); }
.c-body { padding: 8% 7%; }
.c-body .c-h { font-size: clamp(30px, 3.8vw, 64px); }
.c-body .c-lines { margin-top: 18px; display: grid; gap: 7px; }
.c-body .c-lines span { height: 7px; background: #cfccc3; }
.c-body .c-lines span:nth-child(2) { width: 80%; }
.c-body .c-lines span:nth-child(3) { width: 60%; }
.c-body .c-btn { display: inline-block; margin-top: 18px; padding: 10px 16px; background: var(--accent); color: #fff; font-stretch: 62%; font-weight: 900; font-size: 14px; text-transform: uppercase; }
.collage .c-phone { position: absolute; right: 8%; bottom: 9%; width: 30%; aspect-ratio: 9 / 18; background: #000; border: 6px solid #000; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transform: rotate(4deg); }
.c-phone [data-tile] { width: 100%; height: 100%; }
.collage .c-stat { position: absolute; left: 12%; bottom: 10%; width: 42%; background: var(--lemon); color: var(--ink); padding: 16px 18px; transform: rotate(-3deg); }
.c-stat .c-k { font-stretch: 62%; font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.c-stat svg { margin-top: 10px; width: 100%; height: auto; }

/* ---------- Statement ---------- */
.statement { background: var(--ink); color: var(--paper); }
.statement h2 { font-size: clamp(56px, 11vw, 210px); max-width: 10em; }
.statement h2 .dim { color: #6d6b66; }
.circled { position: relative; display: inline-block; }
.circled > svg { position: absolute; left: -12%; top: -18%; width: 124%; height: 136%; overflow: visible; pointer-events: none; }
.circled > svg path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.circled.drawn > svg path { transition: stroke-dashoffset .9s var(--ease) .15s; stroke-dashoffset: 0; }
.statement-foot { margin-top: clamp(40px, 5vw, 70px); display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.statement-foot p { color: #b9b6ae; }

/* ---------- Work ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 56px); }
.section-head h2 { font-size: clamp(54px, 8vw, 150px); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.card { display: block; position: relative; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.card-media > * { transition: transform .6s var(--ease); }
.card:hover .card-media > * { transform: scale(1.04); }
.card h3 { margin-top: 16px; font-size: clamp(30px, 2.8vw, 48px); }
.card p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.card .tag { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* Card art (coded compositions — swap for real project shots) */
.art { position: absolute; inset: 0; display: grid; place-items: center; }
.art-washx { background: var(--cobalt); }
.art-washx .big { font-size: clamp(80px, 11vw, 190px); color: var(--paper); transform: rotate(-6deg); }
.art-washx .strip { position: absolute; left: -10%; right: -10%; bottom: 14%; background: var(--lemon); color: var(--ink); padding: 10px 0; white-space: nowrap; font-size: 22px; transform: rotate(-6deg); overflow: hidden; }
.art-washx .strip span { display: inline-block; animation: marquee 12s linear infinite; }
.art-meta { background: #0f2a22; }
.art-meta .frame { width: 70%; aspect-ratio: 3 / 4; border: 1px solid rgba(243, 242, 238, .3); display: flex; flex-direction: column; justify-content: space-between; padding: 8%; color: var(--paper); }
.art-meta .frame .serif { font-size: clamp(34px, 3.6vw, 60px); line-height: 1; font-style: italic; }
.art-meta .frame small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #c7d6cc; }
.art-next { background: var(--paper-2); color: var(--ink); border: 2px dashed var(--line); }
.art-next .big { font-size: clamp(60px, 7vw, 120px); text-align: center; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(80px, 20vw, 380px); line-height: .8; }
.cta h2 .row { display: block; }
.cta p { margin: 30px auto; max-width: 30em; }
.cta .actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.mail-link { font-stretch: 62%; font-weight: 900; font-size: clamp(22px, 2.4vw, 36px); text-transform: uppercase; border-bottom: 2px solid var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(60px, 7vw, 100px) var(--gutter) 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); }
.foot-grid h4 { font-stretch: 62%; font-weight: 900; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: #8a877f; margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 6px; }
.foot-grid a:hover { color: var(--accent); }
.foot-logo { display: inline-block; font-size: clamp(80px, 9vw, 180px); line-height: .8; }
.foot-base { margin-top: 60px; padding-top: 20px; border-top: 1px solid #2c2c2a; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: #8a877f; }

/* ---------- Page heroes (inner pages) ---------- */
.page-hero { padding: 150px var(--gutter) clamp(50px, 6vw, 90px); }
.page-hero .eyebrow { font-size: clamp(22px, 2vw, 30px); margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(80px, 17vw, 330px); line-height: .8; }
.page-hero h1 .row { display: block; width: max-content; white-space: nowrap; }
.site-footer { border-top: 1px solid #2c2c2a; }
.page-hero .lead { margin-top: 28px; }

/* Services rows */
.svc { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 90px 1.3fr 1fr; gap: var(--gutter); padding: clamp(28px, 3.5vw, 50px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc-num { font-family: 'Instrument Serif', serif; font-size: 28px; font-style: italic; color: var(--muted); }
.svc-name { display: flex; align-items: center; gap: .14em; font-size: clamp(56px, 7.4vw, 136px); }
.svc-name [data-tile] { width: .8em; height: .8em; flex: none; }
.svc-body p { font-size: clamp(17px, 1.3vw, 20px); }
.svc-body ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-body li { font-stretch: 62%; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; padding: 7px 12px; border: 1.5px solid var(--ink); }

/* Work page */
.work-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--gutter) * 1.5) var(--gutter); }
.work-list .card-media { aspect-ratio: 5 / 4; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: calc(var(--gutter) * 2); }
.form { display: grid; gap: 22px; }
.field label, .field legend { display: block; font-stretch: 62%; font-weight: 900; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 19px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px solid var(--ink); padding: 10px 0; border-radius: 0; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
fieldset.field { border: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { margin: 0; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--ink); font-stretch: 62%; font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; transition: background .15s, color .15s; }
.pills input:checked + span { background: var(--ink); color: var(--paper); }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Reveal on scroll (fast — no scroll hijacking) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js [data-reveal="left"] { transform: translateX(-5vw); }
.js [data-reveal="right"] { transform: translateX(5vw); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Click doodle ---------- */
.doodle-mark { position: fixed; z-index: 90; pointer-events: none; overflow: visible; }
.doodle-mark path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: doodle-draw .38s var(--ease) forwards; }
.doodle-mark.fade { transition: opacity .35s; opacity: 0; }
@keyframes doodle-draw { to { stroke-dashoffset: 0; } }

/* ---------- Page transition (scribble fills screen, then clears) ---------- */
.pt { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; }
.pt svg { width: 100%; height: 100%; }
.pt path { fill: none; stroke: var(--accent); stroke-width: 38; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.pt-label { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: clamp(70px, 14vw, 240px); opacity: 0; transition: opacity .18s; }
.pt.cover { visibility: visible; pointer-events: auto; }
.pt.cover path { animation: pt-in .5s cubic-bezier(.65, 0, .35, 1) forwards; }
.pt.cover .pt-label { opacity: 1; transition-delay: .36s; }
html.pt-arrive .pt { visibility: visible; }
html.pt-arrive .pt path { stroke-dashoffset: 0; }
html.pt-arrive .pt .pt-label { opacity: 1; }
.pt.reveal path { animation: pt-out .5s cubic-bezier(.65, 0, .35, 1) forwards; }
.pt.reveal .pt-label { opacity: 0; transition-delay: 0s; }
@keyframes pt-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pt-out { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid .card:last-child { grid-column: span 2; }
  .work-grid .card:last-child .card-media { aspect-ratio: 16 / 9; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-pill, .header-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; background: var(--paper); border: 1px solid var(--line); font-stretch: 62%; font-weight: 900; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; }
  .logo { font-size: 26px; }
  .hero { justify-content: flex-end; padding-bottom: 120px; }
  .hero-title { font-size: 19vw !important; }
  .hero-title .row { flex-wrap: wrap; justify-content: flex-start; white-space: normal; gap: 0 .16em; width: auto; margin: 0; }
  .hero-title .row.indent { padding-left: 0; }
  .hero-foot p { max-width: 14em; }
  .doodle-arrow { display: none; }
  .spec-list { font-size: 12.5vw; }
  .split { grid-template-columns: 1fr; }
  .split-copy, .collage { min-height: 0; }
  .collage { aspect-ratio: 4 / 5; }
  .work-grid, .work-list { grid-template-columns: 1fr; }
  .work-grid .card:last-child { grid-column: auto; }
  .work-grid .card:last-child .card-media { aspect-ratio: 4 / 5; }
  .svc-row { grid-template-columns: 1fr; gap: 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
