/* Ondine Solutions. Slat screen on white: tall vertical slats in a five-step
   depth ramp (white, foam, aqua, cyan, ink). Square corners, no shadows. */

:root {
  --white: #FFFFFF;
  --foam: #E6F8F9;
  --aqua: #8AE6EA;
  --cyan: #22C3CC;
  --ink: #0D1214;
  --ink-2: #1B2427;
  --slate: #3E4A4F;
  --rule: #D5E2E4;
  --display: "Urbanist", "Segoe UI", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --gap: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }

p { margin: 0 0 1em; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 20;
}
.skip:focus { left: 8px; }

.muted { color: var(--slate); }

/* The depth swatch before every h2: five rising bars, the first a hairline. */
.sw::before, .sec h2::before {
  content: "";
  display: block;
  width: 34px; height: 18px;
  margin-bottom: 14px;
  background:
    linear-gradient(var(--white), var(--white)) 1px 9px / 3px 8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 8px / 5px 10px no-repeat,
    linear-gradient(var(--foam), var(--foam)) 7px 6px / 5px 12px no-repeat,
    linear-gradient(var(--aqua), var(--aqua)) 14px 4px / 5px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 21px 2px / 5px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 28px 0 / 6px 18px no-repeat;
}
.sec .no-sw::before { display: none; }

.label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--slate);
  margin: 0 0 10px;
}

/* Top bar */
.top { border-bottom: 1px solid var(--rule); background: var(--white); position: relative; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em;
  min-height: 44px;
}
.brand .mark { width: 30px; height: 30px; flex: none; }
.menu {
  display: none;
  font: 700 0.95rem var(--text);
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 0;
  min-height: 44px; padding: 0 16px; cursor: pointer;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-weight: 700; font-size: 0.98rem;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--aqua); }
.nav a[aria-current="page"] { border-bottom-color: var(--cyan); }

@media (max-width: 900px) {
  .menu { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--rule);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 0; }
  .nav a { width: 100%; border-bottom: 1px solid var(--rule); border-left: 4px solid transparent; padding-left: 12px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); border-left-color: var(--cyan); }
}

/* Hero: the name across slats */
.hero { padding: 48px 0 64px; }
.hero h1 { max-width: 15em; margin-bottom: 0.4em; }
.hero .lede { font-size: 1.15rem; max-width: 36em; color: var(--slate); }

.ripple {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin: 0 0 36px;
  height: clamp(170px, 34vw, 380px);
  align-items: end;
}
.ripple span {
  --dy: 0px;
  height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: clamp(8px, 2vw, 22px);
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.25rem, 7vw, 5.6rem);
  line-height: 1;
  color: var(--ink);
  transform: translateY(var(--dy));
  transition: transform 900ms cubic-bezier(.2,.7,.2,1);
}
.ripple.moving span { transition: none; }
.ripple .com { color: var(--cyan); }
.ripple .s-white { box-shadow: inset 0 0 0 1px var(--rule); }

/* Tones */
.s-white { background: var(--white); }
.s-foam { background: var(--foam); }
.s-aqua { background: var(--aqua); }
.s-cyan { background: var(--cyan); }
.s-ink { background: var(--ink); color: var(--white); }

/* Decorative run of thin slats */
.slatrun { display: flex; gap: var(--gap); height: 96px; margin: 0; }
.slatrun span { flex: 1; }
.slatrun .s-white { box-shadow: inset 0 0 0 1px var(--rule); }
.split .slatrun { height: 140px; }
@media (min-width: 900px) { .split .slatrun { height: 100%; min-height: 380px; } .split > div:has(> .slatrun) { align-self: stretch; } }
.sec .h-side { font-size: 1.15rem; margin-bottom: 6px; }
.sec .h-side::before { display: none; }
.side .slat p { margin-bottom: 6px; }

/* Sections */
.sec { padding: 72px 0; }
.sec.tight { padding-top: 32px; }
.intro { padding: 56px 0 24px; }
.intro .lede { font-size: 1.15rem; max-width: 38em; color: var(--slate); }
.prose { max-width: 40em; }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
  .split.flip { grid-template-columns: 7fr 5fr; }
  .split.flip > :first-child { order: 2; }
}

/* Slat groups carrying content */
.slats { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--n, 5), 1fr); }
.slat {
  min-height: 440px;
  padding: 28px 20px 24px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 18px;
}
.slat.s-white { box-shadow: inset 0 0 0 1px var(--rule); }
.slat h3 { margin: 0 0 10px; }
.slat p { margin: 0; font-size: 0.98rem; }
.slat .when {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.1;
}
.slat .when { margin: 0 0 22px; padding-bottom: 14px; border-bottom: 2px solid currentColor; }
.slat.s-ink .when { color: var(--aqua); }
.slat.s-ink a { color: var(--white); text-decoration-color: var(--cyan); }
.slat .foot-note { font-size: 0.88rem; color: var(--slate); margin-top: auto; }
.slat.s-ink .foot-note { color: #B8C6C9; }

@media (max-width: 1000px) {
  .slats { grid-template-columns: repeat(2, 1fr); }
  .slats > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .slat { min-height: 300px; }
}
@media (max-width: 560px) {
  .slats.one-up { grid-template-columns: 1fr; }
  .slats.one-up .slat { min-height: 0; }
  .slat { padding: 22px 16px 20px; }
}

/* Two-column text list */
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.plain-list li { border-top: 1px solid var(--rule); padding: 18px 0; }
.plain-list li:last-child { border-bottom: 1px solid var(--rule); }
.plain-list strong { font-family: var(--display); font-weight: 800; font-size: 1.1rem; display: block; margin-bottom: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  background: var(--ink); color: var(--white);
  border: 2px solid var(--ink); border-radius: 0;
  font: 700 1rem var(--text);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--cyan); color: var(--ink); }
.btn.ghost { background: var(--white); color: var(--ink); }
.btn.ghost:hover { background: var(--foam); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Close: a run of slats with the call to write */
.close { padding: 0 0 80px; }
.close-in { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.close-in .s-ink { padding: 40px 24px; }
.close-in .s-ink h2 { color: var(--white); }
.close-in .s-ink p { color: #D4E0E2; max-width: 34em; }
.close-in .s-ink .btn { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.close-in .s-ink .btn:hover { background: var(--white); border-color: var(--white); }
.close-in .s-ink :focus-visible { outline-color: var(--aqua); }
@media (min-width: 900px) {
  .close-in { grid-template-columns: 1fr 1fr 1fr 1fr 7fr; }
  .close-in .s-ink { padding: 56px 48px; }
}
.close-in > span { min-height: 18px; }
.close-in > .s-white { box-shadow: inset 0 0 0 1px var(--rule); }
@media (max-width: 899px) { .close-in > span { display: none; } }

/* About: portrait sliced in three */
.portrait { position: relative; margin: 0; max-width: 460px; }
.portrait img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.portrait picture { position: relative; display: block; }
.portrait picture::before, .portrait picture::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 4px; background: var(--white);
}
.portrait picture::before { left: calc(18% - 2px); }
.portrait picture::after { left: calc(82% - 2px); }
.portrait figcaption { margin-top: 12px; font-size: 0.95rem; color: var(--slate); }
.portrait figcaption strong { color: var(--ink); font-family: var(--display); font-size: 1.1rem; display: block; }

/* Contact */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 56px; } }
.form { display: grid; gap: 18px; }
.form .two { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-weight: 700; margin-bottom: 6px; }
.form .opt { font-weight: 400; color: var(--slate); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 50px;
  font: 400 1rem var(--text); color: var(--ink);
  background: var(--foam);
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  padding: 12px 14px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 0; }
.status { margin: 0; padding: 14px 16px; background: var(--foam); border-left: 6px solid var(--cyan); font-weight: 700; }
.status.bad { border-left-color: var(--ink); background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--ink); }
.fine { font-size: 0.9rem; color: var(--slate); }
.side { align-self: start; }
.side .slats { --n: 1; }
.side .slat { min-height: 0; padding: 24px 22px; }
.side .slat + .slat { margin-top: 0; }

/* Legal */
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }

/* Footer: a row of ink slats */
.foot { background: var(--ink-2); color: #D4E0E2; margin-top: 0; }
.foot-grid { display: grid; gap: var(--gap); padding: 0; grid-template-columns: 1fr; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 5fr 4fr 3fr; } }
.foot-slat { background: var(--ink); padding: 40px 24px; }
.foot-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--white); letter-spacing: -0.02em; }
.foot-h { font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--aqua); margin: 0 0 10px; letter-spacing: 0; }
.foot address { font-style: normal; }
.foot a { color: var(--white); text-decoration-color: var(--cyan); display: inline-block; min-height: 30px; }
.foot :focus-visible { outline-color: var(--aqua); }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin: 0 0 4px; }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 18px; padding-bottom: 22px; font-size: 0.88rem; color: #9FB0B4;
}

/* 404 */
.lost .ripple { height: clamp(120px, 22vw, 220px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ripple span { transition: none; transform: none; }
}
