/* Open Stack Space LLC — stylesheet
   Palette: harbour navy, porcelain, mist, slate, brass. */
:root {
  --navy: #13202E;
  --navy-2: #1C2C3E;
  --ink: #13202E;
  --text: #2E3B48;
  --slate: #5B6877;
  --mist: #E3E7EA;
  --line: #D6DCE1;
  --porcelain: #F6F7F5;
  --white: #FFFFFF;
  --brass: #A88A55;
  --brass-light: #C9AE78;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --block: clamp(80px, 11vw, 148px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px; border: 1px solid transparent; border-radius: 2px;
  font: 500 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--dark { background: var(--navy); color: var(--porcelain); }
.btn--dark:hover { background: var(--navy-2); color: var(--brass-light); }
.btn--light { background: var(--porcelain); color: var(--navy); }
.btn--light:hover { background: var(--white); color: var(--navy); border-color: var(--brass-light); }
.btn--ghost { border-color: rgba(246,247,245,.35); color: var(--porcelain); }
.btn--ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }
.btn--line { min-height: 42px; padding: 0 20px; border-color: var(--navy); color: var(--navy); }
.btn--line:hover, .btn--line[aria-current] { background: var(--navy); color: var(--porcelain); }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link {
  display: inline-block; font-weight: 500; font-size: .95rem; color: var(--ink);
  text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--brass);
}
.text-link:hover { color: var(--brass); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--mist); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand svg { height: 46px; width: auto; }
.brand:hover { color: inherit; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { font-size: .95rem; color: var(--text); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-links a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--mist); }
.nav-links a[aria-current]:not(.btn) { color: var(--ink); border-bottom-color: var(--brass); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #C3CCD5; padding: clamp(72px, 10vw, 128px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 {
  color: var(--porcelain); font-weight: 400; line-height: 1.02; letter-spacing: -.015em;
  font-size: clamp(3rem, 7.2vw, 6.2rem); max-width: 11ch; margin-bottom: 36px;
}
.hero .lead { font-size: 1.12rem; max-width: 34em; color: #AEB9C4; margin-bottom: 44px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mark { justify-self: end; width: 100%; max-width: 420px; }
.hero-mark svg { width: 100%; height: auto; overflow: visible; }
.hero-index {
  list-style: none; margin: clamp(72px, 9vw, 120px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid rgba(246,247,245,.14);
}
.hero-index li { border-right: 1px solid rgba(246,247,245,.14); }
.hero-index li:last-child { border-right: 0; }
.hero-index a {
  display: block; height: 100%; padding: 22px 18px 26px 0; margin-left: 18px;
  font-size: .86rem; line-height: 1.4; color: #AEB9C4; text-decoration: none;
}
.hero-index li:first-child a { margin-left: 0; }
.hero-index a:hover { color: var(--brass-light); }

/* Logo animation — the one orchestrated moment */
.mark.animate .ring { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 1.5s cubic-bezier(.65,0,.35,1) forwards; }
.mark.animate .b0, .mark.animate .f0 { animation-delay: .1s; }
.mark.animate .b1, .mark.animate .f1 { animation-delay: .35s; }
.mark.animate .b2, .mark.animate .f2 { animation-delay: .6s; }
.mark.animate .star, .mark.animate .sat { opacity: 0; transform-box: fill-box; transform-origin: center; animation: appear .9s ease forwards 1.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark.animate .ring { animation: none; stroke-dashoffset: 0; }
  .mark.animate .star, .mark.animate .sat { animation: none; opacity: 1; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--porcelain); padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--mist); }
.crumbs { display: flex; gap: 10px; font-size: .85rem; color: var(--slate); margin-bottom: 28px; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--brass); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.04; font-weight: 400; max-width: 16ch; }
.page-hero .lead { margin: 22px 0 0; font-size: 1.12rem; color: var(--slate); max-width: 36em; }

/* ---------- Blocks ---------- */
.block { padding: var(--block) 0; }
.block--porcelain { background: var(--porcelain); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.block-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.08; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.statement { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.12; font-weight: 400; max-width: 18ch; }
.prose { font-size: 1.06rem; max-width: 34em; padding-top: .6em; }
.prose p { color: var(--text); }
.prose .text-link { margin-top: 10px; }

/* Service list — editorial rows */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 40px; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.svc-row h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.15; }
.svc-row p { margin: 0; color: var(--slate); max-width: 38em; }
.row-link { font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--brass); padding-bottom: 3px; white-space: nowrap; }
.row-link:hover { color: var(--brass); }

/* Steps — a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 32px 32px 8px 0; position: relative; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps .num { display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--brass); margin-bottom: 24px; font-weight: 400; }
.steps h3 { font-size: 1.55rem; margin-bottom: 12px; }
.steps p { color: var(--slate); font-size: .98rem; }

/* Values */
.values { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.value { padding: 40px 48px 40px 0; border-bottom: 1px solid var(--line); }
.value:nth-child(even) { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.value h3 { font-size: 1.85rem; margin-bottom: 12px; }
.value p { margin: 0; color: var(--slate); max-width: 30em; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.quote { margin: 0; padding: 48px 56px 48px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.quote:nth-child(even) { padding-left: 56px; padding-right: 0; border-left: 1px solid var(--line); }
.quote blockquote {
  margin: 0 0 32px; font-family: var(--serif); font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.3; color: var(--ink); flex: 1;
}
.quote blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--brass); margin-bottom: 18px; }
.quote figcaption { display: flex; flex-direction: column; font-size: .92rem; padding-top: 18px; border-top: 1px solid var(--brass); width: max-content; min-width: 180px; }
.quote figcaption strong { color: var(--ink); font-weight: 600; }
.quote figcaption span { color: var(--slate); }
.quotes--feature { grid-template-columns: 1fr; border-top: 0; }
.quotes--feature .quote { padding: 0; border: 0; max-width: 900px; }
.quotes--feature blockquote { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.2; }

/* CTA */
.cta { background: var(--navy); color: #AEB9C4; padding: clamp(80px, 10vw, 128px) 0; }
.cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
.cta h2 { color: var(--porcelain); font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.04; font-weight: 400; max-width: 12ch; }
.cta p { font-size: 1.08rem; margin-bottom: 28px; max-width: 26em; }

/* Services page */
.jump-nav { position: sticky; top: 84px; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--mist); }
.jump-nav .wrap { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.jump-nav .wrap::-webkit-scrollbar { display: none; }
.jump-nav a { flex: 0 0 auto; padding: 18px 0; font-size: .88rem; color: var(--slate); text-decoration: none; border-bottom: 1px solid transparent; }
.jump-nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }
.svc-detail { padding: clamp(72px, 9vw, 120px) 0; scroll-margin-top: 140px; }
.svc-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.svc-detail h2 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1.06; max-width: 13ch; margin-bottom: 24px; }
.lead-dark { font-size: 1.08rem; color: var(--slate); max-width: 32em; margin-bottom: 36px; }
.included h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.included ul { list-style: none; margin: 0; padding: 0; }
.included li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); position: relative; }
.included li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 14px; height: 1px; background: var(--brass); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact-info h2, .form-title { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.1; margin-bottom: 16px; }
.form-title { margin-bottom: 36px; }
.contact-info > p { color: var(--slate); margin-bottom: 36px; }
.contact-info dl { margin: 0; border-top: 1px solid var(--line); }
.contact-info dt { font-size: .85rem; color: var(--slate); padding-top: 20px; }
.contact-info dd { margin: 4px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; color: var(--ink); }
.contact-info dd a { text-decoration: none; }
.contact-info dd a:hover { color: var(--brass); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.field { margin-bottom: 28px; }
.field label { display: block; font-size: .85rem; color: var(--slate); margin-bottom: 4px; }
.req { color: var(--brass); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0 12px; font: 400 1.05rem/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B6877' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 22px; cursor: pointer; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 0 var(--navy); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; margin: 4px 0 28px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: 0 0 auto; }
.captcha { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; margin-top: 6px; }
.captcha img { width: 170px; height: 52px; border: 1px solid var(--line); background: #F1F3F5; }
.captcha input { flex: 1; min-width: 160px; }
.captcha-reload { margin-top: 10px; background: none; border: 0; padding: 0; font: 400 .85rem var(--sans); color: var(--slate); cursor: pointer; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .2em; }
.captcha-reload:hover { color: var(--ink); }
.form-status { display: none; padding: 16px 18px; margin-bottom: 28px; font-size: .95rem; border-left: 2px solid; }
.form-status.ok { display: block; background: #EEF5F1; color: #1F5139; border-color: #2F7A55; }
.form-status.err { display: block; background: #F8EFEE; color: #7A2A22; border-color: #A33A2E; }
.contact-form .btn { min-width: 220px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9AA6B2; font-size: .95rem; padding-top: clamp(64px, 8vw, 104px); }
.cta + .site-footer { padding-top: 0; }
.cta + .site-footer .footer-top { background-image: linear-gradient(rgba(246,247,245,.12), rgba(246,247,245,.12)); background-size: calc(100% - var(--gutter) * 2) 1px; background-repeat: no-repeat; background-position: center top; padding-top: clamp(56px, 7vw, 88px); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding-bottom: 56px; }
.footer-brand svg { height: 50px; width: auto; }
.footer-statement { font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; color: #D5DCE2; max-width: 30em; margin: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 56px; background-image: linear-gradient(rgba(246,247,245,.12), rgba(246,247,245,.12)); background-size: calc(100% - var(--gutter) * 2) 1px; background-repeat: no-repeat; background-position: center top; }
.site-footer h2 { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: #F6F7F5; margin-bottom: 16px; letter-spacing: .01em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer p { margin: 0; line-height: 1.8; }
.site-footer a { color: #C3CCD5; text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 28px; background-image: linear-gradient(rgba(246,247,245,.12), rgba(246,247,245,.12)); background-size: calc(100% - var(--gutter) * 2) 1px; background-repeat: no-repeat; background-position: center top; font-size: .85rem; color: #7E8B98; }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); padding-top: clamp(56px, 7vw, 88px); padding-bottom: var(--block); align-items: start; }
.legal-side { position: sticky; top: 112px; max-height: calc(100vh - 136px); overflow-y: auto; overscroll-behavior: contain; padding-right: 12px; font-size: .9rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.legal-side::-webkit-scrollbar { width: 4px; }
.legal-side::-webkit-scrollbar-thumb { background: var(--line); }
.legal-side h4 { font-family: var(--sans); font-size: .82rem; font-weight: 500; color: var(--slate); margin: 0 0 14px; }
.legal-side ol, .legal-side ul { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 6px; }
.legal-side .policy-links { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-side ol a { color: var(--slate); }
.legal-side a { color: var(--text); text-decoration: none; }
.legal-side a:hover { color: var(--brass); }
.legal-side a.active { color: var(--ink); border-bottom: 1px solid var(--brass); }
.legal-body { max-width: 42em; }
.legal-body h2 { font-size: 1.85rem; margin: 2em 0 .6em; scroll-margin-top: 112px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 10px; }
.legal-body li::marker { color: var(--brass); }
.legal-body .updated { color: var(--slate); font-size: .9rem; }
.legal-body a { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .hero-index { grid-template-columns: repeat(3, 1fr); }
  .hero-index li:nth-child(3) { border-right: 0; }
  .hero-index li:nth-child(n+4) { border-top: 1px solid rgba(246,247,245,.14); }
  .hero-index li:nth-child(4) a { margin-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .svc-detail-grid, .contact-grid, .cta-inner, .footer-top { grid-template-columns: 1fr; }
  .hero-mark { justify-self: start; max-width: 260px; order: -1; }
  .svc-row { grid-template-columns: 1fr; gap: 12px; }
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-side { position: static; max-height: none; overflow: visible; padding-right: 0; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
  .legal-side ol { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { height: 72px; }
  .brand svg { height: 40px; }
  .jump-nav { top: 72px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--mist); padding: 8px var(--gutter) 28px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--mist); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 20px; }
  .nav-links a:not(.btn) { display: block; padding: 16px 0; border-bottom: 0; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
  .nav-links .btn { width: 100%; min-height: 50px; }
  .hero-index { grid-template-columns: 1fr 1fr; }
  .hero-index li { border-right: 0 !important; border-top: 1px solid rgba(246,247,245,.14); }
  .hero-index li:nth-child(odd) { border-right: 1px solid rgba(246,247,245,.14) !important; }
  .hero-index li a { margin-left: 0 !important; padding: 18px 14px 20px 0; }
  .hero-index li:nth-child(even) a { padding-left: 14px; }
  .steps, .values, .quotes, .form-row { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .value, .value:nth-child(even), .quote, .quote:nth-child(even) { padding: 36px 0; border-left: 0; }
  .block-head { flex-direction: column; gap: 14px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; }
}
