/* Driftwood Climate public site.
   Calm, warm and type-led: a sand page, slate text, a muted teal accent.
   Colour carries meaning only; the risk-band colours appear only on risk bands. */
:root {
  --sand-50: #faf8f4;
  --sand-100: #f3eee5;
  --ink-950: #14191d;
  --ink-900: #3a4752;
  --ink-700: #5a6e7e;
  --ink-300: #9aaab8;
  --ink-200: #d8dbdc;
  --teal-600: #599faf;
  --teal-800: #3d7787;
  --band-moderate: #e5c179;
  --white: #ffffff;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(20px, 6vw, 96px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal-800); outline-offset: 3px; }

.pad {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container { max-width: 1280px; margin: 0 auto; }
/* When the gutter sits on the same element, widen by it so every section shares one left edge. */
.pad.container { max-width: calc(1280px + 2 * var(--gutter)); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.more {
  color: var(--ink-950);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
.btn {
  display: inline-block;
  background: var(--ink-950);
  color: var(--sand-50);
  padding: 13px 20px;
  border-radius: 3px;
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
}
.src { font-family: var(--mono); font-size: 11.5px; color: var(--ink-700); }

/* Header */
.site-header { border-bottom: 1px solid transparent; }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 28px;
  padding-block: 24px;
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--ink-950);
  text-decoration: none;
}
.mark i {
  display: inline-block;
  width: 18px;
  height: 15px;
  background:
    linear-gradient(var(--ink-950), var(--ink-950)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--ink-950), var(--ink-950)) 0 6px / 70% 3px no-repeat,
    linear-gradient(var(--ink-950), var(--ink-950)) 0 12px / 45% 3px no-repeat;
}
.nav ul { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav a { color: var(--ink-900); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink-950); font-weight: 500; }
.nav a.contact { color: var(--ink-950); font-weight: 500; border-bottom: 1px solid var(--ink-950); }

/* Home hero */
.hero { padding-block: clamp(64px, 11vw, 150px) clamp(56px, 8vw, 110px); }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: .98;
  letter-spacing: -.055em;
  color: var(--ink-950);
  margin: 0;
  font-weight: 600;
  max-width: 13ch;
  text-wrap: balance;
}
.hero p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 44ch; margin: 32px 0 36px; }
.ctas { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }

.who {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  align-items: baseline;
  padding-block: 22px;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  font-size: 15px;
}
.who .eyebrow { margin-right: 28px; }
.who .t { color: var(--ink-950); font-weight: 500; }
.who .t + .t::before { content: "·"; color: var(--ink-300); margin: 0 14px; font-weight: 400; }

/* Two-column section: label left, content right */
.sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 20px 64px;
  padding-block: clamp(56px, 8vw, 110px);
}
.sec + .sec { padding-top: 0; }
.sec > .eyebrow { padding-top: 8px; }
.sec h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--ink-950);
  margin: 0 0 32px;
  font-weight: 600;
  max-width: 22ch;
  text-wrap: balance;
}
.sec > div { min-width: 0; }
.prose p { margin: 0 0 16px; max-width: 64ch; }

.beliefs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.beliefs li { min-width: 0; }
.beliefs b { display: block; color: var(--ink-950); font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin-bottom: 10px; }
.beliefs p { margin: 0; font-size: 15px; }

.practices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-950); }
.practices a {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr) 24px;
  gap: 6px 32px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--ink-200);
  text-decoration: none;
  color: inherit;
}
.practices a:hover b { color: var(--teal-800); }
.practices b { font-size: clamp(20px, 2vw, 24px); color: var(--ink-950); font-weight: 600; letter-spacing: -.025em; }
.practices span { font-size: 15px; }
.practices .ar { color: var(--ink-700); text-align: right; font-size: 18px; }

.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; margin-bottom: 40px; }
.trust strong { display: block; font-size: clamp(44px, 5vw, 68px); line-height: 1; letter-spacing: -.05em; color: var(--ink-950); font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.trust p { margin: 0; font-size: 15px; max-width: 34ch; }
.firms { border-top: 1px solid var(--ink-200); padding-top: 18px; }
.firms div { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 10px; font-size: 17px; font-weight: 500; color: var(--ink-950); letter-spacing: -.01em; }

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.team figure { margin: 0; min-width: 0; }
.team img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--sand-100); }
.team figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.4; }
.team b { display: block; color: var(--ink-950); font-weight: 600; }
.team span { color: var(--ink-700); font-size: 13.5px; }

/* Closing band and footer */
.close { background: var(--ink-950); color: var(--ink-300); padding-block: clamp(56px, 8vw, 96px) 0; }
.close h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.02; letter-spacing: -.045em; color: var(--white); margin: 0 0 28px; font-weight: 600; max-width: 18ch; text-wrap: balance; }
.close .btn { background: var(--sand-50); color: var(--ink-950); }
.close .row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.close .mail { font-family: var(--mono); font-size: 14px; color: var(--sand-100); user-select: all; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(56px, 8vw, 96px); padding-block: 22px 26px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; }
.foot a { color: var(--ink-300); text-decoration: none; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Service pages */
.svc-hero { padding-block: clamp(48px, 8vw, 110px) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--ink-200); }
.svc-hero .crumb { margin-bottom: 22px; display: block; }
.svc-hero .crumb a { color: var(--ink-700); text-decoration: none; }
.svc-hero h1 {
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--ink-950);
  margin: 0;
  font-weight: 600;
  max-width: 16ch;
  text-wrap: balance;
}
.svc-hero p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 52ch; margin: 28px 0 0; }

.asks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-950); }
.asks li { padding: 18px 0; border-bottom: 1px solid var(--ink-200); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.3; letter-spacing: -.015em; color: var(--ink-950); max-width: 46ch; }

.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.offers > div { min-width: 0; border-top: 1px solid var(--ink-950); padding-top: 14px; }
.offers b { display: block; font-size: 18px; color: var(--ink-950); font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.offers p { margin: 0; font-size: 15px; max-width: 48ch; }

.figure { margin: 0; }
.figure .frame { border: 1px solid var(--ink-200); background: var(--white); border-radius: 2px; overflow: hidden; }
.figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 12px; }
.figure figcaption p { margin: 0; font-size: 14px; max-width: 70ch; }
.chart-wrap { overflow-x: auto; }
.chart-wrap svg { display: block; width: 100%; height: auto; min-width: 560px; }
.tag-example { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-700); border: 1px solid var(--ink-200); border-radius: 2px; padding: 2px 6px; background: var(--sand-50); }

.mapfig { position: relative; aspect-ratio: 16 / 11; max-width: 100%; background: var(--sand-100) center / cover no-repeat; }
.mapfig .pin { position: absolute; left: 51%; top: 47%; background: var(--white); border: 1px solid var(--ink-950); padding: 6px 9px; font-size: 12.5px; line-height: 1.3; color: var(--ink-950); max-width: 60%; }
.mapfig .pin b { display: inline-block; background: var(--band-moderate); padding: 0 6px; margin-right: 6px; font-weight: 600; }
.mapfig .credit { position: absolute; right: 10px; bottom: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-950); background: rgba(255, 255, 255, .9); padding: 4px 8px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink-950); }
.steps li { padding: 18px 20px 6px 0; min-width: 0; position: relative; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--ink-200); }
.steps .n { font-family: var(--mono); font-size: 12px; color: var(--ink-700); display: block; margin-bottom: 10px; }
.steps b { display: block; color: var(--ink-950); font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 14.5px; }

.next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink-200); }
.next a { display: block; padding: 28px 0; text-decoration: none; color: inherit; min-width: 0; }
.next a + a { padding-left: 32px; border-left: 1px solid var(--ink-200); text-align: right; }
.next b { display: block; font-size: clamp(20px, 2vw, 26px); color: var(--ink-950); letter-spacing: -.025em; font-weight: 600; margin-top: 6px; }
.next a:hover b { color: var(--teal-800); }

@media (max-width: 900px) {
  .sec { grid-template-columns: minmax(0, 1fr); }
  .beliefs { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offers { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .practices a { grid-template-columns: minmax(0, 1fr) 24px; }
  .practices a span:not(.ar) { grid-column: 1; }
  .practices .ar { grid-row: 1; grid-column: 2; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .who { gap: 6px 18px; }
  .who .eyebrow { flex-basis: 100%; margin: 0 0 4px; }
  .who .t + .t::before { content: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink-200); }
  .next { grid-template-columns: minmax(0, 1fr); }
  .next a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink-200); text-align: left; }
  .mapfig .pin { left: 30%; top: 30%; }
}

/* Contact form */
.mail-inline { font-family: var(--mono); font-size: .92em; color: var(--ink-950); user-select: all; }
.contact-form { display: grid; gap: 22px; max-width: 760px; }
.contact-form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-950); min-width: 0; }
.contact-form input, .contact-form textarea {
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink-950);
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 3px;
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
}
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--teal-800); outline-offset: 1px; border-color: var(--teal-800); }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.contact-form button { border: 0; cursor: pointer; }
.contact-form button:disabled { opacity: .6; cursor: default; }
.contact-form .status { margin: 0; font-size: 15px; min-width: 0; }
.contact-form .status.error { color: #9b352e; }
.contact-form .status.done { color: var(--teal-800); font-weight: 500; }
.contact-form .fine { margin: 0; font-size: 13px; color: var(--ink-700); }
.contact-form .fine a { color: var(--ink-950); }
@media (max-width: 600px) { .contact-form .row2 { grid-template-columns: minmax(0, 1fr); } }
.mapfig .pin b.vh { background: #9b352e; color: var(--white); }
.offers h3.grp { grid-column: 1 / -1; margin: 12px 0 -18px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-700); }
.offers h3.grp:first-child { margin-top: 0; }

/* Product clips */
.clip { margin: 0; min-width: 0; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; max-width: 100%; border-radius: 4px; background: var(--sand-100); box-shadow: 0 1px 2px rgba(20, 25, 29, .06), 0 12px 32px rgba(20, 25, 29, .08); }
.clip figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-700); max-width: 64ch; }
.svc-hero.has-clip .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px 56px; align-items: center; }
.svc-hero.has-clip h1 { font-size: clamp(34px, 4.4vw, 64px); }
.feature-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px 48px; align-items: center; }
.feature-copy h2 { margin-bottom: 14px; }
.feature-copy p { margin: 0; font-size: 16px; max-width: 42ch; }
@media (max-width: 900px) {
  .svc-hero.has-clip .container, .feature-row { grid-template-columns: minmax(0, 1fr); }
}

/* Real logo */
.mark img { display: block; height: 26px; width: auto; }
.foot { align-items: center; }
.foot-logo { display: block; height: 22px; width: auto; margin-right: auto; }
.foot .foot-logo + span { margin-right: 24px; }

/* Home hero, version B: the words on the page, a photograph beside them */
.hero-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(720px, 82vh); padding: 0; }
.hero-b .hero-words { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(56px, 8vw, 110px); min-width: 0; }
.hero-b h1 { font-size: clamp(40px, 5.4vw, 80px); }
.hero-photo { position: relative; min-height: 420px; overflow: hidden; background: var(--sand-100); }
.hero-photo span { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; }
.hero-photo span:first-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo span { animation: heroFade 28s infinite; }
  .hero-photo span:nth-child(2) { animation-delay: 7s; }
  .hero-photo span:nth-child(3) { animation-delay: 14s; }
  .hero-photo span:nth-child(4) { animation-delay: 21s; }
  .hero-photo span:first-child { opacity: 0; animation-delay: -1.5s; }
}
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.06); }
  5% { opacity: 1; }
  25% { opacity: 1; }
  31% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@media (max-width: 900px) {
  .hero-b { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-photo { min-height: 320px; }
}
