html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: #F6F1E7;
  color: #14213A;
  font-family: 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: #1F4FA8; text-decoration: none; }
a:hover { color: #14213A; }
input, select, textarea, button { font-family: inherit; }
::selection { background: #1F4FA8; color: #fff; }
section[id] { scroll-margin-top: 72px; }

/* ---------- shared ---------- */
.logo { display: block; }
.logo svg { display: block; width: 100%; height: 100%; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #1F4FA8;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1, h2 { font-stretch: 108%; letter-spacing: -0.02em; }
h1 em, h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: #1F4FA8;
  letter-spacing: -0.01em;
}
h2 em.em-light { color: #8FB3DE; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background .2s ease, color .2s ease;
}
.btn-primary { background: #1F4FA8; color: #fff; border: none; }
.btn-primary:hover { background: #14213A; color: #fff; }
.btn-outline { background: transparent; color: #14213A; border: 1.5px solid #14213A; }
.btn-outline:hover { background: #14213A; color: #F6F1E7; }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-lg { padding: 16px 24px; font-size: 16px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(246, 241, 231, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 33, 58, 0.08);
}
.brand { display: flex; align-items: center; gap: 12px; color: #14213A; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: 0.01em; font-stretch: 112%; }
.brand-name-lg { font-size: 18px; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.22em; margin-top: 4px; color: #1F4FA8; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 14px; font-weight: 500; }
.nav-links { display: contents; }
.nav-links a { color: #14213A; }
.nav-links a:hover { color: #1F4FA8; }
@media (max-width: 759px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: #F3F0EA;
  touch-action: pan-y;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-hint {
  position: absolute;
  top: 84px;
  right: clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(246, 241, 231, 0.92);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #14213A;
  pointer-events: none;
}
.hint-dot { width: 8px; height: 8px; background: #1F4FA8; border-radius: 1px; }
.hint-mobile { display: none; }
@media (max-width: 759px) {
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
}
.hero-card-wrap {
  position: absolute;
  left: clamp(12px, 4vw, 48px);
  right: clamp(12px, 4vw, 48px);
  bottom: clamp(12px, 5vh, 56px);
  pointer-events: none;
}
.hero-card {
  max-width: 760px;
  background: #F6F1E7;
  padding: clamp(24px, 4vw, 52px);
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(20, 33, 58, 0.45);
  pointer-events: auto;
}
.hero-card h1 {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-card p {
  margin: 22px 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  max-width: 560px;
  color: #2C3850;
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- ticker ---------- */
.ticker { background: #14213A; color: #F6F1E7; overflow: hidden; }
.ticker-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 3vw, 40px);
  padding: 22px clamp(16px, 4vw, 48px);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticker-row i { color: #8FB3DE; font-style: normal; }

/* ---------- generic section ---------- */
.section { padding: clamp(72px, 10vw, 140px) clamp(16px, 4vw, 48px); max-width: 1440px; margin: 0 auto; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 0.95;
  font-weight: 800;
  max-width: 820px;
  text-wrap: balance;
}
.section-head p { margin: 0; max-width: 380px; font-size: 17px; line-height: 1.5; color: #2C3850; text-wrap: pretty; }
.work-link { font-size: 16px; font-weight: 600; }

/* ---------- services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.svc-card {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(20, 33, 58, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(20, 33, 58, 0.4); }
.svc-card:focus-visible { outline: 2px solid #1F4FA8; outline-offset: 2px; }
.svc-canvas { display: block; width: 100%; height: 220px; }
.svc-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.svc-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: #1F4FA8; text-transform: uppercase; }
.svc-title { font-size: 24px; font-weight: 700; font-stretch: 105%; letter-spacing: -0.01em; color: #14213A; }
.svc-desc { font-size: 15px; line-height: 1.5; color: #2C3850; }
.svc-cta { margin-top: 8px; font-size: 14px; font-weight: 600; color: #1F4FA8; }

/* ---------- studio ---------- */
.studio { background: #E9DFCC; padding: clamp(72px, 10vw, 140px) clamp(16px, 4vw, 48px); }
.studio-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.studio-controls { display: flex; flex-direction: column; gap: 32px; }
.studio h2 { margin: 0; font-size: clamp(36px, 5vw, 68px); line-height: 0.95; font-weight: 800; text-wrap: balance; }
.studio-lede { margin: 16px 0 0; font-size: 17px; line-height: 1.5; color: #2C3850; max-width: 440px; text-wrap: pretty; }
.opt-group { display: flex; flex-direction: column; gap: 12px; }
.opt-label { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 3px;
  border: 1.5px solid #14213A;
  background: transparent;
  color: #14213A;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.opt.active { background: #14213A; color: #F6F1E7; }
.opt .dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(20, 33, 58, 0.2);
  flex: none;
}
.opt .dot.sq { border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(20, 33, 58, 0.15); }
.studio-preview { display: flex; flex-direction: column; gap: 14px; }
.studio-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(20, 33, 58, 0.55);
  background: #F3F0EA;
}
#studioCanvas { display: block; width: 100%; height: clamp(380px, 48vw, 620px); }
.studio-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.combo { font-size: 15px; color: #14213A; }
.combo strong { font-weight: 700; }
.combo span { color: #2C3850; }
.studio-actions { display: flex; gap: 8px; }

/* ---------- work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  grid-auto-rows: clamp(220px, 24vw, 320px);
  gap: clamp(10px, 1.4vw, 18px);
}
.work-item {
  position: relative;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #F3F0EA;
}
.work-tall { grid-row: span 2; }
.work-item canvas, .work-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.work-item img { object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.work-item img.loaded { opacity: 1; }
.work-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 10px;
  background: rgba(20, 33, 58, 0.72);
  color: #F6F1E7;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ---------- steps ---------- */
.steps { background: #14213A; color: #F6F1E7; padding: clamp(72px, 10vw, 140px) clamp(16px, 4vw, 48px); }
.steps-inner { max-width: 1440px; margin: 0 auto; }
.steps h2 { margin: 0 0 clamp(36px, 5vw, 64px); font-size: clamp(36px, 5.2vw, 72px); line-height: 0.95; font-weight: 800; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2px;
  background: rgba(246, 241, 231, 0.14);
  border: 2px solid rgba(246, 241, 231, 0.14);
  border-radius: 4px;
  overflow: hidden;
}
.step { background: #14213A; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.step-n { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 56px; line-height: 1; color: #8FB3DE; }
.step-title { font-size: 24px; font-weight: 700; font-stretch: 105%; }
.step-body { font-size: 16px; line-height: 1.55; color: #D6DCE8; text-wrap: pretty; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info h2 { margin: 0; font-size: clamp(40px, 6vw, 88px); line-height: 0.92; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.contact-info p { margin: 0; font-size: 18px; line-height: 1.5; color: #2C3850; max-width: 460px; text-wrap: pretty; }
.contact-cards { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; max-width: 440px; }
.contact-phone {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 22px;
  background: #1F4FA8; color: #fff;
  border-radius: 4px 4px 0 0;
  font-size: 20px; font-weight: 700;
}
.contact-phone:hover { background: #14213A; color: #fff; }
.contact-email {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 22px;
  background: #fff; color: #14213A;
  font-size: 18px; font-weight: 600;
}
.contact-email:hover { background: #E9DFCC; color: #14213A; }
.contact-loc {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 22px;
  background: #E9DFCC; color: #14213A;
  border-radius: 0 0 4px 4px;
  font-size: 18px; font-weight: 600;
}
.contact-loc .contact-tag { color: #1F4FA8; }
.contact-tag { font-size: 13px; letter-spacing: 0.16em; font-weight: 600; }
.contact-email .contact-tag { color: #1F4FA8; }

.form-card { background: #fff; border-radius: 4px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 1px 0 rgba(20, 33, 58, 0.08); }
#estimateForm { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.field input, .field textarea {
  padding: 14px;
  border: 1.5px solid #D8CBB2;
  border-radius: 3px;
  font-size: 16px;
  background: #FBF8F2;
  color: #14213A;
  outline: none;
  text-transform: none;
  letter-spacing: 0;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: #1F4FA8; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-error { margin: 0; font-size: 14px; font-weight: 600; color: #B3261E; }
.btn-submit { padding: 18px 24px; font-size: 17px; font-weight: 700; justify-content: center; }

#estimateForm .opt { padding: 10px 14px; border-color: #D8CBB2; background: #FBF8F2; }
#estimateForm .opt.active { background: #1F4FA8; border-color: #1F4FA8; color: #fff; }

.sent { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; }
.sent-title { font-size: 32px; font-weight: 800; font-stretch: 108%; }
.sent-body { font-size: 17px; line-height: 1.5; color: #2C3850; }
.sent-again { all: unset; cursor: pointer; color: #1F4FA8; font-weight: 600; font-size: 15px; }
.sent-again:hover { color: #14213A; }

/* ---------- footer ---------- */
.site-footer { background: #E9DFCC; padding: 40px clamp(16px, 4vw, 48px); }
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-sub { margin-top: 5px; font-size: 11px; }
.footer-copy { font-size: 14px; color: #2C3850; }
