/* Reef page: a descent from the sunlit reef to the deep. One colour scheme (the water). */
:root {
  color-scheme: dark;
  --fg: #eefcfd;
  --muted: #b4dbe2;
  --faint: #7fb0bd;
  --line: rgba(238, 252, 253, .16);
  --panel: rgba(4, 30, 48, .55);
  --coral: #ff8a6b;
  --sand: #ffe7a3;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--fg);
  font: 17px/1.65 var(--sans);
  overflow-x: hidden;
  overflow-wrap: break-word;
  background: #020a14 linear-gradient(180deg,
    #1a93b0 0%, #127a9c 14%, #0d5f86 30%, #0a4468 48%, #072d4a 64%, #041b31 80%, #020a14 100%);
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
canvas.field { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 700px) { .wrap { padding: 0 2rem; } }

/* Top bar */
.topbar { position: absolute; inset: 0 0 auto; z-index: 2; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.home { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; font-size: .95rem; }
.home img { width: 2.25rem; height: 2.25rem; }
nav.lang { display: flex; gap: .15rem; font-size: .85rem; padding: .2rem; border-radius: 999px; background: var(--panel); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
nav.lang a, nav.lang strong { padding: .3rem .65rem; border-radius: 999px; text-decoration: none; }
nav.lang .short { display: none; }
@media (max-width: 560px) { nav.lang .full { display: none; } nav.lang .short { display: inline; } }
nav.lang a { color: var(--muted); }
nav.lang a:hover { color: var(--fg); background: var(--line); }
nav.lang strong { background: rgba(238, 252, 253, .16); }

/* Hero: the surface */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 30, 48, .45) 0%, rgba(4, 30, 48, .05) 35%, rgba(26, 147, 176, .55) 72%, #1a93b0 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 4rem; }
@media (max-width: 699px) { .hero .wrap { padding-bottom: 3rem; } }
.hero-logo { width: 5rem; height: 5rem; border-radius: 1.2rem; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .6); margin-bottom: 1.5rem; }
.hero h1 { margin: 0; font: 400 clamp(4.5rem, 17vw, 11rem)/.9 var(--serif); letter-spacing: -.01em; text-shadow: 0 4px 40px rgba(2, 20, 34, .45); }
.hero .sub { margin: 1rem 0 2rem; max-width: 36rem; font: italic 400 clamp(1.4rem, 3.8vw, 2.2rem)/1.2 var(--serif); text-shadow: 0 2px 20px rgba(2, 20, 34, .5); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: transform .2s, background .2s, border-color .2s;
}
.btn-coral { background: var(--coral); color: #2a0b02; }
.btn-coral:hover { transform: translateY(-2px); background: #ff9c80; }

/* Depth gauge */
.gauge { position: fixed; right: 1rem; top: 18vh; bottom: 18vh; width: 2px; background: var(--line); z-index: 3; pointer-events: none; }
.gauge span {
  position: absolute; right: -6px; top: 0; width: 14px; height: 14px; border-radius: 50%;
  background: #031524; border: 2px solid var(--fg); transform: translateY(-50%);
}
.gauge b {
  position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font: 600 .75rem/1 var(--sans); white-space: nowrap; padding: .3rem .5rem; border-radius: 999px; background: var(--panel);
}
@media (max-width: 699px) {
  .gauge { top: auto; bottom: 1rem; right: 1rem; width: auto; height: auto; background: none; }
  .gauge span { position: static; width: auto; height: auto; border: 0; background: none; transform: none; display: block; }
  .gauge b { position: static; transform: none; display: block; padding: .4rem .7rem; background: rgba(2, 16, 28, .75); }
}

/* Zones: one rhythm. --zone between sections, --media above pictures, --grid between them. */
:root { --zone: 3.5rem; --media: 1.75rem; --grid: 1rem; }
@media (min-width: 800px) { :root { --zone: 6rem; --media: 2.5rem; --grid: 1.5rem; } }
.zone { padding: var(--zone) 0; }
.depth { margin: 0 0 .75rem; color: var(--sand); font: 600 .78rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.zone h2 { margin: 0 0 1rem; font: 400 clamp(2.3rem, 7vw, 4.6rem)/1.02 var(--serif); max-width: 46rem; }
.zone p { margin: 0 0 1rem; max-width: 40rem; }
.lead { font-size: 1.15rem; color: var(--fg); }
@media (max-width: 699px) { .lead { font-size: 1.06rem; } }
.muted { color: var(--muted); }
.rare strong { color: var(--sand); font-weight: 600; }

.media { margin-top: var(--media); }
.wide { border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.wide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* A single picture keeps its own shape (cards at the edges stay whole); grids share 16:9. */
.media > .wide img, .split .wide img { aspect-ratio: auto; }
@media (max-width: 699px) { .wide { border-radius: .9rem; } }

figure { margin: 0; }
figcaption { margin-top: .75rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }
figcaption strong { color: var(--fg); font-weight: 600; display: block; }

.split { display: grid; gap: var(--media) var(--grid); align-items: end; }
@media (min-width: 800px) { .split { grid-template-columns: 2.6fr 1fr; } }
.phone { border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--line); max-width: 13rem; margin: 0 auto; }
.on-phone figcaption { text-align: center; }

.gallery { display: grid; gap: var(--grid); margin-top: var(--grid); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* The damage: a swipeable row on phones, a 2 by 2 grid on wider screens. */
.slides { list-style: none; margin: var(--media) 0 0; padding: 0; display: grid; gap: var(--grid); }
.slides li { min-width: 0; }
@media (max-width: 799px) {
  .slides {
    grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -1rem; padding: 0 1rem .25rem; scroll-padding-inline: 1rem;
  }
  .slides::-webkit-scrollbar { display: none; }
  .slides li { scroll-snap-align: start; }
}
@media (min-width: 800px) { .slides { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; } }

.fits { display: grid; gap: 1.5rem var(--media); margin-top: var(--media); }
@media (min-width: 800px) { .fits { grid-template-columns: 1fr 1fr; } }
.fits h3 { margin: 0 0 .5rem; font: 400 clamp(1.7rem, 4vw, 2.1rem)/1.1 var(--serif); }
.fits p { margin: 0; color: var(--muted); }

/* Contact at the deepest point: just the line and the address. */
.cta { padding: calc(var(--zone) * 1.4) 0 var(--zone); text-align: center; }
.cta h2 { margin: 0 auto 1rem; font: 400 clamp(2.6rem, 8vw, 5rem)/1 var(--serif); }
.cta .lead { margin: 0 auto 1.25rem; }
.cta p { margin-inline: auto; }
.mail { color: var(--coral); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.mail:hover { color: #ff9c80; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-top: 1.5rem; padding-bottom: 4.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--faint); font-size: .85rem; }
footer a { color: var(--muted); }
footer .links { display: flex; gap: 1.25rem; }
