﻿/* Foundations shared by the business, service, and learning pages. */
:root {
  --bg: #f7f5ef; --surface: #eeede5; --surface-2: #fffefa;
  --text: #202c2c; --muted: #5b6661; --line: #d1d6cb;
  --mint: #006b60; --accent: #006b60; --accent-soft: #e4eee7;
  --coral: #ab4c32; --ink: #152e2b; --on-ink: #f5f4ec; --ink-muted: #bacdc4;
  --success: #18603e; --danger: #a02c2c; --warning: #805710;
  --font: 'DM Sans', Arial, sans-serif; --mono: 'DM Mono', monospace;
  --display: Georgia, 'Times New Roman', serif;
  --text-xs: 11px; --text-sm: 13px; --text-md: 16px; --text-lg: 20px;
  --title: clamp(34px, 3.4vw, 52px); --display-size: clamp(52px, 5.3vw, 80px);
  --space-section: clamp(64px, 7vw, 112px); --radius: 3px;
  --shadow: 0 12px 32px #152e2b0a; --duration: 180ms; --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--text-md)/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; } button:disabled { cursor: wait; opacity: .7; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
p { overflow-wrap: break-word; }
::selection { background: var(--accent); color: var(--surface-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.045em; }
h1 { line-height: 1.04; } h2 { font-size: var(--title); line-height: 1.13; margin-bottom: 0; }
h3 { font-size: 25px; line-height: 1.25; margin: 0 0 16px; }
.serif { font-family: var(--display); font-weight: 400; font-style: italic; letter-spacing: -.055em; }
.mint { color: var(--mint); }
.mono, .eyebrow { font: var(--text-xs)/1.6 var(--mono); letter-spacing: .055em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.section-label { color: var(--accent); }
.quiet { color: var(--muted); }
.status-dot, .nav-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.nav-dot { width: 4px; height: 4px; margin-left: 4px; vertical-align: middle; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 52px; padding: 12px 24px; background: var(--accent); color: var(--surface-2); border: 1px solid var(--accent); border-radius: var(--radius); font-size: var(--text-sm); font-weight: 500; transition: background var(--duration), transform var(--duration); }
.button:hover { background: var(--ink); transform: translateY(-2px); }
.button span { font-size: 20px; line-height: 1; }
.button-small { min-height: 44px; padding: 9px 18px; gap: 24px; }
.text-link { display: inline-flex; gap: 18px; align-items: center; font-size: var(--text-sm); padding-block: 8px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link span { font-size: 20px; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 12px 20px; background: var(--ink); color: var(--on-ink); z-index: 100; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 20; height: 88px; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; font-size: 26px; font-weight: 650; letter-spacing: -.06em; white-space: nowrap; }
.brand-symbol { font-family: Arial, sans-serif; font-size: 39px; font-weight: 400; line-height: 1; margin-right: 10px; color: var(--accent); }
.header-inner nav { display: flex; gap: 30px; align-items: center; }
.header-inner nav a { position: relative; padding-block: 10px; font-size: var(--text-sm); color: var(--muted); }
.header-inner nav a:hover, .header-inner nav a[aria-current] { color: var(--accent); }
.header-inner nav a[aria-current='location']::after { content: ''; position: absolute; height: 2px; left: 0; right: 0; bottom: 0; background: var(--accent); }
.header-cta { background: transparent; color: var(--text); border-color: var(--line); }
.header-cta:hover { color: var(--on-ink); }
.menu-toggle { display: none; }
.reading-progress { position: absolute; inset: auto 0 -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.section { padding-block: var(--space-section); }
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.section-top > .mono { font-size: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.section-heading p { max-width: 365px; font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 0; }
.process-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px; margin-top: 48px; }
.process-grid article { border-top: 1px solid var(--line); padding-top: 24px; }
.process-number { display: flex; justify-content: space-between; color: var(--accent); font: 36px/1 var(--display); }
.process-number > span { font-size: 22px; }
.process-grid h3 { font-size: 22px; margin-top: 32px; }
.process-grid p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.process-output { display: block; color: var(--muted); font-size: 10px; margin-top: 28px; }
.contact-section { border-block: 1px solid var(--line); background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 100px; align-items: start; }
.contact-grid h2 { margin: 24px 0; font-size: clamp(40px,4vw,60px); }
.contact-grid > div > p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.contact-star { display: none; }
.contact-email { display: inline-flex; gap: 20px; align-items: center; padding: 8px 0; font-size: 18px; border-bottom: 1px solid var(--line); margin-top: 12px; }
#project-form { padding: 32px; background: var(--surface-2); border: 1px solid var(--line); }
#project-form label { display: flex; flex-direction: column; gap: 10px; font-size: var(--text-sm); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
input, select, textarea { width: 100%; min-width: 0; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 15px; }
input, select { min-height: 48px; } textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .9; }
.form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.form-bottom > span { color: var(--muted); font-size: 11px; }
.form-bottom .button { flex-shrink: 0; }
.form-status, .form-note { color: var(--muted); font-size: 13px; line-height: 1.8; }
.form-status { color: var(--success); margin: 16px 0 0; } .form-status.error { color: var(--danger); } .form-status:empty { margin: 0; }
.faq-section { padding-block: var(--space-section); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 70px; margin-top: 28px; }
.faq-grid details { border-top: 1px solid var(--line); } .faq-grid details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 15px; line-height: 1.5; }
summary::-webkit-details-marker { display: none; }
summary > span { color: var(--accent); font-size: 22px; transition: transform var(--duration); }
details[open] summary > span { transform: rotate(45deg); }
details p { margin: 0 0 24px; max-width: 70ch; font-size: 14px; line-height: 1.85; color: var(--muted); }
details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 40px; }
.footer-top > span { font-size: 13px; color: var(--muted); } .footer-top > a:last-child { font-size: 13px; }
.footer-services, .service-footer-nav { display: flex; flex-wrap: wrap; gap: 18px 32px; padding-bottom: 32px; font-size: 13px; color: var(--muted); }
.footer-services a:hover, .service-footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
@media(max-width:1100px) {
  .container { width: calc(100% - 64px); } .header-inner nav { gap: 20px; }
  .contact-grid { gap: 48px; } .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-bottom { align-items: flex-start; flex-direction: column; }
}
@media(max-width:800px) {
  .container { width: calc(100% - 40px); } .site-header { height: 76px; }
  .header-inner { gap: 16px; } .header-cta { margin-left: auto; }
  .brand { font-size: 24px; } .brand-symbol { font-size: 32px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; order: 3; width: 44px; height: 44px; flex-shrink: 0; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; }
  .menu-toggle span { height: 1px; width: 100%; background: var(--accent); transition: transform var(--duration); }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .header-inner nav { display: none; position: absolute; top: 75px; left: 0; right: 0; padding: 24px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 8px; box-shadow: var(--shadow); }
  .header-inner nav.open { display: flex; } .header-inner nav a { font-size: 16px; }
  html:not(.navigation-ready) .site-header { height: auto; min-height: 76px; }
  html:not(.navigation-ready) .header-inner { flex-wrap: wrap; padding-top: 16px; }
  html:not(.navigation-ready) .menu-toggle { display: none; }
  html:not(.navigation-ready) .header-inner nav { display: flex; position: static; order: 4; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; border: 0; box-shadow: none; padding: 4px 0 16px; }
  html:not(.navigation-ready) .header-inner nav a { font-size: 13px; }
  .section-heading { gap: 30px; } .section-heading p { max-width: 300px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .form-bottom { flex-direction: row; align-items: center; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-top { flex-wrap: wrap; } .footer-top > span { order: 3; flex-basis: 100%; }
}
@media(max-width:580px) {
  .section-top > .mono { display: none; } .section-heading { display: block; }
  .section-heading p { max-width: 100%; margin-top: 24px; } .section-heading p br { display: none; }
  .header-inner { gap: 10px; } .header-cta { padding-inline: 12px; gap: 12px; font-size: 11px; }
  .brand { font-size: 22px; } .brand-symbol { margin-right: 6px; }
  .contact-grid h2 { font-size: 42px; } #project-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; } .form-bottom { flex-direction: column; align-items: flex-start; }
  input, select, textarea { font-size: 16px; }
  .process-grid h3 { font-size: 21px; } .process-output { font-size: 9px; }
  .footer-top { gap: 24px; } .footer-top > a:last-child { margin-left: auto; }
  .footer-bottom { flex-wrap: wrap; gap: 16px; } .footer-bottom > span { flex-basis: 100%; }
  .footer-bottom > a:last-child { margin-left: auto; }
  .footer-services, .service-footer-nav { gap: 14px 24px; }
}
@media(max-width:360px) { .container { width: calc(100% - 32px); } .brand { font-size: 20px; }.brand-symbol { font-size: 28px; }.header-cta { gap: 8px; padding-inline: 9px; }.process-grid { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; }
}
