/* ===========================================================================
   Ocean Park Labs — full landing page
   Extends Direction B (Deep Water): one continuous dark atmosphere,
   Newsreader (serif) + IBM Plex Mono (technical), coastal BC palette.
   =========================================================================== */

:root {
  --snow:      oklch(0.985 0.004 220);
  --mist:      oklch(0.86  0.013 222);
  --ocean-deep:oklch(0.255 0.045 248);
  --forest-deep:oklch(0.245 0.040 168);

  /* accent hue is driven by --acc (set via Tweaks) */
  --acc-h: 240;
  --acc:    oklch(0.70 0.075 var(--acc-h));
  --acc-2:  oklch(0.74 0.066 162);

  --line:   oklch(0.62 0.04 230 / 0.20);
  --line-2: oklch(0.62 0.04 230 / 0.34);
  --dim:    oklch(0.72 0.02 225);
  --dim-2:  oklch(0.82 0.018 225);

  --serif: "Newsreader", Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --gutter: clamp(28px, 6vw, 110px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--snow);
  background: oklch(0.19 0.03 224);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* one continuous background field behind everything ---------------------- */
.bgfield {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(110% 60% at 80% 0%, oklch(0.42 0.06 232 / 0.5), transparent 58%),
    radial-gradient(90% 55% at 8% 100%, oklch(0.40 0.05 168 / 0.42), transparent 60%),
    linear-gradient(168deg, var(--ocean-deep) 0%, oklch(0.185 0.032 220) 50%, var(--forest-deep) 120%);
}
.bgfield .fog {
  position: absolute; inset: -10% -10% auto -10%; height: 60%;
  background: radial-gradient(60% 90% at 70% 0%, oklch(0.8 0.04 225 / 0.12), transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite;
}
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2%); } }

main { position: relative; z-index: 1; }

/* shared layout atoms ---------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--acc);
}
.coord { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--dim); }
.mono { font-family: var(--mono); }

.divider { border: 0; height: 1px; background: var(--line); }

.cta {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.7em;
  color: var(--snow); text-decoration: none; cursor: pointer;
  transition: gap .35s cubic-bezier(.2,.7,.2,1), color .3s, border-color .3s, background .3s;
}
.cta .arr { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.cta:hover .arr { transform: translateX(5px); }
.cta--box { border: 1px solid var(--line-2); padding: 15px 24px; border-radius: 1px; }
.cta--box:hover { background: oklch(0.6 0.07 235 / 0.16); border-color: var(--acc); color: var(--snow); }
.cta--line { border-bottom: 1px solid var(--snow); padding-bottom: 4px; }
.cta--line:hover { color: var(--acc); border-color: var(--acc); }

/* scroll reveal ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bgfield .fog { animation: none; }
}

/* ── NAV ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: oklch(0.18 0.03 224 / 0.72); backdrop-filter: blur(14px);
  padding-top: 16px; padding-bottom: 16px; border-color: var(--line);
}
.nav .brand { font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--snow); text-decoration: none; }
.nav .links { display: flex; gap: 34px; align-items: center; }
.nav .links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); text-decoration: none; transition: color .3s;
}
.nav .links a:hover { color: var(--snow); }
.nav .links a.navcta { color: var(--snow); }
.nav .links a.navcta:hover { color: var(--acc); }
@media (max-width: 720px) { .nav .links a:not(.navcta) { display: none; } }

/* ── HERO ────────────────────────────────────────────────────────────── */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; padding-bottom: 64px; }
.hero .lede { margin-bottom: 30px; }
.hero h1 { font-weight: 300; font-size: clamp(40px, 6.4vw, 88px); line-height: 1.04; letter-spacing: -0.022em; text-wrap: balance; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--acc-2); }
.hero .sub { margin-top: 30px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; max-width: 56ch; color: var(--dim-2); font-weight: 300; }
.hero .actions { margin-top: 44px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero .scrollcue { margin-top: 72px; display: flex; align-items: center; gap: 12px; color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.hero .scrollcue .ln { width: 46px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hero .scrollcue .ln::after { content:""; position:absolute; inset:0; width:40%; background: var(--acc); animation: sweep 2.6s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateX(-100%);} 60%,100% { transform: translateX(280%);} }

/* ── PROOF BAR ───────────────────────────────────────────────────────── */
.proof { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof .row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; justify-content: space-between; }
.proof .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.proof .items { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.proof .items span { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--dim-2); }
.proof .items span b { color: var(--snow); font-weight: 500; }

/* section heading shared -------------------------------------------------*/
.shead { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 56px; }
.shead h2 { font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.018em; line-height: 1.1; max-width: 18ch; }
.shead h2 em { font-style: italic; color: var(--acc-2); }
.shead .idx { white-space: nowrap; }

/* ── PRACTICE ────────────────────────────────────────────────────────── */
.practice { padding: clamp(90px, 12vh, 150px) 0; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.mode { padding: 40px 34px 44px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background .4s; position: relative; }
.mode:nth-child(3n) { border-right: 0; }
.mode:hover { background: oklch(0.6 0.06 235 / 0.06); }
.mode .mnum { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--acc); }
.mode h3 { font-weight: 400; font-size: 25px; line-height: 1.2; margin-top: 22px; letter-spacing: -0.01em; }
.mode .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-top: 10px; }
.mode p { margin-top: 18px; font-size: 16.5px; line-height: 1.6; color: var(--dim-2); font-weight: 300; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } .mode { border-right: 0; } }

/* ── SELECTED WORK ───────────────────────────────────────────────────── */
.work { padding: clamp(90px, 12vh, 150px) 0; }
.wlist { border-top: 1px solid var(--line-2); }
.witem {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 28px; align-items: baseline;
  padding: 30px 12px 30px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .4s cubic-bezier(.2,.7,.2,1), background .4s;
}
.witem:hover { padding-left: 16px; background: oklch(0.6 0.06 235 / 0.05); }
.witem .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--acc); }
.witem .body .t { font-size: clamp(19px, 2vw, 24px); line-height: 1.3; letter-spacing: -0.01em; max-width: 30ch; transition: color .3s; }
.witem:hover .body .t { color: var(--acc-2); }
.witem .body .m { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--dim); margin-top: 10px; }
.witem .tags { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); text-align: right; white-space: nowrap; }
@media (max-width: 720px) { .witem { grid-template-columns: 40px 1fr; } .witem .tags { display: none; } }

/* ── APPROACH ────────────────────────────────────────────────────────── */
.approach { padding: clamp(90px, 12vh, 150px) 0; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle { background: oklch(0.195 0.03 222); padding: 44px 40px; transition: background .4s; }
.principle:hover { background: oklch(0.215 0.034 224); }
.principle .pn { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--acc); }
.principle h3 { font-weight: 400; font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.22; margin-top: 18px; letter-spacing: -0.01em; text-wrap: balance; }
.principle p { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--dim-2); font-weight: 300; }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

/* ── ABOUT ───────────────────────────────────────────────────────────── */
.about { padding: clamp(90px, 12vh, 150px) 0; }
.about .grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
.about .portrait { position: relative; }
.about image-slot { width: 100%; aspect-ratio: 4 / 5; display: block; border: 1px solid var(--line-2); }
.about .pcap { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-top: 14px; display: flex; justify-content: space-between; }
.about h2 { font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.018em; line-height: 1.12; text-wrap: balance; }
.about h2 em { font-style: italic; color: var(--acc-2); }
.about .lede2 { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--snow); font-weight: 300; margin-top: 26px; }
.about .body p { font-size: 16.5px; line-height: 1.7; color: var(--dim-2); font-weight: 300; margin-top: 18px; max-width: 60ch; }
.about .sig { margin-top: 30px; font-size: 22px; font-style: italic; }
.about .meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px 30px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--dim); }
.about .meta span b { color: var(--snow); font-weight: 500; }
@media (max-width: 820px) { .about .grid { grid-template-columns: 1fr; } .about .portrait { max-width: 360px; } }

/* ── CONTACT ─────────────────────────────────────────────────────────── */
.contact { padding: clamp(110px, 16vh, 200px) 0 clamp(80px, 10vh, 120px); text-align: center; }
.contact .eyebrow { display: block; }
.contact h2 { font-weight: 300; font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.02em; line-height: 1.05; margin-top: 24px; text-wrap: balance; }
.contact h2 em { font-style: italic; color: var(--acc-2); }
.contact .sub { margin: 26px auto 0; font-size: 19px; line-height: 1.55; color: var(--dim-2); font-weight: 300; max-width: 50ch; }
.contact .actions { margin-top: 46px; display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; }
.contact .email { font-family: var(--mono); font-size: clamp(16px, 2.4vw, 22px); letter-spacing: 0.04em; color: var(--snow); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; transition: color .3s, border-color .3s; }
.contact .email:hover { color: var(--acc); border-color: var(--acc); }

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.foot .row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .row span, .foot .row a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--dim); text-decoration: none; }
.foot .row a:hover { color: var(--snow); }
.foot .coordbig { color: var(--dim-2); }
