:root {
  --navy: #023068;
  --navy-deep: #01224a;
  --teal: #018C8D;
  --teal-dark: #016A6B;
  --teal-light: #7FC6C7;
  --bg: #F7F6F2;
  --sand: #EDE7DC;
  --surface: #FFFFFF;
  --text: #1F2427;
  --muted: #5A6066;
  --border: #D8D2C6;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
  --text-hero: clamp(2.375rem, 1.5rem + 3.8vw, 4.5rem);

  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'General Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 0.9rem;
}
.eyebrow--light { color: var(--teal-light); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--teal-dark); color: #fff; text-decoration: none; font-weight: 600;
  font-size: var(--text-sm); letter-spacing: 0.01em;
  padding: 0.95rem 1.5rem; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; font-family: inherit;
  transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--small { padding: .6rem 1rem; background: var(--navy); }
.btn--small:hover { background: var(--teal-dark); }
.btn--full { width: 100%; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.header__logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: var(--text); position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--navy-deep); color: #fff; }
.hero__img, .hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img img { object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(1,34,74,.92) 0%, rgba(1,34,74,.78) 38%, rgba(1,34,74,.25) 72%, rgba(1,34,74,.1) 100%);
}
.hero__content { position: relative; z-index: 1; width: 100%; padding-top: clamp(4rem, 10vw, 7rem); padding-bottom: clamp(4rem, 10vw, 7rem); }
.hero h1 { font-size: var(--text-hero); max-width: 13ch; font-weight: 600; letter-spacing: -0.025em; }
.hero__lede { font-size: var(--text-lg); max-width: 44ch; margin-top: 1.4rem; color: rgba(255,255,255,.88); line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* Sections */
.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }
.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__head h2, .why h2, .contact h2 { font-size: var(--text-xl); color: var(--navy); }
.section__sub { margin-top: 1rem; color: var(--muted); }

/* Services: a tile grid, the gaps read as grout lines */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.service { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: .7rem; transition: background .25s var(--ease); }
.service:hover { background: #FBFAF7; }
.service--feature { grid-row: span 2; background: var(--navy); color: #fff; justify-content: flex-end; min-height: 320px; }
.service--feature:hover { background: var(--navy-deep); }
.service.service--feature p { color: rgba(255,255,255,.85); }
.service--feature .service__num { color: var(--teal-light); }
.service--feature h3 { font-size: var(--text-xl); }
.service__num { font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.service h3 { font-size: var(--text-lg); color: inherit; }
.service p { color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.service:not(.service--feature) h3 { color: var(--navy); }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.why__intro p:last-child { margin-top: 1.2rem; color: var(--muted); max-width: 46ch; }
.why__list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.why__list > div { padding: 1.4rem 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; }
.why__list dt { font-weight: 600; color: var(--navy); }
.why__list dd { color: var(--muted); font-size: var(--text-sm); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); counter-reset: s; }
.steps li { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--navy); }
.steps__n {
  position: relative; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem;
  color: var(--teal-dark); font-weight: 600; font-size: var(--text-sm); margin-bottom: 1.1rem; font-variant-numeric: tabular-nums;
}
.steps__n::before { content: ''; position: absolute; inset: 5px; border: 1.5px solid var(--teal); transform: rotate(45deg); }
.steps h3 { font-size: var(--text-lg); color: var(--navy); margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: var(--text-sm); }
.note { margin-top: clamp(2rem, 4vw, 3rem); padding: 1.1rem 1.3rem; background: var(--surface); border-left: 3px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--text-sm); color: var(--text); max-width: 760px; }

/* Band */
.band { background: var(--navy); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.band__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem 4rem; align-items: center; }
.band h2 { font-size: var(--text-xl); }
.towns { display: flex; flex-wrap: wrap; gap: .6rem; }
.towns li { border: 1px solid rgba(255,255,255,.3); padding: .5rem .95rem; border-radius: 999px; font-size: var(--text-sm); }
.band__note { grid-column: 2; color: rgba(255,255,255,.72); font-size: var(--text-sm); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__info > p { margin-top: 1rem; color: var(--muted); max-width: 42ch; }
.contact__list { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact__list dt { font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__list dd { font-size: var(--text-lg); font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; border-bottom: 1.5px solid var(--teal-light); }
.contact__list a:hover { border-color: var(--teal); }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.1rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__row { display: grid; gap: .4rem; }
.form label { font-size: var(--text-sm); font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem .85rem; width: 100%;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(1,140,141,.15); }
.form textarea { resize: vertical; min-height: 7rem; }
.form__error { color: #A12C7B; font-size: var(--text-sm); font-weight: 500; }
.form__hint { font-size: var(--text-xs); color: var(--muted); text-align: center; }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding: 3.5rem 0 5.5rem; }
.footer__inner { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.footer__logo { width: 150px; height: auto; }
.footer__text { display: grid; gap: .35rem; font-size: var(--text-sm); }
.footer__text a { text-decoration: none; color: #fff; }
.footer__text a:hover { text-decoration: underline; }
.footer__legal { color: rgba(255,255,255,.6); font-size: var(--text-xs); margin-top: .5rem; }

/* Mobile call bar */
.callbar { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .service--feature { grid-row: auto; grid-column: span 2; min-height: 240px; }
  .why, .contact, .band__inner { grid-template-columns: 1fr; }
  .band__note { grid-column: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}
@media (max-width: 600px) {
  .header__inner { height: 66px; }
  .header__logo img { height: 36px; }
  .header .btn--small { display: none; }
  .hero { min-height: auto; }
  .hero::after { background: linear-gradient(180deg, rgba(1,34,74,.55) 0%, rgba(1,34,74,.88) 60%, rgba(1,34,74,.95) 100%); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .services { grid-template-columns: 1fr; }
  .service--feature { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .why__list > div { grid-template-columns: 1fr; gap: .3rem; }
  .form__grid { grid-template-columns: 1fr; }
  .callbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    justify-content: center; align-items: center; padding: 1rem; border-radius: var(--radius);
    background: var(--teal-dark); color: #fff; font-weight: 600; text-decoration: none;
    box-shadow: 0 8px 24px rgba(1,34,74,.3);
  }
}

/* Dropdown */
.nav { align-items: center; }
.dd { position: relative; }
.dd__btn { font: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--text); background: none; border: 0; padding: .4rem 0; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.dd__btn svg { transition: transform .2s var(--ease); }
.dd.is-open .dd__btn svg { transform: rotate(180deg); }
.dd__menu {
  position: absolute; top: calc(100% + 14px); left: -1rem; min-width: 250px; list-style: none; margin: 0; padding: .5rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(1,34,74,.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.dd__menu::before { content: ''; position: absolute; top: -15px; left: 0; right: 0; height: 15px; }
.dd.is-open .dd__menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 961px) { .dd:hover .dd__menu { opacity: 1; visibility: visible; transform: none; } .dd:hover .dd__btn svg { transform: rotate(180deg); } }
.dd__menu a { display: block; padding: .6rem .8rem; border-radius: 4px; }
.dd__menu a::after { display: none; }
.dd__menu a:hover, .dd__menu a:focus-visible { background: var(--sand); color: var(--navy); }
.dd__menu li:first-child a { font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border); border-radius: 4px 4px 0 0; margin-bottom: .25rem; }
.nav__call { display: none !important; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; padding: 0 11px; }
  .menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header__call { margin-left: auto; }
  .nav {
    display: flex; position: fixed; left: 0; right: 0; top: 76px; bottom: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 1rem var(--pad) 2rem; overflow-y: auto; border-top: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; }
  .nav > a, .dd__btn { font-size: 1.125rem; padding: .95rem 0; border-bottom: 1px solid var(--border); width: 100%; justify-content: space-between; }
  .nav > a::after { display: none; }
  .dd__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: .25rem 0 .5rem .75rem; min-width: 0; display: none; }
  .dd.is-open .dd__menu { display: block; }
  .dd__menu::before { display: none; }
  .dd__menu li:first-child a { border-bottom: 0; }
  .nav .nav__call { display: flex !important; justify-content: center; margin-top: 1.5rem; background: var(--teal-dark); color: #fff !important; border-radius: var(--radius); font-weight: 600; border: 0 !important; }
}
@media (max-width: 600px) { .nav { top: 66px; } }

/* Section head with link */
.section--tight { padding-top: 0; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; max-width: none; flex-wrap: wrap; }
.link-arrow { font-weight: 600; color: var(--teal-dark); text-decoration: none; font-size: var(--text-sm); white-space: nowrap; }
.link-arrow::after { content: ' \2192'; }
.link-arrow:hover { color: var(--navy); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 44%), 1fr)); gap: clamp(6px, 1vw, 10px); }
.gallery:empty { display: none; }
.gallery__item { position: relative; padding: 0; border: 0; border-radius: 4px; cursor: zoom-in; background: var(--sand); aspect-ratio: 4 / 5; overflow: hidden; display: block; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__tag { position: absolute; left: .75rem; bottom: .75rem; background: rgba(1,34,74,.85); color: #fff; font-size: var(--text-xs); font-weight: 500; padding: .3rem .6rem; border-radius: 3px; opacity: 0; transform: translateY(4px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.gallery__item:hover .gallery__tag, .gallery__item:focus-visible .gallery__tag { opacity: 1; transform: none; }
@media (hover: none) { .gallery__tag { opacity: 1; transform: none; } }
@media (max-width: 600px) { .gallery__tag { left: .4rem; bottom: .4rem; font-size: .6875rem; padding: .2rem .45rem; } }

/* Work page */
.page-head { background: var(--navy); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-head h1 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; }
.page-head p { margin-top: .8rem; color: rgba(255,255,255,.85); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { font: inherit; font-size: var(--text-sm); font-weight: 500; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; display: inline-flex; gap: .5rem; align-items: center; transition: background .2s var(--ease), border-color .2s var(--ease); }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__n { font-size: var(--text-xs); opacity: .7; font-variant-numeric: tabular-nums; }
.work-cat { font-size: var(--text-lg); color: var(--navy); font-weight: 600; margin-bottom: 1.25rem; }
.empty { border: 2px dashed var(--border); border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; text-align: center; background: var(--surface); }
.empty svg { color: var(--teal); margin: 0 auto 1rem; }
.empty h3 { color: var(--navy); font-size: var(--text-lg); }
.empty p { color: var(--muted); margin: .5rem auto 1.5rem; max-width: 44ch; }
.cta-band { background: var(--sand); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { font-size: var(--text-xl); color: var(--navy); }
.cta-band p { color: var(--muted); margin-top: .4rem; }
.cta-band .btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(1,20,44,.94); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb__fig img { max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto; border-radius: 3px; }
.lb__fig figcaption { color: rgba(255,255,255,.85); font-size: var(--text-sm); margin-top: .9rem; display: flex; gap: 1.25rem; }
.lb__count { color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.lb button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lb button:hover { background: rgba(255,255,255,.2); }
.lb__close { top: 1rem; right: 1rem; }
.lb__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb { padding: 3.5rem .75rem 4.5rem; } .lb__prev, .lb__next { top: auto; bottom: 1rem; transform: none; } .lb__prev { left: calc(50% - 60px); } .lb__next { right: calc(50% - 60px); } }
@media (max-width: 960px) { .menu-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); } }

.gallery__play { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(1,34,74,.78); color: #fff; display: flex; align-items: center; justify-content: center; padding-left: 3px; transition: transform .25s var(--ease), background .25s var(--ease); }
.gallery__item:hover .gallery__play { transform: scale(1.08); background: var(--teal-dark); }
.lb__fig video { max-width: 100%; max-height: calc(100vh - 9rem); border-radius: 3px; background: #000; }

.gallery--teaser { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .gallery--teaser { grid-template-columns: repeat(2, 1fr); } }
.gallery--teaser .gallery__item { aspect-ratio: 1 / 1; }
