/* ==========================================================================
   Saltworks Objects — brand book Edition 01 (Fusco Studio)
   70 Shell / Pearl · 25 Sterling, Salt, Driftwood · 5 Abalone (one glint per view)
   Gloock 400 · Hanken Grotesk 300/500 · Spline Sans Mono 400/500 (labels only)
   2px corners, 1px rules at 14%, the arch is the only curve besides the avatar.
   ========================================================================== */
:root {
  --shell: #ECE8E2;
  --pearl: #F7F5F1;
  --sterling: #B8B5B0;
  --salt: #D8D0C4;
  --drift: #A59583;
  --abalone: #B98A86;
  --abalone-deep: #84564F;
  --basalt: #282828;
  --stone: #6B655D;
  --rule: rgba(40, 40, 40, .14);
  --serif: 'Gloock', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: clamp(20px, 3.4vw, 48px);
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg, var(--shell));
  color: var(--basalt);
  font: 300 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.04; text-wrap: balance; }
:focus-visible { outline: 1px solid var(--basalt); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--salt); }

.mono { font: 400 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .22em; }
.wrap { width: min(1200px, 100% - var(--gut) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--basalt); color: var(--pearl); border-radius: 2px; transition: top .3s var(--ease); }
.skip:focus { top: 16px; }
.mark { display: block; width: 100%; height: 100%; }

/* film grain: still, never moving — just a little tooth on the Shell */
.grain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .16 0 0 0 0 .16 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* photographs: warm-neutral, never blue */
.hero__slide img, .process__frame img, .card__img img, .coast__window img, .markets__img img, .float img {
  width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none;
}

/* ---------- loader ------------------------------------------------------ */
.loader { position: fixed; inset: 0; z-index: 120; display: none; }
.js:not(.no-intro) .loader { display: block; }
.loader::before { content: ''; position: absolute; inset: 0; background: var(--shell); }
.loader__wave { position: absolute; left: 0; top: 100%; width: 100%; height: 14vh; fill: var(--shell); margin-top: -1px; }
.loader__lockup { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 18px; }
.loader__mark { width: 74px; height: 86px; color: var(--basalt); }
.loader__word { font: 400 44px/1 var(--serif); letter-spacing: -.01em; }
.loader__sub { color: var(--stone); letter-spacing: .32em; }
.loader__word, .loader__sub { opacity: 0; }
.loader__mark {
  -webkit-mask-image: linear-gradient(100deg, #000 var(--m, -40%), transparent calc(var(--m, -40%) + 40%));
          mask-image: linear-gradient(100deg, #000 var(--m, -40%), transparent calc(var(--m, -40%) + 40%));
}

/* ---------- nav --------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 90; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--gut);
  transition: transform 1s var(--ease), background-color .8s var(--ease), height .8s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-solid { background: color-mix(in srgb, var(--bg, var(--shell)) 84%, transparent); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px); height: 68px; }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.nav__mark { width: 30px; height: 35px; }
.nav__word { font: 400 25px/1 var(--serif); display: grid; gap: 5px; }
.nav__sub { font-size: 8.5px; letter-spacing: .34em; color: var(--stone); }
.nav__links { display: flex; gap: 36px; }
.nav__links a, .nav__ig { position: relative; text-decoration: none; font-size: 15px; font-weight: 400; }
.nav__links a::after, .nav__ig::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .9s var(--ease);
}
.nav__links a:hover::after, .nav__ig:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__ig { justify-self: end; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.nav__burger { display: none; }

.menu { display: none; }

/* ---------- 1 · hero: full-bleed photographs, one after another like slow water */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--basalt); color: var(--pearl); }
.hero__media { position: absolute; inset: 0; overflow: hidden; cursor: pointer; touch-action: pan-y; }
.hero__slide { position: absolute; inset: 0; opacity: 0; }
.hero__slide.is-on { opacity: 1; }
.hero__slide.is-washing {
  -webkit-mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #000 var(--r, 0vmax), transparent calc(var(--r, 0vmax) + 34vmax));
          mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #000 var(--r, 0vmax), transparent calc(var(--r, 0vmax) + 34vmax));
}
.hero__ripple { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.hero__ripple circle { fill: none; stroke: var(--pearl); stroke-width: 1; opacity: 0; vector-effect: non-scaling-stroke; }
/* scrim: keeps Pearl type readable on bright water without dimming the whole frame */
.hero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(40, 40, 40, .42), rgba(40, 40, 40, 0) 22%),
    linear-gradient(to top, rgba(40, 40, 40, .5), rgba(40, 40, 40, 0) 30%),
    radial-gradient(120% 90% at 50% 45%, rgba(40, 40, 40, .26), rgba(40, 40, 40, .4));
}

.hero__title { position: absolute; inset: 0; z-index: 4; pointer-events: none; font-size: clamp(60px, 9.4vw, 156px); line-height: .94; letter-spacing: -.025em; text-shadow: 0 0 60px rgba(40, 40, 40, .25); }
.hero__line { position: absolute; display: grid; }
.hero__line > span { display: block; }
.hero__line--a { left: var(--gut); top: 21%; }
.hero__line--b { right: var(--gut); top: 50%; text-align: right; }

.hero__eyebrow { position: absolute; z-index: 4; left: var(--gut); bottom: 40px; max-width: 34ch; color: rgba(247, 245, 241, .86); }
.hero__foot { position: absolute; z-index: 4; right: var(--gut); bottom: 34px; display: flex; align-items: center; gap: 28px; }
.hero__caption { display: grid; gap: 4px; text-align: right; }
.hero__count { color: rgba(247, 245, 241, .8); }
.hero__name { font-size: 15px; font-weight: 300; }
.hero__controls { display: flex; gap: 6px; }
.ctl { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(247, 245, 241, .34); border-radius: 2px; transition: background-color .8s var(--ease), border-color .8s var(--ease); }
.ctl:hover { background: rgba(247, 245, 241, .14); border-color: rgba(247, 245, 241, .7); }
.ctl svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.ctl .i-play { display: none; fill: currentColor; stroke: none; }
.ctl[aria-pressed="true"] .i-pause { display: none; }
.ctl[aria-pressed="true"] .i-play { display: block; }
.hero :focus-visible { outline-color: var(--pearl); }

.hero__tide { position: absolute; z-index: 4; left: 50%; bottom: 0; width: 44px; height: 9svh; transform: translateX(-50%); display: block; }
.hero__tide::before { content: ''; position: absolute; left: 50%; top: 14px; bottom: 0; width: 1px; background: rgba(247, 245, 241, .3); }
.hero__tide span { position: absolute; left: 50%; top: 14px; width: 1px; height: 40%; background: var(--pearl); animation: tide 3.6s var(--ease) infinite; transform-origin: top; }
@keyframes tide {
  0% { transform: translateY(-10%) scaleY(0); opacity: 0; }
  35% { opacity: 1; transform: translateY(0) scaleY(1); }
  100% { transform: translateY(150%) scaleY(.2); opacity: 0; }
}

/* the nav reads Pearl while it sits on the photographs */
.nav:not(.is-solid) { color: var(--pearl); }
.nav:not(.is-solid) .nav__sub { color: rgba(247, 245, 241, .75); }
.menu-open .nav { color: var(--basalt); }

/* ---------- 2 · intro ----------------------------------------------------- */
.intro { padding: clamp(120px, 20vh, 220px) var(--gut) clamp(120px, 18vh, 200px); }
.intro__inner { max-width: 1040px; margin-inline: auto; display: grid; justify-items: center; text-align: center; gap: 44px; }
.intro__mark { width: 36px; height: 42px; }
.intro__text { font: 400 clamp(30px, 3.5vw, 52px)/1.2 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.intro__tag { color: var(--stone); }

/* ---------- 3 · process --------------------------------------------------- */
.process__pin { position: relative; height: 100svh; display: grid; grid-template-columns: 1fr 1px minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 110px); padding: calc(var(--nav-h) + 10px) var(--gut) 48px; max-width: 1440px; margin-inline: auto; }
.process__text { position: relative; display: grid; gap: 40px; justify-self: end; width: min(440px, 100%); }
.process__label { color: var(--stone); }
.process__steps { display: grid; }
.pstep { grid-area: 1 / 1; display: grid; gap: 16px; }
.pstep__num { color: var(--stone); }
.pstep__title { font-size: clamp(40px, 4.6vw, 68px); }
.pstep__body { max-width: 34ch; }
.process__tideline { position: relative; height: 62%; width: 1px; background: var(--rule); }
.process__fill { position: absolute; inset: 0; background: var(--basalt); transform-origin: top; transform: scaleY(0); }
.process__dot { position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin: -3px 0 0 -3.5px; border-radius: 50%; background: var(--basalt); }
.process__frames { position: relative; height: min(76svh, 760px); aspect-ratio: .72; max-width: 100%; justify-self: start; border-radius: 2px; overflow: hidden; background: var(--sterling); }
.process__frame { position: absolute; inset: 0; }
.process__frame:not(:first-child) {
  -webkit-mask-image: linear-gradient(to top, #000 var(--p, -30%), transparent calc(var(--p, -30%) + 30%));
          mask-image: linear-gradient(to top, #000 var(--p, -30%), transparent calc(var(--p, -30%) + 30%));
}

/* ---------- 4 · pieces ---------------------------------------------------- */
.pieces { position: relative; }
.pieces__pin { height: 100svh; overflow: hidden; display: flex; align-items: center; }
.pieces__track { display: flex; align-items: center; gap: clamp(48px, 7vw, 120px); padding-inline: max(var(--gut), calc((100vw - 1200px) / 2)); will-change: transform; }
.pieces__head { flex: 0 0 min(400px, 80vw); display: grid; gap: 20px; }
.pieces__head > .mono:first-child { color: var(--stone); }
.pieces__title { font-size: clamp(44px, 5vw, 76px); }
.pieces__lede { max-width: 34ch; }
.pieces__hint { color: var(--stone); margin-top: 12px; }
.pieces__hint span { display: inline-block; animation: nudge 2.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(8px); } }
.pieces__list { display: flex; align-items: flex-start; gap: clamp(32px, 4vw, 64px); }
.card { flex: 0 0 auto; width: clamp(270px, 24vw, 360px); display: grid; align-content: start; gap: 8px; will-change: transform; }
.card:nth-child(even) { margin-top: 14vh; }
.card__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--salt); margin-bottom: 18px; }
.card__img img { transform: scale(1.02); transition: transform 2.4s var(--ease), filter 2.4s var(--ease); }
.card:hover .card__img img { transform: scale(1.07); }
.card__batch { color: var(--stone); }
.card__name { font-size: 28px; line-height: 1.1; }
.card__line { color: var(--basalt); }
.card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--rule); font-size: 14px; }
.card__mat { color: var(--stone); }
.card__price { font: 400 20px/1 var(--serif); color: var(--abalone-deep); white-space: nowrap; text-decoration: none; }
a.card__price { font: 500 14px/1 var(--sans); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.card.is-home .card__price { font: 300 14px/1 var(--sans); color: var(--stone); }
.card.is-home .card__img img { filter: saturate(.7); }
.card__img--next { display: grid; place-items: center; background: var(--salt); }
.card__nextmark { width: 64px; height: 75px; opacity: .85; }
.card__follow { font-weight: 500; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color .8s var(--ease); }
.card__follow:hover { border-color: var(--basalt); }
.pieces__progress { position: absolute; left: 50%; bottom: 40px; width: min(240px, 40vw); height: 1px; background: var(--rule); transform: translateX(-50%); }
.pieces__progress span { position: absolute; inset: 0; background: var(--basalt); transform: scaleX(0); transform-origin: left; }

/* ---------- 5 · coast ----------------------------------------------------- */
.coast__pin { position: relative; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.coast__window {
  position: absolute; left: 50%; top: 50%; width: 100vw; height: 100svh; transform: translate(-50%, -50%);
  overflow: hidden; clip-path: inset(var(--it, 22svh) var(--ix, 40vw) var(--ib, 22svh) var(--ix, 40vw) round var(--rad, 50vw) var(--rad, 50vw) 2px 2px);
}
.coast__window picture { position: absolute; inset: 0; }
.coast__shade { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 50%, rgba(40, 40, 40, .55), rgba(40, 40, 40, .12)); opacity: 0; }
.coast__text { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: center; text-align: center; color: var(--pearl); max-width: 900px; padding-inline: var(--gut); }
.coast__title { font-size: clamp(40px, 5vw, 80px); line-height: 1.05; }
.coast__lede { max-width: 40ch; }

/* ---------- 6 · four things ---------------------------------------------- */
.four { position: relative; padding: clamp(120px, 18vh, 200px) 0; }
.four__label { color: var(--stone); margin-bottom: 22px; }
.four__title { font-size: clamp(40px, 4.6vw, 70px); max-width: 15ch; margin-bottom: clamp(56px, 9vh, 96px); }
.four__list { border-top: 1px solid var(--rule); }
.thing {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.1fr); align-items: baseline; gap: 24px;
  padding: 34px 0; border-bottom: 1px solid var(--rule); position: relative;
}
.thing__n { color: var(--stone); }
.thing__name { font-size: clamp(30px, 3vw, 44px); transition: transform 1.2s var(--ease); }
.thing__body { max-width: 44ch; color: var(--basalt); transition: transform 1.2s var(--ease); }
.thing:hover .thing__name, .thing:hover .thing__body { transform: translateX(12px); }
.float { position: absolute; left: 0; top: 0; width: 220px; aspect-ratio: 4 / 5; pointer-events: none; z-index: 3; opacity: 0; border-radius: 2px; overflow: hidden; }
.float img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.float img.is-on { opacity: 1; }

/* ---------- 7 · markets --------------------------------------------------- */
.markets { padding: clamp(120px, 18vh, 200px) 0; }
.markets__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 8vw, 140px); align-items: center; }
.markets__img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: var(--salt); }
.markets__img img { transform: scale(1.12); }
.markets__text { display: grid; gap: 22px; justify-items: start; }
.markets__text > .mono:first-child { color: var(--basalt); }
.markets__title { font-size: clamp(40px, 4.4vw, 68px); max-width: 14ch; }
.markets__lede { max-width: 40ch; }
.markets__where { font-weight: 500; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; margin-top: 8px;
  background: var(--basalt); color: var(--pearl); border-radius: 2px; text-decoration: none; font-weight: 500; font-size: 15px;
  transition: background-color .8s var(--ease), transform .8s var(--ease);
}
.btn:hover { background: #3a3836; transform: translateY(-2px); }

/* ---------- 8 · care ------------------------------------------------------ */
.care { padding: clamp(120px, 18vh, 200px) 0; }
.care__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 140px); align-items: start; }
.care__card { background: var(--pearl); border-radius: 2px; padding: clamp(36px, 4vw, 60px); display: grid; gap: 22px; box-shadow: 0 30px 60px -40px rgba(40, 40, 40, .35); }
.care__card > .mono:first-child { color: var(--stone); }
.care__title { font-size: clamp(32px, 3.2vw, 48px); }
.care__sig { color: var(--stone); margin-top: 12px; }
.care__faq { border-top: 1px solid rgba(40, 40, 40, .22); }
.qa { padding: 28px 0; border-bottom: 1px solid rgba(40, 40, 40, .22); display: grid; gap: 8px; }
.qa dt { font: 400 24px/1.2 var(--serif); }
.js .qa { opacity: 0; transform: translateY(12px); }

/* ---------- footer -------------------------------------------------------- */
.foot { padding: clamp(100px, 16vh, 180px) 0 40px; }
.foot__note { font: 400 clamp(22px, 2vw, 30px)/1.3 var(--serif); text-align: center; margin-bottom: clamp(80px, 14vh, 150px); }
.foot__lockup { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.4vw, 40px); }
.foot__mark { width: clamp(48px, 8.5vw, 136px); flex: none; aspect-ratio: 351 / 408; }
.foot__word { font: 400 clamp(64px, 13.5vw, 220px)/.9 var(--serif); letter-spacing: -.03em; white-space: nowrap; }
.foot__row { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--stone); }
.foot__row a { text-decoration: none; color: var(--basalt); }

/* ---------- smaller screens (desktop is the reference) -------------------- */
@media (max-width: 860px) {
  :root { --nav-h: 68px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav nav, .nav__ig { display: none; }
  .nav__burger { display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; }
  .nav__burger span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .8s var(--ease); }
  .menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu { display: block; position: fixed; inset: 0; z-index: 80; background: var(--shell); clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
  .menu-open .menu { clip-path: inset(0); }
  .menu__inner { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: var(--gut); gap: 48px; }
  .menu__links a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; font: 400 42px/1.1 var(--serif); text-decoration: none; }
  .menu__links .mono { color: var(--stone); }
  .menu__foot { color: var(--stone); }

  .hero__line--a { top: 26%; }
  .hero__line--b { top: auto; bottom: 150px; }
  .hero__title { font-size: clamp(52px, 16vw, 84px); }
  .hero__eyebrow { display: none; }
  .hero__foot { left: var(--gut); right: var(--gut); justify-content: space-between; bottom: 24px; }
  .hero__caption { text-align: left; }
  .hero__tide { display: none; }

  .process__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 24px; padding-bottom: 32px; }
  .process__text { justify-self: start; order: 2; gap: 16px; }
  .process__tideline { display: none; }
  .process__frames { height: 46svh; justify-self: center; order: 1; }
  .pstep { gap: 8px; }
  .pstep__title { font-size: 34px; }

  .card { width: 72vw; }
  .card:nth-child(even) { margin-top: 0; }

  .thing { grid-template-columns: 48px 1fr; }
  .thing__body { grid-column: 2; }
  .float { display: none; }
  .markets__inner, .care__inner { grid-template-columns: 1fr; }
  .foot__row { flex-direction: column; gap: 10px; }
  .mono { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .qa { opacity: 1 !important; transform: none !important; }
}
