/* ---------------------------------------------------------------
   Keel GRP
   Palette drawn from working-harbour materials: estuary water,
   weathered paint, and the red of a port-hand channel marker.
   The waterline rule is the site's one structural device.
   --------------------------------------------------------------- */

:root {
  --hull:   #10221f;  /* deep estuary green-black */
  --deep:   #0a1614;  /* below the waterline */
  --light:  #e9ebe6;  /* weathered paint, cool grey-green */
  --paper:  #f4f5f2;  /* lifted paper */
  --slate:  #5c6b66;  /* secondary text */
  --rule:   #c9cdc6;  /* hairlines on light ground */
  --signal: #be4238;  /* port-hand marker */

  --display: "Archivo", system-ui, sans-serif;
  --text: "Newsreader", Georgia, serif;

  --measure: 34em;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --shell: 78rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Weathered-paper grain: a tiled SVG noise so the background reads
   as material rather than a flat hex. Kept faint on purpose. */
body {
  margin: 0;
  background-color: var(--light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  color: var(--hull);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--hull); color: var(--light); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem;
  position: fixed;
  z-index: 50;
  background: var(--hull);
  color: var(--light);
  padding: .75rem 1rem;
  font-family: var(--display);
  font-size: .9rem;
}

/* --- Type -------------------------------------------------- */

h1, h2, h3, h4, .wordmark, .nav a, .btn, .stat-figure, .label {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 7.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 .5rem;
}

p { margin: 0 0 1.15em; max-width: var(--measure); }

.lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--hull);
  max-width: 30em;
}

.muted { color: var(--slate); }

/* --- Header ------------------------------------------------ */

.masthead {
  padding-block: 1.75rem 0;
}

.masthead-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 1.1rem;
  letter-spacing: .01em;
  text-decoration: none;
  font-weight: 700;
}
.wordmark span { color: var(--slate); font-weight: 500; }

.nav {
  display: flex;
  gap: 1.6rem;
  font-size: .8rem;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--slate);
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--hull); }
.nav a[aria-current="page"] {
  color: var(--hull);
  border-bottom-color: var(--signal);
}

/* --- The waterline ----------------------------------------- */
/* One device, used once per page: the line between what is seen
   and the structure that holds it up. The short red head is the
   channel marker — the only red allowed on a structural element. */

.waterline {
  height: 3px;
  background: linear-gradient(90deg, var(--signal) 0 3.5rem, var(--hull) 3.5rem);
  transform-origin: left;
  margin-top: clamp(3rem, 8vw, 6rem);
}

@media (prefers-reduced-motion: no-preference) {
  .waterline { animation: draw .9s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* --- Hero -------------------------------------------------- */

.eyebrow {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1.5rem;
}

.accent { color: var(--signal); }

.hero { padding-block: clamp(4rem, 12vw, 8rem) 0; }

.hero h1 { max-width: 15ch; }

.hero .lede { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* --- Below the waterline ----------------------------------- */

.below {
  background-color: var(--deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  color: var(--light);
}
.below h2, .below h3 { color: var(--light); }
.below p { color: #b9c2be; }
.below a { color: var(--light); }

.proof {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.proof-intro {
  max-width: 38em;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: #cdd4d1;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(233,235,230,.18);
  padding-top: clamp(2rem, 4vw, 2.75rem);
}

.stat-figure {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--light);
}

.stat-note {
  display: block;
  margin-top: .6rem;
  font-size: .98rem;
  color: #9fada8;
  max-width: 16em;
}

/* --- Sections ---------------------------------------------- */

.band { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.band-tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 56rem) {
  .split { grid-template-columns: 22rem minmax(0, 1fr); }
  .split > h2 { position: sticky; top: 2rem; align-self: start; }
}

/* Offer list: no cards. Structure comes from rules and space. */

.entries { margin: 0; padding: 0; list-style: none; }

.entry {
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.entry:first-child { border-top: 0; padding-top: 0; }
.entry p:last-child { margin-bottom: 0; }

.entry-meta {
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 500;
  color: var(--signal);
  margin-bottom: .4rem;
}

.below .entry { border-top-color: rgba(233,235,230,.18); }
.below .entry-meta { color: #d98d85; }

/* Steps: genuinely a sequence, so numbered. */

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--slate);
  padding-top: .15rem;
}
.step p:last-child { margin-bottom: 0; }

/* Horizontal variant: the four steps read across the page. */
@media (min-width: 56rem) {
  .steps-across {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 2rem;
  }
  .steps-across .step {
    display: block;
    border-top: 1px solid var(--rule);
    padding-block: 1.5rem 0;
  }
  .steps-across .step:first-child { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
  .steps-across .step::before {
    display: block;
    color: var(--signal);
    padding-top: 0;
    margin-bottom: .9rem;
  }
  .steps-across .step p { font-size: .98rem; }
}

/* --- Cost calculator ---------------------------------------- */
/* Deliberately plain: no card, no shadow. The counting figure is
   the one place on the site (besides the waterline) that moves. */

.calc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem;
  max-width: 40em;
  margin-block: 2rem 2.5rem;
}
.calc-fields .field { margin-bottom: 0; }

.calc-result {
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  max-width: 40em;
}

.calc-figure {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.calc-figure-note {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 500;
  color: var(--slate);
  margin-top: .6rem;
  margin-bottom: 1.25rem;
}

.calc-caveat {
  color: var(--slate);
  max-width: var(--measure);
}

/* --- Portrait ----------------------------------------------- */
/* No frame, no shadow. The bottom rule echoes the waterline. */

.portrait {
  margin: 0 0 2.5rem;
  max-width: 24rem;
}
.portrait img {
  width: 100%;
  height: auto;
  border-bottom: 3px solid var(--hull);
}
.portrait-sm { max-width: 17rem; }

.portrait figcaption {
  font-family: var(--display);
  font-size: .85rem;
  font-weight: 500;
  color: var(--slate);
  margin-top: .8rem;
}

/* --- Pull quote / statement -------------------------------- */

.statement {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.24;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin: 0;
}

/* --- Buttons ----------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--hull);
  color: var(--light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: .95rem 1.6rem;
  border: 2px solid var(--hull);
}
.btn:hover { background: var(--signal); border-color: var(--signal); }

.below .btn {
  background: var(--light);
  color: var(--hull);
  border-color: var(--light);
}
.below .btn:hover { background: var(--signal); border-color: var(--signal); color: var(--light); }

.btn-quiet {
  background: transparent;
  color: var(--hull);
  border-color: var(--hull);
}
.btn-quiet:hover { background: var(--hull); color: var(--light); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.actions .aside {
  font-size: .98rem;
  color: var(--slate);
  margin: 0;
}
.below .actions .aside { color: #9fada8; }

/* --- Inline link ------------------------------------------- */

.link {
  color: var(--hull);
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
  padding-bottom: .05em;
  font-weight: 500;
}
.link:hover { background: var(--signal); color: var(--light); border-color: var(--signal); }

/* --- Contact ----------------------------------------------- */

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 52rem) {
  .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: .4rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--hull);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: .8rem .9rem;
  border-radius: 0;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--hull);
  outline: 2px solid var(--signal);
  outline-offset: 1px;
}
.field textarea { min-height: 9rem; resize: vertical; }

.contact-direct p { max-width: none; }
.contact-direct .email {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
}
.contact-direct .email:hover { background: var(--signal); color: var(--light); }

/* --- Footer ------------------------------------------------ */

.foot {
  background-color: var(--hull);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  color: #9fada8;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: .95rem;
}
.foot a { color: var(--light); text-decoration: none; border-bottom: 1px solid rgba(233,235,230,.3); }
.foot a:hover { border-bottom-color: var(--signal); }
.foot p { max-width: none; margin: 0; }

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: end;
}

.foot .wordmark { color: var(--light); font-size: 1rem; }
.foot .wordmark span { color: #9fada8; }

.foot-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.foot-nav a { border-bottom: 0; color: #9fada8; }
.foot-nav a:hover { color: var(--light); }

.colophon {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(233,235,230,.15);
  font-size: .88rem;
}
