/* Splash MCR, option C: "Splash blue".
   The blue from Alex's logo is the page. Sections flip between blue, white and deep navy at hard seams.
   The one shape is the round drop: round buttons, round slider knob, round bullets, soft-cornered pictures. */

@view-transition { navigation: auto; }

:root {
  --blue: #1b9de8;
  --ink: #071620;
  --white: #ffffff;
  --soft: #3d5361;       /* secondary text on white */
  --navy: #071620;
  --navy-ink: #e9f2f8;
  --navy-soft: #a5b8c4;
  --moss: #5b6a33;
  --r: 22px;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: 1rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.3rem + 4.6vw, 5.25rem);
  --step-display: clamp(3.5rem, 11.2vw, 12rem);

  --m: clamp(18px, 2.4vw, 36px);
  --gap: clamp(12px, 1.5vw, 24px);
  --section: clamp(72px, 9vw, 150px);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--blue); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.field--navy :focus-visible { outline-color: var(--blue); }
::selection { background: var(--ink); color: var(--white); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--ink); color: var(--white); font-weight: 600; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.skip:focus { top: 0.75rem; }

h1, h2 { font-weight: 800; line-height: 0.92; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 750; line-height: 1.15; letter-spacing: -0.015em; }
.lead { font-size: var(--step-lead); line-height: 1.35; font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--m); }
.field { padding-block: var(--section); }
.field--white { background: var(--white); }
.field--navy { background: var(--navy); color: var(--navy-ink); }
.field--white .soft { color: var(--soft); }
.field--navy .soft { color: var(--navy-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0.8rem 1.9rem; background: var(--ink); color: var(--white); font: inherit; font-weight: 700; text-decoration: none; border: 0; border-radius: 999px; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 2.7rem; padding: 0.4rem 1.3rem; }
.btn--blue { background: var(--blue); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #17303f; } .btn--blue:hover { background: #4bb5f2; } }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.dot { display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.5em; border-radius: 50%; background: currentColor; vertical-align: 0.08em; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-inline: var(--m); background: var(--blue); view-transition-name: site-header; }
.wordmark { font-weight: 800; font-size: var(--step-lead); line-height: 1; text-decoration: none; letter-spacing: -0.03em; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 650; }
@media (hover: hover) and (pointer: fine) { .site-nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; } }
.nav-toggle { display: none; }
@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; background: var(--ink); color: var(--white); font: inherit; font-weight: 700; border: 0; border-radius: 999px; cursor: pointer; }
  .site-nav { position: absolute; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--m) 1.75rem; background: var(--blue); }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.7rem 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
  .site-nav .btn { margin-top: 1rem; align-self: flex-start; }
}

/* Hero: the name of the job, as big as the screen, then the wall to wash */
.hero { padding-top: calc(var(--header-h) + clamp(1rem, 3vw, 3rem)); }
.hero h1 { padding-inline: var(--m); }
.hero__row { margin-top: clamp(1.5rem, 3vw, 2.75rem); align-items: end; row-gap: 1.5rem; }
.hero__row .lead { grid-column: 1 / 7; max-width: 24em; }
.hero__actions { grid-column: 8 / 13; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem 1.5rem; }
.wall { position: relative; margin-top: clamp(2rem, 4vw, 3.5rem); height: clamp(18rem, 46svh, 34rem); overflow: hidden; background: var(--navy); touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: crosshair; }
.wall > img, .wall > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall > canvas { transition: opacity 1.2s ease; }
.wall[data-washed] > canvas { opacity: 0; }
.hero__hint { position: absolute; left: var(--m); bottom: 1rem; z-index: 2; max-width: calc(100% - 2 * var(--m)); padding: 0.5rem 1.1rem; background: var(--white); color: var(--ink); border-radius: 999px; font-weight: 650; pointer-events: none; }
@media (max-width: 52rem) {
  .hero__row .lead, .hero__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .hero h1 { font-size: 16.5vw; }
}

/* Questions people ask: tap a question to open its answer */
.faq__head { grid-column: 1 / 6; align-self: start; }
.faq__list { grid-column: 7 / 13; }
.faq__list details { border-top: 2px solid color-mix(in srgb, currentColor 18%, transparent); }
.faq__list details:last-child { border-bottom: 2px solid color-mix(in srgb, currentColor 18%, transparent); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.15rem; min-height: 3rem; font-size: var(--step-lead); font-weight: 750; line-height: 1.2; letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; flex: none; font-size: 1.6em; font-weight: 500; line-height: 1; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding-bottom: 1.4rem; max-width: 36em; }
.faq__list a { text-underline-offset: 0.2em; }
@media (max-width: 52rem) { .faq__head, .faq__list { grid-column: 1 / -1; } .faq__list { margin-top: 1.5rem; } }

.more-links { grid-column: 7 / 13; margin-top: 2rem; max-width: 36em; }
.more-links a { font-weight: 650; text-underline-offset: 0.2em; }
@media (max-width: 52rem) { .more-links { grid-column: 1 / -1; } }

/* Two ways in */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-inline: var(--m); }
.tile { display: flex; flex-direction: column; gap: 1.5rem; text-decoration: none; }
.tile__img { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--navy); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile p { margin-top: 0.9rem; max-width: 28em; }
.tile .btn { margin-top: 1.5rem; }
@media (max-width: 40rem) { .tiles { grid-template-columns: 1fr; row-gap: 3rem; } }

/* What we clean */
.services__head { grid-column: 1 / 7; }
.services__intro { grid-column: 8 / 13; align-self: end; max-width: 26em; }
.services__list { grid-column: 1 / -1; margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem) var(--gap); }
.services__list p { margin-top: 0.6rem; max-width: 24em; }
@media (min-width: 64rem) { .services__list--four { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 52rem) { .services__head, .services__intro { grid-column: 1 / -1; } .services__intro { margin-top: 1rem; } .services__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .services__list { grid-template-columns: 1fr; } }

/* Recent work */
.work__head { grid-column: 1 / 7; }
.work__intro { grid-column: 8 / 13; align-self: end; max-width: 26em; }
.work__head, .work__intro { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.job { grid-column: span 6; }
.job:not(.job--third):nth-of-type(n+3) { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.job h3 { margin-top: 1.25rem; }
.job p { margin-top: 0.5rem; max-width: 32em; }
.job--third { grid-column: span 4; }
@media (max-width: 52rem) {
  .work__head, .work__intro, .job, .job--third { grid-column: 1 / -1; }
  .work__head { margin-bottom: 1rem; }
  .job + .job { margin-top: 3rem; }
}

.ba { --pos: 50%; position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--r); background: var(--navy); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--white); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: var(--pos); width: 3.25rem; height: 3.25rem; margin: -1.625rem 0 0 -1.625rem; border-radius: 50%; background: var(--white); pointer-events: none; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba input:focus-visible ~ .ba__knob { background: var(--blue); }
.ba__tag { position: absolute; top: 1rem; padding: 0.35rem 0.95rem; border-radius: 999px; font-weight: 700; pointer-events: none; }
.ba__tag--before { left: 1rem; background: var(--moss); color: var(--white); }
.ba__tag--after { right: 1rem; background: var(--blue); color: var(--ink); }

/* How a job runs */
.process { align-items: center; row-gap: 2.5rem; }
.process__video { grid-column: 1 / 7; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: #0f2330; }
.process__video video { width: 100%; height: 100%; object-fit: cover; }
.process__body { grid-column: 8 / 13; }
.process__body ol { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 1.75rem; }
.process__body li p { margin-top: 0.4rem; }
.process__body h3 { color: var(--blue); }
@media (max-width: 52rem) { .process__video, .process__body { grid-column: 1 / -1; } }

/* Quote */
.quote { row-gap: 2.5rem; align-items: start; }
.quote__info { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 2rem; }
.quote__ways { display: grid; gap: 0.6rem; }
.quote__ways a { font-weight: 700; text-underline-offset: 0.25em; }
.quote__ways span { display: inline-block; min-width: 6.5em; font-weight: 500; }
.quote__form { grid-column: 7 / 13; display: grid; gap: 12px; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--white); border-radius: var(--r); }
.quote__form input, .quote__form textarea { width: 100%; min-height: 56px; padding: 0.9rem 1.1rem; background: #e7f1f8; color: var(--ink); border: 0; border-radius: 14px; font: inherit; }
.quote__form textarea { min-height: 8rem; resize: vertical; }
.quote__form ::placeholder { color: var(--soft); opacity: 1; }
.quote__form button { min-height: 60px; background: var(--ink); color: var(--white); border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; transition: transform 160ms var(--ease-out); }
.quote__form button:active { transform: scale(0.985); }
@media (max-width: 52rem) { .quote__info, .quote__form { grid-column: 1 / -1; } }

/* Footer */
.site-footer { overflow: hidden; background: var(--navy); color: var(--navy-ink); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.mega { padding-inline: var(--m); font-weight: 800; font-size: 17.6vw; line-height: 0.82; letter-spacing: -0.05em; white-space: nowrap; color: var(--blue); }
/* The big name fills with water from the bottom: a solid copy on top of a faint one, revealed by
   --level (site.js raises it as you scroll). Full by default, so it never looks empty without script. */
.mega { --level: 100%; position: relative; }
.mega::after { content: attr(data-text); position: absolute; inset: -0.2em 0 -0.3em 0; padding: 0.2em var(--m) 0.3em; color: var(--blue); clip-path: inset(calc(100% - var(--level)) 0 0 0); pointer-events: none; }
/* While filling, the real text goes invisible and a faint drawn copy (::before) shows the empty letters. */
.mega::before { content: attr(data-text); position: absolute; inset: 0; padding-inline: var(--m); color: color-mix(in srgb, var(--blue) 16%, transparent); visibility: hidden; pointer-events: none; }
.mega[data-fill] { color: transparent; }
.mega[data-fill]::before { visibility: visible; }
.site-footer .grid { margin-top: 3rem; row-gap: 2rem; }
.foot__links { grid-column: 1 / 5; display: grid; gap: 0.5rem; align-content: start; }
.foot__contact { grid-column: 5 / 9; display: grid; gap: 0.5rem; align-content: start; }
.foot__credits { grid-column: 9 / 13; max-width: 60ch; color: var(--navy-soft); }
.foot__base { grid-column: 1 / -1; margin-top: 1rem; color: var(--navy-soft); }
.foot__credit { grid-column: 1 / -1; margin-top: -1.5rem; color: var(--navy-soft); }
.foot__credit a { color: var(--navy-ink); text-underline-offset: 0.25em; }
@media (max-width: 52rem) { .foot__links, .foot__contact, .foot__credits { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- final site: shared additions */
.site-nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.site-footer a { text-underline-offset: 0.25em; }
@media (max-width: 40rem) { .foot__links, .foot__contact { gap: 0.25rem; } .foot__links a, .foot__contact a { padding-block: 0.6rem; } }

/* Inner page hero: a shorter headline, then one of Alex's photos edge to edge */
.hero--page h1 { font-size: clamp(3rem, 9.4vw, 10rem); }
.band { position: relative; margin-top: clamp(2rem, 4vw, 3.5rem); height: clamp(18rem, 58svh, 42rem); overflow: hidden; background: var(--navy); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero--short { padding-bottom: clamp(3.5rem, 7vw, 7rem); }
@media (max-width: 52rem) { .hero--page h1 { font-size: clamp(2.75rem, 12.5vw, 5.5rem); } }

/* Photo mosaic: uneven pairs, 7 + 5 then 5 + 7 */
.mosaic__head { grid-column: 1 / 7; }
.mosaic__intro { grid-column: 8 / 13; align-self: end; max-width: 26em; }
.mosaic { grid-column: 1 / -1; margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 2.75rem) var(--gap); }
.mosaic figure { grid-column: span 5; }
.mosaic figure:nth-child(4n+1), .mosaic figure:nth-child(4n) { grid-column: span 7; }
.mosaic__img { overflow: hidden; height: clamp(15rem, 30vw, 31rem); border-radius: var(--r); background: var(--navy); }
.mosaic__img img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { margin-top: 0.8rem; font-weight: 650; }
@media (max-width: 52rem) { .mosaic__head, .mosaic__intro { grid-column: 1 / -1; } .mosaic__intro { margin-top: 1rem; } }
@media (max-width: 40rem) {
  .mosaic figure, .mosaic figure:nth-child(4n+1), .mosaic figure:nth-child(4n) { grid-column: 1 / -1; }
  .mosaic__img { height: auto; aspect-ratio: 4 / 3; }
}

/* Who we've worked for: heading on the left, the names large on the right */
.clients__info { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 1.25rem; }
.clients__info p { max-width: 24em; }
.clients { grid-column: 7 / 13; columns: 2; column-gap: var(--gap); font-size: var(--step-lead); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.clients li { padding-left: 1.05em; text-indent: -1.05em; margin-bottom: 0.85rem; break-inside: avoid; }
.field--white .clients__info .soft { color: var(--soft); }
@media (max-width: 52rem) { .clients__info, .clients { grid-column: 1 / -1; } .clients { margin-top: 2.5rem; } }
@media (max-width: 40rem) { .clients { columns: 1; } }

/* Process and annual clean: a tall photo of Alex beside the steps */
.process__photo { grid-column: 1 / 6; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: #0f2330; }
.process__photo img, .process__photo video { width: 100%; height: 100%; object-fit: cover; }
.process .process__body { grid-column: 7 / 13; }
.annual__btn { margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 52rem) { .process__photo, .process .process__body { grid-column: 1 / -1; } .process__photo { max-height: 70svh; aspect-ratio: 4 / 4.4; } }

/* Thumb-sized text links: the hit area grows, the look stays the same */
.wordmark { padding-block: 0.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.wordmark__line { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; line-height: 1; }
.hero__actions .link { display: inline-block; padding-block: 0.75rem; }
.quote__ways { gap: 0; }
.quote__ways a { display: inline-block; padding-block: 0.55rem; }
.form__small a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }

/* Quote form: honeypot off-screen (still in the page for bots), small print */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form__small { font-size: var(--step-small); color: var(--soft); }
.form__small a { color: var(--ink); font-weight: 650; }

/* Privacy page: three ways back into the site */
.tiles--three { grid-template-columns: repeat(3, 1fr); }
.tiles--three .tile { gap: 1.1rem; }
.tile__name { font-size: var(--step-lead); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
@media (max-width: 40rem) { .tiles--three { grid-template-columns: 1fr; row-gap: 2rem; } }

/* Privacy notice */
.policy { row-gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.policy__head { grid-column: 1 / 4; align-self: start; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.015em; }
.policy__text { grid-column: 4 / 9; display: grid; gap: 0.8rem; max-width: 36em; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.policy__text a { font-weight: 650; }
.policy__photo { grid-column: 10 / 13; grid-row: 1 / span 7; align-self: start; position: sticky; top: calc(var(--header-h) + 1.5rem); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--navy); }
.policy__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 52rem) {
  .policy__head, .policy__text { grid-column: 1 / -1; }
  .policy__text { max-width: none; }
  .policy__photo { grid-column: 1 / -1; grid-row: auto; position: static; order: 99; max-height: 60svh; }
}

.draft [data-confirm] { outline: 2px dashed #ffd23f; outline-offset: 3px; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  @view-transition { navigation: none; }
}
