/* Vantage Studio — site styles.
   Tokens mirror the Vantage Studio Design System (Claude Design): tokens/colors,
   typography, spacing, effects, motion, base. Components below are built on them. */

/* General Sans — self-hosted (Indian Type Foundry, ITF Free Font License:
   /fonts/GeneralSans-LICENSE.txt). Only the weights the site uses. */
@font-face { font-family: "General Sans"; src: url("/fonts/GeneralSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/GeneralSans-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Navy / slate — ink family */
  --vs-navy-900: #0B1120;
  --vs-navy-800: #131A2C;
  --vs-navy-700: #1F2840;
  --vs-navy-500: #3A4052;
  --vs-slate-400: #5B6072;
  --vs-slate-300: #8A8F9E;
  --vs-slate-200: #B5BAC8;
  /* Paper — grounds */
  --vs-white: #FFFFFF;
  --vs-paper: #F7F6F3;
  --vs-paper-2: #EFEDE8;
  --vs-line: #DCDAD4;
  --vs-line-strong: #C8C5BD;
  /* Rust — accent */
  --vs-rust-700: #962F0D;
  --vs-rust-600: #B83B12;
  --vs-rust-400: #E8683C;
  --vs-rust-100: #F6E3DA;

  --text-1: var(--vs-navy-800);
  --text-2: var(--vs-navy-500);
  --text-3: var(--vs-slate-400);
  --text-inverse: var(--vs-paper);
  --text-inverse-2: var(--vs-slate-200);
  --text-accent: var(--vs-rust-600);
  --surface-page: var(--vs-paper);
  --surface-card: var(--vs-white);
  --surface-sunken: var(--vs-paper-2);
  --surface-inverse: var(--vs-navy-800);
  --border-hairline: var(--vs-line);
  --border-strong: var(--vs-navy-800);
  --border-on-dark: rgba(247, 246, 243, 0.2);
  --accent: var(--vs-rust-600);
  --accent-hover: var(--vs-rust-700);
  --accent-on-dark: var(--vs-rust-400);
  --focus-ring: var(--vs-rust-600);
  --success: #2F6B4A;
  --danger: #A3211A;

  --font-display: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --fs-display-xl: clamp(48px, 7.5vw, 104px);
  --fs-display-l: clamp(40px, 5.5vw, 72px);
  --fs-h1: clamp(32px, 4vw, 48px);
  --fs-h2: clamp(26px, 3vw, 36px);
  --fs-h3: 24px;
  --fs-h4: 19px;
  --fs-body-l: 18px;
  --fs-body: 16px;
  --fs-body-s: 14px;
  --fs-label: 12px;
  --fs-micro: 11px;
  --lh-display: 0.95;
  --lh-heading: 1.1;
  --lh-body: 1.6;
  --lh-label: 1.3;
  --ls-display: -0.035em;
  --ls-heading: -0.02em;
  --ls-button: 0.06em;
  --ls-label: 0.12em;
  --ls-stacked: 0.34em;

  --section-gap: clamp(64px, 9vw, 112px);
  --page-max: 1240px;
  --page-pad: clamp(20px, 5vw, 64px);

  --ease-snap: cubic-bezier(0.6, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 450ms;
}

/* Base */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface-page); color: var(--text-1); font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
a { color: var(--text-1); text-decoration: none; transition: color var(--dur-base) var(--ease-snap); }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 600; }
.disp { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
.page { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo:hover { color: inherit; }
.vs-mark { display: block; flex-shrink: 0; overflow: visible; }
.wordmark { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: var(--ls-display); color: var(--text-1); white-space: nowrap; }
.wordmark span { font-weight: 400; color: var(--text-3); }
.logo-stacked { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-stacked .wordmark { font-size: 20px; line-height: 1; }
.logo-stacked .studio { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--ls-stacked); color: var(--text-3); margin-right: calc(-1 * var(--ls-stacked)); }

/* Motion — logo intro once per session, loop in the CTA band */
@keyframes vs-snap-in { from { transform: scale(1.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes vs-draw-in { from { stroke-dashoffset: 42; } to { stroke-dashoffset: 0; } }
@keyframes vs-snap-loop { 0% { transform: scale(1.6); opacity: 0; } 22%, 86% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes vs-draw-loop { 0%, 20% { stroke-dashoffset: 42; } 50%, 86% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 42; } }
.vs-frame { transform-box: view-box; transform-origin: 24px 24px; }
.vs-intro .vs-frame { animation: vs-snap-in 600ms var(--ease-snap) both; }
.vs-intro .vs-v { animation: vs-draw-in 650ms 450ms var(--ease-snap) both; }
.vs-loop .vs-frame { animation: vs-snap-loop 3.6s var(--ease-snap) infinite; }
.vs-loop .vs-v { animation: vs-draw-loop 3.6s var(--ease-snap) infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* Header nav */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; flex-wrap: wrap; gap: 16px; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; }
.nav a { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-2); padding-bottom: 4px; }
.nav a[aria-current="page"] { color: var(--text-1); box-shadow: inset 0 -2px 0 var(--accent); }
.nav a.nav-cta { color: var(--accent); }
.nav a:hover { color: var(--accent); }

/* Eyebrow — mono label, optional rust index */
/* Eyebrow text is written in caps in the source, so "iOS" keeps its lowercase i. */
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); line-height: var(--lh-label); color: var(--text-3); }
.eyebrow .idx { color: var(--text-accent); margin-right: 0.3em; }
.eyebrow-accent { color: var(--text-accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: var(--ls-button); text-transform: uppercase; line-height: 1; border: 1px solid transparent; border-radius: 0; box-sizing: border-box; cursor: pointer; transition: background var(--dur-base) var(--ease-snap), color var(--dur-base) var(--ease-snap); }
.btn-lg { padding: 18px 34px; font-size: 14px; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-secondary { background: transparent; color: var(--text-1); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--text-1); color: var(--text-inverse); }
.btn-ghost { padding: 4px 0; box-shadow: inset 0 -1px 0 currentColor; }
.btn .arr { display: inline-flex; transition: transform var(--dur-base) var(--ease-snap); }
.btn:hover .arr, a:hover .arr { transform: translateX(3px); }
a:hover .btn-ghost { color: var(--accent); }
.arr { display: inline-block; transition: transform var(--dur-base) var(--ease-snap); }

/* Tag */
.tag { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; box-sizing: border-box; font-family: var(--font-body); font-size: var(--fs-body-s); font-weight: 500; background: var(--surface-card); color: var(--text-1); border: 1px solid var(--border-hairline); }

/* Card */
.card { background: var(--surface-card); border: 1px solid var(--border-hairline); padding: 28px; display: flex; flex-direction: column; }
.card-inverse { background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--text-inverse); }

/* Viewfinder — four 2px corner marks framing imagery */
.vf { position: relative; }
.vf::after { content: ""; position: absolute; inset: -10px; pointer-events: none;
  --c: var(--text-1); --a: 16px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--a) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--a),
    linear-gradient(var(--c), var(--c)) top right / var(--a) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--a),
    linear-gradient(var(--c), var(--c)) bottom right / var(--a) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--a),
    linear-gradient(var(--c), var(--c)) bottom left / var(--a) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--a);
  background-repeat: no-repeat; }
.vf-hover::after { opacity: 0; transform: scale(1.04); transition: opacity var(--dur-slow) var(--ease-snap), transform var(--dur-slow) var(--ease-snap); }
.vf-hover:hover::after, .vf-hover:focus-visible::after { opacity: 1; transform: none; }

/* Stage — phone screenshots staged on the app's ground colour. Screens are
   tall, frames are wide, so the row bleeds off the bottom edge (the
   metconrx.app phone-trio pattern). Sizes are in container units so the
   composition holds at every width. Rounded corners follow the phone's
   display shape; they belong to the product, not to studio chrome. */
.stage { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; display: flex; justify-content: center; gap: 3cqw; }
.ph { flex: none; align-self: flex-start; width: 28cqw; margin-top: 13cqw; border-radius: 14% / 6.45%; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.ph img { display: block; width: 100%; height: auto; }
.ph-main { width: 38cqw; margin-top: 7cqw; }
.stage-light .ph { box-shadow: 0 0 0 1px rgba(19, 26, 44, 0.14); }
.stage-wide { gap: 2.5cqw; }
.stage-wide .ph { width: 16cqw; margin-top: 12cqw; }
.stage-wide .ph-mid { width: 19cqw; margin-top: 8cqw; }
.stage-wide .ph-main { width: 23cqw; margin-top: 4.5cqw; }
.screen { border-radius: 14% / 6.45%; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.screen img { display: block; width: 100%; height: auto; }

/* Web stage — a browser window with the desktop site, the phone view
   overlapping bottom-right; both bleed off the bottom edge. */
.stage-web { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; }
.browser { position: absolute; left: 6cqw; top: 7cqw; width: 76cqw; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(19, 26, 44, 0.14); }
.browser-bar { display: flex; align-items: center; gap: 0.8cqw; height: 3cqw; padding-left: 1.6cqw; background: var(--vs-paper-2); border-bottom: 1px solid var(--border-hairline); }
.browser-bar span { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: var(--vs-line-strong); }
.browser img { display: block; width: 100%; height: auto; }
.stage-web .ph { position: absolute; right: 7cqw; top: 25cqw; width: 22cqw; margin: 0; box-shadow: 0 0 0 0.7cqw var(--vs-navy-800); } /* solid ink bezel reads over both the browser and the ground */

/* CTA band — full-bleed ink */
.cta-band { background: var(--surface-inverse); color: var(--text-inverse); padding: clamp(56px, 8vw, 96px) var(--page-pad); margin-top: var(--section-gap); }
.cta-inner { max-width: var(--page-max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; align-items: end; }
.cta-head { display: flex; flex-direction: column; gap: 18px; }
.cta-head h2 { margin: 0; font-family: var(--font-display); font-size: var(--fs-display-l); font-weight: 600; letter-spacing: var(--ls-display); line-height: 1; text-wrap: pretty; }
.cta-body { display: flex; flex-direction: column; gap: 22px; align-items: flex-end; text-align: right; }
@media (max-width: 700px) { .cta-body { align-items: flex-start; text-align: left; } }
.cta-body p { margin: 0; font-size: var(--fs-body-l); color: var(--text-inverse-2); }

/* Footer */
.site-footer { padding: 40px 0 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; }
.footer-meta a { color: var(--text-3); }
.footer-meta a:hover { color: var(--accent); }
@media (max-width: 640px) { .footer-meta { align-items: flex-start; text-align: left; } }

/* Row lists (home offers, contact steps) */
.offer { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.6fr) 130px; gap: 12px 32px; align-items: baseline; }
.offer .price { text-align: right; }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.8fr); gap: 8px 28px; align-items: baseline; }
@media (max-width: 720px) {
  .offer { grid-template-columns: 36px 1fr; }
  .offer p, .offer .price { grid-column: 2; text-align: left; }
}
@media (max-width: 640px) {
  .step { grid-template-columns: 36px 1fr; }
  .step p { grid-column: 2; }
  .wide { grid-column: auto !important; }
}

/* Contact form — Input / Select / Tag specs from the design system */
.contact-grid { padding: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-3); padding: 0; }
.field > legend { margin-bottom: 8px; }
.optional { text-transform: none; letter-spacing: 0; }
.input { width: 100%; box-sizing: border-box; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--text-1); background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: 0; padding: 13px 16px; outline: none; transition: border-color var(--dur-base) var(--ease-snap), box-shadow var(--dur-base) var(--ease-snap); }
.input::placeholder { color: var(--vs-slate-300); }
.input:focus { border-color: var(--border-strong); box-shadow: inset 0 -2px 0 var(--accent); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 -2px 0 var(--danger); }
textarea.input { resize: vertical; min-height: 140px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 19px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--text-1); border-bottom: 1.5px solid var(--text-1); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choices .tag { cursor: pointer; user-select: none; transition: background var(--dur-base) var(--ease-snap), color var(--dur-base) var(--ease-snap), border-color var(--dur-base) var(--ease-snap); }
.choices .tag:hover { border-color: var(--border-strong); }
.choices input:checked + .tag { background: var(--text-1); color: var(--text-inverse); border-color: var(--border-strong); }
.choices input:focus-visible + .tag { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.choices input[aria-invalid="true"] + .tag { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.form-status { margin: 0; font-size: var(--fs-body-s); color: var(--text-3); }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }
.contact-aside { display: flex; flex-direction: column; gap: 40px; }
.next-steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--border-strong); }
.next-step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border-hairline); }
.next-step:last-child { border-bottom-color: var(--border-strong); }
.next-step .idx { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 2px; }
.next-title { font-size: var(--fs-h4); font-weight: 600; margin-bottom: 4px; }
.next-step p { margin: 0; font-size: var(--fs-body-s); line-height: 1.6; color: var(--text-2); }

/* Privacy policy */
.policy h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: var(--ls-heading); margin: 40px 0 12px; }
.policy p, .policy li { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-2); }
.policy p { margin: 0 0 14px; }
.policy ul { margin: 0 0 14px; padding-left: 20px; }
.policy li { margin-bottom: 6px; }
.policy strong { color: var(--text-1); font-weight: 600; }
.policy a { box-shadow: inset 0 -1px 0 var(--accent); }

/* FAQ — native <details>; ink rule opens the list, hairlines between, ink closes */
.faq-list { border-top: 2px solid var(--border-strong); }
.faq { border-bottom: 1px solid var(--border-hairline); }
.faq:last-child { border-bottom-color: var(--border-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; letter-spacing: var(--ls-heading); line-height: 1.35; transition: color var(--dur-base) var(--ease-snap); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform var(--dur-slow) var(--ease-snap); }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0deg); }
.faq p { margin: 0; padding: 0 48px 22px 0; font-size: 15px; line-height: 1.65; color: var(--text-2); animation: faq-in var(--dur-slow) var(--ease-snap); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* Home hero — three-line headline on the left, intro and actions to its
   right; stacks below 861px. Widest line ("Built to work.") is ~5.76em, so
   8vw keeps it inside the 1.35fr column at every width. */
.hero { padding: clamp(40px, 7vw, 90px) 0 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-title { margin: 0; font-size: clamp(44px, 8vw, 112px); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.hero-title span { display: block; white-space: nowrap; }
.hero-body p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; margin: 0 0 24px; color: var(--text-2); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-title { font-size: clamp(44px, 14vw, 88px); } }

/* Home — selected work as a 2x2 card grid (a teaser for /work) */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 720px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }
.work-card { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-hairline); color: inherit; }
.work-card:hover { color: inherit; }
.work-card.vf-hover::after { inset: -9px; --a: 14px; }
.work-card-media { position: relative; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--border-hairline); overflow: hidden; }
.work-card-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-card-body h3 { margin: 0; font-size: var(--fs-h3); letter-spacing: var(--ls-heading); line-height: 1.15; }
.work-card-body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.work-card-cta { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: var(--ls-button); text-transform: uppercase; transition: color var(--dur-base) var(--ease-snap); }
a.work-card:hover .work-card-cta { color: var(--accent); }

/* Work — full index, image side alternates */
.work-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.work-media { order: -1; }
.work-row.flip .work-media { order: 2; }
@media (max-width: 860px) { .work-row { grid-template-columns: minmax(0, 1fr); } .work-row.flip .work-media { order: -1; } }

/* Home — two featured projects, larger than the index cards */
.work-grid-featured { gap: clamp(20px, 3vw, 48px); }
.work-grid-featured .work-card-media { aspect-ratio: 5 / 4; }
.work-grid-featured .work-card-body { padding: clamp(24px, 3vw, 36px); gap: 14px; }
.work-grid-featured .work-card-body h3 { font-size: var(--fs-h2); }
.work-grid-featured .work-card-body p { font-size: 16px; line-height: 1.65; }

