:root {
  --ivory: #efe7d9;
  --card: rgba(255, 255, 255, 0.06);
  --ink: #101925;
  --ink-soft: rgba(239, 231, 217, 0.74);
  --copper: #c57b49;
  --border: rgba(255, 255, 255, 0.12);
  --surface: #0c1520;
  --surface-2: #142231;
  --shadow-soft: 0 30px 80px -40px rgba(0, 0, 0, 0.6);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0a121b 0%, #0f1a27 48%, #122131 100%);
  color: var(--ivory);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: screen;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 {
  margin: 0;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.92;
}
p { margin: 0; line-height: 1.72; }
.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}
.shell { width: min(1400px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 19, 28, 0.84);
  border-bottom: 1px solid var(--border);
}
.header-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.breadcrumb a,
.breadcrumb span {
  color: var(--ink-soft);
}
.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--ivory);
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: min(24vw, 300px); min-width: 150px; height: auto; }
.nav a, .button, .button-ghost, .stat-label, .footer-label, .eyebrow { font-size: 10px; }
.nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; }
.nav a { color: var(--ink-soft); }
.nav a:hover, .nav a:focus-visible, .nav a.active { color: var(--ivory); }
.button, .button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: 180ms ease;
}
.button { background: var(--ivory); color: var(--ink); }
.button:hover, .button:focus-visible { background: var(--copper); color: var(--ink); }
.button-ghost {
  color: var(--ivory);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.button-ghost:hover, .button-ghost:focus-visible { color: var(--copper); border-color: rgba(255,255,255,.24); }
.hero-topline {
  padding-top: 42px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 10px;
}
.hero-grid, .manifesto-grid, .contact-grid, .page-intro-grid, .split-grid, .services-grid, .stats-grid,
.principles-grid, .footer-grid, .contact-detail-grid, .service-detail-grid, .card-grid, .sitemap-grid, .service-list-grid, .support-grid {
  display: grid;
  gap: 28px;
}
.hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.78fr); align-items: stretch; }
.hero-copy h1, .page-intro h1, .page-title-block h1 { font-size: clamp(3rem, 8vw, 6.8rem); }
.hero-copy .accent, .page-intro .accent, .italic { color: var(--copper); font-style: italic; }
.hero-summary, .page-intro p, .manifesto-copy p, .service-copy p, .contact-copy p, .card-copy p, .service-detail-copy p,
.contact-item p, .footer-text, .footer-note, .dark-card p, .stat-note, .service-card p, .sitemap-list li, .list li { color: var(--ink-soft); }
.hero-summary { margin-top: 28px; max-width: 760px; font-size: 1.08rem; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media, .media-block, .service-media, .wide-band, .page-intro-media, .service-detail-media {
  position: relative; overflow: hidden;
}
.hero-media { aspect-ratio: 4 / 5; }
.page-intro-media { aspect-ratio: 4 / 5; }
.media-block { aspect-ratio: 3 / 4; }
.wide-band { aspect-ratio: 16 / 7; }
.service-media { aspect-ratio: 4 / 5; }
.service-detail-media { aspect-ratio: 4 / 3; }
.hero-media img, .media-block img, .service-media img, .wide-band img, .page-intro-media img, .service-detail-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32, 41, 54, 0.62), transparent 45%);
}
.hero-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: var(--ivory);
  font-size: 10px;
}
.ticker {
  margin-top: 70px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
}
.marquee {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  color: rgba(239, 231, 217, 0.22);
  text-shadow: 0 0 1px rgba(239, 231, 217, 0.08);
}
.marquee span { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee .mark, .eyebrow, .principle-index, .field-tag, .page-kicker, .breadcrumb-current { color: var(--copper); }
.section { margin-top: 96px; }
.stats-grid, .services-grid, .principles-grid, .contact-detail-grid, .service-list-grid { gap: 1px; background: var(--border); }
.stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.services-grid, .service-list-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.principles-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.contact-detail-grid, .card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.support-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; background: transparent; }
.stat-card, .service-card, .principle-card, .contact-detail-card, .sitemap-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  color: var(--ivory);
}
.stat-card, .contact-detail-card, .sitemap-panel { padding: 36px 30px; }
.stat-value { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1; }
.stat-label { margin-top: 14px; color: var(--ink-soft); }
.manifesto-grid, .page-intro-grid, .contact-grid { grid-template-columns: minmax(280px, .8fr) minmax(0,1fr); align-items: center; }
.page-intro-grid.reverse, .split-grid.reverse { grid-template-columns: minmax(0,1fr) minmax(280px,.8fr); }
.split-grid, .service-detail-grid { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: center; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
}
.section-heading h2, .manifesto-copy h2, .contact-copy h2, .dark-card h2, .footer-hero h2 { font-size: clamp(3rem, 7vw, 7rem); }
.section-heading h2 { max-width: 760px; }
.manifesto-copy p, .contact-copy p { margin-top: 28px; max-width: 680px; }
.founders {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: rgba(32, 41, 54, 0.62);
  font-size: 11px;
}
.divider { width: 1px; height: 12px; background: var(--border); }
.service-card { transition: filter 600ms ease; }
.service-media img { filter: grayscale(1); transition: filter 700ms ease; }
.service-card:hover .service-media img { filter: grayscale(0); }
.field-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 7px 10px;
  background: rgba(32, 41, 54, 0.72);
  color: var(--ivory);
  font-size: 11px;
}
.service-copy, .service-detail-copy, .card-copy, .dark-card, .contact-panel { padding: 24px; }
.principle-card { min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; }
.process-card { min-height: 280px; padding: 34px; border: 1px solid var(--border); }
.process-card h3, .service-copy h3, .service-detail-copy h3, .card-copy h3, .contact-item h3, .contact-detail-card h3, .service-card h3 {
  font-size: clamp(2rem, 3vw, 3rem);
}
.process-card p { margin-top: 16px; max-width: 30ch; font-size: 1.06rem; line-height: 1.75; }
.process-card .principle-index { display: block; margin-bottom: 26px; font-size: 14px; }
.service-copy p, .service-detail-copy p, .card-copy p, .contact-item p, .service-card p { margin-top: 12px; }
.dark-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(10,18,27,.98), rgba(20,34,49,.96));
  color: var(--ivory);
  box-shadow: var(--shadow-soft);
}
.dark-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/texture-mist.webp") center/cover no-repeat;
  opacity: .34;
  mix-blend-mode: screen;
}
.dark-card-inner { position: relative; }
.dark-card h2, .dark-card h3, .dark-card .eyebrow, .dark-card a, .dark-card strong { color: var(--ivory); }
.dark-card .button, .dark-card .button:visited, .dark-card .button:hover, .dark-card .button:focus-visible { color: var(--ink); }
.dark-card p, .dark-card .footer-note { color: rgba(245, 240, 232, 0.78); }
.contact-stack, .footer-links, .footer-contact, .contact-list, .sitemap-list { display: grid; gap: 18px; }
.rule { height: 1px; background: rgba(245,240,232,.18); }
.contact-row h3, .contact-item h3, .contact-detail-card h3 {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.contact-row h3 { color: rgba(245,240,232,.52); }
.contact-row p { margin-top: 10px; color: var(--ivory); }
.contact-grid { align-items: stretch; }
.contact-panel { border: 1px solid var(--border); background: rgba(255,255,255,.05); }
.contact-panel .button { width: 100%; margin-top: 28px; }
.contact-form { display: grid; gap: 0; }
.contact-form .contact-item h3 { font-size: .78rem; }
.contact-input {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--ivory);
  padding: 12px 14px;
  font: inherit;
  border-radius: 0;
}
.contact-input:focus { outline: 1px solid rgba(197,123,73,.6); border-color: rgba(197,123,73,.6); }
.contact-input--textarea { resize: vertical; min-height: 120px; }
.contact-status { margin-top: 18px; font-size: .95rem; line-height: 1.6; }
.contact-status[data-state="success"] { color: #9ee0af; }
.contact-status[data-state="error"] { color: #ffb4b4; }
.contact-status[data-state="pending"] { color: rgba(239,231,217,.82); }
.contact-honeypot { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; pointer-events:none; }
.contact-item { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.contact-item:last-child { padding-bottom: 0; border-bottom: 0; }
.page-intro, .page-title-block { padding-top: 40px; }
.page-intro p, .page-title-block p { margin-top: 24px; max-width: 760px; color: var(--ink-soft); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 11px;
}
.list { margin: 18px 0 0; padding-left: 18px; }
.list li { margin-top: 10px; }
.site-footer { margin-top: 120px; background: #09111a; color: var(--ivory); }
.site-footer .shell { padding-top: 70px; padding-bottom: 28px; }
.footer-hero { padding-bottom: 52px; border-bottom: 1px solid rgba(245,240,232,.14); }
.footer-grid { margin-top: 44px; grid-template-columns: 1.6fr 1fr 1fr; background: transparent; gap: 44px; }
.footer-bottom {
  margin-top: 52px;
  padding-top: 18px;
  border-top: 1px solid rgba(245,240,232,.14);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(245,240,232,.42);
  font-size: 11px;
}
.reveal { opacity: 0; transform: translateY(24px); animation: rise 700ms ease forwards; }
.delay-1 { animation-delay: 120ms; }
.delay-2 { animation-delay: 240ms; }
.delay-3 { animation-delay: 360ms; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rise { to { opacity:1; transform: translateY(0); } }
@media (max-width: 1080px) {
  .hero-grid, .manifesto-grid, .contact-grid, .page-intro-grid, .page-intro-grid.reverse, .split-grid,
  .split-grid.reverse, .services-grid, .stats-grid, .principles-grid, .footer-grid, .service-detail-grid,
  .contact-detail-grid, .card-grid, .service-list-grid, .support-grid {
    grid-template-columns: 1fr;
  }
  .header-row { flex-wrap: wrap; justify-content: center; }
  .brand { width: 100%; justify-content: center; }
  .nav { width: 100%; justify-content: center; }
  .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 720px) {
  .shell { width: min(1400px, calc(100% - 20px)); }
  .header-row { padding: 10px 0; min-height: auto; }
  .brand-logo { width: min(82vw, 260px); min-width: 0; }
  .nav { gap: 8px 14px; }
  .nav a { font-size: 10px; letter-spacing: 0.18em; }
  .hero-topline, .hero-actions, .footer-bottom, .founders { flex-direction: column; align-items: flex-start; }
  .header-row > .button { width: auto; min-height: 34px; padding: 0 14px; }
  .button-ghost { width: 100%; }
  .dark-card, .contact-panel, .service-copy, .service-detail-copy, .card-copy, .stat-card, .contact-detail-card, .sitemap-panel {
    padding: 22px;
  }
  .section { margin-top: 72px; }
  .page-title-block { padding-top: 28px; }
  .page-title-block p, .contact-copy p, .manifesto-copy p, .process-card p, .service-detail-copy p { max-width: none; }
  .contact-status { font-size: .9rem; }
  .contact-panel .button, .contact-form .button { width: 100%; }
  .footer-bottom { gap: 8px; }
}
.ecs-chatbot { position: fixed; right: 20px; bottom: 20px; z-index: 80; }
.ecs-chatbot__launcher, .ecs-chatbot__send { border: 0; cursor: pointer; font: inherit; }
.ecs-chatbot__launcher {
  min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--ivory); color: var(--ink);
  box-shadow: 0 18px 50px rgba(0,0,0,.28); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.ecs-chatbot__panel {
  width: min(380px, calc(100vw - 24px)); margin-top: 12px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,18,27,.96); box-shadow: 0 22px 60px rgba(0,0,0,.42); backdrop-filter: blur(18px);
}
.ecs-chatbot__header, .ecs-chatbot__form { padding: 18px; }
.ecs-chatbot__header {
  display: flex; align-items: start; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.ecs-chatbot__header h3 { margin-top: 6px; font-size: 1.6rem; line-height: 1; }
.ecs-chatbot__eyebrow, .ecs-chatbot__meta, .ecs-chatbot__label {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(239,231,217,.72);
}
.ecs-chatbot__close { border: 0; background: transparent; color: var(--ivory); cursor: pointer; font-size: 28px; line-height: 1; }
.ecs-chatbot__messages { display: grid; gap: 12px; max-height: 360px; overflow-y: auto; padding: 18px; }
.ecs-chatbot__message { max-width: 92%; padding: 12px 14px; line-height: 1.6; }
.ecs-chatbot__message--assistant { background: rgba(255,255,255,.06); color: var(--ivory); }
.ecs-chatbot__message--user { justify-self: end; background: var(--ivory); color: var(--ink); }
.ecs-chatbot__message--pending { opacity: .8; }
.ecs-chatbot__form { display:grid; gap:10px; border-top: 1px solid rgba(255,255,255,.08); }
.ecs-chatbot__input {
  width:100%; min-height:90px; resize:vertical; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04); color:var(--ivory); padding:12px 14px; font:inherit;
}
.ecs-chatbot__input::placeholder { color: rgba(239,231,217,.42); }
.ecs-chatbot__actions { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ecs-chatbot__send {
  min-height:44px; padding:0 18px; background:var(--ivory); color:var(--ink); font-family:"JetBrains Mono", ui-monospace, monospace;
  font-size:11px; letter-spacing:.16em; text-transform:uppercase;
}
.ecs-chatbot__send:disabled, .ecs-chatbot__input:disabled { opacity:.65; cursor:wait; }
@media (max-width: 720px) {
  .ecs-chatbot { right:12px; left:12px; bottom:12px; }
  .ecs-chatbot__launcher, .ecs-chatbot__panel { width:100%; }
  .ecs-chatbot__actions { flex-direction:column; align-items:stretch; }
}
