/* Revemarque — shared styles
   Built from the Claude Design handoff (Home v2 + inner pages).
   Breakpoint: mobile ≤ 767px, desktop ≥ 768px. Desktop comps were 1440 wide, mobile 390. */

:root {
  --cream: #FFF8E8;
  --paper: #FFFDF6;
  --ink: #241E18;
  --ink-soft: #4A4238;
  --mute: #7A7061;
  --red: #E3231D;
  --red-deep: #AD0000;
  --maroon: #6B0B0B;
  --butter: #FBE49B;
  --sky: #D9E8FB;
  --blush: #F6E2DC;
  --sand: #F3ECDA;
  --line: rgba(36,30,24,0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; }
.desktop-only { display: block; }
.mobile-only { display: none; }
@media (max-width: 767px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
}

/* ---------- Pill navigation (desktop) ---------- */
.nav-row { padding: 30px 80px 0; display: flex; justify-content: center; position: relative; z-index: 30; }
.nav { display: flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid rgba(36,30,24,0.09); border-radius: 999px; padding: 7px 10px 7px 7px; box-shadow: 0 10px 26px rgba(36,30,24,0.08); }
.nav .logo { width: 38px; height: 38px; padding: 0; border-radius: 999px; overflow: hidden; display: block; background: var(--butter); flex: none; }
.nav .logo img { width: 100%; height: 100%; object-fit: contain; }
.nav a, .nav .navbtn, .nav .current { display: block; padding: 9px 17px; border-radius: 999px; color: var(--ink-soft); font-family: var(--font-sans); font-size: 16px; background: none; border: 0; cursor: pointer; line-height: 1.5; white-space: nowrap; transition: background 180ms ease, color 180ms ease; }
.nav a:hover, .nav .navbtn:hover, .nav .navbtn[aria-expanded="true"] { background: var(--sand); color: var(--red-deep); }
.nav .current { background: var(--blush); color: var(--red-deep); font-weight: 500; }
.nav .work { position: relative; }
.nav .work.is-current > .navbtn { background: var(--blush); color: var(--red-deep); font-weight: 500; }
.nav .panel { position: absolute; top: 100%; left: 0; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 200ms ease, transform 240ms var(--ease-out); }
.nav .work:hover .panel, .nav .work.open .panel, .nav .work:focus-within .panel { opacity: 1; transform: none; pointer-events: auto; }
.nav .panel a { white-space: nowrap; padding: 10px 20px; background: var(--paper); border: 1.5px solid var(--line); box-shadow: 0 10px 24px rgba(0,0,0,0.14); font-size: 15px; }
.nav .panel a:hover { background: var(--blush); color: var(--red-deep); }

/* Dark variant (Playground) */
.nav-dark .nav { background: rgba(22,19,17,0.82); border-color: rgba(255,248,232,0.14); box-shadow: none; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-dark .nav a, .nav-dark .nav .navbtn { color: #D8D0C4; }
.nav-dark .nav a:hover, .nav-dark .nav .navbtn:hover, .nav-dark .nav .navbtn[aria-expanded="true"] { background: rgba(255,248,232,0.1); color: var(--butter); }
.nav-dark .nav .current { background: var(--red); color: var(--cream); }
.nav-dark .nav .panel a { background: #1C1815; border-color: rgba(255,248,232,0.22); box-shadow: 0 10px 24px rgba(0,0,0,0.5); color: #D8D0C4; }
.nav-dark .nav .panel a:hover { background: var(--red); color: var(--cream); }

/* ---------- Mobile pill bar ---------- */
.mbar-row { display: none; padding: 20px 20px 0; position: relative; z-index: 30; }
.mbar { display: flex; align-items: center; justify-content: space-between; width: 100%; background: var(--paper); border: 1px solid rgba(36,30,24,0.09); border-radius: 999px; padding: 6px 14px 6px 6px; box-shadow: 0 8px 20px rgba(36,30,24,0.07); }
.mbar .left { display: flex; align-items: center; gap: 10px; }
.mbar .logo { width: 34px; height: 34px; border-radius: 999px; overflow: hidden; display: block; background: var(--butter); flex: none; }
.mbar .logo img { width: 100%; height: 100%; object-fit: contain; }
.mbar .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-deep); }
.mbar .burger { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mbar .burger span { width: 20px; height: 2px; background: var(--ink); display: block; }
.nav-dark .mbar { background: rgba(22,19,17,0.85); border-color: rgba(255,248,232,0.14); box-shadow: none; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-dark .mbar .label { color: #FFAFD4; }
.nav-dark .mbar .burger span { background: var(--cream); }
@media (max-width: 767px) {
  .nav-row { display: none; }
  .mbar-row { display: block; }
}

/* ---------- Full-screen mobile menu ---------- */
.menu { position: fixed; inset: 0; z-index: 100; background: var(--sky); display: flex; flex-direction: column; overflow: auto; }
.menu[hidden] { display: none; }
.menu .top { padding: 20px 20px 0; }
.menu .top .mbar .close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; font-family: var(--font-sans); font-size: 22px; line-height: 1; color: var(--ink); }
.menu .links { padding: 38px 28px 0; display: flex; flex-direction: column; }
.menu .links a, .menu .links .here { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px; border-bottom: 1px solid rgba(36,30,24,0.13); font-family: var(--font-sans); font-size: 28px; letter-spacing: -0.015em; min-height: 44px; color: var(--ink); }
.menu .links a:hover { color: var(--red-deep); }
.menu .links a .arrow { font-family: var(--font-mono); font-size: 13px; color: var(--red-deep); }
.menu .links .here { color: var(--red-deep); }
.menu .links .here .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-deep); }
.menu .contact { margin-top: auto; padding: 56px 28px 38px; display: flex; flex-direction: column; gap: 6px; }
.menu .contact .hi { font-family: var(--font-sans); font-size: 24px; letter-spacing: -0.01em; color: var(--ink); }
.menu .contact a { font-family: var(--font-sans); font-size: 16px; color: var(--red-deep); }
.menu .checks { flex: none; height: 24px; margin-top: 0; background-color: var(--sky); background-image: linear-gradient(45deg, rgba(255,255,255,0.6) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.6) 75%), linear-gradient(45deg, rgba(255,255,255,0.6) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.6) 75%); background-size: 18px 18px; background-position: 0 0, 9px 9px; }
body.menu-open { overflow: hidden; }

/* ---------- Scroll reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 760ms var(--ease-out), transform 760ms var(--ease-out); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tape strips & dividers ---------- */
.tape { display: block; height: 36px; background-color: var(--tape-bg, #DCD6EF); background-image: linear-gradient(45deg, var(--tape-fg, #FF6D03) 25%, transparent 25% 75%, var(--tape-fg, #FF6D03) 75%), linear-gradient(45deg, var(--tape-fg, #FF6D03) 25%, transparent 25% 75%, var(--tape-fg, #FF6D03) 75%); background-position: 0 0, 18px 18px; background-size: 36px 36px; }
@media (max-width: 767px) { .tape { height: 24px; background-position: 0 0, 12px 12px; background-size: 24px 24px; } }
.tape-tabs { display: block; height: 34px; background-image: linear-gradient(to right, var(--ink) 0 34px, rgba(36,30,24,0) 34px); background-size: 68px 100%; }
@media (max-width: 767px) { .tape-tabs { height: 22px; background-image: linear-gradient(to right, var(--ink) 0 22px, rgba(36,30,24,0) 22px); background-size: 44px 100%; } }
.dot-row { display: block; height: 42px; background-image: radial-gradient(var(--dot, #6B0B0B) 7px, transparent 7.6px); background-size: 42px 42px; background-position: center; background-repeat: repeat-x; }
@media (max-width: 767px) { .dot-row { height: 28px; background-image: radial-gradient(var(--dot, #6B0B0B) 4.6px, transparent 5.2px); background-size: 28px 28px; } }

/* ---------- 3D chunky button ---------- */
.btn-3d { align-self: center; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.02em; border: 3px solid #D34700; border-radius: 10px; padding: 16px 34px; box-shadow: 0 8px 0 #14120D; transition: transform 200ms var(--ease-out), box-shadow 200ms ease, background 200ms ease; }
.btn-3d:hover { transform: translateY(5px); box-shadow: 0 3px 0 #14120D; background: var(--butter) !important; }
@media (max-width: 767px) { .btn-3d { border-width: 2.5px; border-radius: 8px; padding: 10px 20px; box-shadow: 0 5px 0 #14120D; } .btn-3d:hover { transform: translateY(3px); box-shadow: 0 2px 0 #14120D; } }

/* ---------- Forms ---------- */
.rm-form { display: flex; flex-direction: column; gap: 26px; }
.rm-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.rm-form .field { display: flex; flex-direction: column; gap: 6px; }
.rm-form .lbl { font-family: var(--font-sans); font-weight: 700; font-size: 19px; color: var(--ink); }
.rm-form .hint { font-family: var(--font-body); font-style: italic; font-weight: 600; font-size: 16px; line-height: 1.5; min-height: 24px; color: #F2740B; }
.rm-form .row2 { align-items: start; }
.rm-form .input { margin-top: 6px; height: 54px; padding: 0 16px; border: 1px solid rgba(36,30,24,0.12); border-radius: 6px; background: #F5ECD5; font-family: var(--font-body); font-size: 17px; color: var(--ink); outline: none; width: 100%; }
.rm-form textarea.input { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; }
.rm-form .input:focus { border-color: #FF6D03; background: var(--paper); }
.rm-form .input::placeholder { color: #B6AA92; }
.rm-form .tiles { margin-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rm-form .tile { display: flex; align-items: center; gap: 11px; border-radius: 6px; padding: 15px 17px; font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--ink); cursor: pointer; min-height: 44px; }
.rm-form .tile input, .rm-form .radio input { width: 18px; height: 18px; accent-color: var(--red); flex: none; margin: 0; }
.rm-form .radios { display: flex; gap: 34px; }
.rm-form .radio { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 16px; color: var(--ink); cursor: pointer; min-height: 44px; }
.rm-form .chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.rm-form .chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-family: var(--font-sans); font-weight: 700; font-size: 15px; border: 1.5px solid rgba(36,30,24,0.18); background: transparent; color: var(--ink); }
.rm-form .chip[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: var(--cream); }
.rm-form .submit { align-self: flex-start; height: 62px; padding: 0 42px; border: 0; border-radius: 6px; background: var(--red); color: var(--cream); font-family: var(--font-sans); font-weight: 700; font-size: 19px; cursor: pointer; transition: background 200ms ease, color 200ms ease; }
.rm-form .submit:hover { background: var(--ink); color: var(--butter); }
.rm-form .msg { font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.6; color: var(--red-deep); min-height: 1.6em; }
.rm-form .msg:empty { display: none; }
.rm-form.is-sent .msg { color: var(--ink); font-size: 18px; }
.form-success { margin: 0 auto; max-width: 760px; background: #C7E7CD; border: 2px dashed var(--ink); padding: 58px 48px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; animation: rmFadeUp 620ms var(--ease-out) both; }
.form-success .eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #2C4529; }
.form-success .big { font-family: 'Yeseva One', Georgia, serif; font-size: 42px; line-height: 1.18; color: #1F4A2A; }
.form-success p { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: #2C4529; max-width: 520px; }
.form-success button { margin-top: 8px; border: 1.5px solid #1F4A2A; background: transparent; cursor: pointer; border-radius: 999px; padding: 14px 24px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #1F4A2A; }
.form-success button:hover { background: #1F4A2A; color: #C7E7CD; }
@keyframes rmFadeUp { from { opacity: 0; transform: translateY(26px) } to { opacity: 1; transform: translateY(0) } }
@media (max-width: 767px) {
  .rm-form { gap: 23px; }
  .rm-form .row2 { grid-template-columns: 1fr; gap: 23px; }
  .rm-form .lbl { font-size: 17px; }
  .rm-form .hint { font-size: 14px; min-height: 21px; }
  .rm-form .hint-blank { display: none; }
  .rm-form .input { height: 49px; padding: 0 14px; font-size: 15px; }
  .rm-form textarea.input { padding: 13px 14px; }
  .rm-form .tiles { grid-template-columns: 1fr; gap: 11px; }
  .rm-form .tile { font-size: 14px; padding: 14px 15px; }
  .rm-form .radios { flex-direction: column; gap: 0; }
  .rm-form .radio { font-size: 14px; }
  .rm-form .chip { padding: 0 14px; font-size: 14px; }
  .rm-form .submit { align-self: stretch; height: 56px; font-size: 17px; }
  .form-success { padding: 30px 20px; gap: 12px; }
  .form-success .big { font-size: 24px; }
  .form-success p { font-size: 14px; }
}

/* ---------- Case study template ---------- */
.cs { background: var(--cream); }
.cs-head { padding: 78px 80px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cs-kicker { font-family: 'Times New Roman', Times, Georgia, serif; font-size: 30px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.95; }
.cs-title { font-family: 'Yeseva One', Georgia, serif; font-weight: 700; font-size: 132px; line-height: 0.98; }
.cs-tag { margin-top: 8px; font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700; font-size: 30px; line-height: 1.5; color: #0B0909; text-wrap: pretty; }
.cs-hero { padding: 44px 80px 0; }
.cs-hero.tight { padding-top: 0; }
.cs-hero span { display: block; width: 100%; border-radius: 3px; overflow: hidden; }
.cs-intro { padding: 78px 80px 0; display: grid; grid-template-columns: 1.45fr 1fr; column-gap: 80px; }
.cs-intro .col { display: flex; flex-direction: column; gap: 18px; }
.cs-eyebrow { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.cs-copy { font-family: 'Trebuchet MS', var(--font-sans); font-weight: 400; font-size: 20px; line-height: 1.72; color: #0B0909; text-wrap: pretty; display: flex; flex-direction: column; gap: 1em; }
.cs-copy strong { font-weight: 700; }
.cs-services { display: flex; flex-direction: column; }
.cs-services span { padding: 14px 2px; border-top: 1px solid var(--line); font-family: var(--font-sans); font-size: 19px; color: var(--ink); }
.cs-services .end { display: block; height: 0; padding: 0; border-top: 1px solid var(--line); }
.cs-rule { padding: 66px 80px 0; }
.cs-rule .track { position: relative; display: block; height: 34px; }
.cs-rule .dash { position: absolute; top: 17px; left: 0; right: 0; height: 0; border-top: 2px dashed rgba(36,30,24,0.55); }
.cs-rule .b { position: absolute; border-radius: 50%; display: block; animation: rmFizzMarch var(--dur, 5.2s) ease-in-out var(--delay, 0s) infinite; }
@keyframes rmFizzMarch { 0% { transform: translateX(-26px) } 50% { transform: translateX(26px) } 100% { transform: translateX(-26px) } }
@media (prefers-reduced-motion: reduce) { .cs-rule .b { animation: none; } }
.cs-row { padding: 26px 80px 0; display: flex; justify-content: center; gap: 24px; }
.cs-row.first { padding-top: 62px; }
.cs-row span { display: block; border-radius: 3px; overflow: hidden; flex: var(--w) 1 0; aspect-ratio: var(--w) / var(--h); min-width: 0; }
.cs-row img { width: 100%; height: 100%; object-fit: cover; }
.cs-row.single span { width: 100%; }
.cs-next { padding: 96px 80px 120px; display: flex; align-items: stretch; gap: 20px; }
.cs-next a { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 30px 32px; border: 2px dashed rgba(36,30,24,0.4); border-radius: 10px; transition: background 180ms ease; }
.cs-next a:hover { background: #F6EFDE; }
.cs-next a.next { align-items: flex-end; }
.cs-next .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.cs-next .n { font-family: 'Yeseva One', Georgia, serif; font-size: 34px; }
@media (max-width: 1100px) {
  .cs-head, .cs-hero, .cs-intro, .cs-rule, .cs-row, .cs-next { padding-left: 48px; padding-right: 48px; }
  .cs-title { font-size: 96px; }
  .cs-kicker { font-size: 22px; }
}
@media (max-width: 767px) {
  .cs-head { padding: 40px 24px 0; gap: 10px; }
  .cs-kicker { font-size: 17px; letter-spacing: 0.14em; line-height: 2.35; }
  .cs-title { font-size: 62px; line-height: 1; }
  .cs-title.long { font-size: 45px; }
  .cs-tag { margin-top: 4px; font-weight: 600; font-size: 19px; line-height: 1.5; }
  .cs-hero { padding: 28px 24px 0; }
  .cs-intro { padding: 40px 24px 0; display: flex; flex-direction: column; gap: 16px; }
  .cs-intro .col { gap: 16px; }
  .cs-eyebrow { font-size: 12px; letter-spacing: 0.18em; }
  .cs-copy { font-size: 15px; line-height: 1.74; }
  .cs-services span { padding: 11px 2px; font-size: 16px; }
  .cs-rule { padding: 36px 24px 0; }
  .cs-rule .track { height: 26px; }
  .cs-rule .dash { top: 13px; }
  .cs-rule .b.d { display: none; }
  .cs-row { padding: 20px 24px 0; flex-direction: column; gap: 20px; }
  .cs-row.first { padding-top: 32px; }
  .cs-row span { flex: none; aspect-ratio: auto; width: 100%; }
  .cs-row img { height: auto; }
  .cs-next { padding: 54px 24px 90px; flex-direction: column; gap: 12px; }
  .cs-next a { padding: 18px 20px; gap: 6px; border-radius: 9px; }
  .cs-next .k { font-size: 10px; }
  .cs-next .n { font-size: 24px; }
}
@media (min-width: 768px) { .cs-rule .b.m { display: none; } }

/* ---------- Site footer ---------- */
.site-footer { padding: 26px 80px 30px; border-top: 1.5px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--cream); }
.site-footer .copy { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.site-footer .links { display: flex; gap: 22px; align-items: center; }
.site-footer a, .site-footer button { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--red-deep); background: none; border: 0; padding: 0; cursor: pointer; }
.site-footer a:hover, .site-footer button:hover { color: var(--ink); }
.site-footer.dark { background: #0C0A09; border-color: rgba(255,248,232,0.14); }
.site-footer.dark .copy { color: rgba(255,248,232,0.5); }
.site-footer.dark a, .site-footer.dark button { color: #FFAFD4; }
.site-footer.dark a:hover, .site-footer.dark button:hover { color: var(--butter); }
@media (max-width: 767px) {
  .site-footer { padding: 22px 22px 26px; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .site-footer .copy { font-size: 10px; }
  .site-footer a, .site-footer button { font-size: 14px; }
}

/* ---------- Cookie consent banner ---------- */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 200; width: min(420px, calc(100vw - 40px)); background: var(--paper); border: 2px dashed var(--ink); border-radius: 8px; box-shadow: 0 14px 0 rgba(36,30,24,0.22); padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.cookie[hidden] { display: none; }
.cookie .eyebrow { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--maroon); background: var(--butter); border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 12px; }
.cookie h2 { font-family: 'Vollkorn', Georgia, serif; font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--ink); }
.cookie p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: #3B342C; }
.cookie p a { text-decoration: underline; text-underline-offset: 3px; }
.cookie .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.cookie button { min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer; font-family: var(--font-sans); font-weight: 700; font-size: 14px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.cookie button.accept { background: var(--red); border-color: var(--red); color: var(--cream); }
.cookie button.accept:hover { background: var(--ink); border-color: var(--ink); }
.cookie button.decline:hover { background: var(--sand); }
