:root {
  --ds-compact: 30px;
  --navy-950: #071727;
  --navy-900: #0b2138;
  --navy-800: #123652;
  --navy-700: #1c4968;
  --cedar: #b97942;
  --cedar-light: #d5a06b;
  --cream: #f3f0e9;
  --paper: #fbfaf7;
  --mist: #dde3e5;
  --slate: #55636d;
  --ink: #14212a;
  --success: #285b45;
  --warning: #8a5a22;
  --border: rgba(11, 33, 56, .16);
  --shadow: 0 24px 60px rgba(7, 23, 39, .14);
  --radius: 3px;
  --content: 1180px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cedar-light); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; padding: 10px 16px; background: white; color: var(--navy-950); }
.skip-link:focus { top: 12px; }
.eyebrow { margin: 0 0 14px; color: var(--cedar); font-weight: 800; font-size: .75rem; letter-spacing: .17em; text-transform: uppercase; }
.section { padding: 96px 0; }
.section-compact { padding: 64px 0; }
.section-dark { background: var(--navy-950); color: white; }
.section-cream { background: var(--cream); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2, .display, .page-title { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.section-heading h2 { margin: 0 0 18px; font-size: clamp(2.25rem, 5vw, 4rem); }
.section-heading p { color: var(--slate); font-size: 1.08rem; }
.section-dark .section-heading p { color: #bfccd3; }
.muted { color: var(--slate); }
.small { font-size: .875rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent;
  border-radius: var(--radius); background: var(--navy-900); color: white;
  font-weight: 750; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.button:hover { background: var(--navy-700); transform: translateY(-1px); }
.button-light { background: var(--paper); color: var(--navy-950); }
.button-light:hover { background: white; }
.button-outline { background: transparent; border-color: rgba(255,255,255,.45); color: white; }
.button-outline:hover { border-color: white; background: rgba(255,255,255,.07); }
.button-quiet { background: transparent; border-color: var(--border); color: var(--navy-900); }
.button-quiet:hover { background: var(--cream); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-800); font-weight: 800; text-decoration: none; }
.text-link::after { content: '→'; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

.topbar { background: var(--navy-950); color: #cbd7dd; font-size: .82rem; }
.topbar .container { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar a { color: white; text-decoration: none; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,250,247,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-950); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--navy-900); color: white; font-family: var(--serif); font-size: 1.45rem; border-bottom: 4px solid var(--cedar); }
.brand-name { display: grid; line-height: 1.05; font-weight: 850; letter-spacing: .02em; }
.brand-name small { margin-top: 5px; color: var(--slate); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav > a { color: var(--navy-950); font-size: .91rem; font-weight: 750; text-decoration: none; }
.site-nav > a:hover, .site-nav > a[aria-current='page'] { color: var(--cedar); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.nav-actions .button { min-height: 42px; padding: 9px 14px; font-size: .84rem; }
.nav-toggle { display: none; width: auto; min-width: var(--ds-compact,30px); height: var(--ds-compact,30px); padding: 0 10px; border: 1px solid var(--border); background: transparent; color: var(--navy-950); cursor: pointer; }

.hero { background: var(--navy-950); color: white; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr); min-height: 690px; }
.hero-copy { padding: 96px 7vw max(80px, 9vw) max(20px, calc((100vw - var(--content))/2)); display: flex; flex-direction: column; justify-content: center; }
.hero-copy .display { max-width: 720px; margin: 0 0 24px; font-size: clamp(3.3rem, 6.2vw, 6.5rem); }
.hero-copy .lead { max-width: 630px; margin: 0 0 34px; color: #c8d3d9; font-size: clamp(1.04rem, 1.7vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; min-height: 520px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,23,39,.42), transparent 36%); pointer-events: none; }
.hero-note { position: absolute; z-index: 2; right: 28px; bottom: 28px; max-width: 280px; padding: 18px 20px; background: rgba(7,23,39,.9); border-left: 3px solid var(--cedar); font-size: .88rem; }
.trust-strip { background: white; border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 24px 28px; border-right: 1px solid var(--border); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--navy-900); }
.trust-item span { color: var(--slate); font-size: .9rem; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--border); }
.service-row { min-height: 238px; padding: 36px 32px 36px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 58px 1fr; gap: 18px; }
.service-row:nth-child(odd) { border-right: 1px solid var(--border); }
.service-row:nth-child(even) { padding-left: 32px; }
.service-number { color: var(--cedar); font-family: var(--serif); font-size: 1.45rem; }
.service-row h3 { margin: 0 0 12px; color: var(--navy-900); font-family: var(--serif); font-size: 1.75rem; font-weight: 500; }
.service-row p { margin: 0 0 18px; color: var(--slate); }

.project-grid { display: grid; grid-template-columns: 1.18fr .82fr; grid-template-rows: 330px 330px; gap: 18px; }
.project-card { position: relative; overflow: hidden; min-height: 290px; background: var(--navy-900); color: white; }
.project-card:first-child { grid-row: 1 / 3; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.project-card:hover img { transform: scale(1.025); }
.project-overlay { position: absolute; inset: auto 0 0; padding: 72px 24px 22px; background: linear-gradient(transparent, rgba(7,23,39,.9)); }
.project-overlay p { margin: 0; color: #d6dfe3; font-size: .79rem; letter-spacing: .12em; text-transform: uppercase; }
.project-overlay h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }

.process-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.process-step { padding: 34px 34px 34px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.process-step:not(:nth-child(3n+1)) { padding-left: 34px; border-left: 1px solid rgba(255,255,255,.18); }
.process-step span { color: var(--cedar-light); font-family: var(--serif); font-size: 1.3rem; }
.process-step h3 { margin: 8px 0 10px; font-size: 1.1rem; }
.process-step p { margin: 0; color: #b9c7ce; font-size: .92rem; }

.cta-band { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 40px; padding: 54px 0; }
.cta-band h2 { margin: 0; color: var(--navy-950); font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.08; font-weight: 500; }
.cta-band .hero-actions { justify-content: flex-end; }

.page-hero { padding: 92px 0 72px; background: var(--navy-950); color: white; }
.page-title { max-width: 900px; margin: 0 0 18px; font-size: clamp(3rem, 7vw, 6rem); }
.page-hero p { max-width: 690px; color: #c5d0d6; font-size: 1.13rem; }
.content-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
.side-label { color: var(--cedar); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.prose h2, .prose h3 { color: var(--navy-900); font-family: var(--serif); font-weight: 500; line-height: 1.15; }
.prose h2 { margin: 0 0 24px; font-size: 2.5rem; }
.prose h3 { margin-top: 36px; font-size: 1.55rem; }
.prose p { color: var(--slate); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.fact { background: var(--paper); padding: 24px; }
.fact strong { display: block; color: var(--navy-900); font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.fact span { color: var(--slate); font-size: .86rem; }

.form-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; }
.form-card { padding: 36px; background: white; border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--navy-900); font-size: .86rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #aeb9bf; border-radius: 2px; background: white; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { margin: 18px 0 0; padding: 13px 15px; background: var(--cream); border-left: 3px solid var(--cedar); color: var(--slate); font-size: .85rem; }
.form-status { display: none; margin-top: 16px; padding: 13px 15px; background: #edf5f0; color: var(--success); }
.form-status.visible { display: block; }
.contact-list { display: grid; gap: 22px; }
.contact-list a { color: var(--navy-900); font-weight: 800; }

.site-footer { background: var(--navy-950); color: #c2ced4; padding: 68px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr .85fr; gap: 46px; }
.footer-grid h2, .footer-grid h3 { color: white; }
.footer-grid h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; }
.footer-grid h3 { margin: 0 0 14px; font-size: .83rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid p { max-width: 360px; font-size: .9rem; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #c2ced4; font-size: .9rem; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 20px; font-size: .78rem; }

/* Customer portal */
.portal-body { background: #eef1f2; }
.demo-banner { padding: 8px 20px; background: #f0dfc9; color: #533619; text-align: center; font-size: .8rem; font-weight: 800; }
.portal-header { background: white; border-bottom: 1px solid var(--border); }
.portal-header .nav-shell { min-height: 68px; }
.portal-nav { display: flex; align-items: center; gap: 20px; }
.portal-nav a { color: var(--navy-900); font-size: .88rem; font-weight: 750; text-decoration: none; }
.portal-nav a[aria-current='page'] { color: var(--cedar); }
.portal-main { min-height: calc(100vh - 106px); padding: 46px 0 76px; }
.portal-titlebar { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.portal-titlebar h1 { margin: 0; color: var(--navy-950); font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 500; line-height: 1.05; }
.portal-titlebar p { margin: 8px 0 0; color: var(--slate); }
.portal-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.panel { background: white; border: 1px solid var(--border); padding: 26px; }
.panel h2 { margin: 0 0 18px; color: var(--navy-900); font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 99px; background: #edf3ef; color: var(--success); font-size: .75rem; font-weight: 800; }
.status-draft { background: #f5ecdf; color: var(--warning); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.record-list { display: grid; gap: 12px; }
.record { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px; border: 1px solid var(--border); text-decoration: none; transition: border-color .2s, transform .2s; }
.record:hover { border-color: var(--navy-700); transform: translateY(-1px); }
.record strong { display: block; color: var(--navy-900); }
.record small { color: var(--slate); }
.record-meta { text-align: right; }
.progress { height: 7px; margin-top: 12px; background: var(--mist); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--cedar); }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; padding: 0 0 24px 28px; color: var(--slate); }
.timeline-item::before { content: ''; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--cedar); }
.timeline-item::after { content: ''; position: absolute; left: 8px; top: 19px; bottom: 0; width: 1px; background: var(--border); }
.timeline-item:last-child::after { display: none; }
.timeline-item strong { display: block; color: var(--navy-900); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-brand { position: relative; min-height: 540px; background: var(--navy-950); color: white; overflow: hidden; }
.auth-brand img { width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.auth-brand-copy { position: absolute; inset: auto 8vw 8vw; z-index: 2; max-width: 560px; }
.auth-brand-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 500; line-height: 1.03; }
.auth-card { padding: 7vw; display: flex; flex-direction: column; justify-content: center; background: white; }
.auth-card h2 { margin: 38px 0 8px; font-family: var(--serif); color: var(--navy-950); font-size: 2.4rem; font-weight: 500; }
.auth-form { display: grid; gap: 17px; margin-top: 26px; }
.auth-help { margin-top: 20px; color: var(--slate); font-size: .9rem; }
.auth-help a { color: var(--navy-900); font-weight: 800; }

@media (max-width: 1040px) {
  .site-nav { position: fixed; inset: 115px 0 0; padding: 34px 24px 70px; background: var(--paper); display: none; align-items: stretch; flex-direction: column; overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav > a { font-size: 1.15rem; }
  .nav-actions { margin: 10px 0 0; flex-direction: column; align-items: stretch; }
  .nav-toggle { display: grid; place-items: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 80px max(20px, calc((100vw - var(--content))/2)); }
  .hero-media { height: 540px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .portal-header .nav-shell { flex-wrap: wrap; padding-block: 10px; }
  .portal-nav { order: 3; width: 100%; padding: 8px 0 4px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--content)); }
  .topbar .container { justify-content: center; }
  .topbar span { display: none; }
  .nav-shell { min-height: 68px; }
  .brand-name small { display: none; }
  .site-nav { inset-block-start: 104px; }
  .section { padding: 68px 0; }
  .section-compact { padding: 48px 0; }
  .hero-copy { padding: 66px 20px; }
  .hero-copy .display { font-size: clamp(2.85rem, 14vw, 4.2rem); }
  .hero-media { height: 420px; min-height: 0; }
  .hero-note { right: 14px; bottom: 14px; left: 14px; max-width: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:first-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .service-grid { grid-template-columns: 1fr; }
  .service-row, .service-row:nth-child(even) { padding: 28px 0; border-right: 0; }
  .project-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .project-card:first-child { grid-row: auto; }
  .project-card { min-height: 330px; }
  .process-list { grid-template-columns: 1fr; }
  .process-step, .process-step:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .hero-actions { justify-content: flex-start; }
  .content-grid, .form-layout, .portal-grid { grid-template-columns: 1fr; gap: 34px; }
  .facts { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .portal-titlebar { align-items: flex-start; flex-direction: column; }
  .portal-nav { gap: 16px; }
  .record { grid-template-columns: 1fr; }
  .record-meta { text-align: left; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: 380px; }
  .auth-card { padding: 40px 22px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
