:root {
  --ink: #14131B;
  --ink-soft: #4E4C58;
  --paper: #FAFAF8;
  --paper-warm: #F0EEE8;
  --blue: #2952FF;
  --blue-deep: #1636B8;
  --coral: #FF5A3C;
  --coral-deep: #E6431F;
  --navy: #100F26;
  --navy-soft: #1B1A3B;
  --line: rgba(20, 19, 27, 0.12);
  --line-on-navy: rgba(250, 250, 248, 0.16);
  --radius: 3px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

h1, h2, h3, .display {
  font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes softIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulseRing {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.reveal { animation: riseIn 0.7s cubic-bezier(.2,.7,.3,1) both; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.18s; }
.reveal-3 { animation-delay: 0.3s; }
.reveal-art { animation: softIn 0.9s cubic-bezier(.2,.7,.3,1) both; animation-delay: 0.15s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(100deg, var(--blue) 0%, var(--coral) 150%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(41,82,255,0.28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(255,90,60,0.32); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-on-navy {
  background: linear-gradient(100deg, var(--blue) 0%, var(--coral) 150%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(41,82,255,0.35);
}
.btn-ghost-navy {
  background: transparent;
  border-color: var(--line-on-navy);
  color: var(--paper);
}
.btn-ghost-navy:hover { border-color: var(--paper); }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 44px; height: 44px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 19px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink);
}
.logo-tag {
  font-family: 'Manrope', sans-serif; font-size: 10.5px; font-weight: 600;
  color: var(--ink-soft); letter-spacing: 0.01em; margin-top: 2px;
}
@media (max-width: 640px) { .logo-tag { display: none; } }
.footer-word .logo-mark { width: 34px; height: 34px; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-links-desktop { display: none; }
  .nav-toggle { display: block; }
}

.mobile-panel { display: none; flex-direction: column; padding: 8px 32px 28px; border-top: 1px solid var(--line); gap: 4px; }
.mobile-panel.open { display: flex; }
.mobile-panel a { padding: 12px 0; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-panel .btn { margin-top: 16px; align-self: flex-start; }

/* ---------- Page header (non-home pages) ---------- */
.page-header { padding: 68px 0 56px; border-bottom: 1px solid var(--line); }
.page-header .eyebrow-free { color: var(--blue); font-weight: 700; font-size: 14.5px; margin-bottom: 14px; }
.page-header h1 { font-size: clamp(34px, 4.6vw, 52px); max-width: 16ch; }
.page-header p { margin-top: 18px; font-size: 17.5px; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Hero (home) ---------- */
.hero { padding: 80px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; top: -180px; right: -160px; width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,82,255,0.14) 0%, rgba(41,82,255,0.04) 45%, rgba(41,82,255,0) 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; bottom: -220px; left: -180px; width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,60,0.10) 0%, rgba(255,90,60,0) 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); max-width: 13ch; }
.hero .sub { margin-top: 22px; font-size: 18px; color: var(--ink-soft); max-width: 46ch; line-height: 1.65; }
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 52px 0 60px; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
}

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 12px 0; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.trust span { padding: 0 22px; border-right: 1px solid var(--line); position: relative; }
.trust span:last-child { border-right: none; }
.trust span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--coral)); margin-right: 9px; vertical-align: middle; }
@media (max-width: 720px) { .trust .wrap { justify-content: flex-start; } .trust span { padding: 0 16px 0 0; border-right: none; } }

/* ---------- Section shells ---------- */
section { padding: 92px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { margin-top: 15px; color: var(--ink-soft); font-size: 17px; max-width: 52ch; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 52px; }
.section-head-row .section-head { margin-bottom: 0; }
.link-arrow { font-weight: 700; font-size: 15px; color: var(--blue); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Services menu ---------- */
.services { background: var(--paper-warm); }
.menu-list { border-top: 1px solid var(--line); }
.menu-row {
  display: grid; grid-template-columns: 56px 1fr 1.3fr; gap: 28px; align-items: center;
  padding: 26px 20px; margin: 0 -20px; border-bottom: 1px solid var(--line);
  border-radius: var(--radius); transition: background 0.25s ease, transform 0.25s ease;
}
.menu-row:hover { background: rgba(41, 82, 255, 0.06); transform: translateX(4px); }
.icon-badge {
  width: 46px; height: 46px; border-radius: 50%; background: var(--paper);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.menu-row:hover .icon-badge { background: linear-gradient(135deg, var(--blue), var(--coral)); border-color: transparent; }
.menu-row .icon { width: 22px; height: 22px; color: var(--blue); transition: color 0.25s ease; }
.menu-row:hover .icon { color: #fff; }
.menu-row h3 { font-size: 21px; font-weight: 700; }
.menu-row p { color: var(--ink-soft); font-size: 15.5px; max-width: 52ch; }
@media (max-width: 760px) { .menu-row { grid-template-columns: 46px 1fr; } .menu-row p { grid-column: 2; } }

/* ---------- Preview cards (home teaser) ---------- */
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.preview-card { background: var(--paper); padding: 32px 26px; transition: background 0.25s ease; }
.preview-card:hover { background: var(--paper-warm); }
.preview-card .icon-badge { margin-bottom: 20px; }
.preview-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.preview-card p { font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 860px) { .preview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .preview-grid { grid-template-columns: 1fr; } }

/* ---------- Pull quote ---------- */
.pullquote { padding: 68px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-warm); }
.pullquote .wrap { text-align: center; }
.pullquote p {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-style: italic;
  font-size: clamp(23px, 3.2vw, 34px); max-width: 19ch; margin: 0 auto; line-height: 1.32; color: var(--ink);
}

/* ---------- About / owner ---------- */
.about-block .wrap { display: grid; grid-template-columns: 160px 1fr; gap: 48px; align-items: start; }
.avatar {
  width: 128px; height: 128px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 40px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(41,82,255,0.22);
}
.about-block h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.about-block p { color: var(--ink-soft); font-size: 16.5px; max-width: 62ch; margin-bottom: 14px; }
.about-block .signoff { font-family: 'Bricolage Grotesque', sans-serif; font-style: italic; font-weight: 600; font-size: 18px; color: var(--ink); margin-top: 18px; }
@media (max-width: 640px) { .about-block .wrap { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.process-step .num {
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px; display: block;
}
.process-step h3 { font-size: 22px; margin-bottom: 12px; }
.process-step p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 760px) { .process-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Area (navy section) ---------- */
.area {
  background: radial-gradient(circle at 15% 15%, rgba(41,82,255,0.22) 0%, rgba(41,82,255,0) 40%), var(--navy);
  color: var(--paper); position: relative; overflow: hidden;
}
.area h2, .area h3 { color: var(--paper); }
.area .section-head p { color: rgba(250,250,248,0.72); }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.area-map { width: 100%; height: auto; }
.area-list { display: flex; flex-direction: column; gap: 0; }
.area-list .row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line-on-navy); font-size: 15.5px; }
.area-list .row span:last-child { color: rgba(250,250,248,0.6); }
.pulse-ring { transform-origin: center; transform-box: fill-box; animation: pulseRing 2.6s ease-out infinite; }
@media (max-width: 860px) { .area-grid { grid-template-columns: 1fr; } .area-map { max-width: 340px; margin: 0 auto; } }

/* ---------- Closing quote band ---------- */
.closing-band {
  background: var(--navy);
  color: var(--paper);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-band::before {
  content: "";
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,60,0.16) 0%, rgba(41,82,255,0.08) 45%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.closing-band .wrap { position: relative; }
.closing-band h2 {
  color: var(--paper); font-size: clamp(27px, 3.8vw, 40px); max-width: 20ch; margin: 0 auto; line-height: 1.2;
}
.closing-band p {
  margin-top: 16px; color: rgba(250,250,248,0.72); font-size: 16.5px; max-width: 46ch; margin-left: auto; margin-right: auto;
}
.closing-band .cta-contact {
  margin-top: 26px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; font-size: 15.5px; font-weight: 700;
}
.closing-band .cta-contact a { transition: color 0.2s ease; }
.closing-band .cta-contact a:hover { color: var(--coral); }
.closing-band .btn { margin-top: 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.contact-info h2 { font-size: clamp(30px, 3.6vw, 42px); }
.contact-info p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; max-width: 42ch; }
.contact-detail { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.contact-detail a, .contact-detail .line { font-size: 15.5px; display: flex; align-items: baseline; gap: 10px; }
.contact-detail .label { font-weight: 700; color: var(--ink-soft); min-width: 78px; }
.contact-detail a:hover { color: var(--blue); }

form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 7px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; font-family: 'Manrope', sans-serif; font-size: 15px;
  border: 1px solid var(--line); background: var(--paper-warm); color: var(--ink); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.form-success { display: none; padding: 18px; background: var(--paper-warm); border: 1px solid var(--line); font-size: 15px; }
.form-success.show { display: block; }
form.hidden { display: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(250, 250, 248, 0.7); padding: 56px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(250,250,248,0.14); }
.footer-word { display: flex; align-items: center; gap: 10px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 21px; font-weight: 700; color: var(--paper); }
.footer-tag { margin-top: 10px; font-size: 14px; max-width: 32ch; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(250,250,248,0.5); margin-bottom: 14px; font-weight: 700; font-family: 'Manrope', sans-serif; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(250,250,248,0.45); }
