/* ==========================================================================
   ORCA VENTURES — styles.css
   MAP  ▸1 TWEAKS  ▸2 BASE  ▸3 HEADER & NAV  ▸4 HERO  ▸5 ABOUT  ▸6 APPROACH/WORKFLOW
        ▸7 TEAM  ▸8 CONTACT  ▸9 FOOTER  ▸10 MOTION  ▸11 RESPONSIVE
   Search for "▸" to jump between sections. Most edits only need section 1.
   ========================================================================== */

/* ▸1 TWEAKS — change these first ----------------------------------------- */
:root {
  /* brand colours (BRAND_IDENTITY.pdf) */
  --bg: #202020;  --white: #f6f6f6;  --accent: #64748b;  --light: #e2e8f0;
  /* derived tints */
  --bg-soft: #22252a;  --border: rgba(226,232,240,.13);  --muted: rgba(226,232,240,.55);
  --card: rgba(246,246,246,.035);
  /* fonts */
  --font-main: 'DM Sans', sans-serif;  --font-display: 'Space Grotesk', sans-serif;
  /* layout */
  --container: 1240px;  --gutter: 100px;  --section-space: 140px;  --header-h: 88px;  --radius: 20px;
  /* workflow (section 6). Corner + rail are read by script.js, so keep them unitless */
  --wf-card-h: 220px;  --wf-col-gap: 130px;  --wf-row-gap: 90px;  --wf-corner: 22;  --wf-rail: 10;
  /* motion */
  --ease: cubic-bezier(.22,1,.36,1);  --ease-io: cubic-bezier(.65,0,.35,1);
  --draw-time: 1.1s;   /* how long each workflow line takes to draw */
  --pulse-time: 3.4s;  /* how long the light pulse takes to travel a line */
}

/* ▸2 BASE ---------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { overflow-x: hidden; background: var(--bg); color: var(--white); font: 400 16px/1.6 var(--font-main); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; }
em { font-style: normal; color: var(--accent); }              /* muted accent words in headlines */
::selection { background: var(--light); color: var(--bg); }

.container, .header-inner { width: min(var(--container), calc(100% - var(--gutter))); margin-inline: auto; }
.section { position: relative; padding: var(--section-space) 0; border-top: 1px solid var(--border); }
.label { font-size: 10px; font-weight: 600; letter-spacing: 1.8px; }
.small { color: var(--muted); font-size: 9px; letter-spacing: 1.4px; }
.section-heading { padding-bottom: 22px; border-bottom: 1px solid var(--border); color: var(--light); }
.link { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 9px; border-bottom: 1px solid var(--accent); font-size: 13px; font-weight: 600; transition: gap .3s var(--ease), border-color .3s; }
.link:hover { gap: 27px; border-color: var(--light); }
.link i { font-style: normal; color: var(--light); font-size: 17px; }
.noise { position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .025; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }

/* ▸3 HEADER & NAV -------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(32,32,32,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { height: 75px; width: auto; }
.header::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }   /* scroll progress */
.count { margin: 0 22px 0 auto; overflow: hidden; color: var(--muted); font-size: 10px; letter-spacing: 1.5px; opacity: 0; transition: opacity .4s; }                  /* section counter */
.count.on { opacity: 1; } .count b { display: inline-block; color: var(--light); font-weight: 600; }
.menu-btn { position: relative; z-index: 121; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: transparent; cursor: pointer; transition: background .25s, border-color .25s; }
.menu-btn:hover { background: rgba(100,116,139,.12); border-color: rgba(226,232,240,.3); }
.menu-btn span { display: block; width: 100%; height: 1px; background: var(--white); transition: transform .3s var(--ease); }
.menu-btn.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn.active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.scrim { position: fixed; inset: var(--header-h) 0 0 0; z-index: 105; background: rgba(0,0,0,.48); opacity: 0; pointer-events: none; transition: opacity .4s; }
body.menu-open .scrim { opacity: 1; pointer-events: auto; }
.nav { position: fixed; z-index: 110; top: var(--header-h); right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; width: min(440px, 100%); padding: 65px 48px 35px; background: var(--bg); border-left: 1px solid var(--border); box-shadow: -30px 20px 80px rgba(0,0,0,.28); visibility: hidden; transform: translateX(105%); transition: transform .55s var(--ease), visibility .55s; }
.nav.open { visibility: visible; transform: none; }
.nav nav { display: flex; flex-direction: column; }
.nav nav a { display: flex; align-items: center; justify-content: space-between; padding: 23px 0; border-bottom: 1px solid var(--border); font: 34px var(--font-display); letter-spacing: -1.3px; transition: color .25s; }
.nav nav a:hover { color: var(--light); }
.nav nav a span { color: var(--accent); font: 10px var(--font-main); letter-spacing: 1px; }
.nav-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; letter-spacing: 1.3px; }
.nav-icon { width: 90px; height: 90px; object-fit: contain; }

/* ▸4 HERO ---------------------------------------------------------------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: min(850px, calc(100svh - var(--header-h))); overflow: hidden; }
.hero-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mask-image: linear-gradient(to bottom, #000, transparent 92%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%); }   /* drawn by script.js */
.hero-main { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 80px 0 90px; }
.hero-copy { position: relative; z-index: 3; }
.hero-title { font: 500 clamp(65px, 7.5vw, 108px)/.99 var(--font-display); letter-spacing: -7px; }
.hero-title b { font-weight: inherit; color: var(--light); }
.hero-desc { max-width: 400px; margin: 32px 0 48px; color: var(--muted); line-height: 1.8; }
.hero-foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 20px; padding-bottom: 30px; color: var(--muted); font-size: 9px; letter-spacing: 1.5px; }
.hero-index { margin-left: auto; }
.scroll-line { position: relative; width: 70px; height: 1px; overflow: hidden; background: var(--border); }
.scroll-line span { position: absolute; width: 30%; height: 100%; background: var(--light); animation: scrollline 2.5s ease-in-out infinite; }

/* orbit artwork */
.art { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; justify-self: end; display: grid; place-items: center; isolation: isolate; }
.art::before { content: ''; position: absolute; inset: 26%; border-radius: 50%; background: radial-gradient(circle, rgba(100,116,139,.24), transparent 70%); }   /* soft glow behind the globe */
.globe { position: absolute; inset: 0; width: 100%; height: 100%; animation: bob 7s ease-in-out infinite; }   /* drawn by script.js */
.orbit { position: absolute; width: 76%; height: 76%; border: 1px solid rgba(226,232,240,.2); border-radius: 50%; }
.o1 { transform: rotate(-28deg) scaleY(.48); animation: orbit1 22s linear infinite; }
.o2 { transform: rotate(48deg) scaleY(.72); border-color: rgba(100,116,139,.75); animation: orbit2 28s linear infinite; }
.o3 { width: 92%; height: 92%; border-color: rgba(226,232,240,.08); transform: rotate(25deg) scaleY(.4); animation: orbit3 35s linear infinite; }
.pt { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--white); box-shadow: 0 0 18px rgba(226,232,240,.6); }
.p1 { top: 16%; right: 29%; }
.p2 { bottom: 23%; left: 16%; width: 5px; height: 5px; }
.p3 { right: 12%; bottom: 38%; width: 4px; height: 4px; }
.art-caption { position: absolute; left: 5%; bottom: 8%; color: var(--muted); font-size: 9px; letter-spacing: 1.5px; }
/* parallax: script.js sets --px/--py (-1…1) on .art; --d = how far each layer drifts in px (bigger = closer) */
.art > * { --d: 10; translate: calc(var(--px, 0) * var(--d) * 1px) calc(var(--py, 0) * var(--d) * 1px); transition: translate .8s var(--ease); }
.o2 { --d: 14; } .o3 { --d: 7; } .globe { --d: 22; } .pt { --d: 34; } .art-caption { --d: 0; }

/* ▸5 ABOUT --------------------------------------------------------------- */
.about { background: radial-gradient(ellipse at 8% 55%, rgba(100,116,139,.08), transparent 42%); }
.about > .container { position: relative; z-index: 1; }
.about .section-heading { display: flex; align-items: center; justify-content: space-between; }
.found { transition: color .6s; } .solved .found { color: var(--light); }
.about-title em { transition: color 1.4s, text-shadow 1.4s; }
.solved .about-title em { color: var(--light); text-shadow: 0 0 30px rgba(226,232,240,.35); }   /* payoff when all three are found */

/* hidden value dots (script.js places them and switches .near / .found) */
.seek { position: absolute; z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seek::before { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--light); box-shadow: 0 0 14px rgba(226,232,240,.65); opacity: .8; transition: transform .45s var(--ease), opacity .3s; }
.seek::after { content: ''; position: absolute; inset: 9px; border: 1px solid var(--light); border-radius: 50%; opacity: 0; animation: ping 3.4s var(--d, 0s) ease-out infinite; }   /* faint "something's here" pulse */
.seek.near::before, .seek:hover::before { transform: scale(1.7); opacity: 1; }
.seek.found::before { transform: scale(1.3); opacity: 1; background: var(--accent); box-shadow: 0 0 18px rgba(100,116,139,.9); }
.seek.found::after { animation: none; opacity: .4; inset: 4px; }
.tip { position: absolute; top: 50%; left: 38px; display: block; width: max-content; max-width: 210px; padding: 12px 16px; text-align: left; background: rgba(32,32,32,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 12px; opacity: 0; pointer-events: none; translate: -8px -50%; transition: opacity .4s, translate .5s var(--ease); }
.seek[data-side=left] .tip { left: auto; right: 38px; translate: 8px -50%; }
.seek.show .tip, .seek.found:hover .tip, .seek.found:focus-visible .tip { opacity: 1; translate: 0 -50%; }   /* label: shown briefly after a find, and on hover / tap */
.tip b { display: block; font: 500 20px var(--font-display); letter-spacing: -.6px; }
.tip i { display: block; margin-top: 4px; font-style: normal; color: var(--muted); font-size: 12px; line-height: 1.6; }
/* hidden dot field (drawn by script.js). Only shows through the lens; the last mask stop = faint hint everywhere */
.dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .75; --mask: radial-gradient(circle var(--lr, 220px) at var(--lx, 30%) var(--ly, 50%), #000 0, rgba(0,0,0,.6) 45%, rgba(0,0,0,.06) 100%); -webkit-mask-image: var(--mask); mask-image: var(--mask); }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 90px; padding-top: 100px; }
.about-title { font: 500 clamp(48px, 6vw, 76px)/1.08 var(--font-display); letter-spacing: -4px; }
.about-copy { max-width: 420px; }
.about-copy p { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.about-copy .lead { margin-top: 0; color: var(--white); font: 20px/1.5 var(--font-display); }

/* ▸6 APPROACH / WORKFLOW ------------------------------------------------- */
.approach { background: var(--bg-soft); }
.approach-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; padding: 75px 0 65px; }
.approach-intro h2 { font: 500 clamp(42px, 5vw, 66px)/1.08 var(--font-display); letter-spacing: -3px; }
.approach-intro p { max-width: 330px; padding-bottom: 5px; color: var(--muted); font-size: 13px; line-height: 1.9; }

/* grid: card 1 left, card 2 right, card 3 left. script.js measures them and draws the lines */
.workflow { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--wf-col-gap); row-gap: var(--wf-row-gap); max-width: 1000px; margin: 0 auto; }
.wf-card:nth-of-type(1) { grid-area: 1 / 1; }
.wf-card:nth-of-type(2) { grid-area: 2 / 2; }
.wf-card:nth-of-type(3) { grid-area: 3 / 1; }

.wf-card { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: var(--wf-card-h); padding: 30px; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: opacity .8s var(--ease) var(--delay, 0s), transform .8s var(--ease) var(--delay, 0s), rotate .35s var(--ease), border-color .3s, background .3s; }
.workflow { perspective: 1400px; }                                              /* 3D tilt on hover (script.js ▸5 sets "rotate") */
.wf-card::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(226,232,240,.10), transparent 70%); opacity: 0; transition: opacity .3s; }
.wf-card:hover::before { opacity: 1; }                                          /* soft light that follows the cursor */
.wf-card:not(:first-of-type) { --delay: calc(var(--draw-time) * .65); }   /* cards 2+ appear as the line reaches them */
.wf-card:hover { background: rgba(100,116,139,.09); border-color: rgba(226,232,240,.3); }
.wf-card::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width .5s var(--ease); }
.wf-card:hover::after { width: 100%; }
.wf-card .num { color: var(--muted); font-size: 12px; }
.wf-card .kicker { color: var(--accent); font-size: 9px; }
.wf-card h3 { margin: 12px 0; font: 500 36px var(--font-display); letter-spacing: -1.5px; }
.wf-card p { max-width: 300px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.js .wf-card { opacity: 0; transform: translateY(28px); }
.js .wf-card.in { opacity: 1; transform: none; }

/* lines (SVG is filled in by script.js) */
.wf-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.wf-lines path { fill: none; stroke-linecap: round; }
.wf-lines .track { stroke: rgba(226,232,240,.28); stroke-width: 1.5; }
.wf-lines .glow  { stroke: var(--accent); stroke-width: 5; opacity: .55; filter: url(#wfGlow); }
.wf-lines .track, .wf-lines .glow { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; transition: stroke-dashoffset var(--draw-time) var(--ease-io); }
.wf-lines .in .track, .wf-lines .in .glow { stroke-dashoffset: 0; }
.wf-lines .scroll path { transition: none; }                                   /* mobile: line follows scroll */
.wf-lines .pulse { stroke: var(--white); stroke-width: 2; stroke-dasharray: .06 .94; opacity: 0; filter: drop-shadow(0 0 5px var(--light)); transition: opacity .8s var(--draw-time); animation: flow var(--pulse-time) linear infinite; }
.wf-lines .in .pulse { opacity: .9; }
.wf-dot { fill: var(--light); opacity: 0; filter: drop-shadow(0 0 6px rgba(226,232,240,.7)); transition: opacity .4s; }
.wf-dot.in { opacity: 1; }

/* ▸7 TEAM ---------------------------------------------------------------- */
.team { background: radial-gradient(ellipse at 92% 45%, rgba(100,116,139,.07), transparent 42%); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 760px; margin-top: 64px; }
.portrait { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin: 22px 0 6px; font: 500 22px var(--font-display); letter-spacing: -.5px; }
.member span { color: var(--accent); font-size: 14px; }

/* ▸8 CONTACT ------------------------------------------------------------- */
.contact { overflow: hidden; background: var(--bg); }
.contact-glow { position: absolute; top: 0; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(100,116,139,.14), transparent 68%); pointer-events: none; }
.contact-inner { position: relative; z-index: 1; }
.contact-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 100px; }
.contact-main h2 { font: 500 clamp(58px, 8vw, 100px)/1 var(--font-display); letter-spacing: -6px; }
.contact-main .link { margin-bottom: 10px; padding-bottom: 13px; gap: 30px; font-weight: 500; }
.contact-main .link:hover { gap: 42px; }
.contact-main .link i { font-size: 20px; }

/* ▸9 FOOTER -------------------------------------------------------------- */
.footer { padding: 35px 0 25px; border-top: 1px solid var(--border); }
.footer-row { display: flex; align-items: center; justify-content: space-between; }
.footer-icon { height: 48px; width: auto; }
.footer .small:hover { color: var(--white); }
.footer i { margin-left: 12px; font-style: normal; color: var(--light); font-size: 15px; }
.footer-legal { margin-top: 35px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ▸10 MOTION ------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes scrollline { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@keyframes orbit1 { to { transform: rotate(332deg) scaleY(.48); } }
@keyframes orbit2 { to { transform: rotate(408deg) scaleY(.72); } }
@keyframes orbit3 { to { transform: rotate(385deg) scaleY(.4); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@keyframes ping { from { transform: scale(.5); opacity: .6; } to { transform: scale(2.1); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .wf-lines .pulse { display: none; }
  .seek::after { display: none; }
}

/* ▸11 RESPONSIVE --------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --gutter: 60px; --wf-col-gap: 80px; }
  .hero-main { grid-template-columns: 1fr .8fr; gap: 10px; }
  .hero-title { font-size: clamp(58px, 8vw, 78px); letter-spacing: -4px; }
  .art { width: 115%; margin-right: -10%; }
  .about-grid { gap: 50px; }
  .contact-main { flex-direction: column; align-items: flex-start; }
}

/* ≤700px: phone layout. The workflow becomes one column with a rail on the left (script.js uses the same 700px) */
@media (max-width: 700px) {
  :root { --gutter: 40px; --section-space: 90px; --header-h: 72px; }
  .logo { height: 49px; }
  .nav { width: 100%; padding: 55px 30px 35px; border-left: 0; }
  .nav nav a { font-size: 30px; }
  .hero { min-height: auto; }
  .hero-main { display: flex; flex-direction: column; align-items: stretch; padding: 100px 0 15px; }
  .hero-title { font-size: clamp(62px, 14vw, 88px); }
  .hero-desc { max-width: 340px; margin: 25px 0 35px; font-size: 14px; }
  .art { width: min(100%, 390px); margin: 15px auto 0; }
  .hero-foot { padding-bottom: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; padding-top: 65px; }
  .about-title { font-size: clamp(47px, 11vw, 66px); letter-spacing: -3px; }
  .about-copy .lead { font-size: 19px; }
  .approach-intro { flex-direction: column; align-items: flex-start; gap: 25px; padding: 60px 0 45px; }
  .approach-intro h2 { font-size: 48px; }
  .workflow { grid-template-columns: 1fr; row-gap: 28px; padding-left: calc(var(--wf-rail) * 1px + 26px); }
  .wf-card:nth-of-type(n) { grid-area: auto; --delay: 0s; min-height: 200px; padding: 25px; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; max-width: 420px; }
  .contact-main { gap: 40px; padding-top: 70px; }
  .contact-main h2 { font-size: clamp(58px, 13vw, 82px); letter-spacing: -4px; }
  .footer-icon { height: 40px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 10px; }
}
