/* ==========================================================================
   Crystal Coast Online
   1. Tokens
   2. Reset + base
   3. Typography primitives
   4. Components (buttons, links, labels)
   5. Header + mobile menu
   6. Sections
   7. Form
   8. Footer
   9. Responsive
   10. Motion preferences
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* --- colour ------------------------------------------------------------ */
  --paper:        #F6F3ED;   /* warm white, default ground              */
  --paper-2:      #EFEAE0;   /* sand, alternate section ground          */
  --paper-3:      #E7E1D4;   /* deeper sand, image frames and insets    */
  --ink:          #16191B;   /* near black, headings                    */
  --ink-soft:     #43484A;   /* body copy                               */
  --muted:        #7B776C;   /* metadata, labels                        */
  --harbor:       #1C3B48;   /* deep muted ocean, primary accent        */
  --harbor-deep:  #10262F;   /* dark band ground                        */
  --seaglass:     #6E9A92;   /* used sparingly, hover only              */
  --cream:        #ECE7DD;   /* text on dark                            */
  --cream-soft:   #A9AFAC;   /* body copy on dark                       */

  --line:         rgba(22, 25, 27, 0.13);
  --line-mid:     rgba(22, 25, 27, 0.22);
  --line-strong:  rgba(22, 25, 27, 0.42);
  --line-light:   rgba(236, 231, 221, 0.17);
  --line-light-2: rgba(236, 231, 221, 0.30);

  --error:        #8C2F1E;

  /* --- type -------------------------------------------------------------- */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
           Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.6rem, 7.1vw, 6.1rem);
  --fs-h2:      clamp(1.95rem, 4.1vw, 3.35rem);
  --fs-h3:      clamp(1.25rem, 1.85vw, 1.65rem);
  --fs-lead:    clamp(1.2rem, 1.85vw, 1.6rem);
  --fs-body:    clamp(1rem, 0.96rem + 0.18vw, 1.0938rem);
  --fs-sm:      0.9063rem;
  --fs-xs:      0.8125rem;
  --fs-label:   0.6875rem;

  --lh-tight:   1.02;
  --lh-head:    1.12;
  --lh-body:    1.66;

  --track-label: 0.15em;

  /* --- layout ------------------------------------------------------------ */
  --gutter:  clamp(1.25rem, 4.6vw, 4.5rem);
  --maxw:    1320px;
  --col-gap: clamp(1.25rem, 2.4vw, 2.25rem);

  /* Section rhythm is deliberately not uniform. */
  --pad-xl: clamp(6rem, 12vw, 11rem);
  --pad-lg: clamp(4.75rem, 9vw, 8.5rem);
  --pad-md: clamp(3.75rem, 6.5vw, 6rem);
  --pad-sm: clamp(2.5rem, 4.5vw, 4rem);

  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 74px;
}

/* ==========================================================================
   2. RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Very light paper grain. Restrained on purpose. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.038;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: var(--lh-head);
  letter-spacing: -0.012em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 100;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--harbor); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--harbor);
  outline-offset: 3px;
  border-radius: 1px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.25rem;
  font-size: var(--fs-sm);
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   3. TYPOGRAPHY PRIMITIVES
   ========================================================================== */
.label {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.label--light { color: var(--cream-soft); }

.label__sep {
  width: 26px;
  height: 1px;
  background: var(--line-mid);
  display: inline-block;
}

.h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
}

.lead {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  line-height: 1.42;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.008em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
}

/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* --- buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.65rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              color 0.35s var(--ease);
}
.btn:hover { --btn-bg: var(--harbor); }
.btn--sm { padding: 0.68rem 1.15rem; font-size: var(--fs-xs); }
.btn--lg { padding: 1.15rem 2.1rem; }
.btn--block { width: 100%; }

.btn__spinner {
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(246, 243, 237, 0.35);
  border-top-color: var(--paper);
  border-radius: 50%;
  display: none;
}
.btn.is-loading { pointer-events: none; opacity: 0.82; }
.btn.is-loading .btn__spinner { display: block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- links --------------------------------------------------------------- */
.link-underline {
  position: relative;
  color: var(--ink);
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: color 0.3s var(--ease), background-size 0.45s var(--ease-out);
}
.link-underline:hover {
  color: var(--harbor);
  background-size: 0 1px;
  background-position: 100% 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow svg { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover { color: var(--harbor); border-color: var(--harbor); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --- reveal -------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.js .reveal--delay { transition-delay: 0.14s; }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   5. HEADER + MOBILE MENU
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(246, 243, 237, 0.94);
  backdrop-filter: saturate(1.1) blur(6px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  flex-shrink: 0;
}
.wordmark__mark { color: var(--harbor); display: flex; }
.wordmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}
.wordmark__l1 {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 40;
}
.wordmark__l2 {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.15rem);
  margin-left: auto;
  margin-right: clamp(1.1rem, 2.4vw, 2.4rem);
}
.nav-desktop a {
  position: relative;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  padding: 0.4rem 0;
  transition: color 0.28s var(--ease);
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.42s var(--ease-out);
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-desktop a.is-current { color: var(--ink); }
.nav-desktop a.is-current::after { transform: scaleX(1); background: var(--harbor); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle__label {
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  font-weight: 500;
}
.menu-toggle__bars { display: block; width: 22px; }
.menu-toggle__bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.25s var(--ease);
}
.menu-toggle__bars i:first-child { margin-bottom: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* --- mobile menu --------------------------------------------------------- */
/* The [hidden] attribute owns the closed state, so nothing inside the panel
   is focusable or rendered when it is shut. JS clears [hidden] first and
   removes it again only after the fade has finished. */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 790;
  background: var(--paper);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }

.mobile-menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--pad-sm) var(--gutter) 2.5rem;
  border-top: 1px solid var(--line);
}
.mobile-menu__label { margin-bottom: 1.75rem; }

.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 100;
  opacity: 0;
  transform: translateY(10px);
}
.mobile-menu.is-open .mobile-nav a {
  animation: menuIn 0.55s var(--ease-out) forwards;
}
.mobile-nav a:nth-child(1) { animation-delay: 0.06s; }
.mobile-nav a:nth-child(2) { animation-delay: 0.10s; }
.mobile-nav a:nth-child(3) { animation-delay: 0.14s; }
.mobile-nav a:nth-child(4) { animation-delay: 0.18s; }
.mobile-nav a:nth-child(5) { animation-delay: 0.22s; }
.mobile-nav a:nth-child(6) { animation-delay: 0.26s; }
@keyframes menuIn { to { opacity: 1; transform: none; } }

.mobile-nav__num {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.mobile-menu__foot { margin-top: auto; padding-top: 2.75rem; }
.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

body.is-locked { overflow: hidden; }

/* ==========================================================================
   6. SECTIONS
   ========================================================================== */

/* --- 6.1 hero ------------------------------------------------------------ */
.hero {
  padding-top: clamp(3rem, 6.5vw, 6rem);
  padding-bottom: var(--pad-md);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: end;
}

.hero__eyebrow { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }

.hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.032em;
  font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--harbor);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 144;
}

.hero__body {
  max-width: 46ch;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}
.hero__body p { color: var(--ink-soft); }

.hero__actions {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  flex-wrap: wrap;
}

.hero__figure { margin: 0; }
.hero__frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
}
.hero__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  flex-wrap: wrap;
}
.hero__coords {
  font-size: var(--fs-label);
  letter-spacing: 0.09em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hero__ticker {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.25rem;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
}

/* --- 6.2 positioning ----------------------------------------------------- */
.positioning {
  background: var(--paper-2);
  padding-block: var(--pad-lg);
  border-top: 1px solid var(--line);
}
.positioning__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 9fr);
  gap: clamp(1.75rem, 4vw, 4rem);
}
/* .label is a flex row, so a stretched grid item would centre its text
   vertically. Pin it to the top of the row instead. */
.positioning__label { padding-top: 0.6rem; align-self: start; }
.positioning__body .lead {
  font-size: clamp(1.6rem, 3.4vw, 2.65rem);
  line-height: 1.24;
  max-width: 20ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.022em;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
}
.positioning__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  max-width: 62rem;
  margin-left: auto;
}
.positioning__cols p { max-width: 44ch; }

/* --- 6.3 services -------------------------------------------------------- */
.services { padding-block: var(--pad-xl); }
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.services__aside { position: sticky; top: calc(var(--header-h) + 3rem); }
.services__title { margin: 1.1rem 0 1.2rem; max-width: 9ch; }
.services__note {
  font-size: var(--fs-sm);
  max-width: 32ch;
  color: var(--muted);
}

.service-list { border-top: 1px solid var(--line-mid); }
.service {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.45rem, 2.6vw, 2.05rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease-out);
}
.service:hover { padding-left: 0.6rem; }
.service__num {
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.service__name {
  font-size: var(--fs-h3);
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 60;
  transition: color 0.3s var(--ease);
}
.service:hover .service__name { color: var(--harbor); }
.service__desc {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0;
}

/* --- 6.4 why (dark band) ------------------------------------------------- */
.why {
  background: var(--harbor-deep);
  color: var(--cream-soft);
  padding-block: var(--pad-xl);
}
.why h3, .why .h2 { color: var(--cream); }

.why__head {
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line-light);
}
.why__title {
  margin-top: 1.2rem;
  max-width: 18ch;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2.5rem, 7vw, 7rem);
}
.why__item {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
  border-bottom: 1px solid var(--line-light);
}
.why__item:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
.why__name {
  font-size: var(--fs-h3);
  margin: 0.9rem 0 0.9rem;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 60;
}
.why__item p {
  font-size: var(--fs-sm);
  max-width: 42ch;
  margin: 0;
}

/* --- 6.5 process --------------------------------------------------------- */
.process { padding-block: var(--pad-xl); }
.process__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.process__title { margin-top: 1.1rem; max-width: 14ch; }

.steps { border-top: 1px solid var(--line-mid); }
.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(2rem, 3.6vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step__num {
  font-family: var(--serif);
  font-size: clamp(3rem, 8.5vw, 7rem);
  line-height: 0.82;
  color: var(--ink);
  opacity: 0.14;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
  font-weight: 300;
  transition: opacity 0.5s var(--ease), color 0.5s var(--ease);
}
.step:hover .step__num { opacity: 0.95; color: var(--harbor); }
.step__body { padding-top: clamp(0.25rem, 1vw, 0.9rem); }
.step__name {
  font-size: var(--fs-h3);
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 60;
}
.step__body p {
  font-size: var(--fs-sm);
  max-width: 46ch;
  margin: 0;
}

/* --- 6.6 about ----------------------------------------------------------- */
.about {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: var(--pad-lg);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about__title { margin: 1.1rem 0 1.75rem; letter-spacing: -0.025em; }
.about__copy .lead { margin-bottom: 1.5rem; max-width: 34ch; }
.about__copy p { max-width: 48ch; font-size: var(--fs-sm); }

/* Owner index. The names carry this column typographically, so it needs no
   imagery to feel resolved. Entries are separated by hairlines rather than
   boxed, matching the service list and the dark band. */
.owners {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
  padding-top: 0.25rem;
}

.owner {
  padding: clamp(1.5rem, 2.6vw, 2.1rem) 0;
  border-bottom: 1px solid var(--line);
}

.owner__role { margin-bottom: 0.85rem; }

.owner__name {
  font-size: clamp(1.65rem, 2.9vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.026em;
  font-weight: 300;
  margin-bottom: 0.7rem;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
}

.owner__phone {
  display: inline-block;
  font-size: var(--fs-body);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color 0.3s var(--ease), background-size 0.45s var(--ease-out);
}
.owner__phone:hover {
  color: var(--harbor);
  background-size: 100% 1px;
}

.owners__note {
  margin: clamp(1.5rem, 2.6vw, 2.1rem) 0 0;
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 34ch;
}

/* --- 6.7 faq ------------------------------------------------------------- */
.faq { padding-block: var(--pad-xl); }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2.25rem, 5vw, 5rem);
  align-items: start;
}
.faq__aside { position: sticky; top: calc(var(--header-h) + 3rem); }
.faq__title { margin: 1.1rem 0 1.2rem; }
.faq__note {
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 30ch;
}

.faq__list { border-top: 1px solid var(--line-mid); }

.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.15rem, 2vw, 1.55rem) 0;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa__q {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.34;
  font-variation-settings: "opsz" 40;
}
.qa summary:hover .qa__q { color: var(--harbor); }

.qa__icon {
  position: relative;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  margin-top: 4px;
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease);
}
.qa__icon::before { top: 6px; left: 0; width: 13px; height: 1px; }
.qa__icon::after  { left: 6px; top: 0; width: 1px; height: 13px; }
.qa[open] .qa__icon::after { transform: rotate(90deg); opacity: 0; }

.qa__a {
  padding-bottom: clamp(1.25rem, 2.2vw, 1.75rem);
  padding-right: clamp(0rem, 6vw, 6rem);
}
.qa__a p {
  font-size: var(--fs-sm);
  max-width: 58ch;
  color: var(--ink-soft);
}
.qa[open] .qa__a { animation: qaIn 0.45s var(--ease-out); }
@keyframes qaIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   7. QUOTE FORM
   ========================================================================== */
.quote {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: var(--pad-lg);
}
.quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.quote__aside { position: sticky; top: calc(var(--header-h) + 3rem); }
.quote__title { margin: 1.1rem 0 1.35rem; letter-spacing: -0.025em; }
.quote__note {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 2.25rem;
}
.quote__alt {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-mid);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-sm);
}
.quote__alt .label { margin-bottom: 0.45rem; }

.qform__row--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.field { margin-bottom: 1.65rem; }
.field label,
.fieldset legend {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
  font-weight: 500;
  padding: 0;
}
.req { color: var(--harbor); }
/* Set in the serif italic rather than the sans, so the page never needs to
   download an italic grotesque just for two small labels. */
.opt {
  font-family: var(--serif);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--muted);
  opacity: 0.85;
}

.field input,
.field textarea,
.select-wrap select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-mid);
  border-radius: 0;
  padding: 0.6rem 0;
  font-size: var(--fs-body);
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.65; }
.field input:hover,
.field textarea:hover { border-bottom-color: var(--line-strong); }
.field input:focus,
.field textarea:focus,
.select-wrap select:focus {
  outline: none;
  border-bottom-color: var(--harbor);
  border-bottom-width: 1.5px;
}
.field input:focus-visible,
.field textarea:focus-visible,
.select-wrap select:focus-visible {
  outline: 2px solid var(--harbor);
  outline-offset: 4px;
}

.field.has-error input,
.field.has-error textarea { border-bottom-color: var(--error); }
.field__error {
  margin: 0.5rem 0 0;
  font-size: var(--fs-xs);
  color: var(--error);
  min-height: 0;
  display: none;
}
.field__error.is-shown,
.fieldset .field__error.is-shown { display: block; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2rem;
}
.select-wrap__icon {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.75rem;
}
.choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.15rem;
}
.choices--inline { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.choice { position: relative; cursor: pointer; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice span {
  display: block;
  text-align: center;
  padding: 0.72rem 0.5rem;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  background: transparent;
  transition: border-color 0.28s var(--ease), background-color 0.28s var(--ease),
              color 0.28s var(--ease);
}
.choice:hover span { border-color: var(--line-strong); color: var(--ink); }
.choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--harbor);
  outline-offset: 3px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.qform__submit {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
}
.qform__fineprint {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 0;
  max-width: 26ch;
}

.qform__status {
  margin: 1.25rem 0 0;
  font-size: var(--fs-sm);
  color: var(--error);
  display: none;
}
.qform__status.is-shown { display: block; }

.qform__success {
  border-top: 1px solid var(--line-mid);
  padding-top: 2rem;
}
.qform__success .label { margin-bottom: 1.1rem; }
.qform__success-msg {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.28;
  color: var(--ink);
  max-width: 22ch;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
}
.qform__success-sub { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding-block: var(--pad-lg); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: end;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}
.contact__email-wrap { margin: 0; }
.contact__email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--ink);
  font-weight: 300;
  word-break: break-word;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color 0.35s var(--ease), background-size 0.55s var(--ease-out);
}
.contact__email:hover {
  color: var(--harbor);
  background-size: 100% 1px;
}

.contact__people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 0.5rem;
}
.contact__person { border-top: 1px solid var(--line-mid); padding-top: 1rem; }
.contact__name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 40;
}
.contact__role {
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.3rem 0 1.15rem;
}
.contact__person .label { margin-bottom: 0.4rem; }
.contact__phone {
  font-size: var(--fs-body);
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  font-variant-numeric: tabular-nums;
}
.contact__phone:hover { color: var(--harbor); border-color: var(--harbor); }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--harbor-deep);
  color: var(--cream-soft);
  padding-block: var(--pad-md) 2.25rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.66fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}
.footer__wordmark {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 100;
}
.footer__tag { color: var(--cream-soft); font-size: var(--fs-sm); margin-bottom: 1.5rem; }
.footer__place {
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--cream-soft);
  opacity: 0.75;
  max-width: 22ch;
}

.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.footer__col .label { margin-bottom: 0.75rem; }
.footer__col a,
.footer__col span {
  font-size: var(--fs-sm);
  color: var(--cream-soft);
  transition: color 0.28s var(--ease);
}
.footer__col a:hover { color: var(--cream); }
.footer__quote {
  margin-top: 0.75rem;
  color: var(--cream) !important;
  border-bottom: 1px solid var(--line-light-2);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}
.footer__quote:hover { border-bottom-color: var(--seaglass); }

.footer__base {
  border-top: 1px solid var(--line-light);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--cream-soft);
  opacity: 0.8;
}
.footer__base p { margin: 0; }

/* --- small utility pages (thanks, 404) ----------------------------------- */
.mini {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding-block: var(--pad-lg);
}
.mini__title {
  font-size: clamp(1.85rem, 4.4vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 300;
  max-width: 18ch;
  margin: 1.2rem 0 1.5rem;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
}
.mini__body {
  max-width: 44ch;
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
}
.mini__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-mid);
  font-size: var(--fs-sm);
}
.site-footer--mini { padding-block: 2rem; }
.site-footer--mini .footer__base { border-top: 0; padding-top: 0; }

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */

/* --- laptop -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .service {
    grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* --- tablet -------------------------------------------------------------- */
@media (max-width: 980px) {
  :root { --header-h: 66px; }

  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.25rem, 6vw, 3.5rem);
  }
  .hero__figure { max-width: 34rem; }
  .hero__frame img { aspect-ratio: 5 / 4; }

  .positioning__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .positioning__cols { margin-left: 0; }

  .services__grid,
  .faq__grid,
  .quote__grid,
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .services__aside,
  .faq__aside,
  .quote__aside { position: static; }
  .services__title { max-width: none; }

  .why__grid { grid-template-columns: minmax(0, 1fr); }
  .why__item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-light); padding-bottom: clamp(2.25rem, 4vw, 3.25rem); }
  .why__item:last-child { border-bottom: 0; padding-bottom: 0; }

  .step { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .step__num { opacity: 0.28; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* --- large phone --------------------------------------------------------- */
@media (max-width: 720px) {
  :root {
    --pad-xl: clamp(4.25rem, 15vw, 5.5rem);
    --pad-lg: clamp(3.75rem, 13vw, 4.75rem);
  }

  .hero { padding-top: 2.25rem; }
  .hero__title { letter-spacing: -0.028em; }
  .hero__actions { gap: 1.25rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__ticker { gap: 0.5rem 1.4rem; }

  .positioning__cols { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }

  .service {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    row-gap: 0.5rem;
    padding: 1.35rem 0;
  }
  .service:hover { padding-left: 0; }
  .service__desc { grid-column: 2; }

  .contact__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .contact__email { font-size: clamp(1.35rem, 6.6vw, 2.1rem); }

  .qform__row--2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qform__submit { flex-direction: column; align-items: stretch; gap: 1rem; }
  .qform__submit .btn { width: 100%; }
  .qform__fineprint { max-width: none; }


  .footer__base { flex-direction: column; gap: 0.35rem; }
}

/* --- small phone --------------------------------------------------------- */
@media (max-width: 420px) {
  :root { --fs-display: clamp(2.2rem, 11.5vw, 2.9rem); }

  .hero__caption { gap: 0.35rem; }
  .hero__coords { font-size: 0.625rem; }

  .contact__people { grid-template-columns: minmax(0, 1fr); }
  .choices--inline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choice span { padding: 0.7rem 0.25rem; font-size: 0.75rem; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* --- large desktop ------------------------------------------------------- */
@media (min-width: 1600px) {
  :root { --maxw: 1420px; }
}

/* ==========================================================================
   10. MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .mobile-nav a { opacity: 1; transform: none; }
  .service:hover { padding-left: 0; }
}

@media print {
  .site-header, .mobile-menu, .hero__figure, .btn { display: none; }
  body { background: #fff; color: #000; }
}
