/* Roughdraft Studio — editorial system. Fraunces display + Inter, warm champagne palette. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --ink: #17150f;
  --ink-soft: #3a362c;
  --paper: #f4efe6;
  --paper-2: #ece4d6;
  --card: #fbf8f2;
  --moss: #232b21;
  --moss-2: #2c352a;
  --brass: #b98a3e;
  --accent: #c9a25b;
  --muted: #7c7568;
  --line: rgba(23, 21, 15, .13);
  --line-soft: rgba(23, 21, 15, .08);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --shadow-1: 0 1px 2px rgba(23, 21, 15, .05), 0 18px 40px -22px rgba(23, 21, 15, .28);
  --shadow-2: 0 50px 110px -40px rgba(23, 21, 15, .42);
  --edge: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: var(--sans); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* subtle paper grain for tactile, non-flat feel */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 3px; }
.skip-link:focus { top: 16px; }
.shell { width: var(--edge); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; min-height: 74px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px max(24px, calc((100vw - 1240px) / 2));
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: -.01em; font-size: 16px; color: var(--ink); }
.brand-mark {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: var(--ink); color: var(--accent); font-family: var(--display); font-size: 19px; font-weight: 500; line-height: 1;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--sans); font-weight: 500; }
.brand-name small { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 2px; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a:not(.button) { font-size: 14px; color: var(--ink-soft); position: relative; }
.site-header nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-header nav a:not(.button):hover::after { transform: scaleX(1); }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px;
  padding: 15px 26px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #f7f3ea;
  font-weight: 500; font-size: 15px; letter-spacing: .01em; cursor: pointer;
  transition: transform .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
}
.button:hover { transform: translateY(-2px); background: var(--moss); box-shadow: var(--shadow-1); }
.button span[aria-hidden] { transition: transform .22s var(--ease); }
.button:hover span[aria-hidden] { transform: translateX(5px); }
.button-small { min-height: 44px; padding: 10px 20px; font-size: 14px; color: #f7f3ea !important; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button-ghost:hover { background: transparent; border-color: var(--ink); box-shadow: none; }
.button-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button-light:hover { background: #fff; }
.button[disabled] { opacity: .55; cursor: wait; transform: none; }
.text-link {
  font-weight: 500; display: inline-flex; align-items: center; gap: 8px;
  background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }

/* ---------- kicker / eyebrow — numbered mono index (editorial system, not repeated eyebrows) ---------- */
main { counter-reset: sec; }
.eyebrow, .section-kicker {
  margin: 0 0 26px; color: var(--muted); font-family: var(--mono); font-size: 11.5px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 11px;
}
.section-kicker { counter-increment: sec; }
.section-kicker::before {
  content: "(" counter(sec, decimal-leading-zero) ")"; color: var(--brass); letter-spacing: .04em; font-weight: 500;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7b9a6d; box-shadow: 0 0 0 4px rgba(123,154,109,.16); }

/* mono metadata layer — threads craft detail through the whole page */
.deliverables .idx, .standards-grid .idx, .price-block span, .platforms,
.site-footer .col-title, .footer-bottom .shell, .ba .tag, .ba .caption, .ba-cue,
.hero-proof span, .fine-print, .ba-note, .brand-name small {
  font-family: var(--mono);
}
.hero-proof span { letter-spacing: .01em; }
.deliverables .idx, .standards-grid .idx { letter-spacing: .04em; }

/* ---------- typography ---------- */
h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 400; }
p { text-wrap: pretty; }
.display {
  margin: 0; font-size: clamp(44px, 6.6vw, 96px); line-height: .96; letter-spacing: -.03em;
  font-weight: 380; font-optical-sizing: auto;
}
.display em { font-style: italic; font-weight: 340; color: var(--brass); }
h2 { margin: 0; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.025em; font-weight: 400; }
h3 { font-size: 23px; letter-spacing: -.01em; font-weight: 450; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(64px, 9vw, 116px) 0 88px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.hero-copy { max-width: 560px; margin: 30px 0 0; color: var(--ink-soft); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-proof { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.hero-proof span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }

/* ---------- before / after ---------- */
.ba {
  --pos: 50%;
  position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden;
  user-select: none; box-shadow: var(--shadow-2); background: #14120d; touch-action: pan-y;
  border: 1px solid rgba(23,21,15,.2);
}
.ba .ba-layer { position: absolute; inset: 0; margin: 0; }
.ba .ba-layer img { width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba .tag {
  position: absolute; top: 14px; z-index: 3; padding: 6px 13px; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.ba .before .tag { left: 14px; background: rgba(20,18,13,.62); color: #efe7d7; }
.ba .after .tag { right: 14px; background: rgba(201,162,91,.94); color: #201a10; }
.ba .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #f4efe6; z-index: 4; transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.ba .divider::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: #f4efe6; box-shadow: var(--shadow-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2317150f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7 4 11l4 4'/%3E%3Cpath d='m16 7 4 4-4 4'/%3E%3Cpath d='M4 11h16'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; }
.ba input[type="range"]:focus-visible ~ .divider::after { outline: 3px solid rgba(201,162,91,.7); outline-offset: 2px; }
.ba .caption { position: absolute; left: 14px; bottom: 12px; z-index: 3; color: rgba(244,239,230,.85); font-size: 11px; letter-spacing: .01em; max-width: 70%; }
.ba-cue {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 6; pointer-events: none;
  padding: 7px 14px; border-radius: 999px; background: rgba(20,18,13,.72); color: #f4efe6;
  font-size: 11.5px; letter-spacing: .04em; backdrop-filter: blur(6px); white-space: nowrap;
  animation: cueBob 2.2s var(--ease) infinite; transition: opacity .35s var(--ease);
}
.ba-cue::before { content: "⇄"; margin-right: 7px; color: var(--accent); }
.ba.touched .ba-cue { opacity: 0; }
@keyframes cueBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(3px); } }
.ba-note { margin: 14px 2px 0; color: var(--muted); font-size: 12.5px; }

/* ---------- problem statement (breaks the repeated split rhythm) ---------- */
.statement { max-width: 1120px; padding-top: clamp(80px, 11vw, 150px); }
.statement .big {
  font-size: clamp(38px, 5.8vw, 78px); line-height: 1.0; letter-spacing: -.03em; max-width: 15ch; margin: 0;
}
.statement .big em { font-style: italic; color: var(--accent); }
.statement-copy {
  margin: 42px 0 0 auto; max-width: 500px; color: #cdd2c5 !important; font-size: clamp(17px, 1.5vw, 20px);
  padding-left: clamp(0px, 4vw, 60px); border-left: 1px solid rgba(255,255,255,.16);
}

/* ---------- generic section ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.section-head p.lead { max-width: 520px; margin: 12px 0 0; color: var(--muted); font-size: 18px; }

/* ---------- problem band (dark) ---------- */
.band-dark { background: var(--moss); color: #eef1e8; }
.band-dark .section-kicker { color: #a9b39c; }
.band-dark .section-kicker::before { background: var(--accent); }
.split { display: grid; grid-template-columns: minmax(0,.55fr) minmax(0,1.45fr); gap: clamp(28px,5vw,80px); align-items: start; }
.split p { color: #ccd1c4; font-size: 19px; max-width: 640px; }

/* ---------- work gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 12px; box-shadow: var(--shadow-1); aspect-ratio: 4 / 5; }
.gallery .g-hero { grid-column: 1 / -1; aspect-ratio: 24 / 9; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 18px; bottom: 16px; color: #fff; font-size: 12.5px; letter-spacing: .02em;
  text-shadow: 0 1px 12px rgba(0,0,0,.55); z-index: 2;
}
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(0,0,0,.5)); }

/* ---------- standards band ---------- */
.standards-grid { margin-top: 58px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.standards-grid > div { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.standards-grid .idx { font-family: var(--display); color: var(--accent); font-size: 15px; font-weight: 500; }
.standards-grid h3 { margin: 14px 0 8px; color: #f2f4ec; }
.standards-grid p { margin: 0; color: #c2c8ba; font-size: 15px; }
.platforms { margin-top: 50px; text-align: center; color: #a9b39c; font-size: 12.5px; letter-spacing: .1em; }

/* ---------- deliverables index ---------- */
.deliverables { margin-top: 64px; border-top: 1px solid var(--line); }
.deliverables article {
  display: grid; grid-template-columns: 60px minmax(0,1fr) minmax(0,1.3fr); gap: 20px; align-items: baseline;
  padding: 30px 8px; border-bottom: 1px solid var(--line); position: relative; transition: background .3s var(--ease), padding-left .3s var(--ease);
}
.deliverables article:hover { background: color-mix(in srgb, var(--card) 70%, transparent); padding-left: 18px; }
.deliverables .idx { font-family: var(--display); font-size: 15px; color: var(--brass); font-weight: 500; }
.deliverables h3 { margin: 0; }
.deliverables article > p { margin: 0; color: var(--muted); font-size: 15.5px; }
.price-block { display: inline-flex; align-items: baseline; gap: 14px; margin-top: 6px; }
.price-block strong { font-family: var(--display); font-size: 52px; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.price-block span { color: var(--muted); font-size: 13.5px; line-height: 1.45; max-width: 210px; }
.fine-print { max-width: 760px; margin: 30px 0 0; color: var(--muted); font-size: 12.5px; }

/* ---------- process ---------- */
.steps { margin: 60px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 78px 1fr; gap: 26px; padding: 32px 0; border-top: 1px solid rgba(255,255,255,.16); transition: padding-left .3s var(--ease); }
.steps li:hover { padding-left: 12px; }
.steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.steps .num { font-family: var(--display); font-size: 34px; color: var(--accent); line-height: 1; font-weight: 400; }
.steps h3 { margin: 0 0 7px; color: #f2f4ec; }
.steps p { margin: 0; color: #c2c8ba; max-width: 560px; }

/* ---------- honesty ---------- */
.honesty p { color: var(--ink-soft); font-size: 18px; max-width: 640px; }
.honesty .rule { margin-top: 10px; padding: 22px 24px; border-left: 3px solid var(--brass); background: var(--paper-2); border-radius: 0 8px 8px 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- closing (deep charcoal, gold only as accent) ---------- */
.closing { background: var(--ink); color: #f4efe6; }
.closing .section-kicker { color: var(--accent); }
.closing .section-kicker::before { background: var(--accent); }
.closing h2 { max-width: 900px; margin-bottom: 34px; }
.closing .button-light { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.closing .button-light:hover { background: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--moss); color: #cfd4c7; }
.site-footer .shell { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 72px 0 40px; }
.site-footer h4 { margin: 0 0 16px; font-family: var(--display); font-size: 26px; font-weight: 400; color: #f2f4ec; letter-spacing: -.02em; }
.site-footer p { margin: 0; font-size: 14px; max-width: 320px; }
.site-footer .col-title { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #9aa48d; margin: 0 0 14px; }
.site-footer nav { display: flex; flex-direction: column; gap: 11px; }
.site-footer nav a { font-size: 14.5px; color: #d7dccd; width: fit-content; transition: color .2s var(--ease); }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); }
.footer-bottom .shell { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 12.5px; color: #9aa48d; grid-template-columns: none; }

/* ---------- request page ---------- */
.page-hero { padding: clamp(56px,8vw,104px) 0 44px; }
.page-hero h1 { font-family: var(--display); font-weight: 400; }
.page-hero p { max-width: 660px; color: var(--muted); font-size: 19px; margin-top: 12px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,390px); gap: clamp(32px,5vw,72px); padding-bottom: 112px; }
.form-card { padding: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1); transition: box-shadow .4s var(--ease); }
.form-card:hover { box-shadow: var(--shadow-2); }
.field { margin-bottom: 22px; }
.field label, .field legend { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 13px 14px; border: 1px solid #c2beb3; border-radius: 8px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(201,162,91,.18); }
.check-field { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.check-field input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brass); }
.check-field label { font-size: 13.5px; color: var(--ink-soft); }
.check-field a { text-decoration: underline; text-underline-offset: 3px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
#turnstile-widget:empty { display: none; }
.form-status { min-height: 26px; margin: 16px 0 0; font-size: 14px; }
.form-status[data-state="error"] { color: #9d2929; }
.form-status[data-state="success"] { color: #23652b; }
aside .aside-card { padding: 26px 0; border-top: 1px solid var(--line); transition: border-color .25s var(--ease); }
aside .aside-card:first-child { border-top: 0; padding-top: 0; }
aside .aside-card h2 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
aside .aside-card p, aside .aside-card li { color: var(--muted); font-size: 14px; }
aside .aside-card ol { margin: 0; padding-left: 18px; }
.preview-hint { margin-top: 22px; padding: 18px 20px; background: var(--moss); color: #eef1e8; border-radius: 12px; font-size: 14px; }
.preview-hint strong { color: #fff; }

/* ---------- legal / success ---------- */
.legal { max-width: 820px; padding-bottom: 112px; }
.legal h2 { margin: 48px 0 10px; font-family: var(--sans); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.legal h3 { margin: 30px 0 8px; font-family: var(--sans); font-weight: 600; font-size: 18px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal-notice { padding: 16px 18px; border-left: 3px solid var(--brass); background: var(--paper-2); border-radius: 0 8px 8px 0; font-size: 14px; }
.success-card { max-width: 720px; margin: 92px auto 120px; padding: 52px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-align: center; box-shadow: var(--shadow-1); }
.success-card h1 { font-family: var(--display); font-size: clamp(40px,6vw,64px); font-weight: 400; }
.success-card p { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .deliverables article { grid-template-columns: 44px 1fr; }
  .deliverables article > p { grid-column: 2; }
  .standards-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .shell { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header nav a:not(.button) { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-hero { aspect-ratio: 16 / 10; }
  .gallery figure { aspect-ratio: 5 / 4; }
  .standards-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-bottom .shell { flex-direction: column; }
  .site-footer .shell { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .marquee span { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
}
