:root {
  --paper: #f6f3ee;
  --paper-2: #efeae2;
  --card: #ffffff;
  --ink: #16130f;
  --ink-2: #3a342d;
  --muted: #5e5750;
  --line: #ddd6cc;
  --rojo: #c62d1f;
  --rojo-dark: #9e2217;
  --on-rojo: #ffffff;
  --focus: #1d4ed8;
  --rojo-strong: #6b1f1f;   /* button hover fill */
  --band: #892828;          /* closing call-to-action band */
  --input-border: #c9c0b4;
  --control-border: #b9afa2;
  --grid: #eee8df;
  --baseline: #cfc6ba;
  /* Always-dark surfaces (footer, tooltips) keep these in both themes */
  --dark-bg: #16130f;
  --on-dark: #f6f3ee;
  --on-dark-muted: #cfc8bf;
  --on-dark-dim: #9d958b;
  --maroon-deep: #6b1f1f;
  color-scheme: light dark;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: 20px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--rojo); text-underline-offset: 3px; }
a:hover { color: var(--rojo-dark); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--card); padding: 8px 12px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rojo-dark);
  margin-bottom: 18px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  font: 600 .95rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--rojo); border-color: var(--rojo); color: var(--on-rojo); }
.btn-primary:hover { background: var(--rojo-strong); border-color: var(--rojo-strong); color: var(--on-rojo); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand small { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--rojo); }
.nav-cta { margin-left: 12px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { margin: auto; width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--rojo-dark); }
  .nav-cta { margin: 16px 0 0; width: 100%; justify-content: center; }
}

/* Sections */
section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.section-head p { margin: 0; color: var(--ink-2); }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } section { padding: 64px 0; } }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: start; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-bottom: 32px; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: 44px 1fr 20px; gap: 12px; align-items: center; padding: 18px 0; text-decoration: none; }
.index-list .num { font-family: var(--serif); color: var(--rojo-dark); font-size: 1.05rem; }
.index-list .t { font-weight: 600; }
.index-list .d { display: block; font-size: .9rem; color: var(--muted); font-weight: 400; }
.index-list svg { width: 18px; height: 18px; transition: transform .18s ease; }
.index-list a:hover svg { transform: translateX(3px); }
.index-caption { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding: 48px 0 64px; } }

.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 600; }

/* Grids and cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.grid-3 > * { padding: 28px 28px 8px 0; }
.grid-3 > * + * { padding-left: 28px; border-left: 1px solid var(--line); }
.grid-3 .num { font-family: var(--serif); color: var(--rojo-dark); font-size: 1.1rem; display: block; margin-bottom: 12px; }
@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > *, .grid-3 > * + * { padding: 24px 0 8px; border-left: 0; border-bottom: 1px solid var(--line); }
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.service-card { display: flex; flex-direction: column; }
.service-card .icon { width: 44px; height: 44px; color: var(--rojo); margin-bottom: 20px; }
.service-card p { color: var(--ink-2); }
.service-card .more { margin-top: auto; font-weight: 600; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; }
.service-card .more svg { width: 16px; height: 16px; }

.industries { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.industries li { list-style: none; flex: 1 1 180px; padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.3rem; }
.industries li span { display: block; font-family: var(--sans); font-size: .88rem; color: var(--muted); margin-top: 4px; }
ul.industries { padding: 0; margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.years { font-family: var(--serif); font-size: clamp(5rem, 12vw, 8.5rem); line-height: .9; color: var(--rojo); margin: 0; }
.years-label { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 23px; width: 16px; height: 9px; border-left: 2px solid var(--rojo); border-bottom: 2px solid var(--rojo); transform: rotate(-45deg); }
.checklist strong { color: var(--ink); }

/* Testimonials */
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin: 0; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.quote figcaption { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: .92rem; }
.quote figcaption strong { display: block; font-size: 1rem; }
.quote figcaption a { color: var(--muted); }
.quote-mark { width: 28px; height: 28px; color: var(--rojo); margin-bottom: 16px; }

.work-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.work-list li { display: grid; grid-template-columns: 1.2fr 1.5fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.work-list .client { font-family: var(--serif); font-size: 1.35rem; }
.work-list .what { color: var(--muted); font-size: .95rem; }
.work-list a { font-weight: 600; font-size: .92rem; white-space: nowrap; }
@media (max-width: 700px) { .work-list li { grid-template-columns: 1fr; gap: 4px; } }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); }
.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: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .18s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* CTA band */
.cta-band { background: var(--band); color: var(--on-dark); padding: 72px 0; }
.cta-band .inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.cta-band h2 { color: var(--on-dark); margin: 0; }
.cta-band p { color: #cfc8bf; margin: 0 0 20px; }

@media (max-width: 800px) { .cta-band .inner { grid-template-columns: 1fr; } }

/* Page header */
.page-head { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 22ch; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }

/* Service detail */
.service-detail { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 0; }
.service-detail .icon { width: 44px; height: 44px; color: var(--rojo); margin-bottom: 16px; }
.service-detail h2 { font-size: 1.9rem; }
.service-detail h3 { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.bullets { margin: 0; padding-left: 20px; color: var(--ink-2); }
.bullets li { margin-bottom: 8px; padding-left: 4px; }
.bullets li::marker { color: var(--rojo); }
@media (max-width: 800px) { .service-detail { grid-template-columns: 1fr; gap: 8px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.steps li { padding: 24px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps .num { font-family: var(--serif); color: var(--rojo-dark); display: block; margin-bottom: 10px; font-size: 1.1rem; }
.steps strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding: 20px 0 4px; border-left: 0; border-bottom: 1px solid var(--line); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.form legend { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 4px; padding: 0; }
.form .hint { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .req { color: var(--rojo-dark); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--input-border); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field .help { font-size: .84rem; color: var(--muted); }
.field .error { font-size: .86rem; color: var(--rojo-dark); display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--rojo-dark); }
.field.invalid .error { display: block; }
.form .note { font-size: .86rem; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } .form { padding: 24px; } }

.contact-card { border-top: 1.5px solid var(--ink); }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-top: 20px; }
.contact-card dd { margin: 6px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.6rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { background: var(--dark-bg); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: .95rem; border-top: 1px solid #2b2620; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-dim); font-weight: 600; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.site-footer .brand { color: var(--on-dark); margin-bottom: 16px; }
.site-footer .brand small { color: var(--on-dark-dim); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2f2a24; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--on-dark-dim); }
.footer-bottom nav { display: flex; gap: 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Fixes: nav CTA inherits link colour; Safari select styling */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { display: inline-flex; justify-content: center; color: var(--on-rojo); padding: 12px 20px; box-shadow: none; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316130f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
@media (max-width: 900px) { .nav-links a.btn-primary { border-bottom: 0; padding: 14px 20px; } }

/* Photography (black and white, from Pexels) */
figure.photo-wide, figure.photo-frame { margin: 0; }
.photo { width: 100%; height: 100%; object-fit: cover; background: var(--paper-2); filter: grayscale(1) contrast(1.05); }
.photo-wide { aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius); margin-bottom: 88px !important; }
.photo-wide-top { margin-top: 48px !important; margin-bottom: 0 !important; }
.photo-frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-bottom: 28px !important; }
.years-sm { font-size: clamp(3.5rem, 8vw, 5rem); line-height: 1; margin-bottom: 10px; }
@media (max-width: 800px) { .photo-wide { aspect-ratio: 4 / 3; margin-bottom: 64px !important; } }

/* Preloader: the R mark fills with brand red, then the panel lifts away. Once per visit. */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--paper);
  transition: transform .75s cubic-bezier(.76, 0, .24, 1), visibility 0s linear .75s;
  animation: preloader-failsafe .4s ease 4s forwards;
}
.preloader-inner { display: flex; flex-direction: column; align-items: center; transition: opacity .3s ease, transform .3s ease; }
.preloader-mark { position: relative; width: 64px; height: 64px; }
.preloader-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.preloader-fill { clip-path: inset(100% 0 0 0); animation: preloader-fill 1s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
.preloader-name {
  margin: 22px 0 0; padding-left: .42em;
  font: 500 .95rem/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--ink);
  opacity: 0; animation: preloader-in .5s ease .45s forwards;
}
.preloader-tag {
  margin: 10px 0 0; padding-left: .32em;
  font: 600 .62rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: preloader-in .5s ease .6s forwards;
}
.preloader-line { width: 120px; height: 1px; margin-top: 26px; background: var(--line); overflow: hidden; }
.preloader-line span { display: block; height: 100%; background: var(--rojo); transform: scaleX(0); transform-origin: left; animation: preloader-line 1.6s cubic-bezier(.65, 0, .35, 1) .2s forwards; }
.preloader.done { transform: translateY(-100%); visibility: hidden; pointer-events: none; }
.preloader.done .preloader-inner { opacity: 0; transform: translateY(-12px); }
.no-preload .preloader { display: none; }
@keyframes preloader-fill { to { clip-path: inset(0 0 0 0); } }
@keyframes preloader-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes preloader-line { 0% { transform: scaleX(0); } 70% { transform: scaleX(.85); } 100% { transform: scaleX(.92); } }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .preloader { transition: opacity .3s ease, visibility 0s linear .3s; }
  .preloader.done { transform: none; opacity: 0; }
  .preloader-fill { animation: none; clip-path: none; }
  .preloader-name, .preloader-tag { animation: none; opacity: 1; }
  .preloader-line { display: none; }
}

/* Service pages */
.page-head-split .split { align-items: center; }
.page-head-split h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.page-head-split .lead { margin-bottom: 28px; }
.page-head-split .photo-frame { margin-bottom: 0 !important; }
.split h3 { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }

.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.related li { border-bottom: 1px solid var(--line); }
.related li + li { border-left: 1px solid var(--line); }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 20px 22px 0; text-decoration: none; font-family: var(--serif); font-size: 1.3rem; }
.related li + li a { padding-left: 20px; }
.related svg { width: 18px; height: 18px; flex: none; transition: transform .18s ease; }
.related a:hover svg { transform: translateX(3px); }
@media (max-width: 800px) {
  .related { grid-template-columns: 1fr; }
  .related li + li { border-left: 0; }
  .related li + li a { padding-left: 0; }
}
.not-found { padding: 120px 0 140px; }
.not-found .related { margin-top: 40px; max-width: 900px; }

/* Sticky contact bar on phones */
.action-bar { display: none; }
@media (max-width: 700px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 2fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 48px; border: 1.5px solid var(--ink); border-radius: var(--radius);
    font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink);
  }
  .action-bar a.primary { background: var(--rojo); border-color: var(--rojo); color: var(--on-rojo); }
  .action-bar svg { width: 18px; height: 18px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Pictures fill their frames */
.photo-wide picture, .photo-frame picture { display: block; height: 100%; }

/* Client names under the hero photo */
.photo-wide-hero { margin-bottom: 0 !important; }
.clients { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; padding: 28px 0 88px; }
.clients .index-caption { margin: 0; }
.clients ul { display: flex; flex-wrap: wrap; gap: 8px 40px; list-style: none; margin: 0; padding: 0; }
.clients a, .clients li > span { font-family: var(--serif); font-size: 1.45rem; text-decoration: none; color: var(--ink-2); }
.clients a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rojo); }
@media (max-width: 800px) { .clients { padding-bottom: 64px; } .clients ul { gap: 4px 28px; } .clients a, .clients li > span { font-size: 1.2rem; } }

/* Featured quote */
.feature-quote { margin: 0 0 40px; padding: 8px 0 40px; border-bottom: 1px solid var(--line); }
.feature-quote blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; letter-spacing: -.01em; max-width: 30ch; text-wrap: pretty; }
.feature-quote figcaption { font-size: .95rem; color: var(--muted); }
.feature-quote figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.feature-quote a { color: var(--muted); }

/* Services dropdown */
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 44px; margin-left: -8px; background: none; border: 0; color: var(--ink-2); cursor: pointer; }
.sub-toggle svg { width: 16px; height: 16px; transition: transform .18s ease; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 280px; list-style: none; margin: 0; padding: 8px 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(22, 19, 15, .08);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sub a { padding: 10px 18px; font-size: .95rem; }
.sub a:hover { background: var(--paper); }
.has-sub:hover .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 900px) {
  .has-sub { display: block; }
  .sub-toggle { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 16px; min-width: 0; }
  .sub a { font-size: .98rem; padding: 12px 0; color: var(--muted); }
  .nav-menu { max-height: calc(100vh - 72px); overflow-y: auto; }
}

/* Header gains a hairline shadow once the page scrolls */
.site-header { transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 1px 12px rgba(22, 19, 15, .06); }

/* Footer call to action */
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid #2f2a24; }
.footer-cta-title { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; color: var(--on-dark); margin: 0; max-width: 14ch; }
.footer-cta-links { display: flex; flex-direction: column; gap: 6px; }
.site-footer a.footer-big-link { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.7rem); color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--rojo); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-footer a.footer-big-link:hover { text-decoration-thickness: 2px; }

/* Tighter desktop nav between the hamburger breakpoint and wide screens */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav-links a { padding: 10px 9px; font-size: .92rem; }
  .nav-cta { margin-left: 6px; }
  .nav-links a.btn-primary { padding: 12px 16px; }
}
.nav-links, .nav-links a { white-space: nowrap; }

/* Logo (supplied artwork) and brand colour taken from it */
:root { --rojo: #892828; --rojo-dark: #6b1f1f; }
.nav { height: 84px; }
.brand { line-height: 0; }
.brand-logo { height: 64px; width: auto; border-radius: 3px; }
@media (max-width: 900px) { .nav-menu { top: 84px; } .nav-menu { max-height: calc(100vh - 84px); } }
@media (max-width: 560px) { .nav { height: 72px; } .brand-logo { height: 54px; } .nav-menu { top: 72px; max-height: calc(100vh - 72px); } }
html { scroll-padding-top: 100px; }
.site-footer .brand-logo { height: 96px; }
.site-footer .brand { display: inline-block; margin-bottom: 20px; }

/* Header uses the horizontal lockup; the red badge stays in the footer */
.nav { height: 76px; }
.brand-lockup { height: 40px; width: auto; }
.site-footer .brand-logo { height: 72px; border-radius: 3px; }
@media (max-width: 900px) { .nav-menu { top: 76px; max-height: calc(100vh - 76px); } }
@media (max-width: 560px) { .nav { height: 68px; } .brand-lockup { height: 34px; } .nav-menu { top: 68px; max-height: calc(100vh - 68px); } }
html { scroll-padding-top: 92px; }

/* Results section: tabs, headline figure, charts */
.section-head .eyebrow { margin-bottom: 10px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 40px; overflow-x: auto; }
.tab {
  background: none; border: 0; padding: 14px 0; margin-bottom: -1px; cursor: pointer;
  font: 600 1rem var(--sans); color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab.is-active { color: var(--ink); border-bottom-color: var(--rojo); }
.result-panel { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.result-panel[hidden] { display: none; }
@media (max-width: 900px) { .result-panel { grid-template-columns: 1fr; gap: 28px; } }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 8px; }
.hero-figure { font: 600 clamp(3.2rem, 7vw, 4.6rem)/1 var(--sans); letter-spacing: -.03em; color: var(--ink); margin: 22px 0 8px; }
.hero-figure-label { color: var(--ink-2); font-weight: 500; margin-bottom: 20px; max-width: 30ch; }
.result-copy .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.result-copy .more svg { width: 16px; height: 16px; }
.results-note { margin: 32px 0 0; font-size: .86rem; color: var(--muted); max-width: 80ch; }

.chart-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 12px; }
.chart-card figcaption { margin-bottom: 12px; }
.chart-card figcaption strong { display: block; font-weight: 600; }
.chart-card figcaption span { font-size: .88rem; color: var(--muted); }
.chart-stage { position: relative; }
.chart { min-height: 240px; border-radius: var(--radius); }
.chart:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.chart svg { display: block; overflow: visible; }
.c-grid { stroke: var(--grid); stroke-width: 1; }
.c-base { stroke: var(--baseline); stroke-width: 1; }
.c-tick { font: 12px var(--sans); fill: var(--muted); font-variant-numeric: tabular-nums; }
.c-end { font: 600 13px var(--sans); fill: var(--ink); }
.c-line { fill: none; stroke: var(--rojo); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-area { fill: var(--rojo); opacity: .1; }
.c-dot { fill: var(--rojo); stroke: var(--card); stroke-width: 2; }
.c-hot { opacity: 0; pointer-events: none; }
.c-cross { stroke: var(--ink-2); stroke-width: 1; opacity: 0; pointer-events: none; }
.c-bar { fill: var(--rojo); transition: opacity .12s ease; }
.c-bar.is-dim { opacity: .45; }
.chart-tip {
  position: absolute; transform: translate(-50%, -100%); pointer-events: none;
  background: var(--dark-bg); color: var(--on-dark); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(22, 19, 15, .18);
}
.chart-tip strong { display: block; font-size: .98rem; }
.chart-tip span { font-size: .78rem; color: var(--on-dark-muted); }
.chart-table { margin-top: 8px; border-top: 1px solid var(--line); }
.chart-table summary { cursor: pointer; padding: 12px 0; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.chart-table table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 12px; }
.chart-table th, .chart-table td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); }
.chart-table td { text-align: right; font-variant-numeric: tabular-nums; }
.chart-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chart-table thead th:last-child { text-align: right; }

/* Closing call-to-action band in brand maroon, so it reads apart from the dark footer */
.cta-band { background: var(--band); }
.cta-band p { color: #f3e1de; }
.cta-band .btn-primary { background: var(--on-dark); border-color: var(--on-dark); color: var(--maroon-deep); }
.cta-band .btn-primary:hover { background: #fff; border-color: #fff; color: var(--maroon-deep); }
.cta-band .btn-ghost { color: var(--on-dark); border-color: rgba(246, 243, 238, .7); }
.cta-band .btn-ghost:hover { background: var(--on-dark); color: var(--maroon-deep); border-color: var(--on-dark); }
.cta-band :focus-visible { outline-color: var(--on-dark); }

/* Services: results timeline */
.timeline { --months: 6; }
.tl-rows { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.tl-row, .tl-axis { display: grid; grid-template-columns: 160px 1fr 280px; gap: 24px; align-items: center; }
.tl-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.tl-name { font-family: var(--serif); font-size: 1.3rem; }
.tl-note { font-size: .92rem; color: var(--ink-2); }
.tl-bar { position: relative; height: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.tl-wash, .tl-solid { position: absolute; top: 0; bottom: 0; }
.tl-wash { left: 0; width: calc(var(--onset) / var(--months) * 100%); background: var(--rojo); opacity: .14; }
.tl-solid { left: calc(var(--onset) / var(--months) * 100%); right: 0; background: var(--rojo); }
.tl-axis { margin-bottom: 8px; }
.tl-ticks { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; font-size: .88rem; color: var(--ink-2); }
.tl-legend span { display: inline-flex; align-items: center; gap: 10px; }
.tl-key { display: inline-block; width: 22px; height: 10px; border-radius: 2px; background: var(--rojo); }
.tl-key-wash { opacity: .14; outline: 1px solid var(--line); }
@media (max-width: 900px) {
  .tl-row { grid-template-columns: 1fr; gap: 10px; }
  .tl-axis { grid-template-columns: 1fr; }
  .tl-axis .tl-name, .tl-axis .tl-note { display: none; }
  .tl-row .tl-note { order: 3; }
}

/* Services: starting-point chooser */
.chooser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.chooser[hidden] { display: none; }
.chooser-q { border: 0; margin: 0; padding: 24px 24px 24px 0; }
.chooser-q + .chooser-q { padding-left: 24px; border-left: 1px solid var(--line); }
.chooser-q legend { float: left; width: 100%; font-weight: 600; margin-bottom: 16px; padding: 0; }
.chooser-q .num { display: block; font-family: var(--serif); font-weight: 400; color: var(--rojo-dark); margin-bottom: 8px; }
.choices { clear: both; display: flex; flex-direction: column; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice span::before { content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid var(--control-border); border-radius: 50%; transition: border-color .15s ease, box-shadow .15s ease; }
.choice:hover span { border-color: var(--control-border); }
.choice input:checked + span { border-color: var(--rojo); }
.choice input:checked + span::before { border-color: var(--rojo); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 7px var(--rojo); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.chooser-result { grid-column: 1 / -1; margin-top: 8px; padding: 32px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--rojo); border-radius: var(--radius); }
.chooser-result .eyebrow { margin-bottom: 8px; }
.chooser-title { font-size: 1.8rem; margin-bottom: 10px; }
.chooser-why { color: var(--ink-2); max-width: 62ch; }
@media (max-width: 900px) {
  .chooser { grid-template-columns: 1fr; }
  .chooser-q, .chooser-q + .chooser-q { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .chooser-result { padding: 24px; }
}

/* Testimonials: live site previews */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
@media (max-width: 800px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { display: block; text-decoration: none; color: inherit; }
.work-frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.work-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.work-bar em { margin-left: 10px; font-style: normal; font-size: .78rem; color: var(--muted); }
.work-frame picture, .work-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work-frame img { filter: grayscale(1); transition: filter .35s ease; }
.work-card:hover .work-frame img, .work-card:focus-visible .work-frame img { filter: none; }
.work-meta { display: grid; gap: 2px; padding: 16px 0 0; }
.work-meta .client { font-family: var(--serif); font-size: 1.4rem; }
.work-meta .what { color: var(--muted); font-size: .95rem; }
.work-meta .visit { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; font-size: .92rem; text-decoration: underline; text-decoration-color: var(--rojo); text-underline-offset: 3px; }
.work-meta .visit svg { width: 15px; height: 15px; }
.work-list-offline li { grid-template-columns: 1.2fr 1.5fr; }

/* Home: one-line principle */
.principle { padding: 24px 0 96px; }
.principle p { margin: 0; padding-top: 40px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.01em; max-width: 22ch; }
/* An odd final preview spans the full row with a wider crop */
@media (min-width: 801px) {
  .work-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .work-card:last-child:nth-child(odd) .work-frame picture,
  .work-card:last-child:nth-child(odd) .work-frame img { aspect-ratio: 16 / 7; }
}


/* Dark mode: follows the visitor's system setting. Same layout and maroon accent, warm near-black paper. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110e;
    --paper-2: #1b1814;
    --card: #211d19;
    --ink: #f0ebe3;
    --ink-2: #d2cabe;
    --muted: #a69d91;
    --line: #36302a;
    --rojo: #b4433b;
    --rojo-dark: #e8907f;
    --rojo-strong: #9c3730;
    --band: #7a2424;
    --focus: #8fb0ff;
    --input-border: #4a423a;
    --control-border: #5a5148;
    --grid: #2c2722;
    --baseline: #4a423a;
    --dark-bg: #0d0b09;
  }
  .site-header.scrolled { box-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
  .sub { box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
  .tl-wash, .tl-key-wash { opacity: .28; }
  .c-area { opacity: .16; }
  .photo, .work-frame img { filter: grayscale(1) brightness(.92); }
}
.brand picture { display: block; }
.preloader-mark picture { position: absolute; inset: 0; }

/* Finishing details ------------------------------------------------------ */
/* Underlines that draw in from the left */
@media (min-width: 901px) {
  .nav-links > li > a:not(.btn) { position: relative; }
  .nav-links > li > a:not(.btn)::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  }
  .nav-links > li > a:not(.btn):hover::after { transform: scaleX(1); }
  .nav-links > li > a[aria-current="page"]::after { display: none; }
}
.footer-grid ul a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .25s ease; padding-bottom: 2px;
}
.footer-grid ul a:hover { background-size: 100% 1px; text-decoration: none; }
/* Arrows nudge in the direction they point */
.btn svg, .more svg, .visit svg { transition: transform .2s ease; }
.btn:hover svg, .more:hover svg, .service-card:hover .more svg { transform: translateX(3px); }
.work-card:hover .visit svg { transform: translate(2px, -2px); }
/* Opening quote mark hangs outside the text edge */
.feature-quote blockquote { text-indent: -.42em; }
/* Numbers that line up */
.chart-table, .tl-ticks, .c-tick { font-variant-numeric: tabular-nums; }

/* "On this page" bar on service pages: sticks under the header, desktop only */
.toc { display: none; }
@media (min-width: 901px) {
  .toc {
    display: block; position: sticky; top: 76px; z-index: 40;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .toc-inner { display: flex; align-items: center; gap: 28px; height: 48px; overflow-x: auto; }
  .toc-label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
  .toc a { font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; padding: 13px 0; border-bottom: 2px solid transparent; }
  .toc a:hover { color: var(--ink); }
  .toc a.is-current { color: var(--ink); border-bottom-color: var(--rojo); }
  .toc .toc-cta { margin-left: auto; color: var(--rojo-dark); font-weight: 600; }
  html:has(.toc) { scroll-padding-top: 140px; }
}

/* WhatsApp in the phone bar */
.action-bar { grid-template-columns: 1fr 1.3fr 2fr; }

/* Gentle entrance: fade up once, the first time a block scrolls into view */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* Contact form: spam trap, status message, sending state */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-alert { margin-bottom: 24px; padding: 14px 16px; border: 1px solid var(--rojo); border-left-width: 3px; border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: .95rem; }
.form button[disabled] { opacity: .7; cursor: progress; }
.form button svg { width: 18px; height: 18px; }
/* Thank-you page */
.thanks { padding: 96px 0 88px; }
.thanks h1 { max-width: 20ch; }
.thanks .lead { margin-bottom: 32px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps-3 { grid-template-columns: 1fr; } .steps-3 li, .steps-3 li + li { padding: 20px 0 4px; border-left: 0; border-bottom: 1px solid var(--line); } }
/* Social links in the footer */
.footer-grid ul a.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-link svg { width: 16px; height: 16px; flex: none; }

/* Ruler: industries on the home page. Without JavaScript it is a plain list. */
.ruler-track { list-style: none; margin: 0; padding: 0; }
.ruler:not(.is-ready) .ruler-ticks, .ruler:not(.is-ready) .ruler-foot { display: none; }
.ruler:not(.is-ready) .ruler-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.ruler:not(.is-ready) .ruler-item { padding: 20px 20px 8px 0; }
.ruler:not(.is-ready) .ruler-word { font-family: var(--serif); font-size: 1.4rem; background: none; border: 0; padding: 0; color: var(--ink); }
.ruler:not(.is-ready) .ruler-kind { color: var(--muted); font-size: .9rem; margin: 4px 0 6px; }
.ruler:not(.is-ready) .ruler-note p:last-child { font-size: .95rem; color: var(--ink-2); }

.ruler.is-ready { position: relative; }
.ruler.is-ready .ruler-note { display: none; }
.ruler-ticks { position: relative; height: 22px; overflow: hidden; }
.ruler-ticks-bottom { transform: scaleY(-1); }
.ruler-tick { position: absolute; top: 0; width: 1px; height: 8px; background: var(--line); }
.ruler-tick.is-major { height: 14px; background: var(--control-border); }
.ruler-ticks::after { /* centre mark */
  content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 22px; margin-left: -1px; background: var(--rojo);
}
.ruler-window { position: relative; overflow: hidden; padding: 18px 0; touch-action: pan-y; }
.ruler.is-ready .ruler-track { display: flex; align-items: center; width: max-content; transition: transform .5s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.ruler.is-ready .ruler-item { flex: none; }
.ruler.is-ready .ruler-word {
  display: block; padding: 0 clamp(18px, 3vw, 40px); background: none; border: 0; cursor: pointer; white-space: nowrap;
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.2; letter-spacing: -.01em;
  color: var(--muted); opacity: .45; transform: scale(.78);
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), opacity .3s ease, color .3s ease;
}
.ruler.is-ready .ruler-word:hover { opacity: .75; }
.ruler.is-ready .ruler-word[aria-pressed="true"] { color: var(--ink); opacity: 1; transform: none; }
.ruler-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-top: 28px; }
.ruler-detail { max-width: 62ch; min-height: 5.5em; }
.ruler-detail .ruler-kind { margin: 0 0 6px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rojo-dark); }
.ruler-detail p:last-child { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.ruler-controls { display: flex; align-items: center; gap: 14px; flex: none; }
.ruler-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius); color: var(--ink); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.ruler-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.ruler-btn:disabled { opacity: .3; cursor: default; }
.ruler-btn svg { width: 18px; height: 18px; }
.ruler-count { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: center; }
@media (max-width: 700px) {
  .ruler-foot { flex-direction: column-reverse; gap: 18px; margin-top: 20px; }
  .ruler-detail { min-height: 7.5em; }
}
@media (prefers-reduced-motion: reduce) {
  .ruler.is-ready .ruler-track, .ruler.is-ready .ruler-word { transition: none; }
}

/* Mobile: comfortable thumb-sized tap areas (44px) without changing how links look */
.badge { font-size: .8rem; }
.ruler.is-ready .ruler-word { padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 900px) {
  .brand { padding: 5px 0; }
  .more, .result-copy .more, .service-card .more, .work-meta .visit { min-height: 44px; }
  .footer-grid li { margin-bottom: 0; }
  .footer-grid ul a, .site-footer a.footer-big-link, .footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-grid ul a.social-link { display: inline-flex; }
  .footer-cta-links { gap: 0; }
  .footer-bottom nav { gap: 24px; }
}
.tab { min-width: 44px; }

/* Home "Why Rojoship": drifting rows of real client questions, then four reasons */
.questions { display: grid; gap: 12px; margin: 8px 0 56px; overflow: hidden; }
.q-row { display: flex; gap: 12px; width: max-content; }
.q-track { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; flex: none; }
.q-track li {
  padding: 10px 16px; white-space: nowrap; font-size: .98rem; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (prefers-reduced-motion: no-preference) {
  .q-row { animation: q-drift var(--q-duration, 64s) linear infinite; }
  .q-row-reverse { animation-direction: reverse; }
  .questions:hover .q-row, .questions:focus-within .q-row { animation-play-state: paused; }
}
@keyframes q-drift { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) {
  .q-row { width: auto; flex-wrap: wrap; padding: 0 var(--gutter); max-width: var(--wrap); margin: 0 auto; }
  .q-track { flex-wrap: wrap; }
  .q-copy { display: none; }
}

.feats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.feat { padding: 28px 24px 8px 0; display: flex; flex-direction: column; }
.feat + .feat { padding-left: 24px; border-left: 1px solid var(--line); }
.feat-icon { width: 40px; height: 40px; color: var(--rojo); margin-bottom: 40px; }
.feat h3 { font-size: 1.35rem; }
.feat p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 1000px) {
  .feats { grid-template-columns: 1fr 1fr; }
  .feat:nth-child(3) { padding-left: 0; border-left: 0; }
  .feat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feat-icon { margin-bottom: 24px; }
}
@media (max-width: 600px) {
  .feats { grid-template-columns: 1fr; }
  .feat, .feat + .feat { padding: 24px 0 8px; border-left: 0; }
  .feat + .feat { border-top: 1px solid var(--line); }
  .q-track li { font-size: .92rem; padding: 9px 14px; }
}

/* Blueprint mode: the page as a measured drawing of itself (desktop only) */
.blueprint-toggle { background: none; border: 0; padding: 0; font: inherit; color: var(--on-dark); cursor: pointer; text-align: left; }
.blueprint-toggle::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border: 1px solid currentColor; vertical-align: 0; }
.blueprint-toggle[aria-pressed="true"]::before { background: var(--rojo); border-color: var(--rojo); }
@media (max-width: 900px) { .blueprint-toggle { display: none; } }

.blueprint main section, .blueprint main .wrap > *, .blueprint .site-header .nav > *, .blueprint .site-footer .wrap > * {
  outline: 1px solid rgba(137, 40, 40, .28); outline-offset: -1px;
}
.bp-grid {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M8 0V64M16 0V64M24 0V64M32 0V64M40 0V64M48 0V64M56 0V64M0 8H64M0 16H64M0 24H64M0 32H64M0 40H64M0 48H64M0 56H64' stroke='%23892828' stroke-opacity='.05'/%3E%3Cpath d='M0 0.5H64M0.5 0V64' stroke='%23892828' stroke-opacity='.14'/%3E%3C/svg%3E");
}
.bp-cols {
  position: fixed; top: 0; bottom: 0; left: 50%; z-index: 90; pointer-events: none;
  width: min(calc(var(--wrap) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter))); transform: translateX(-50%);
  border-left: 1px solid rgba(137, 40, 40, .45); border-right: 1px solid rgba(137, 40, 40, .45);
}
.bp-box { position: fixed; z-index: 91; pointer-events: none; border: 1px solid var(--rojo); background: rgba(137, 40, 40, .06); }
.bp-tag {
  position: fixed; z-index: 92; pointer-events: none; min-width: 200px; padding: 10px 12px;
  background: var(--dark-bg); color: var(--on-dark); border: 1px solid var(--rojo); border-radius: var(--radius);
  font: 12px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.bp-tag div { display: flex; justify-content: space-between; gap: 20px; }
.bp-tag div:first-child { color: #e8a59a; margin-bottom: 2px; }
.bp-tag span { color: var(--on-dark-dim); }
.bp-tag strong { font-weight: 500; }
.bp-tag div:first-child span { color: inherit; }
.bp-bar {
  position: fixed; left: 24px; bottom: 24px; z-index: 93; display: flex; align-items: center; gap: 16px;
  padding: 12px 12px 12px 16px; background: var(--dark-bg); color: var(--on-dark-muted);
  border: 1px solid #3a332c; border-radius: var(--radius); font-size: .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.bp-bar strong { color: var(--on-dark); font-weight: 600; }
.bp-exit {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; cursor: pointer;
  background: none; color: var(--on-dark); border: 1px solid #5a5148; border-radius: var(--radius); font: 600 .85rem var(--sans);
}
.bp-exit:hover { border-color: var(--on-dark); }
.bp-exit kbd { font: 11px ui-monospace, Menlo, monospace; color: var(--on-dark-dim); }

/* App service pages: line illustrations in the site's tokens (follow dark mode) */
.device-frame { background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; }
.device-art { width: 100%; height: 100%; padding: 6%; }
.device-art .il-line { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.device-art .il-card { fill: var(--card); }
.device-art .il-paper { fill: var(--paper); }
.device-art .il-card.il-line, .device-art .il-paper.il-line { stroke: var(--ink-2); stroke-width: 1.5; }
.device-art .il-soft { fill: var(--paper-2); }
.device-art .il-dot { fill: var(--line); }
.device-art .il-faint { fill: none; stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.device-art .il-ink { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.device-art .il-ink-fill { fill: var(--ink); }
.device-art .il-acc { fill: var(--rojo); }
.device-art .il-acc-line { fill: none; stroke: var(--rojo); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
