:root {
  --bg: #faf6ee;
  --paper: #f3eadb;
  --text: #352d28;
  --muted: #5e5149;
  --accent: #a34824;
  --clay: #c3683d;
  --peach: #dc9762;
  --sand: #e8c9a2;
  --cream: #f6ecdc;
  --line: rgba(53, 45, 40, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.15; margin: 0 0 1rem; color: var(--text); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 3rem, 640px); margin-inline: auto; }

/* Header */
.site-header { padding: 2rem 0 1.25rem; text-align: center; position: relative; }
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--serif); font-size: 1.45rem; color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-mark {
  position: relative; width: 34px; height: 38px; flex: none;
  background: var(--sand);
}
.brand-mark::before {
  content: ""; position: absolute; inset: 4px 3px 3px 5px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 22%, 38% 22%, 38% 40%, 82% 40%, 82% 60%, 38% 60%, 38% 78%, 100% 78%, 100% 100%, 0 100%);
}
.brand-mark::after {
  content: ""; position: absolute; right: -3px; top: 14px; width: 9px; height: 9px;
  background: var(--text); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.nav-toggle {
  display: none; font: inherit; font-size: .9rem; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .45rem .9rem; cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 2.2rem; margin-top: 1.1rem; }
.site-nav a { color: var(--text); text-decoration: none; font-size: .95rem; padding: .3rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav .nav-mail { color: var(--accent); }

/* Shared type */
.kicker {
  display: block; font-family: var(--sans); font-size: .85rem; letter-spacing: .02em;
  color: var(--accent); margin-bottom: .6rem;
}
.lede { font-size: 1.1rem; color: var(--muted); }
.serif-quote { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.35; color: var(--text); }
.btn {
  display: inline-block; font: inherit; font-size: .95rem; text-decoration: none;
  background: var(--accent); color: #fff8ee; padding: .8rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--accent);
}
.btn:hover { background: var(--text); border-color: var(--text); color: #fff8ee; }
.btn.light { background: #fff8ee; color: var(--text); border-color: #fff8ee; }
.btn.light:hover { background: var(--text); color: #fff8ee; border-color: var(--text); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn.ghost:hover { background: var(--text); color: #fff8ee; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* Paper collage system */
.collage { position: relative; overflow: hidden; background: var(--c, var(--paper)); }
.pc {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  background: var(--c); box-shadow: 0 1px 2px rgba(53, 45, 40, .18), 0 6px 14px rgba(53, 45, 40, .08);
  transform: rotate(var(--r, 0deg));
}
.pc.circle { border-radius: 50%; }
.pc.half { border-radius: 999px 999px 0 0; }
.pc.half-l { border-radius: 999px 0 0 999px; }
.pc.tri { clip-path: polygon(0 100%, 50% 0, 100% 100%); box-shadow: none; }
.pc.tri-r { clip-path: polygon(0 0, 100% 100%, 0 100%); box-shadow: none; }
.pc.arrow { clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%); box-shadow: none; }
.pc.tear { clip-path: polygon(0 4%, 18% 0, 40% 5%, 63% 1%, 100% 6%, 97% 100%, 0 96%); }
.glyph {
  position: absolute; left: var(--x); top: var(--y); font-family: var(--serif);
  font-size: var(--s); line-height: .8; color: var(--c, var(--text));
  text-shadow: 2px 3px 0 rgba(53, 45, 40, .12); user-select: none;
}

/* Page sections */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.rule-top { border-top: 1px solid var(--line); }

/* Home hero */
.hero { position: relative; text-align: center; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); max-width: 15ch; margin-inline: auto; }
.hero .lede { max-width: 34rem; margin: 0 auto 1.8rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-float { position: absolute; width: 150px; height: 230px; background: transparent; overflow: visible; }
.hero-float.left { left: 0; top: 2.5rem; }
.hero-float.right { right: 0; bottom: 1rem; width: 120px; height: 150px; }

/* Editorial story: panel | text | panel */
.story { display: grid; grid-template-columns: 1fr 1.15fr .9fr; align-items: stretch; gap: 0; }
.story .collage { min-height: 360px; }
.story-text { padding: 2rem clamp(1.5rem, 3vw, 2.75rem); }
.story-text h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.story-text p { color: var(--muted); }

/* Service index */
.index-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.monogram { min-height: 470px; background: transparent; overflow: visible; }
.service-list { list-style: none; counter-reset: svc; }
.service-list > li {
  display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem;
  padding: 1.6rem 0; border-top: 1px solid var(--line);
}
.service-list > li:first-child { border-top: 0; padding-top: .6rem; }
.service-list .num { font-family: var(--serif); font-size: 3.2rem; line-height: .9; color: var(--text); }
.service-list h3 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; margin-bottom: .4rem; }
.service-list h3 a { color: var(--text); text-decoration: none; }
.service-list h3 a:hover { color: var(--accent); }
.service-list p { margin-bottom: .6rem; color: var(--muted); }
.service-list .benefit { color: var(--text); font-style: italic; font-family: var(--serif); }

/* Use cases — asymmetric columns */
.cases-head { text-align: center; margin-bottom: 3rem; }
.cases-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.cases { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; border-top: 2px solid var(--text); }
.case { padding: 1.6rem 1.6rem 1.8rem 0; }
.case + .case { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.case h3 { font-size: 1.45rem; }
.case:first-child h3 { font-size: 1.9rem; }
.case p { color: var(--muted); margin: 0; }

/* Approach */
.approach { background: var(--paper); }
.approach-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 5rem); }
.approach-layout h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.steps { list-style: none; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .step-n { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); line-height: 1.2; }
.steps h3 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); }

/* About summary */
.about-strip { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-strip h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.about-strip .collage { min-height: 280px; }

/* Contact block (home + inner) */
.contact-block { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.contact-block h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
.mail-panel { position: relative; padding: 2.2rem; color: #fff8ee; background: var(--accent); overflow: hidden; }
.mail-panel .pc { box-shadow: none; opacity: .55; }
.mail-inner { position: relative; border: 1px solid rgba(255, 248, 238, .55); padding: 1.6rem; }
.mail-inner p { color: #fff8ee; }
.mail-inner .mail-addr { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.7rem); word-break: break-word; }
.mail-inner .mail-addr a { color: #fff8ee; }
.contact-facts { font-style: normal; line-height: 1.7; }
.contact-facts strong { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.15rem; }

/* Inner pages */
.page-head { text-align: center; padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem); position: relative; }
.page-head h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); max-width: 18ch; margin-inline: auto; }
.page-head .lede { max-width: 36rem; margin: 0 auto; }
.crumbs { font-size: .88rem; margin-bottom: 1.4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }

.split { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); }
.split h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.split .body p { color: var(--muted); }
.split .body p.serif-quote { color: var(--text); }
.split-aside { position: sticky; top: 1.5rem; align-self: start; }

.feature-band { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0; align-items: stretch; }
.feature-band .collage { min-height: 320px; }
.feature-band .band-text { padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); }
.feature-band h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.columns-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--text); }
.columns-2 > div { padding: 1.6rem 1.8rem 1rem 0; }
.columns-2 > div + div { padding-left: 1.8rem; border-left: 1px solid var(--line); }
.columns-2 h3 { font-size: 1.4rem; }
.columns-2 p, .columns-2 li { color: var(--muted); }
.plain-list { padding-left: 1.1rem; }
.plain-list li { margin-bottom: .5rem; }

.big-service { display: grid; grid-template-columns: 6rem 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); padding: 2.5rem 0; border-top: 1px solid var(--line); }
.big-service:first-of-type { border-top: 2px solid var(--text); }
.big-service .num { font-family: var(--serif); font-size: 4.5rem; line-height: .85; }
.big-service h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.big-service p, .big-service li { color: var(--muted); }

.next-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.5rem; }

dl.facts { margin: 0; display: grid; grid-template-columns: 9rem 1fr; gap: .9rem 1.5rem; border-top: 2px solid var(--text); padding-top: 1.4rem; }
dl.facts dt { font-size: .88rem; color: var(--muted); }
dl.facts dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; word-break: break-word; }

.checklist { list-style: none; counter-reset: chk; }
.checklist li { counter-increment: chk; display: grid; grid-template-columns: 2.6rem 1fr; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: counter(chk, decimal-leading-zero); font-family: var(--serif); color: var(--accent); font-size: 1.1rem; }
.checklist strong { display: block; }
.checklist span { color: var(--muted); }

/* Footer */
.site-footer { margin-top: 2rem; border-top: 2px solid var(--text); padding: 3rem 0 2rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h2 { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .45rem; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { color: var(--muted); }
.footer-grid address { font-style: normal; color: var(--muted); }
.footer-base { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Responsive */
@media (max-width: 1180px) {
  .hero-float { display: none; }
}
@media (max-width: 960px) {
  .story { grid-template-columns: 1fr 1fr; }
  .story .story-text { grid-column: 1 / -1; grid-row: 1; padding: 0 0 2rem; }
  .story .collage { min-height: 260px; }
  .index-layout, .approach-layout, .about-strip, .contact-block, .split, .feature-band { grid-template-columns: 1fr; }
  .monogram { min-height: 340px; max-width: 420px; }
  .split-aside { position: static; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-right: 0; }
  .case:nth-child(2) { padding-left: 0; border-left: 0; }
  .big-service { grid-template-columns: 4.5rem 1fr; }
  .big-service > :last-child { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; margin-top: 1rem; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; margin-top: .8rem; border-top: 1px solid var(--line); }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: .8rem 0; border-bottom: 0; }
  .site-nav a[aria-current="page"] { border-bottom: 0; text-decoration: underline; }
  .cases, .columns-2 { grid-template-columns: 1fr; }
  .case, .case + .case, .columns-2 > div, .columns-2 > div + div { padding: 1.4rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .story .collage { min-height: 200px; }
  .service-list > li { grid-template-columns: 3rem 1fr; }
  .service-list .num { font-size: 2.4rem; }
  .big-service { grid-template-columns: 1fr; }
  .big-service > :last-child { grid-column: auto; }
  .mail-panel { padding: 1.2rem; }
  .mail-inner { padding: 1.2rem; }
  dl.facts { grid-template-columns: 1fr; gap: .2rem; }
  dl.facts dd { margin-bottom: .9rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .site-nav a, .btn { transition: color .2s, background-color .2s, border-color .2s; }
}
@media (max-width: 960px) {
  .monogram { overflow: hidden; width: 100%; }
}
