/* ===== Tokens ===== */
:root {
  --bg: #f3eee5;
  --bg-2: #e9e1d3;
  --ink: #211e1b;
  --muted: #6b655c;
  --accent: #7b2d3a;        /* burgundy */
  --deep: #34131a;          /* deep burgundy for contrast section */
  --on-deep: #f3eee5;
  --soft: #d9a79b;          /* accent tint on dark */
  --line: rgba(33, 30, 27, .18);
  --error: #a3281c;
  --ok: #2d6a3e;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
figure img { width: 100%; height: 100%; object-fit: cover; }
figure { background: var(--bg-2); overflow: hidden; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.1; }
.label { display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 500; color: var(--accent); }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ===== Buttons and links ===== */
.btn { display: inline-block; padding: .95em 1.7em; font: 500 .95rem var(--sans); color: var(--bg); background: var(--ink); border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-sm { padding: .5em 1.05em; font-size: .85rem; background: transparent; color: var(--ink); }
.btn-sm:hover { color: var(--bg); }
.link { font-weight: 500; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .3s var(--ease), color .25s; }
.link:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled { background: rgba(243, 238, 229, .95); border-color: var(--line); backdrop-filter: blur(6px); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .3s var(--ease); }
.scrolled .bar { height: 60px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; font: 500 1.35rem var(--serif); letter-spacing: .12em; }
.logo small { font: 500 .66rem var(--sans); letter-spacing: .1em; color: var(--muted); }
.logo-mark { width: 10px; height: 10px; background: var(--accent); align-self: center; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .92rem; }
.nav a:not(.btn) { padding-block: 4px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.nav a:not(.btn):hover { background-size: 100% 1px; }
.burger { display: none; position: relative; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.burger span { position: absolute; left: 8px; width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger.open span:first-child { top: 19px; transform: rotate(45deg); }
.burger.open span:last-child { top: 19px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; padding-block: clamp(28px, 5vw, 72px) var(--section); }
.hero-copy { grid-column: 1 / 7; }
.hero h1 { margin: 24px 0; font-size: clamp(2.9rem, 6.6vw, 5.8rem); font-weight: 300; line-height: 1.02; letter-spacing: -.03em; }
.lead { max-width: 30em; font-size: 1.15rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 36px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }
dt { font-size: .8rem; color: var(--muted); }
dd { font: 500 1.05rem var(--serif); }
.hero-art { grid-column: 8 / 13; position: relative; aspect-ratio: 4 / 5; }
.a-main { position: absolute; inset: 0 0 10% 16%; }
.a-small { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 1; border: 8px solid var(--bg); }
.a-block { position: absolute; top: -16px; right: -12px; width: 84px; height: 84px; background: var(--accent); }
.a-tag { position: absolute; right: 0; bottom: 3%; padding: .55em .9em; font-size: .78rem; background: var(--ink); color: var(--bg); }

/* ===== Section heads ===== */
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .label { grid-column: 1 / 4; align-self: start; padding-top: .9em; }
.sec-head h2 { grid-column: 4 / 12; }

/* ===== About ===== */
.about { padding-block: var(--section); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.about-img { aspect-ratio: 4 / 5; margin-top: 56px; }
.about-text p { max-width: 36em; }
.about-text p + p { margin-top: 1em; color: var(--muted); }
blockquote { margin: 36px 0; padding-left: 24px; border-left: 3px solid var(--accent); font: italic 300 clamp(1.4rem, 2.4vw, 1.9rem)/1.3 var(--serif); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.facts dd { font-size: 1.3rem; line-height: 1.25; }

/* ===== Services ===== */
.services { padding-bottom: var(--section); }
.svc-layout { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.svc-img { position: sticky; top: 100px; aspect-ratio: 4 / 5; }
.svc { display: grid; grid-template-columns: 44px 36px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); transition: padding .35s var(--ease); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc:hover { padding-left: 14px; }
.num { font: 400 1.05rem var(--serif); color: var(--muted); padding-top: .25em; }
.svc svg { width: 32px; height: 32px; margin-top: 4px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 1.55rem; line-height: 1.2; transition: color .25s; }
.svc:first-child h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.svc:hover h3 { color: var(--accent); }
.svc p { margin-top: 8px; max-width: 34em; color: var(--muted); }

/* ===== Approach (contrast section) ===== */
.approach { padding-block: var(--section); background: var(--deep); color: var(--on-deep); }
.approach .label { color: var(--soft); }
.ben-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(20px, 3vw, 40px); }
.ben { padding-top: 24px; border-top: 1px solid rgba(243, 238, 229, .28); }
.ben:nth-child(even) { margin-top: 56px; }
.big { display: block; font: 300 clamp(4rem, 8vw, 7rem)/1 var(--serif); color: var(--soft); }
.ben h3 { margin: 16px 0 10px; font-size: 1.5rem; }
.ben p { font-size: .98rem; color: rgba(243, 238, 229, .72); }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 110px); padding-block: var(--section); align-items: start; }
.contact h2 { margin: 20px 0; }
.contact .muted { max-width: 26em; margin-bottom: 36px; }
.info-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row span { font-size: .85rem; color: var(--muted); padding-top: .15em; }
.mail { font-weight: 500; color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s var(--ease); }
.mail:hover { background-size: 0 1px; background-position: 100% 100%; }
.form { padding: clamp(24px, 4vw, 48px); background: var(--bg-2); border: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { margin-bottom: 8px; }
label { display: block; font-size: .85rem; font-weight: 500; }
input, textarea { width: 100%; padding: .7em 0; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; resize: vertical; transition: border-color .25s, box-shadow .25s; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.err { display: block; min-height: 1.5em; padding-top: 4px; font-size: .82rem; color: var(--error); }
.form .btn { margin-top: 12px; }
.status { min-height: 1.6em; margin-top: 16px; font-size: .95rem; }
.status.ok { color: var(--ok); }
.status.error { color: var(--error); }

/* ===== Footer ===== */
.site-footer { padding-top: 64px; border-top: 1px solid var(--line); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 48px; }
.foot-brand p { max-width: 24em; margin-top: 16px; color: var(--muted); }
.site-footer h4 { margin-bottom: 14px; font-size: .85rem; font-weight: 500; color: var(--muted); }
.site-footer nav, .site-footer .foot-grid > div:not(.foot-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.site-footer a:not(.logo) { transition: color .25s; }
.site-footer a:not(.logo):hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ===== Reveal on scroll ===== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== Tablet ===== */
@media (max-width: 960px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .hero-copy, .hero-art { grid-column: 1 / -1; }
  .hero-art { width: min(100%, 520px); margin: 32px 12px 0 0; }
  .sec-head .label, .sec-head h2 { grid-column: 1 / -1; }
  .sec-head .label { padding-top: 0; }
  .about-grid, .svc-layout, .contact { grid-template-columns: 1fr; }
  .about-img { margin-top: 0; aspect-ratio: 4 / 3; }
  .svc-img { position: static; aspect-ratio: 16 / 9; }
  .ben-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .ben:nth-child(even) { margin-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Mobile ===== */
@media (max-width: 560px) {
  .hero-facts, .facts { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 32px 1fr; gap: 6px 14px; }
  .svc svg { display: none; }
  .ben-grid, .row, .foot-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
