:root {
  --ink: #0B2A3C;
  --ink-2: #2C4A5A;
  --ink-3: #3F5F70;
  --ground: #EEF3F5;
  --paper: #FFFFFF;
  --line: #C9D6DC;
  --tint: #D5E1E6;
  --accent: #C8431C;
  --accent-ink: #B23A16;
  --radius: 10px;
  --display: Archivo, "Helvetica Neue", Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--ground); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.wrap.narrow { max-width: 860px; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; }
.more { font-weight: 600; display: inline-block; padding: 10px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 6px; border: 1.5px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #123C54; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.4rem; text-decoration: none; letter-spacing: -0.01em; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 500; font-size: 0.95rem; }
.nav a { text-decoration: none; padding: 12px 0; }
.header-cta { display: flex; gap: 10px; }
.site-footer { background: var(--ink); color: var(--tint); font-size: 0.9rem; }
.site-footer a { color: var(--tint); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; font-style: normal; }
.footer-col strong { color: #fff; font-family: var(--display); font-size: 1.05rem; }
address.footer-col { display: block; line-height: 1.9; }
address.footer-col a { display: inline-block; }
address.footer-col a:first-child, address.footer-col a:last-child { display: block; }

/* Sections */
.section { padding-block: 72px; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.section-head p { color: var(--ink-3); }
.page-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; padding-block: 72px 64px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-media { height: clamp(260px, 36vw, 440px); border: 1px solid #B8C9D1; border-radius: var(--radius); overflow: hidden; }
.hero-media img, .hero-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Service tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tab { min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; font-size: 1.02rem; cursor: pointer; }
.tab.is-on { background: var(--ink); color: #fff; }
.panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-bottom: 16px; }
.panel-main { display: flex; flex-direction: column; gap: 16px; }
.panel-main h3 { font-size: 2rem; }
.panel-main p { font-size: 1.1rem; color: var(--ink-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.panel-side { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.rel + .rel { border-top: 1px solid var(--line); padding-top: 14px; }
.rel p, .panel-side > p { font-size: 0.95rem; color: var(--ink-2); margin-top: 4px; }
.process { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.process li { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.process h3 { font-size: 1.2rem; }
.process p { font-size: 0.95rem; color: var(--ink-2); }
.step-n { font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--accent-ink); }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 3 / 2; background: var(--tint); }
.card-media img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 a { text-decoration: none; }
.card-body p { color: var(--ink-2); font-size: 0.98rem; }
.card-body .more { margin-top: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.project-stack { display: flex; flex-direction: column; gap: 24px; }
.featured { background: var(--ink); border-color: var(--ink); color: #fff; }
.featured .eyebrow { color: #F2A98F; }
.featured a, .featured a:hover { color: #fff; }
.featured .card-body p { color: var(--tint); }
.featured h3 { font-size: 1.9rem; }
.compact { flex: 1; }
.compact .card-media { display: none; }

/* Image placeholder shown until a photo is added */
.ph { display: flex; align-items: flex-end; padding: 14px; background: var(--tint); min-height: 180px; }
.ph span { font-size: 0.8rem; color: var(--ink-2); background: var(--ground); padding: 5px 9px; border-radius: 4px; overflow-wrap: anywhere; }
.featured .ph { background: #1C4257; }

/* About */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; }
.about h2 { margin-bottom: 16px; }
.about p + p { margin-top: 12px; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list .lead { margin-bottom: 8px; }
.contact-item { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.contact-item span { font-size: 0.85rem; color: var(--ink-3); }
.contact-item strong { font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-item.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.contact-item.primary span { color: var(--tint); }
.contact-form { display: flex; flex-direction: column; gap: 16px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; color: inherit; min-height: 48px; padding: 10px 14px; border: 1px solid #8FA5B0; border-radius: 6px; background: var(--paper); width: 100%; }
.contact-form textarea { resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--ink-2); }

/* Project page */
.back { margin-bottom: 16px; }
.cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 32px; }
.cover img { width: 100%; max-height: 560px; object-fit: cover; }
.cover .ph { min-height: 320px; }
.specs { margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.specs div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.specs dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.prose { font-size: 1.08rem; color: var(--ink-2); max-width: 44rem; }
.prose h2 { font-size: 1.5rem; color: var(--ink); margin: 36px 0 12px; }
.prose h3 { font-size: 1.2rem; color: var(--ink); margin: 28px 0 10px; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 40px; }
.gallery figure { margin: 0; }
.gallery img, .gallery .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.gallery figcaption { font-size: 0.9rem; color: var(--ink-3); margin-top: 8px; }
.cta { margin-top: 56px; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { font-size: 1.5rem; }

@media (max-width: 640px) {
  .section { padding-block: 48px; }
  .hero { padding-block: 40px; gap: 32px; }
  .nav { order: 3; width: 100%; gap: 0 24px; }
  .panel, .contact-form { padding: 22px; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand-logo { height: auto; max-height: 34px; max-width: 100%; }
  .header-cta { gap: 8px; }
  .header-cta .btn-small { padding: 0 14px; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tab { padding: 0 6px; font-size: 0.9rem; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 28px; }
  .featured h3 { font-size: 1.6rem; }
  .cta { padding: 24px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery .ph { min-height: 0; }
}
