/* CimaStudio site styles. Edit tokens here to restyle everything. */
:root {
  /* Cartographic theme: paper, contour lines, one orange accent */
  --bg: #f4f4f1; --bg-2: #ebeae5; --line: #dcdbd4;
  --text: #141614; --body: #3f433e; --muted: #6e716b;
  --accent: #ff5a2c; --accent-2: #e84a1e; --accent-deep: #c4421b; --on-accent: #ffffff;
  --mark: #ff5a2c; --focus: rgba(255,90,44,.3);
  --green: #3f5a45; --green-soft: #e1e7dc;
  --paper: #ffffff; --paper-2: #ebeae5; --ink: #141614; --ink-muted: #5c5f59;
  --field: #ffffff; --field-light: #ffffff; --line-light: #d6d5ce;
  --header-bg: #ffffff; --header-solid: #ffffff; --header-text: #141614; --header-accent: #ff5a2c;
  --band: #13241b; --band-text: #f4f4f1; --band-muted: #a3b0a6;

  --serif: "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 11vw, 150px);
  --radius-lg: 12px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
.display, h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; margin: 0; }
.display { font-size: clamp(3rem, 7.6vw, 7rem); line-height: 1.0; max-width: 15ch; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.04; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.08; max-width: 20ch; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; line-height: 1.35; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--text); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }

.rule { width: min(260px, 40%); height: 3px; background: var(--accent); border: 0; margin: clamp(40px, 6vw, 72px) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--sans);
  background: var(--accent); color: var(--on-accent);
  border: 0; border-radius: 999px; padding: 17px 30px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s ease;
}
.btn:hover { background: var(--accent-2); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { opacity: .88; color: var(--paper); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); color: var(--header-text, var(--text)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: transparent; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand svg { width: 38px; height: auto; color: var(--mark); }
.brand span { font: 700 0.95rem/1 "Poppins", var(--sans); letter-spacing: 0.22em; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav-links a:not(.btn):hover { color: var(--header-accent, var(--accent)); }
.nav-links a[aria-current="page"] { color: var(--header-accent, var(--accent)); }
.nav .btn { padding: 13px 22px; font-size: 0.95rem; }
.menu-btn { display: none; background: none; border: 1.5px solid rgba(255,255,255,.25); color: inherit; border-radius: 999px; width: 48px; height: 48px; cursor: pointer; }
.menu-btn svg { width: 20px; margin: auto; }

@media (max-width: 900px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-links { position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--header-solid, var(--bg)); padding: 12px var(--pad) 28px; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.2rem; }
  .nav-links .btn { margin-top: 12px; display: inline-flex; font-size: 1rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 130px) 0 var(--section); isolation: isolate; }
.mesh { position: absolute; inset: 0 0 -10% 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(160deg, #d7ecd6 0%, #e4f1ea 45%, #d3ecdf 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  animation: hue 12s ease-in-out infinite alternate; }
.mesh span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .9; will-change: transform; }
.mesh span:nth-child(1) { width: 55vw; height: 55vw; left: 40%; top: -25%; background: var(--m1); animation: b1 11s ease-in-out infinite alternate; }
.mesh span:nth-child(2) { width: 45vw; height: 45vw; left: 65%; top: 25%; background: var(--m2); animation: b2 13s ease-in-out infinite alternate; }
.mesh span:nth-child(3) { width: 42vw; height: 42vw; left: -12%; top: 40%; background: var(--m3); animation: b3 12s ease-in-out infinite alternate; }
.mesh span:nth-child(4) { width: 36vw; height: 36vw; left: 20%; top: 0; background: var(--m4); opacity: .85; animation: b4 14s ease-in-out infinite alternate; }
@keyframes b1 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-22vw, 18vh) scale(1.2); } 100% { transform: translate(-8vw, 30vh) scale(.9); } }
@keyframes b2 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30vw, -15vh) scale(.85); } 100% { transform: translate(-45vw, 10vh) scale(1.15); } }
@keyframes b3 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(28vw, -20vh) scale(1.25); } 100% { transform: translate(55vw, 0) scale(1); } }
@keyframes b4 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(30vw, 25vh) scale(1.2); } 100% { transform: translate(10vw, 10vh) scale(.9); } }
@keyframes hue { from { filter: hue-rotate(-10deg); } to { filter: hue-rotate(12deg); } }
.hero .display { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .rule { transform-origin: left; animation: grow 1s .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); font-size: 0.98rem; }
.facts strong { color: var(--text); font-weight: 600; }
.facts svg { width: 12px; flex: none; transform: translateY(1px); color: var(--mark); }
.hero-copy { display: grid; grid-template-columns: 7fr 5fr; max-width: 1080px; gap: clamp(28px, 4vw, 56px); }

.idea label { display: block; font-weight: 600; margin-bottom: 12px; font-size: 1.05rem; }
.idea textarea {
  width: 100%; min-height: 104px; resize: vertical;
  font: 400 1.05rem/1.5 var(--sans); color: var(--text);
  background: var(--field); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 14px;
}
.idea textarea::placeholder { color: var(--muted); }
.idea textarea:focus { outline: none; border-color: var(--accent); }
.idea .small { margin-top: 14px; color: var(--muted); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > div[aria-hidden] { display: none; }
  .hero-copy { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; order: 2; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: var(--section) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.section-head p { max-width: 30em; color: var(--muted); margin: 0; }
.link-arrow { font-weight: 600; text-decoration: underline; }

/* Work rail (home) and grid (work page) */
.rail-shell { background: var(--bg-2); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 36px) 0; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 34vw, 440px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px clamp(20px, 3vw, 36px) 18px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.tile { scroll-snap-align: start; text-decoration: none; color: var(--text); display: grid; gap: 14px; align-content: start; }
.tile .shot { border-radius: var(--radius); overflow: hidden; background: #111; aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.tile .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .shot img { transform: scale(1.03); }
.tile h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.tile .tags { font-size: 0.88rem; color: var(--accent-deep); font-weight: 500; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(22px, 3vw, 40px); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* Split text block */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .body p { color: var(--body); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Services */
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: clamp(20px, 3vw, 48px); padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.015em; }
.service p { margin: 0; color: var(--body); }
.service .related { font-size: 0.95rem; color: var(--muted); }
.service .related a { color: var(--text); }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; gap: 10px; } }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--line); padding-top: 22px; }
.steps li { border-top-color: var(--accent); }
.steps li::before { content: counter(step); display: block; font: 300 2.6rem/1 var(--serif); color: var(--accent-deep); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Dark band */
.band { background: var(--band); color: var(--band-text); }
.band .section-head a { color: var(--band-text); }
.band h2 { color: var(--band-text); }

/* Hero maze */
.maze { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 66%); mask-image: linear-gradient(90deg, transparent 38%, #000 66%); }
@media (max-width: 980px) {
  .maze { opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 70%); }
}

/* Light band */
.band-light { background: var(--paper); }

/* Reviews carousel */
.car-nav { display: flex; gap: 10px; }
.car-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: none; color: var(--band-text); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.car-btn:hover { border-color: var(--accent); color: var(--accent); }
.car-btn svg { width: 20px; }
.slides { overflow: hidden; border-radius: var(--radius-lg); }
.track { display: flex; transition: transform .55s cubic-bezier(.3,.7,.2,1); }
.slide { flex: 0 0 100%; margin: 0; background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 40px); align-items: start; }
.qmark { font: 400 clamp(4rem, 8vw, 6.5rem)/.75 var(--serif); color: var(--accent); }
.slide blockquote { margin: 0; font: 300 clamp(1.4rem, 2.5vw, 2.1rem)/1.35 var(--serif); letter-spacing: -0.01em; max-width: 34em; }
.slide figcaption { margin-top: 28px; color: var(--ink-muted); font-size: 1rem; }
.slide figcaption strong { display: block; color: var(--ink); }
.slide figcaption a { color: var(--ink-muted); }
.slides { cursor: pointer; }
.car-note { margin: 0; color: var(--band-muted); font-size: .92rem; flex: 1; }
.car-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.car-foot .link-arrow { color: var(--band-text); }
.dots { display: flex; gap: 4px; }
.dot { width: 26px; height: 26px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); transition: background .2s, transform .2s; }
.dot.on::before { background: var(--header-accent, var(--accent)); transform: scale(1.2); }
@media (max-width: 640px) { .slide { grid-template-columns: 1fr; } .qmark { font-size: 3.5rem; } .car-btn { width: 44px; height: 44px; } }

/* Case quote */
.case-quote { margin: 8px 0 0; padding: 28px 32px; background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.case-quote blockquote { margin: 0 0 18px; font: 400 1.35rem/1.5 var(--serif); color: var(--text); }
.case-quote figcaption { color: var(--muted); font-size: .97rem; }
.case-quote strong { display: block; color: var(--text); }

/* Founder */
.founder { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.peak-photo { position: relative; aspect-ratio: 1.54 / 1; }
.peak-photo .mask { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 100%, 68.75% 100%, 50% 57.7%, 31.25% 100%, 0 100%); background: linear-gradient(160deg, #3a332a, #1f1d1b); }
.peak-photo .mask img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.peak-photo .ph { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); color: var(--muted); font-size: .85rem; white-space: nowrap; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 0; font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 2rem/1 var(--sans); color: var(--accent-deep); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; color: var(--body); max-width: 44em; }

/* Journal list */
.posts { border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 3fr 7fr 2fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.post-row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.01em; }
.post-row p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }
.post-row .meta { color: var(--muted); font-size: 0.92rem; }
.post-row:hover h3 { color: var(--accent); }
@media (max-width: 760px) { .post-row { grid-template-columns: 1fr; gap: 6px; } }

/* Contact (light) */
.contact { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.contact a:not(.btn) { color: var(--ink); }
.contact .rule { margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 96px); }
.contact h2 { max-width: 13ch; }
.contact .intro { color: var(--ink-muted); margin: 24px 0 36px; max-width: 30em; }
.call-steps { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 16px; counter-reset: c; }
.call-steps li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; }
.call-steps li::before { content: counter(c); font: 400 1.4rem/1 var(--serif); color: var(--accent-deep); }
.direct { display: grid; gap: 14px; align-content: start; }
.direct .btn { justify-self: start; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.97rem; }
.field .hint { font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  font: 400 1.02rem/1.4 var(--sans); color: var(--ink);
  background: var(--field-light); border: 1.5px solid var(--line-light); border-radius: 12px; padding: 14px 15px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--focus); }
.hp { position: absolute; left: -5000px; }
.form-foot { grid-column: 1 / -1; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.form-status { font-weight: 600; margin: 0; }
.form-status.ok { color: #2f7a36; }
.form-status.err { color: #a3321c; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--band); color: var(--band-text); padding: 56px 0 40px; font-size: 0.97rem; }
.site-footer a:not(.btn) { color: var(--band-text); text-decoration-color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 32px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid h3 { font-size: 0.97rem; margin-bottom: 12px; }
.site-footer .brand { color: var(--band-text); }
.foot-note { color: var(--band-muted); margin-top: 14px; max-width: 30em; }
.copyright { margin-top: 44px; color: var(--band-muted); font-size: 0.9rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Inner page heads */
.page-head { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); }
.page-head .lead { margin-top: 28px; color: var(--body); }
.crumbs { font-size: 0.93rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }

/* Case study */
.case-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; background: #111; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-body { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); padding-top: clamp(48px, 6vw, 80px); }
.case-facts { margin: 0; display: grid; gap: 22px; align-content: start; position: sticky; top: 110px; }
.case-facts dt { color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
.case-facts dd { margin: 0; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 18px; max-width: none; }
.prose h2:not(:first-child) { margin-top: 56px; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.placeholder-note { color: var(--accent); font-size: 0.92rem; }
@media (max-width: 900px) { .case-body { grid-template-columns: 1fr; } .case-facts { position: static; grid-template-columns: 1fr 1fr; } }

/* Article */
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.byline { display: flex; gap: 14px; align-items: center; margin: 32px 0 44px; color: var(--muted); font-size: 0.95rem; }
.byline .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(160deg, #3a332a, #1f1d1b); overflow: hidden; flex: none; }
.byline strong { color: var(--text); font-weight: 600; }
.short-answer { border-left: 3px solid var(--accent); padding: 6px 0 6px 24px; margin: 0 0 48px; }
.short-answer h2 { font: 600 1rem/1.3 var(--sans); letter-spacing: 0; margin: 0 0 8px; color: var(--accent); }
.short-answer p { font: 400 1.3rem/1.55 var(--serif); color: var(--text); margin: 0; }
.article-body { font-family: var(--serif); font-size: 1.24rem; line-height: 1.72; }
.article-body h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 56px 0 16px; line-height: 1.15; max-width: none; }
.article-body p, .article-body li { color: var(--body); }
.article-body ul, .article-body ol { padding-left: 1.2em; }
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--accent); }
.article-body strong { font-weight: 600; color: var(--text); }
.article-body table { width: 100%; border-collapse: collapse; font: 400 1rem/1.5 var(--sans); margin: 28px 0; }
.article-body th, .article-body td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.article-cta { margin-top: 72px; padding: 36px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.article-cta h2 { font-size: 1.9rem; margin-bottom: 12px; }
.article-cta p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *:not(.mesh):not(.mesh span), *::before, *::after { animation: none !important; transition: none !important; }
  .mesh, .mesh span { animation-duration: 40s !important; }
  html { scroll-behavior: auto; }
}

/* ===== Cartographic restyle ===== */
.display, h1, h2 { font-weight: 500; letter-spacing: -0.035em; }
.display { font-size: clamp(2.8rem, 5.4vw, 5.2rem); line-height: .98; max-width: 14ch; }
h1 { line-height: 1; } h2 { line-height: 1.04; }
.lead { color: var(--body); }
.rule { height: 2px; width: 72px; }
.btn { border-radius: 6px; padding: 16px 26px; font-weight: 600; }
.btn:hover { color: #fff; }

/* Header: floating white bar */
.site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 14px; }
.site-header .nav { background: #fff; height: 72px; padding: 0 22px; max-width: calc(var(--wrap) - 2 * var(--pad) + 44px); border: 1px solid var(--line); }
.site-header.scrolled { box-shadow: none; }
.site-header.scrolled .nav { box-shadow: 0 8px 30px rgba(20,22,20,.08); }
.nav-links a:not(.btn) { color: var(--text); }
.menu-btn { border-color: var(--line); border-radius: 6px; }
@media (max-width: 900px) { .nav-links { inset: 86px var(--pad) auto var(--pad); border: 1px solid var(--line); } }

/* Hero: contour map, headline below */
.hero { padding: 0; margin-top: -86px; }
.hero-map { position: relative; height: clamp(440px, 64vh, 680px); border-bottom: 1px solid var(--line); overflow: hidden; }
.topo-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.topo-faint path { fill: none; stroke: #e0dfd8; stroke-width: 1.4; }
.topo-bold path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: topodraw 3.2s cubic-bezier(.4,.1,.2,1) var(--d) forwards; }
@keyframes topodraw { to { stroke-dashoffset: 0; } }
.topo-route { fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 18 14 2 14; opacity: 0; animation: routein 1.2s ease 2.6s forwards, routeflow 6s linear 2.6s infinite; }
@keyframes routein { to { opacity: 1; } }
@keyframes routeflow { to { stroke-dashoffset: -96; } }
.topo-summit { opacity: 0; animation: routein .8s ease 3.4s forwards; }
.topo-summit circle { fill: var(--accent); }
.topo-summit .ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 4; animation: spin 14s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.topo-summit text { font: 600 18px/1 "Inter", sans-serif; letter-spacing: .18em; fill: var(--text); }
.hero-side { position: absolute; left: 0; right: 0; bottom: 28px; pointer-events: none; }
.hero-kicker { margin: 0; font-size: .95rem; color: var(--muted); }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 0; }
.hero-grid .display { padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px) clamp(48px, 6vw, 88px) 0; }
.hero-copy { position: relative; display: block; border-left: 1px solid var(--line); padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 88px) clamp(24px, 3vw, 44px); }
.hero-copy .lead { font-size: 1.12rem; margin-bottom: 30px; }
.idea textarea { border-radius: 6px; background: #fff; }
.xmark { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; }
.xmark::before, .xmark::after { content: ""; position: absolute; background: var(--accent); }
.xmark::before { left: 11px; top: 0; width: 2px; height: 24px; }
.xmark::after { top: 11px; left: 0; height: 2px; width: 24px; }
@media (max-width: 980px) {
  .hero-map { height: 380px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .display { padding-bottom: 28px; }
  .hero-copy { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .xmark { left: -12px; }
}

/* Section rhythm: hairlines and crosshairs */
.section { position: relative; border-top: 1px solid var(--line); }
.section .wrap { position: relative; }
.section::before { content: "+"; position: absolute; top: -.72em; left: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad) - 6px)); font: 300 1.6rem/1 var(--sans); color: var(--accent); }
.band::before, .contact::before { display: none; }
.topo-bg { background: var(--bg) url(/assets/img/topo-light.svg) center/cover no-repeat; }
.band { background: var(--band) url(/assets/img/topo-dark.svg) center/cover no-repeat; border-top: 0; }
.site-footer { background: var(--band) url(/assets/img/topo-dark.svg) center/cover no-repeat; }

/* Work rail */
.rail-shell { background: transparent; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tile .shot { border-radius: var(--radius); }
.tile h3 { font-weight: 500; letter-spacing: -.02em; }
.tile .tags { color: var(--accent-deep); }

/* Services: fanned card stack */
.services { border-top: 0; display: flex; justify-content: center; align-items: flex-end; padding: 40px 0 20px; }
.service { position: relative; display: flex; flex-direction: column; gap: 14px; width: 292px; min-height: 430px; margin-left: -14px; padding: 30px 28px; border: 0; border-radius: 10px; box-shadow: 0 24px 50px rgba(20,22,20,.16); transform: translateY(var(--y)) rotate(var(--r)); transition: transform .45s cubic-bezier(.3,.7,.2,1), box-shadow .3s; }
.service:first-child { margin-left: 0; }
.service::before { content: ""; width: 54px; height: 54px; border-radius: 10px; border: 1.5px solid currentColor; opacity: .55; margin-bottom: auto; background: center/26px no-repeat; }
.service h3 { font: 500 1.65rem/1.1 var(--serif); letter-spacing: -.025em; }
.service p { color: inherit; opacity: .9; font-size: .98rem; margin: 0; }
.service .related, .service .related a { color: inherit; opacity: .85; font-size: .9rem; }
.service:nth-child(1) { --r: -6deg; --y: 22px; background: var(--green); color: #f4f4f1; z-index: 1; }
.service:nth-child(2) { --r: -2deg; --y: 2px; background: var(--green-soft); color: var(--text); z-index: 2; }
.service:nth-child(3) { --r: 2deg; --y: 2px; background: var(--accent); color: #fff; z-index: 3; }
.service:nth-child(4) { --r: 6deg; --y: 22px; background: var(--band); color: #f4f4f1; z-index: 4; }
.service:hover { --r: 0deg; --y: -18px; z-index: 6; box-shadow: 0 34px 70px rgba(20,22,20,.24); }
@media (max-width: 1100px) {
  .services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0; }
  .service { width: auto; min-height: 300px; margin: 0; }
  .service:nth-child(n) { --y: 0px; --r: 0deg; }
}
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* Process */
.steps li { border-top: 1px solid var(--line); position: relative; }
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.steps li:first-child::after { background: var(--accent); box-shadow: 0 0 0 5px rgba(255,90,44,.18); }
.steps li::before { font: 500 2.4rem/1 var(--serif); color: var(--text); letter-spacing: -.03em; }
.steps li:first-child { border-top-color: var(--line); }

/* Reviews */
.slide { border-radius: var(--radius-lg); }
.slide blockquote { font-weight: 400; letter-spacing: -.02em; }
.qmark { color: var(--accent); }
.car-btn { border-radius: 6px; }
.dot.on::before { background: var(--accent); }

/* FAQ */
.faq summary { font-weight: 500; letter-spacing: -.02em; }
.faq summary::after { color: var(--accent); }

/* Contact */
.contact { background: #fff; border-radius: 0; border-top: 1px solid var(--line); }
.contact .rule { background: var(--accent); }
.call-steps li::before { color: var(--accent-deep); font-weight: 500; }
.field input, .field select, .field textarea { border-radius: 6px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }

/* Footer */
.site-footer { color: var(--band-text); }
.site-footer a:not(.btn) { color: var(--band-text); text-decoration-color: var(--accent); }
.site-footer .brand { color: var(--band-text); }

/* Inner pages */
.page-head { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 52px); }
.page-head .crumbs { margin-bottom: 18px; }
.short-answer, .case-quote { border-radius: var(--radius-lg); }

@media (prefers-reduced-motion: reduce) {
  .topo-bold path { stroke-dashoffset: 0; }
  .topo-route, .topo-summit { opacity: 1; }
}

.service:nth-child(3) a, .service:nth-child(1) a, .service:nth-child(4) a { text-decoration-color: currentColor; }

.service:nth-child(1)::before, .service:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%22220%20348%20584%20379%22%3E%3Cpolygon%20points%3D%22512%2C348%20803.4%2C726.8%20621.3%2C726.8%20512%2C566.6%20402.7%2C726.8%20220.6%2C726.8%22%20fill%3D%22%23f4f4f1%22/%3E%3C/svg%3E"); }
.service:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%22220%20348%20584%20379%22%3E%3Cpolygon%20points%3D%22512%2C348%20803.4%2C726.8%20621.3%2C726.8%20512%2C566.6%20402.7%2C726.8%20220.6%2C726.8%22%20fill%3D%22%23ff5a2c%22/%3E%3C/svg%3E"); }
.service:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%22220%20348%20584%20379%22%3E%3Cpolygon%20points%3D%22512%2C348%20803.4%2C726.8%20621.3%2C726.8%20512%2C566.6%20402.7%2C726.8%20220.6%2C726.8%22%20fill%3D%22%23ffffff%22/%3E%3C/svg%3E"); }
@media (max-width: 640px) { .topo-svg { width: 620px; left: auto; right: -60px; } }

.hero-line { font: 500 clamp(1.4rem, 2.1vw, 1.75rem)/1.2 var(--serif); letter-spacing: -.025em; color: var(--text); margin: 0 0 16px; }
.pull { font: 500 clamp(1.35rem, 2vw, 1.7rem)/1.3 var(--serif); letter-spacing: -.02em; color: var(--text); border-left: 3px solid var(--accent); padding-left: 20px; margin-top: 28px; }

/* Clean header strip: no map lines behind or around the bar, no spinning ring */
.site-header { background: var(--bg); padding-bottom: 14px; }
.hero { margin-top: 0; }
.topo-summit .ring { display: none; }

/* One typeface everywhere: Inter. Headings just tighter and heavier. */
.display, h1, h2 { font-weight: 600; letter-spacing: -0.04em; }
.split .body p, .split .body .lead { font-size: 1.125rem; line-height: 1.65; color: var(--body); }
.pull { font: 500 1.125rem/1.65 var(--sans); letter-spacing: 0; color: var(--text); border-left: 3px solid var(--accent); padding: 2px 0 2px 18px; margin-top: 24px; }
.hero-line { font: 600 1.35rem/1.3 var(--sans); letter-spacing: -.02em; }
.service h3, .tile h3, .faq summary, .slide blockquote, .steps li::before { letter-spacing: -.02em; }

/* Case study gallery: one image per row, full width, click to enlarge */
.gallery { grid-template-columns: 1fr; gap: 32px; margin-top: clamp(48px, 6vw, 80px); }
.gallery img, .case-cover img { cursor: zoom-in; aspect-ratio: auto; height: auto; }
.case-cover { aspect-ratio: auto; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,22,20,.88); display: grid; place-items: center; padding: 3vw; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); cursor: default; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.4); background: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.tile .shot img { will-change: transform; backface-visibility: hidden; transform: translateZ(0); }
.tile:hover .shot img { transform: translateZ(0) scale(1.03); }
.page-head .lead { max-width: 46em; }
.lead, h1, h2, .display { text-wrap: balance; }

/* Case study story: text and images alternate */
.case-more { padding-top: 0; }
.case-more .prose h2:first-child { margin-top: 0; }
.story { margin: clamp(56px, 7vw, 96px) 0; }
.story img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; display: block; }
.story figcaption { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); margin-top: 22px; }
.story figcaption h3 { margin: 0; font: 600 1.15rem/1.35 var(--sans); letter-spacing: -.01em; }
.story figcaption p { margin: 0; color: var(--body); max-width: 40em; }
@media (max-width: 900px) { .story figcaption { grid-template-columns: 1fr; gap: 8px; } .case-more > div[aria-hidden] { display: none; } }

/* Case layout v2: facts strip, label left / text right */
.case-facts { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: clamp(32px, 4vw, 48px) 0 0; border-top: 1px solid var(--line); }
.case-facts > div { padding: 18px 24px 0 0; }
.case-facts dd { font-weight: 500; }
.case-body.case-more { grid-template-columns: 4fr 8fr; padding-top: clamp(56px, 7vw, 96px); align-items: start; }
.case-label { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; position: sticky; top: 110px; }
.case-more .prose > :first-child { margin-top: 0; }
.case-more .prose h2 { margin-top: 0; }
.case-next { padding-top: clamp(56px, 7vw, 96px); }
.case-next p { margin: 0; }
@media (max-width: 900px) { .case-body.case-more { grid-template-columns: 1fr; gap: 16px; } .case-label { position: static; } .case-facts { grid-template-columns: 1fr 1fr; } }

/* Case layout v3: one flush-left column */
.case-body.case-more { display: block; }
.case-label { position: static; margin: 0 0 18px; }
.case-more .prose { max-width: 46em; }
.case-facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.story figcaption { display: block; max-width: 46em; margin-top: 18px; }
.story figcaption h3 { margin-bottom: 6px; }
@media (max-width: 900px) { .case-facts { grid-template-columns: 1fr 1fr; } }

/* v4: tighter rhythm, centered captions */
.story { margin: clamp(40px, 5vw, 64px) 0 0; }
.case-body.case-more { padding-top: clamp(40px, 5vw, 64px); }
.case-facts + .case-body.case-more { padding-top: clamp(40px, 5vw, 56px); }
.story figcaption { text-align: center; margin: 18px auto 0; max-width: 40em; }
.case-next { padding-top: clamp(48px, 6vw, 72px); }

/* v5: wider text, no early wrapping */
.page-head .lead { max-width: 60em; text-wrap: pretty; }
.case-more .prose { max-width: 60em; }
.case-more .prose p, .case-more .prose li { text-wrap: pretty; }
.story figcaption { max-width: 52em; }

/* v6: one text width, calmer facts, bigger body */
.case-more .prose { max-width: none; }
.case-more .prose p, .case-more .prose li { font-size: 1.125rem; line-height: 1.7; }
.case-facts dd { font-weight: 400; font-size: 1rem; color: var(--text); }
.case-facts dt { font-size: .85rem; }
.story figcaption { max-width: 60em; }
.story figcaption p { max-width: none; }

/* Founder photo */
.founder-photo { justify-self: end; width: min(100%, 400px); }
.founder-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
@media (max-width: 900px) { .founder-photo { justify-self: start; width: min(100%, 320px); } }

/* Client feedback card */
.case-quote { position: relative; padding: 30px 34px 28px; }
.case-quote .cq-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.case-quote .cq-label { font: 600 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.case-quote .cq-stars { font-size: 1.05rem; letter-spacing: 2px; line-height: 1; background: linear-gradient(90deg, #FF5A2C calc(var(--r) / 5 * 100%), #d9d6cf 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-quote .cq-score { font: 600 .9rem/1 var(--sans); color: var(--text); }
.case-quote blockquote { position: relative; padding-left: 34px; }
.case-quote blockquote::before { content: "\201C"; position: absolute; left: 0; top: -.15em; font: 700 3rem/1 Georgia, serif; color: #FF5A2C; }
.case-quote figcaption { padding-left: 34px; }

/* Mobile: calmer, more air, less stacking */
@media (max-width: 640px) {
  :root { --section: 64px; }
  .section::before { display: none; }
  .hero-map { height: 210px; }
  .hero-copy .lead { margin-bottom: 22px; }
  .services { gap: 12px; }
  .service, .service:nth-child(n) { min-height: 0; padding: 22px 20px; gap: 10px; box-shadow: none; transform: none; background: var(--paper, #fff); color: var(--text); border: 1px solid var(--line); }
  .service::before { width: 40px; height: 40px; margin-bottom: 4px; opacity: 1; border-color: var(--line); }
  .service h3 { font-size: 1.35rem; }
  .service:nth-child(1) { border-top: 3px solid var(--green); }
  .service:nth-child(2) { border-top: 3px solid #9fb59f; }
  .service:nth-child(3) { border-top: 3px solid var(--accent); }
  .service:nth-child(4) { border-top: 3px solid var(--band); }
  .slide { display: block; padding: 24px 22px; }
  .qmark { display: block; font-size: 3rem; line-height: .6; margin-bottom: 10px; }
  .slide blockquote { font-size: 1.2rem; line-height: 1.45; }
  .slide figcaption { margin-top: 18px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-quote { padding: 22px 20px; }
  .case-quote blockquote { padding-left: 0; font-size: 1.12rem; }
  .case-quote blockquote::before { position: static; display: block; height: .55em; }
  .case-quote figcaption { padding-left: 0; }
  .story figcaption { text-align: left; }
  .story { margin-top: 36px; }
  .case-body.case-more { padding-top: 40px; }
}
@media (max-width: 640px) {
  .service::before { display: none; }
  .steps li::before { font-size: 1.5rem; margin-bottom: 8px; color: var(--accent); }
  .steps li { padding-top: 16px; }
}
/* Mobile contact: form right after the heading */
@media (max-width: 900px) {
  .contact-grid { display: flex; flex-direction: column; gap: 0; }
  .contact-grid > div:first-child { display: contents; }
  .contact-grid > div:first-child > .rule { order: 0; }
  .contact-grid > div:first-child > h2 { order: 1; }
  .contact-grid > div:first-child > .intro { order: 2; margin-bottom: 24px; }
  .contact-grid > .form { order: 3; }
  .contact-grid > div:first-child > h3 { order: 4; margin-top: 40px; }
  .contact-grid > div:first-child > .call-steps { order: 5; }
  .contact-grid > div:first-child > .direct { order: 6; }
}
#contact { scroll-margin-top: 70px; }

/* Mobile: slim sticky header */
@media (max-width: 900px) {
  .site-header { padding: 0; }
  .site-header .nav { height: 56px; padding: 0 16px; border-width: 0 0 1px; max-width: none; }
  .brand svg { width: 28px; }
  .brand span { font-size: .8rem; }
  .menu-btn { width: 40px; height: 40px; }
  #contact { scroll-margin-top: 56px; }
}
/* Mobile: header scrolls away with the page */
@media (max-width: 900px) {
  .site-header { position: relative; top: auto; }
  .site-header.scrolled .nav { box-shadow: none; }
  #contact { scroll-margin-top: 0; }
}
