/* Takeo Investments — dark cinematic system.
   Black canvas scenes, steel-blue data field, gold brand accents.
   Type: system stack, 400/600, size-specific negative tracking.
   Motion: blur-to-sharp entrances, scroll-driven hero parallax. */

:root {
  --black: #000000;
  --bg: #050506;
  --raised: #0c0d10;
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.60);
  --faint: rgba(245, 245, 247, 0.38);
  --hairline: rgba(245, 245, 247, 0.09);
  --gold: #b3a074;
  --steel: #8fb2d9;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --dur-fast: 150ms;
  --dur-base: 280ms;
  --dur-slow: 900ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  --inner: 1120px;
  --reading: 620px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: #000; }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
  border-radius: 2px;
}

img { display: block; max-width: 100%; height: auto; }

.inner {
  max-width: var(--inner);
  margin: 0 auto;
  padding: 0 24px;
}

/* ——— Type ——— */

h1 {
  font-size: clamp(2.75rem, 2vw + 2.1rem, 4.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 1vw + 1.35rem, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: clamp(40px, 5vw, 64px);
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p + p { margin-top: 1.2em; }

.lede {
  font-size: 1.3125rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.reading { max-width: var(--reading); }
.reading p:not(.lede) { color: var(--muted); }
.reading .lede + p { margin-top: 1.4em; }

/* ——— Nav ——— */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  background: rgba(5, 5, 6, 0.55);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background-color var(--dur-base) ease,
              box-shadow var(--dur-base) ease;
}
.nav.scrolled {
  background: rgba(5, 5, 6, 0.80);
  box-shadow: 0 1px 0 var(--hairline);
}

.nav-inner {
  max-width: var(--inner);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: block;
  color: var(--text);
  text-decoration: none;
}
.wordmark svg {
  display: block;
  height: 15px;
  width: auto;
  overflow: visible;
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--text); }
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: min(100svh, 1080px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--black);
  padding: 140px 0 120px;
}

.hero-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%,
      rgba(64, 92, 128, 0.16) 0%,
      rgba(64, 92, 128, 0.05) 45%,
      transparent 75%);
  pointer-events: none;
}

.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-lockup {
  height: clamp(96px, 14vw, 132px);
  width: auto;
}

.hero-title {
  margin-top: clamp(40px, 6vh, 64px);
  background: linear-gradient(180deg, #ffffff 30%, rgba(245, 245, 247, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin-top: 28px;
  font-size: 1.3125rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--muted);
}

.hero-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Entrance: blur-to-sharp rise, staggered */
.enter {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out),
              filter var(--dur-slow) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
@starting-style {
  .enter {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(10px);
  }
}

/* Scroll parallax: hero content drifts up and fades as you leave */
@supports (animation-timeline: scroll()) {
  .hero-inner {
    animation: hero-exit linear both;
    animation-timeline: scroll();
    animation-range: 0 90vh;
  }
  @keyframes hero-exit {
    to { opacity: 0; transform: translateY(-56px); }
  }
}

/* ——— Buttons & links ——— */

.button {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  border: 1px solid rgba(245, 245, 247, 0.35);
  border-radius: 980px;
  padding: 11px 26px;
  text-decoration: none;
  transition: background-color var(--dur-base) ease,
              border-color var(--dur-base) ease,
              color var(--dur-base) ease,
              transform var(--dur-fast) var(--ease-out);
}
.button:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: var(--text);
    border-color: var(--text);
    color: #000;
  }
}

.button.solid {
  background: var(--text);
  border-color: var(--text);
  color: #000;
}
@media (hover: hover) and (pointer: fine) {
  .button.solid:hover {
    background: var(--gold);
    border-color: var(--gold);
  }
}

.link-more {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--steel);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .link-more:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ——— Scenes ——— */

.scene {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 12vw, 160px) 0;
  border-top: 1px solid var(--hairline);
}
.scene.raised { background: var(--raised); }
.scene > .inner { position: relative; }

/* ——— Colour orbs (soft ambient glows) ——— */

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb-blue {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(90, 140, 200, 0.34), transparent 70%);
}
.orb-gold {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(179, 160, 116, 0.26), transparent 70%);
}
.orb-tr { top: -180px; right: -160px; }
.orb-tl { top: -160px; left: -180px; }
.orb-bl { bottom: -200px; left: -160px; }
.orb-br { bottom: -180px; right: -140px; }

/* ——— Reveal on scroll (blur-to-sharp) ——— */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition: opacity 800ms var(--ease-out),
              transform 800ms var(--ease-out),
              filter 800ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* ——— Approach ——— */

.split {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

/* Gradient spheres — the "vibe" piece */

.sphere-stage {
  position: relative;
  min-height: 440px;
  align-self: center;
}

.sphere-glow {
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
}

.sphere {
  position: absolute;
  border-radius: 50%;
}

.sphere-a {
  width: 250px;
  height: 250px;
  top: 40px;
  left: 8%;
  background: radial-gradient(circle at 32% 28%,
    #d7e6f8 0%, #8fb2d9 24%, #33587f 58%, #0b1420 96%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55),
              inset -18px -22px 60px rgba(0, 0, 0, 0.45);
  animation: float-a 9s ease-in-out infinite alternate;
}

.sphere-b {
  width: 120px;
  height: 120px;
  top: 240px;
  right: 12%;
  background: radial-gradient(circle at 30% 30%,
    #efe4c8 0%, #b3a074 30%, #6d5c3d 66%, #241d10 98%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5),
              inset -10px -12px 32px rgba(0, 0, 0, 0.4);
  animation: float-b 11s ease-in-out infinite alternate;
}

.sphere-c {
  width: 56px;
  height: 56px;
  top: 110px;
  right: 26%;
  background: radial-gradient(circle at 32% 30%,
    #b8c6d6 0%, #5f7a96 34%, #26394e 70%, #0a121b 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5),
              inset -6px -8px 18px rgba(0, 0, 0, 0.4);
  animation: float-c 7s ease-in-out infinite alternate;
}

@keyframes float-a { to { transform: translateY(-18px); } }
@keyframes float-b { to { transform: translateY(14px); } }
@keyframes float-c { to { transform: translateY(-10px); } }

/* ——— Strategies ——— */

.strategy-rows {
  display: flex;
  flex-direction: column;
  max-width: 820px;
}

.strategy-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  padding: clamp(32px, 4vw, 48px) 0;
  transition: opacity 800ms var(--ease-out),
              transform 800ms var(--ease-out),
              filter 800ms var(--ease-out),
              padding-left var(--dur-base) var(--ease-out);
}
.strategy-row + .strategy-row { border-top: 1px solid var(--hairline); }
.strategy-row p { color: var(--muted); }
.strategy-row h3 {
  position: relative;
  padding-top: 14px;
}
.strategy-row h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
}
@media (hover: hover) and (pointer: fine) {
  .strategy-row:hover { padding-left: 10px; }
}

/* ——— Figures ——— */

.figures { display: flex; flex-direction: column; }
.figures > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
}
.figures > div + div { border-top: 1px solid var(--hairline); }
.figures dt {
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--faint);
}
.figures dd {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ——— Leadership ——— */

.leader {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.leader + .leader {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--hairline);
}

.leader-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  filter: grayscale(1);
  margin-bottom: 20px;
  box-shadow: 0 0 0 1px rgba(245, 245, 247, 0.10),
              0 30px 70px rgba(0, 0, 0, 0.5);
}

.leader-role {
  margin-top: 4px;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.leader-bio p { color: var(--muted); }

@media (max-width: 820px) {
  .leader { grid-template-columns: 1fr; gap: 32px; }
}

/* ——— Principles ——— */

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(48px, 6vw, 96px);
  row-gap: clamp(40px, 5vw, 64px);
  max-width: 960px;
}
.principle h3 {
  position: relative;
  padding-top: 14px;
}
.principle h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
}
.principle p {
  margin-top: 10px;
  color: var(--muted);
}

/* ——— Contact ——— */

.contact { background: var(--raised); }
.contact-inner { max-width: 720px; }
.contact-lede {
  font-size: 1.3125rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--muted);
  max-width: 560px;
}
.contact-actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.contact-meta {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--faint);
}

/* ——— Footer ——— */

.footer {
  background: var(--black);
  padding: 64px 0 72px;
  border-top: 1px solid var(--hairline);
}
.footer-logo {
  height: 84px;
  width: auto;
}
.footer-address {
  margin-top: 28px;
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--muted);
  max-width: 760px;
}
.footer-legal {
  margin-top: 14px;
  font-size: 0.75rem;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--faint);
  max-width: 760px;
}

/* ——— Responsive ——— */

@media (max-width: 820px) {
  body { font-size: 16px; }

  .nav-links { gap: 20px; }
  .nav-links a:not(:last-child) { display: none; }

  .hero { padding-top: 120px; }
  .hero-lockup { height: 84px; }

  .split { grid-template-columns: 1fr; }
  .sphere-stage { min-height: 360px; max-width: 480px; }
  .leader-card { max-width: 340px; }

  .strategy-row { grid-template-columns: 1fr; gap: 10px; }

  .principles { grid-template-columns: 1fr; }

  .figures { margin-top: 8px; }
}

/* ——— Reduced motion ——— */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .enter, .reveal, .hero-inner {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
  .sphere-a, .sphere-b, .sphere-c { animation: none; }
  .strategy-row { transition: none; }
}
