/* Divers Reef — home
   Layout concept: under the arch. The logo floats on the left, Instagram plays in a phone on the right,
   and the page sinks a little deeper as you scroll. One blue family with the tools:
   blue laid over darker footage, never black, never washed out. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #071f33;
  --bg-deep: #05172a;
  --ink: #eef8fb;
  --ink-2: rgba(238, 248, 251, .82);
  --ink-3: rgba(238, 248, 251, .62);
  --reef: #76d9ff;
  --mint: #b9f2df;
  --sun: #ebaf67;
  --kelp: #86ebbd;   /* the D in DMaps */
  --coral: #ff977c;  /* the Two in TwoTwenty */
  --glow: #37d3ff;
  --line: rgba(185, 242, 223, .16);
  --line-2: rgba(185, 242, 223, .34);
  --glass: rgba(9, 42, 66, .6);
  --panel: rgba(10, 46, 72, .46);
  --btn-bg: #eef8fb;
  --btn-ink: #07243a;
  --ig-blue: #2a97e8;
  --shadow: 0 24px 70px rgba(0, 10, 20, .32);
  --sans: "Helvetica Neue", Helvetica, "Archivo", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(18px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html, main { overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dot { color: var(--sun); }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- The sea ---------- */
.sea { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg-deep); }
.sea > * { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The arch: dark rock above, blue light below. A slow drift in on load. */
.sea-video { object-fit: cover; object-position: 50% 42%; transform: scale(var(--sea-zoom, 1.12)); transition: transform 3.2s var(--ease); }
.loaded .sea-video { --sea-zoom: 1.03; }
@media (min-aspect-ratio: 1/1) { .sea-video { object-position: 50% 34%; } }
.sea-tone { background: radial-gradient(ellipse 60% 55% at 50% 38%, rgba(4, 24, 44, .38), transparent 70%), linear-gradient(180deg, rgba(12, 58, 96, .30) 0%, rgba(8, 40, 68, .12) 45%, rgba(6, 28, 50, .5) 100%), linear-gradient(0deg, rgba(20, 90, 150, .16), rgba(20, 90, 150, .16)); }
.sea-rays i {
  position: absolute; top: -30%; width: 22vw; height: 160%; left: var(--x, 20%);
  background: linear-gradient(180deg, rgba(190, 235, 255, .22), rgba(190, 235, 255, 0) 70%);
  transform: rotate(var(--r, 14deg)); filter: blur(18px); mix-blend-mode: screen; opacity: .5;
  animation: ray var(--t, 11s) ease-in-out infinite alternate;
}
.sea-rays i:nth-child(1) { --x: 12%; --r: 16deg; --t: 12s; }
.sea-rays i:nth-child(2) { --x: 46%; --r: 10deg; --t: 9s; width: 14vw; animation-delay: -4s; }
.sea-rays i:nth-child(3) { --x: 72%; --r: 18deg; --t: 14s; width: 26vw; animation-delay: -7s; }
@keyframes ray { from { opacity: .18; translate: -4vw 0; } to { opacity: .55; translate: 4vw 0; } }
.sea-depth { background: #04182b; opacity: var(--depth, 0); }

/* ---------- Header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 0; pointer-events: none; }
.bar {
  pointer-events: auto; max-width: 1000px; margin: 0 auto; display: flex; align-items: center; gap: 18px;
  min-height: 58px; padding: 7px 8px 7px 10px; border: 1px solid transparent; border-radius: 999px;
  transition: background .5s ease, border-color .5s ease, box-shadow .5s ease, backdrop-filter .5s ease;
}
.scrolled .bar { border-color: var(--line); background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); box-shadow: var(--shadow); }
.bar-logo { display: block; width: 42px; height: 42px; opacity: 0; transform: scale(.7); transition: opacity .5s ease, transform .6s var(--spring); }
.scrolled .bar-logo { opacity: 1; transform: none; }
.bar-logo img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.bar-links { display: none; gap: 4px; margin-left: auto; }
.bar-links a { padding: 10px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: color .2s, background .2s; }
.bar-links a:hover { color: var(--ink); background: var(--line); }
.bar-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pill-link { padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 600 12px/1 var(--sans); letter-spacing: .06em; text-decoration: none; background: rgba(6, 30, 50, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s, background .2s; }
.pill-link:hover { border-color: var(--glow); background: rgba(55, 211, 255, .12); }
.ig { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 999px; text-decoration: none; background: var(--btn-bg); color: var(--btn-ink); font-size: 14px; font-weight: 600; }
.ig svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); overflow: hidden;
  font-size: 15.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--spring), box-shadow .3s;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.btn:hover::after { transform: translateX(120%); }
.btn.ghost { background: rgba(6, 30, 50, .35); color: var(--ink); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn.ghost::after { background: linear-gradient(105deg, transparent 30%, rgba(185, 242, 223, .18) 50%, transparent 70%); }
.btn svg { width: 19px; height: 19px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Hero: the logo in the middle, Instagram beside it ---------- */
.hero { position: relative; padding: clamp(84px, 11vh, 112px) var(--gutter) clamp(56px, 8vh, 90px); }
.hero-grid { display: grid; grid-template-areas: "logo" "phone"; justify-items: center; gap: clamp(44px, 7vh, 64px); max-width: 1360px; margin: 0 auto; }
.hero-in { grid-area: logo; display: grid; justify-items: center; text-align: center; transform: translateY(calc(var(--hp, 0) * 60px)) scale(calc(1 - var(--hp, 0) * .1)); opacity: calc(1 - var(--hp, 0) * .9); will-change: transform, opacity; }
.logo-wrap { margin: 0; transform: perspective(900px) rotateX(var(--lx, 0deg)) rotateY(var(--ly, 0deg)); transition: transform .6s var(--ease); }
.logo { position: relative; display: block; width: min(88vw, 56vh, 520px); aspect-ratio: 1; filter: drop-shadow(0 30px 46px rgba(0, 10, 22, .6)) drop-shadow(0 0 1px rgba(255, 255, 255, .3)); }
.logo::before { content: ""; position: absolute; inset: 8%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(55, 211, 255, .22), transparent 68%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .6; } }
.logo img { width: 100%; height: 100%; }
.logo-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .85) 48%, rgba(190, 240, 255, .6) 52%, transparent 62%) 0 0 / 260% 100% no-repeat;
  -webkit-mask: url("../brand/divers-reef-silver-512.webp") center / contain no-repeat; mask: url("../brand/divers-reef-silver-512.webp") center / contain no-repeat;
  mix-blend-mode: overlay; animation: sheen 7s ease-in-out 2.2s infinite;
}
@keyframes sheen { 0% { background-position: 130% 0; } 28%, 100% { background-position: -40% 0; } }
/* The slogan, set like the tool titles: a small reef-blue line over a bold white one, ending in the sun dot */
.tagline { margin: clamp(6px, 1.4vh, 16px) 0 0; line-height: 1; color: var(--ink); text-shadow: 0 2px 22px rgba(0, 16, 30, .55); }
.tg-small { display: block; margin-bottom: .1em; font-size: clamp(24px, 6.4vw, 36px); font-weight: 600; letter-spacing: -.06em; line-height: .9; color: var(--reef); }
.tg-big { display: block; font-size: clamp(44px, 12.4vw, 70px); font-weight: 650; letter-spacing: -.075em; line-height: .86; color: #fff; white-space: nowrap; }
.tagline .ch { display: inline-block; white-space: pre; }

/* Load moment */
.js .logo { animation: surface 1.6s var(--ease) .15s both, afloat 9s ease-in-out 1.75s infinite; }
/* Afloat: a slow bob and sway in place, never far from where it sits */
@keyframes afloat { 0%, 100% { translate: 0 0; rotate: 0deg; } 25% { translate: 2px -10px; rotate: -1.2deg; } 50% { translate: 0 -3px; rotate: .5deg; } 75% { translate: -2px 7px; rotate: 1deg; } }
@keyframes surface { from { opacity: 0; transform: translateY(46px) scale(.9); filter: blur(14px) drop-shadow(0 26px 40px rgba(0, 12, 24, .55)); } }
.js .tagline .ch { animation: letter .8s var(--ease) both; animation-delay: calc(1s + var(--i) * 30ms); }
@keyframes letter { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } }

/* ---------- Tide: a slow line of words ---------- */
.tide { position: relative; padding-block: 26px; border-block: 1px solid var(--line); overflow: hidden; background: rgba(6, 30, 50, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tide-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: tide 48s linear infinite; }
.tide span { font-size: clamp(24px, 4vw, 44px); font-weight: 550; letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(238, 248, 251, .55); }
.tide span:nth-of-type(3n+1) { color: var(--ink); -webkit-text-stroke: 0; }
.tide b { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--mint); opacity: .7; }
@keyframes tide { to { transform: translateX(-50%); } }

/* ---------- Reveal on the way down (starts visible, just softer) ---------- */
.js [data-rise] { opacity: .2; transform: translateY(28px); filter: blur(4px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-rise].in { opacity: 1; transform: none; filter: none; }

/* ---------- About ---------- */
.about { padding-block: clamp(90px, 14vh, 150px) 40px; }
.lead { max-width: 22ch; margin: 0; font-size: clamp(32px, 6.2vw, 72px); font-weight: 520; letter-spacing: -.045em; line-height: 1.04; }
.lead .w { opacity: var(--o, 1); transition: opacity .25s linear; }
.js .lead .w { --o: .2; }
.about-grid { display: grid; gap: 32px; margin-top: clamp(40px, 7vh, 80px); }
.about-photo { position: relative; margin: 0; max-width: 440px; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 32px; box-shadow: 0 0 0 2px rgba(55, 211, 255, .55), 0 0 30px rgba(25, 169, 244, .35), var(--shadow); }
.about-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(6, 26, 44, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.about-copy p { margin: 0 0 18px; font-size: 17.5px; line-height: 1.7; color: var(--ink-2); max-width: 58ch; }
.sign { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 15.5px; color: var(--mint); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .2s; }
.sign:hover { border-color: var(--mint); }

/* ---------- Instagram: the phone, with one line under it ---------- */
.phone-col { grid-area: phone; display: grid; justify-items: center; gap: clamp(22px, 3.4vh, 34px); }
.insta-copy { display: grid; justify-items: center; gap: 16px; text-align: center; }
.insta-copy h2, .sec-head h2, .ask h2 { font-size: clamp(36px, 6vw, 62px); font-weight: 560; letter-spacing: -.05em; line-height: .98; }
.insta-copy h2 { font-size: clamp(30px, 8vw, 40px); }
.sec-head p { margin: 16px 0 0; font-size: 17.5px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.btn.sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }

.phone-wrap { position: relative; display: grid; place-items: center; perspective: 1400px; --pw: min(78vw, 320px); }
.phone-halo { position: absolute; left: 50%; top: 50%; width: calc(var(--pw) * 1.9); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(55, 211, 255, .26), rgba(25, 120, 200, .1) 45%, transparent 68%); animation: breathe 7s ease-in-out infinite; }
.phone-halo i { position: absolute; inset: 22%; border-radius: 50%; border: 1px solid rgba(118, 217, 255, .4); animation: ripple 6s cubic-bezier(.2, .6, .3, 1) infinite; }
.phone-halo i:nth-child(2) { animation-delay: -3s; }
@keyframes ripple { from { transform: scale(.7); opacity: 0; } 15% { opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.phone { position: relative; width: var(--pw); aspect-ratio: 9 / 19.5; }
.phone-body {
  position: relative; height: 100%; padding: calc(var(--pw) * .034); border-radius: calc(var(--pw) * .165);
  background: linear-gradient(150deg, #3a4a56 0%, #121a22 18%, #0a0f15 50%, #18222c 82%, #3a4752 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 4px #05080c, 0 50px 90px rgba(0, 8, 18, .6), 0 0 60px rgba(25, 169, 244, .22);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s var(--ease);
  animation: float 7s ease-in-out infinite;
}
.phone-body::before, .phone-body::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 3px 3px 0; background: #2a3640; }
.phone-body::before { top: 22%; height: 11%; }
.phone-body::after { left: -3px; right: auto; top: 18%; height: 6%; border-radius: 3px 0 0 3px; }
@keyframes float { 0%, 100% { translate: 0 -6px; } 50% { translate: 0 8px; } }
.screen { position: relative; height: 100%; border-radius: calc(var(--pw) * .132); overflow: hidden; background: #050c14; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Archivo", Arial, sans-serif; }
.status { position: absolute; z-index: 6; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; height: calc(var(--pw) * .135); padding: 0 calc(var(--pw) * .085); font-size: calc(var(--pw) * .047); font-weight: 600; pointer-events: none; }
.island { position: absolute; left: 50%; top: calc(var(--pw) * .032); width: calc(var(--pw) * .3); height: calc(var(--pw) * .088); translate: -50% 0; border-radius: 999px; background: #000; }
.sys { display: flex; align-items: center; gap: calc(var(--pw) * .014); }
.sys i { display: block; background: currentColor; }
.sig { width: calc(var(--pw) * .05); height: calc(var(--pw) * .032); clip-path: polygon(0 100%, 22% 100%, 22% 70%, 0 70%, 0 100%, 26% 100%, 26% 45%, 48% 45%, 48% 100%, 52% 100%, 52% 22%, 74% 22%, 74% 100%, 78% 100%, 78% 0, 100% 0, 100% 100%); }
.wifi { width: calc(var(--pw) * .045); height: calc(var(--pw) * .032); border-radius: 50% 50% 0 0 / 100% 100% 0 0; clip-path: polygon(50% 100%, 0 20%, 100% 20%); }
.bat { width: calc(var(--pw) * .07); height: calc(var(--pw) * .032); border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); background: linear-gradient(90deg, currentColor 78%, transparent 78%) !important; }

/* Reels screen */
.reel-stage { position: absolute; inset: 0; }
.reel-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #061624; transition: transform .55s var(--ease), opacity .55s ease; }
.reel-v.below { transform: translateY(100%); }
.reel-v.above { transform: translateY(-100%); }
.reel-grad { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, transparent 18%, transparent 55%, rgba(0, 0, 0, .7) 100%); }
.reel-head { position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--pw) * .15); display: flex; justify-content: space-between; align-items: baseline; padding: 0 calc(var(--pw) * .055); font-size: calc(var(--pw) * .062); pointer-events: none; }
.reel-head span { font-size: calc(var(--pw) * .04); opacity: .75; font-variant-numeric: tabular-nums; }
.reel-rail { position: absolute; z-index: 7; right: calc(var(--pw) * .035); bottom: calc(var(--pw) * .44); display: grid; gap: calc(var(--pw) * .05); }
.rail-btn { display: grid; place-items: center; width: calc(var(--pw) * .12); height: calc(var(--pw) * .12); padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .18); color: #fff; text-decoration: none; transition: transform .25s var(--spring); }
.rail-btn:hover { transform: scale(1.12); }
.rail-btn svg { width: 60%; height: 60%; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
#reelLike.on svg { fill: #ff4d6d; stroke: #ff4d6d; animation: pulse .45s var(--spring); }
@keyframes pulse { 40% { transform: scale(1.35); } }
.reel-info { position: absolute; z-index: 7; left: calc(var(--pw) * .05); right: calc(var(--pw) * .2); bottom: calc(var(--pw) * .085); }
.reel-who { display: flex; align-items: center; gap: calc(var(--pw) * .025); font-size: calc(var(--pw) * .042); }
.avatar { position: relative; display: block; flex: none; border-radius: 50%; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.sm { width: calc(var(--pw) * .085); height: calc(var(--pw) * .085); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8); }
.reel-follow { padding: calc(var(--pw) * .012) calc(var(--pw) * .03); border: 1px solid rgba(255, 255, 255, .7); border-radius: calc(var(--pw) * .02); font-size: calc(var(--pw) * .037); font-weight: 600; text-decoration: none; }
.reel-cap { margin: calc(var(--pw) * .025) 0 0; font-size: calc(var(--pw) * .041); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.reel-cap span:last-child { opacity: .9; }
.reel-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(55, 211, 255, .9); color: #03263a; font-size: .82em; font-weight: 700; }
.reel-tag:empty { display: none; }
.reel-bar { position: absolute; z-index: 7; left: 0; right: 0; bottom: calc(var(--pw) * .045); height: 2px; background: rgba(255, 255, 255, .25); }
.reel-bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
.reel-tap { position: absolute; z-index: 4; top: 16%; bottom: 34%; padding: 0; border: 0; background: transparent; }
.reel-tap.prev { left: 0; width: 32%; }
.reel-tap.next { right: 0; width: 68%; }
.heart-burst { position: absolute; z-index: 8; left: 50%; top: 44%; width: 34%; translate: -50% -50%; pointer-events: none; opacity: 0; color: #ff4d6d; }
.heart-burst svg { width: 100%; height: auto; fill: currentColor; stroke: none; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .35)); }
.heart-burst.pop { animation: burst .9s var(--spring); }
@keyframes burst { 0% { opacity: 0; transform: scale(.3) rotate(-12deg); } 25% { opacity: 1; transform: scale(1.1) rotate(4deg); } 60% { opacity: 1; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.3) translateY(-30%); } }

/* ---------- Tools ---------- */
.tools { padding-block: clamp(90px, 14vh, 150px) 40px; }
.tool-list { display: grid; gap: 16px; margin-top: 40px; perspective: 1200px; }
.tool {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 22px 24px;
  border: 1px solid var(--line); border-radius: 30px; background: var(--panel); text-decoration: none; overflow: hidden;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .45s var(--ease), border-color .3s, box-shadow .3s;
}
.tool.live:hover { border-color: rgba(55, 211, 255, .6); box-shadow: 0 0 34px rgba(25, 169, 244, .25); }
.glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 220px at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .14), transparent 70%); opacity: 0; transition: opacity .3s; }
.tool:hover .glare { opacity: 1; }
.tool-art { position: relative; display: block; width: 100%; height: 190px; margin-bottom: 8px; border-radius: 22px; overflow: hidden; }
.signals-art { background: radial-gradient(circle at 50% 30%, rgba(30, 140, 200, .55), rgba(4, 40, 70, .92)); }
.orb {
  position: absolute; left: 50%; top: 50%; width: 132px; aspect-ratio: 1; margin: -66px 0 0 -66px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(55, 211, 255, .92); background: radial-gradient(circle at 50% 34%, rgba(10, 104, 162, .62), rgba(2, 56, 98, .88) 70%);
  box-shadow: 0 0 8px rgba(47, 208, 255, .8), 0 0 24px rgba(25, 169, 244, .46), inset 0 0 18px rgba(50, 192, 255, .18);
  animation: bob 5s ease-in-out infinite;
}
.orb img { position: absolute; left: 7%; top: 7%; width: 86%; }
.orb.small { width: 86px; margin: -43px 0 0 -43px; opacity: .78; animation-duration: 6s; }
.orb.small.l { left: 24%; top: 58%; animation-delay: -2s; } .orb.small.r { left: 76%; top: 58%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 -5px; } 50% { translate: 0 6px; } }
.tool:hover .orb.small.l { left: 20%; } .tool:hover .orb.small.r { left: 80%; }
.orb.small { transition: left .5s var(--spring); }
.veil-art { background: linear-gradient(160deg, #0d3a5c, #061a2c); }
.veil-art i { position: absolute; border-radius: 50%; filter: blur(26px); opacity: .75; animation: drift 9s ease-in-out infinite alternate; }
.veil-art i:nth-child(1) { width: 140px; height: 140px; left: 10%; top: 10%; background: rgba(55, 211, 255, .55); }
.veil-art i:nth-child(2) { width: 120px; height: 120px; right: 12%; top: 30%; background: rgba(235, 175, 103, .45); animation-delay: -3s; }
.veil-art i:nth-child(3) { width: 160px; height: 100px; left: 35%; bottom: -20%; background: rgba(185, 242, 223, .35); animation-delay: -6s; }
.veil-art.alt i:nth-child(1) { background: rgba(235, 175, 103, .5); }
.veil-art.alt i:nth-child(2) { background: rgba(55, 211, 255, .5); }
@keyframes drift { from { transform: translate(-14px, 10px) scale(.92); } to { transform: translate(18px, -12px) scale(1.08); } }
.veil-art::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 300; color: rgba(238, 248, 251, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tool-name { line-height: 1; color: #fff; }
.tn-small { font-size: 22px; font-weight: 600; letter-spacing: -.05em; color: var(--reef); }
.tn-small.tn-d { color: var(--kelp); }
.tn-small.tn-two { color: var(--coral); }
.tn-big { font-size: 34px; font-weight: 650; letter-spacing: -.07em; }
.tool-text { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); flex: 1; }
.tool-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 12px 18px; border-radius: 999px; background: var(--glow); color: #03263a; font-size: 14.5px; font-weight: 700; }
.tool-go svg { width: 17px; height: 17px; transition: transform .3s var(--spring); }
.tool.live:hover .tool-go svg { transform: translateX(4px); }
.tool-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 44px; padding: 0 16px; border: 1px dashed var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink-3); }
.tool-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Ask ---------- */
.ask { padding-block: clamp(90px, 14vh, 140px) 60px; }
.ask-grid { display: grid; gap: 30px; }
.ask p { margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 44ch; }
.ask-photo { width: 100%; max-width: 460px; justify-self: center; margin: 0; border-radius: 30px; overflow: hidden; box-shadow: 0 0 0 2px rgba(55, 211, 255, .55), 0 0 30px rgba(25, 169, 244, .3), var(--shadow); }
.ask-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transform: scale(1.08) translateY(var(--py, 0px)); transition: transform .2s linear; }

/* ---------- Footer ---------- */
.foot { padding-block: 70px calc(env(safe-area-inset-bottom, 0px) + 46px); text-align: center; background: linear-gradient(180deg, transparent, rgba(3, 16, 28, .55)); }
.foot-in { display: grid; justify-items: center; gap: 14px; }
.foot-logo { position: relative; display: block; width: 150px; aspect-ratio: 1; }
.foot-logo img { width: 100%; height: 100%; filter: drop-shadow(0 14px 24px rgba(0, 10, 20, .5)); }
.foot-line { margin: 0; font-size: 20px; font-weight: 450; letter-spacing: -.02em; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.foot-links a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .bar-links { display: flex; }
  .bar-tools { margin-left: 0; }
  .about-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(40px, 6vw, 90px); }
  .tool-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ask-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(36px, 5vw, 72px); }
}
/* Wider screens: the opening view is two columns. The logo and slogan on the left, the reels phone on the right. */
@media (min-width: 860px) and (min-height: 560px) {
  .hero { display: grid; align-items: center; min-height: 100vh; min-height: 100svh; padding-block: 88px 60px; }
  .hero-grid { width: 100%; grid-template-areas: "logo phone"; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(24px, 4vw, 72px); align-items: center; }
  .logo { width: min(44vw, 62vh, 620px); }
  .tg-small { font-size: clamp(26px, 2.5vw, 38px); }
  .tg-big { font-size: clamp(46px, 4.8vw, 74px); }
  .phone-wrap { --pw: min(310px, 26vw, calc((100svh - 260px) / 2.17)); }
  .insta-copy h2 { font-size: clamp(24px, 2.3vw, 34px); white-space: nowrap; }
  .hero-grid [data-rise] { transition-delay: calc(var(--d, 0s) + .9s); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-rise] { opacity: 1; transform: none; filter: none; }
  .js .lead .w { --o: 1; }
  .sea-rays, .sea-snow { display: none; }
}
