/* Drydock Capital — landing page
   Everything below "Scroll mode" only applies once main.js has set
   data-mode="scroll" on .page. Without JavaScript, or with reduced motion,
   the page is a plain, fully visible one-pager. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #050D09;      /* page background, near-black green */
  --green: #12402F;       /* logo green, dock panel */
  --ink: #EEF3EF;         /* default text */
  --white: #FFFFFF;
  --soft: #C9D6CE;        /* body copy on the ground */
  --soft-on-green: #D3E0D8;
  --muted: #9DB0A6;       /* captions, footer */
  --accent: #7CE3A8;      /* mint: hull, water, kickers, progress */
  --on-accent: #06130D;
  --hairline: rgba(238, 243, 239, 0.12);
  --pad: clamp(20px, 5vw, 64px);
  --vh: 100vh;            /* main.js replaces this with the window height in px */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

main { display: flex; flex-direction: column; flex: 1 0 auto; }

.scroll-only { display: none; }

/* ---------- Shared pieces ---------- */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 30;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.lockup {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  color: var(--white);
}
.lockup:hover { color: var(--white); }
.lockup__mark { width: 26px; height: 26px; flex-shrink: 0; fill: currentColor; }
.lockup__name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.lockup__rule { width: 1px; height: 18px; background: currentColor; }
.lockup__sub { font-size: 11px; letter-spacing: 0.22em; line-height: 1; }

.lockup--small { gap: 9px; min-height: 0; color: var(--ink); }
.lockup--small .lockup__mark { width: 20px; height: 20px; }
.lockup--small .lockup__name { font-size: 16px; }
.lockup--small .lockup__rule { height: 13px; }
.lockup--small .lockup__sub { font-size: 9px; }

.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1;
  color: var(--accent);
}
.kicker--center { margin-right: -0.26em; }

/* Static: fills its section and fades out before the edges. Scroll mode turns it
   into a centred square that main.js scales (see "Scroll mode" below). */
.glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse closest-side, rgba(18, 64, 47, 0.9), rgba(18, 64, 47, 0));
  pointer-events: none;
}
.glow--cta { background: radial-gradient(ellipse closest-side, rgba(18, 64, 47, 0.85), rgba(18, 64, 47, 0)); }

.pill {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(238, 243, 239, 0.32);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.pill:hover { border-color: var(--accent); }

.btn {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-accent);
  font-size: 17px;
  font-weight: 600;
  transition: background-color 0.25s ease;
}
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Navigation ---------- */

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 14px var(--pad);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

/* ---------- 1. Hero ---------- */

.pin { position: relative; }
.stick { position: relative; }

.hero { z-index: 1; --len: 3; }

.hero__stick {
  height: 800px;
  padding: 120px var(--pad) 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero__intro {
  position: relative;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* 9vw keeps the word inside the window at its widest setting
   (width 125, weight 800 is about 9.3em wide). */
.hero__word {
  margin: 0;
  font-size: clamp(34px, 9vw, 190px);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 0.95;
  white-space: nowrap;
  color: var(--white);
}

.hero__subs { display: grid; justify-items: center; max-width: 720px; }

.hero__sub {
  grid-area: 1 / 1;
  margin: 0;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--soft);
  text-wrap: balance;
}
.hero__sub--2 {
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--white);
}

.cue {
  position: absolute;
  left: 0; right: 0; bottom: 30px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--muted);
}
.cue__label { margin-right: -0.26em; }
.cue__line {
  width: 1px; height: 38px;
  margin: 12px auto 0;
  background: var(--accent);
  transform-origin: 50% 0;
  animation: cue 2.2s cubic-bezier(0.6, 0, 0.2, 1) infinite;
}

/* ---------- 2. Statement ---------- */

.statement { position: relative; z-index: 2; padding: 120px var(--pad); }

.statement__text {
  margin: 0 auto;
  max-width: 1080px;
  font-size: clamp(28px, 4.3vw, 62px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--white);
  text-wrap: balance;
}

/* ---------- 3. Dock ---------- */

.dock { z-index: 3; --len: 5; }

.dock__panel {
  min-height: 760px;
  padding: 120px var(--pad) 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px clamp(32px, 6vw, 96px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green);
}

.dock__col {
  position: relative;
  flex: 1 1 320px;
  min-width: 0;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock__mark { width: min(400px, 78%); }
.dock__mark svg { display: block; width: 100%; height: auto; overflow: visible; }

.dock__water { fill: var(--accent); opacity: 0; }
.dock__block { fill: var(--white); fill-rule: evenodd; }
.dock__hull-fill { fill: var(--accent); }
.dock__hull-line { fill: none; stroke: var(--accent); stroke-width: 0.9; stroke-linejoin: round; }

.dock__wordmark {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  font-size: 80px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--white);
  pointer-events: none;
}

.beats {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.beat { display: flex; flex-direction: column; gap: 14px; }
.beat__label { font-size: 12px; font-weight: 500; letter-spacing: 0.24em; line-height: 1; color: var(--accent); }
.beat__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--white);
  text-wrap: balance;
}
.beat__text { margin: 0; font-size: 17px; line-height: 1.55; color: var(--soft-on-green); }

/* ---------- Team (parked: markup is in snippets/team-section.html) ---------- */

.team { position: relative; z-index: 2; padding: 140px var(--pad) 120px; }
.team__inner { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 64px; }
.team__head { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.team__title {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--white);
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 24px;
}
.member { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.member__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #0C1F17; }
.member__photo > * {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; letter-spacing: 0.24em; color: #8FA398;
}
.member__body { display: flex; flex-direction: column; gap: 8px; }
.member__name { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--white); }
.member__role { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; line-height: 1.2; color: var(--accent); }
.member__line { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- 4. Contact ---------- */

.cta {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  min-height: 620px;
  padding: 140px var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  overflow: hidden;
  text-align: center;
}
.cta > :not(.glow) { position: relative; }

/* 13vw keeps "Let's talk." inside the window at its widest setting (about 5.7em). */
.cta__word {
  margin: 0;
  font-size: clamp(32px, 7vw, 140px);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  line-height: 0.92;
  white-space: nowrap;
  color: var(--white);
}
.cta__text {
  margin: 0;
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--soft);
  text-wrap: balance;
}
.cta__mail { font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 2;
  padding: 26px var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}
.footer__links { display: flex; gap: 24px; }

/* ---------- Scroll mode (set by main.js) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.page[data-mode="scroll"] .scroll-only { display: block; }

/* A pinned section is --len windows tall; its .stick child stays on screen meanwhile. */
.page[data-mode="scroll"] .pin { height: calc(var(--vh) * var(--len)); }
.page[data-mode="scroll"] .stick { position: sticky; top: 0; height: var(--vh); min-height: 0; }

.page[data-mode="scroll"] .nav { position: fixed; transition: background-color 0.4s ease; }
.page[data-mode="scroll"][data-scrolled] .nav {
  background-color: rgba(5, 13, 9, 0.58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* The statement starts one window early so it scrolls over the pinned hero. */
.page[data-mode="scroll"] .statement {
  margin-top: calc(var(--vh) * -1);
  padding-top: calc(var(--vh) * 0.2);
  padding-bottom: calc(var(--vh) * 0.55);
}

.page[data-mode="scroll"] .dock__panel { padding-top: 96px; padding-bottom: 48px; align-content: center; }
.page[data-mode="scroll"] .dock__mark { width: min(520px, 86%, calc(var(--vh) * 0.5)); }
/* Below this width the mark and the text stack, so the mark has to leave room for the text. */
@media (max-width: 800px) {
  .page[data-mode="scroll"] .dock__mark { width: min(64%, calc(var(--vh) * 0.3)); }
  .page[data-mode="scroll"] .dock__panel { row-gap: 28px; }
}
.page[data-mode="scroll"] .beats { display: grid; }
.page[data-mode="scroll"] .beat { grid-area: 1 / 1; }

.page[data-mode="scroll"] .cta { min-height: var(--vh); }

.page[data-mode="scroll"] .glow {
  inset: auto;
  left: 50%; top: 50%;
  width: min(1200px, 130%);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(18, 64, 47, 0.9), rgba(18, 64, 47, 0));
}
.page[data-mode="scroll"] .glow--cta {
  width: min(1100px, 130%);
  background: radial-gradient(closest-side, rgba(18, 64, 47, 0.85), rgba(18, 64, 47, 0));
}

.page[data-mode="scroll"] .hero__intro { animation: intro 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.page[data-mode="scroll"] [data-a],
.page[data-mode="scroll"] [data-rv],
.page[data-mode="scroll"] [data-beat],
.page[data-mode="scroll"] [data-zoom] { will-change: transform, opacity; }

@keyframes intro {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes cue {
  0% { transform: scaleY(0); }
  55% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}
