/* Eastin Solutions: palette Onyx / Wheat / Oceanic / Nectarine */
:root {
  --onyx: #0A171D;
  --wheat: #FFF6E9;
  --oceanic: #003F47;
  --nectarine: #FFBD76;

  --paper: var(--wheat);
  --paper-2: #F7EBD8;
  --ink: var(--onyx);
  --ink-2: #33464E;
  --line: rgba(10, 23, 29, 0.14);
  --line-strong: rgba(10, 23, 29, 0.32);
  --oceanic-2: #0B5560;
  --on-dark: #FFF6E9;
  --on-dark-2: rgba(255, 246, 233, 0.74);
  --line-dark: rgba(255, 246, 233, 0.2);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 6px;
  --gutter: 16px;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; height: auto; }
a { color: var(--oceanic); text-underline-offset: 3px; }
a:hover { color: var(--onyx); }
:focus-visible { outline: 2px solid var(--oceanic); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
p { margin: 0 0 1em; }

.mono { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 246, 233, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px;
  background: var(--oceanic); color: var(--nectarine);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em;
}
.brand-name { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--oceanic); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 359px) { .brand-name { display: none; } }
@media (max-width: 420px) { .nav .btn-small { padding: 8px 11px; font-size: 0.82rem; } .brand-name { font-size: 0.98rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius);
  background: var(--oceanic); color: var(--wheat);
  font: 600 0.98rem/1 var(--font); text-decoration: none; border: 1.5px solid var(--oceanic);
  cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--onyx); border-color: var(--onyx); color: var(--wheat); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 9px 14px; font-size: 0.88rem; }
.btn-ghost { background: transparent; color: var(--oceanic); }
.btn-ghost:hover { background: var(--oceanic); color: var(--wheat); border-color: var(--oceanic); }
.btn-nectarine { background: var(--nectarine); border-color: var(--nectarine); color: var(--onyx); }
.btn-nectarine:hover { background: var(--wheat); border-color: var(--wheat); color: var(--onyx); }

/* Eyebrows / section heads */
.eyebrow {
  font-family: var(--mono); font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--oceanic); margin-bottom: 16px;
}
.eyebrow-light { color: var(--nectarine); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 + .section-lede { margin-top: 18px; }
.section-lede { font-size: 1.12rem; color: var(--ink-2); }

.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band { padding: 96px 0; color: var(--on-dark); }
.band .section-lede { color: var(--on-dark-2); }
.band-oceanic { background: var(--oceanic); }
.band-onyx { background: var(--onyx); }
@media (max-width: 720px) { .section, .band { padding: 68px 0; } .section-head { margin-bottom: 36px; } }

/* Hero */
.hero {
  padding: 72px 0 88px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 40%, rgba(255,246,233,0.96) 30%, rgba(255,246,233,0.7) 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; }
.hero-proof li { display: flex; gap: 14px; align-items: baseline; font-size: 0.98rem; color: var(--ink-2); }
.hero-proof .mono { color: var(--oceanic); min-width: 34px; font-weight: 500; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 48px 0 64px; } }

/* Drawing sheet figure */
.sheet {
  margin: 0; background: #FFFCF6; border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 1px 0 rgba(10,23,29,0.04), 0 18px 40px -24px rgba(10,23,29,0.35);
}
.sheet-head {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); color: var(--ink-2);
}
.sheet img, .sheet video { width: 100%; }
.case-video { display: block; height: auto; aspect-ratio: 1; background: var(--paper-2); }
.fig-cap { font-size: 0.85rem; color: var(--ink-2); padding: 10px 14px; border-top: 1px solid var(--line); }
.title-block { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.title-block > div { padding: 10px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.title-block > div:nth-child(2n) { border-right: 0; }
.title-block > div:nth-last-child(-n+2) { border-bottom: 0; }
.tb-label { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.tb-val { display: block; font-weight: 500; font-size: 0.95rem; }

/* 3D viewer */
.viewer {
  position: relative; aspect-ratio: 4 / 3.2; width: 100%; cursor: grab; touch-action: pan-y;
  background:
    linear-gradient(rgba(0,63,71,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,63,71,0.07) 1px, transparent 1px),
    #FFFCF6;
  background-size: 24px 24px;
}
.viewer:active { cursor: grabbing; }
.viewer canvas { width: 100% !important; height: 100% !important; }
.viewer-short { aspect-ratio: 4 / 2.8; }
.viewer-wide { aspect-ratio: 16 / 10; }
.viewer-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); }
.viewer.is-ready .viewer-loading { display: none; }

/* Who */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.who-card { background: var(--oceanic); padding: 28px 24px 30px; }
.who-card h3 { color: var(--nectarine); margin-bottom: 12px; font-size: 1.15rem; }
.who-card p { color: var(--on-dark-2); margin: 0; font-size: 0.98rem; }
@media (max-width: 960px) { .who-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .who-grid { grid-template-columns: 1fr; } }

/* Case studies */
.case { padding: 56px 0; border-top: 1px solid var(--line-strong); }
.case:first-of-type { border-top: 0; padding-top: 8px; }
.case-meta { max-width: 820px; margin-bottom: 32px; }
.case-tag { color: var(--oceanic); margin-bottom: 12px; }
.case h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.case-summary { font-size: 1.1rem; color: var(--ink-2); margin: 0; }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.case-visuals { display: grid; gap: 20px; }
.fine { font-size: 0.88rem; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 960px) { .case-body { grid-template-columns: 1fr; gap: 32px; } }

.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--oceanic); }
.ticks-light li { color: var(--on-dark-2); }
.ticks-light li::before { background: var(--nectarine); }

.spec-table { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: #FFFCF6; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr; }
.spec-row span { padding: 9px 14px; border-top: 1px solid var(--line); font-size: 0.93rem; }
.spec-row span + span { border-left: 1px solid var(--line); font-family: var(--mono); font-size: 0.8rem; display: flex; align-items: center; }
.spec-head span { border-top: 0; background: var(--oceanic); color: var(--wheat); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

.label-img { background: #fff; padding: 12px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.stat { background: #FFFCF6; padding: 16px 14px; }
.stat-num { display: block; font-size: 2rem; font-weight: 600; color: var(--oceanic); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 0.95rem; font-weight: 500; margin-left: 2px; }
.stat-label { display: block; font-size: 0.82rem; color: var(--ink-2); margin-top: 6px; line-height: 1.35; }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

.legend { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink-2); }
.legend .mono { font-size: 0.66rem; white-space: nowrap; }
.legend-bar { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #08306b, #6baed6, #f7f7f7, #f4a582, #67001f); }

/* Schematic */
.schematic { width: 100%; padding: 12px; }
.s-line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.s-fluid { fill: var(--nectarine); opacity: 0.75; }
.s-accent path { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.s-accent .s-trace { stroke: var(--oceanic); stroke-width: 2.5; }
.s-band { fill: var(--oceanic); opacity: 0.12; }
.s-text text { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); letter-spacing: 0.02em; }

/* Engage */
.engage-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: stretch; }
.engage { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 32px; background: #FFFCF6; display: flex; flex-direction: column; }
.engage h3 { font-size: 1.6rem; margin-bottom: 12px; }
.engage > p { color: var(--ink-2); }
.engage-kicker { color: var(--oceanic); margin-bottom: 10px; }
.engage-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--ink-2); margin-bottom: 0; }
.engage-feature { background: var(--oceanic); border-color: var(--oceanic); color: var(--on-dark); }
.engage-feature > p, .engage-feature .engage-foot { color: var(--on-dark-2); }
.engage-feature .engage-kicker { color: var(--nectarine); }
.engage-feature h4 { color: var(--nectarine); }
.engage-feature .ticks li::before { background: var(--nectarine); }
.engage-feature .engage-foot { border-top-color: var(--line-dark); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
@media (max-width: 960px) { .engage-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .split { grid-template-columns: 1fr; gap: 4px; } .engage { padding: 24px; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #FFFCF6; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px; }
.step-label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--oceanic); }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--oceanic); color: var(--nectarine); font-weight: 700; flex: none; }
.step-label .mono { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.step h3 { margin-bottom: 10px; }
.step p:last-child { color: var(--ink-2); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; gap: 16px; } .step { padding: 24px; } }

/* About */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.about-photo { position: sticky; top: 96px; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p, .about-copy .ticks li { color: var(--ink-2); font-size: 1.08rem; max-width: 40em; }
.about-copy .ticks { margin: -4px 0 16px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } .about-photo { max-width: 260px; position: static; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-direct a { color: var(--nectarine); font-weight: 500; }
.contact-direct a:hover { color: var(--wheat); }
.phi-note { font-size: 0.88rem; color: var(--on-dark-2); border-left: 2px solid var(--nectarine); padding-left: 12px; }
.form { background: var(--wheat); color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 500; font-size: 0.93rem; padding: 0; }
.field legend { margin-bottom: 8px; }
.field legend small { font-weight: 400; color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #FFFCF6; border: 1px solid var(--line-strong); border-radius: 4px; padding: 11px 12px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--oceanic); outline-offset: 0; border-color: var(--oceanic); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; cursor: pointer; }
.checks input { accent-color: var(--oceanic); width: 17px; height: 17px; margin: 0; }
.form .btn-nectarine { background: var(--oceanic); border-color: var(--oceanic); color: var(--wheat); justify-self: start; padding-left: 32px; padding-right: 32px; }
.form .btn-nectarine:hover { background: var(--onyx); border-color: var(--onyx); }
.form-status { margin: 0; font-size: 0.95rem; min-height: 1.4em; }
.form-status.is-error { color: #9A2B12; }
.form-status.is-ok { color: var(--oceanic); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.is-invalid { border-color: #9A2B12 !important; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .field-row, .checks { grid-template-columns: 1fr; } .form { padding: 20px; } }

/* Footer */
.site-footer { background: var(--onyx); color: var(--on-dark-2); padding: 40px 0 48px; font-size: 0.92rem; border-top: 1px solid var(--line-dark); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.site-footer p { margin: 0 0 4px; }
.site-footer .brand-name { color: var(--wheat); }
.site-footer a { color: var(--nectarine); }
.footer-fine { font-size: 0.82rem; line-height: 1.55; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }
