:root {
  --ink: #1c1f24;
  --ink-soft: #4a505a;
  --muted: #6b717c;
  --line: #e3e0da;
  --bg: #ffffff;
  --bg-alt: #f7f4ef;
  --accent: #c85f1f;
  --accent-strong: #a64c15;
  --accent-tint: #fbeee4;
  --error: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(28 31 36 / 6%), 0 4px 16px rgb(28 31 36 / 6%);
  --shadow-lift: 0 2px 4px rgb(28 31 36 / 6%), 0 16px 32px rgb(28 31 36 / 10%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--accent-strong); text-underline-offset: 3px; transition: color 0.15s ease; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }

.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; margin-right: 0.45rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.6rem 1rem; background: var(--ink); color: #fff; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Reveal on scroll. Hidden state only applies once JS has loaded (html.js). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 92%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; transition: box-shadow 0.25s ease; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgb(28 31 36 / 8%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; transition: transform 0.4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.nav { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 0.45rem 0.8rem; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-weight: 500; transition: background-color 0.15s ease, color 0.15s ease; }
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-tint); }

/* Buttons */
.button {
  display: inline-block; padding: 0.85rem 1.5rem; border: 2px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgb(200 95 31 / 25%); }
.button:active { transform: translateY(0); box-shadow: none; }
.button:disabled { opacity: 0.65; cursor: progress; transform: none; box-shadow: none; }
.button-ghost { background: transparent; color: var(--accent-strong); }
.button-ghost:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-strong); box-shadow: none; }
.button.is-busy { position: relative; padding-left: 2.6rem; }
.button.is-busy::before { content: ""; position: absolute; left: 1.1rem; top: 50%; width: 1rem; height: 1rem; margin-top: -0.5rem; border: 2px solid rgb(255 255 255 / 40%); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--bg-alt); padding: clamp(4rem, 9vw, 7.5rem) 0; isolation: isolate; }
.hero-inner { max-width: 820px; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 0.5em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.shape-a { width: 480px; height: 480px; right: -120px; top: -160px; background: #f4c9a6; }
.shape-b { width: 360px; height: 360px; right: 18%; bottom: -200px; background: #fbe3cc; animation-duration: 22s; animation-delay: -6s; }
.shape-c { width: 260px; height: 260px; left: -100px; bottom: -80px; background: #efe4d4; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.12); }
}

.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; color: var(--accent-strong); margin-bottom: 0.75rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46rem; }
.intro { font-size: 1.3rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* Trust strip */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding: 0.9rem 0; font-size: 0.95rem; color: var(--ink-soft); }
.trust-inner p { margin: 0; display: inline-flex; align-items: center; }
.trust-inner .icon { color: var(--accent); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 0.4em; }
.section-sub { color: var(--ink-soft); margin: 0; font-size: 1.1rem; }

.page-head { position: relative; overflow: hidden; background: var(--bg-alt); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head .lead { margin: 0; }
.page-head-center { text-align: center; padding-block: clamp(4rem, 10vw, 7rem); }
.page-head-center .lead { margin: 0 auto 1.5rem; }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: #e9c9b4; }
.card p { margin: 0 0 1rem; color: var(--ink-soft); flex: 1; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-strong); margin-bottom: 1.1rem; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-link { font-weight: 600; text-decoration: none; }
.card-link::after { content: "\2192"; display: inline-block; margin-left: 0.35em; transition: transform 0.25s var(--ease); }
.card-link:hover::after { transform: translateX(4px); }

/* Concept work grid */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-tile { aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: var(--radius); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.work-tile svg { width: 42%; height: auto; transition: transform 0.5s var(--ease); }
.work-item:hover .work-tile { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.work-item:hover .work-tile svg { transform: scale(1.1) rotate(-3deg); }
.work-name { margin: 0.85rem 0 0; font-weight: 600; }
.work-type { margin: 0; color: var(--muted); font-size: 0.9rem; }
.tile-1 { background: #1f3b2e; color: #d8e8c8; }
.tile-2 { background: #f0dcc4; color: #6a3d1b; }
.tile-3 { background: #dde9f3; color: #1d4e79; }
.tile-4 { background: #2b2d33; color: #f4a35f; }
.tile-5 { background: #c85f1f; color: #fff2e6; }
.tile-6 { background: #ece7f7; color: #4a3a7a; }

/* Steps (home) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.1rem; border-top: 3px solid var(--line); position: relative; }
.steps li::after { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 0; background: var(--accent); transition: width 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 120ms + 200ms); }
.steps li.is-visible::after, html:not(.js) .steps li::after { width: 100%; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 700; color: var(--accent-strong); margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Why */
.why-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .why-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.why-grid p { color: var(--ink-soft); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.why-list li { padding: 1.1rem 1.25rem 1.1rem 3.1rem; border-radius: var(--radius); background: var(--bg-alt); color: var(--ink-soft); position: relative; }
.why-list li::before { content: ""; position: absolute; left: 1.15rem; top: 1.35rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); background-size: 70%; background-position: center; background-repeat: no-repeat; }
.why-list strong { color: var(--ink); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; font-size: 1.05rem; position: relative; transition: color 0.15s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-strong); }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--accent-strong); border-bottom: 2px solid var(--accent-strong); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 1.25rem; color: var(--ink-soft); max-width: 60ch; animation: fade-in 0.35s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Services page */
.subnav { position: sticky; top: 4.25rem; z-index: 4; background: rgb(255 255 255 / 92%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 0.8rem 0.85rem; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.subnav a:hover, .subnav a[aria-current] { color: var(--accent-strong); border-bottom-color: var(--accent); }

.services .service { display: grid; gap: 2rem; grid-template-columns: 1fr; scroll-margin-top: 8rem; }
@media (min-width: 860px) { .services .service { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.services .service + .service { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.service-text p { color: var(--ink-soft); }
.service-fit { padding: 0.9rem 1.1rem; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 8px 8px 0; }
.service-fit strong { color: var(--ink); }
.service-includes { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.service-includes h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 1rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 0.4rem 0 0.4rem 1.75rem; color: var(--ink-soft); }
.checklist li::before { content: ""; position: absolute; left: 0.1rem; top: 0.85rem; width: 0.55rem; height: 0.3rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; counter-reset: tl; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 1.1rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--line); }
.timeline li { counter-increment: tl; position: relative; padding: 0 0 2rem 3.75rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: counter(tl); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; background: var(--bg); color: var(--accent-strong); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--bg-alt); }
.timeline h3 { margin-bottom: 0.3rem; }
.timeline p { margin: 0; color: var(--ink-soft); max-width: 60ch; }

/* CTA */
.cta { background: var(--ink); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; right: -200px; top: -300px; background: radial-gradient(circle, rgb(200 95 31 / 35%), transparent 65%); animation: pulse 9s ease-in-out infinite alternate; }
@keyframes pulse { from { transform: scale(0.9); opacity: 0.7; } to { transform: scale(1.15); opacity: 1; } }
.cta-inner { text-align: center; max-width: 720px; position: relative; }
.cta p { color: #d5d7db; }
.cta p:last-child { margin: 1.5rem 0 0; }

/* Legal pages */
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }
.contact-side { display: grid; gap: 1.5rem; }

.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #c9c5bd; border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.92rem; margin: 0.35rem 0 0; animation: fade-in 0.25s var(--ease); }
.field-error:empty { display: none; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; padding: 1rem; background: var(--bg-alt); border-radius: 8px; }
.consent input { width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; accent-color: var(--accent); }
.consent label { font-weight: 400; font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

.form-alert { padding: 0.85rem 1rem; margin-bottom: 1.25rem; border-radius: 8px; background: #fdecea; color: var(--error); font-weight: 600; animation: fade-in 0.3s var(--ease); }
.form-alert[hidden] { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-details { padding: 1.5rem; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.contact-details h2 { font-size: 1.25rem; }
.contact-details p { margin: 0 0 0.5rem; }
.contact-details .hours { margin-top: 0.9rem; color: var(--muted); font-size: 0.95rem; }

.next-steps { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.next-steps h2 { font-size: 1.25rem; }
.next-steps ol { margin: 0; padding-left: 1.25rem; color: var(--ink-soft); }
.next-steps li { margin-bottom: 0.6rem; padding-left: 0.25rem; }
.next-steps strong { color: var(--ink); }
.next-steps .note { margin: 1rem 0 0; font-size: 0.92rem; color: var(--muted); }

/* Footer */
.site-footer { background: #15171b; color: #c4c7cc; padding-top: 3rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f4a35f; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-bottom: 2rem; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.footer-legal { border-top: 1px solid #2b2e34; padding: 1.25rem 0 1.75rem; font-size: 0.875rem; }
.footer-legal p { margin: 0; }

@media (max-width: 640px) {
  .header-inner { justify-content: center; padding-block: 0.6rem; }
  .nav a { padding: 0.4rem 0.65rem; }
  .site-header { position: static; }
  .subnav { top: 0; }
  .trust-inner { flex-direction: column; gap: 0.35rem; }
}

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