/* Three Nine Holdings — threenineholdings.com */
:root {
  /* navy + teal taken from the logo */
  --navy: #1b588e;
  --teal: #36c1c8;
  --teal-dark: #1f8f96;
  --midnight: #0a1a2c;
  --midnight-2: #102741;
  --ink: #101d2c;
  --ink-soft: #55606d;
  --paper: #fcfbf8;
  --line: #e4e2dc;
  --line-dark: rgba(255, 255, 255, .12);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --label: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 em, h2 em, .statement em, .quote em { font-style: italic; color: var(--navy); }
p { margin: 0 0 1em; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--midnight); color: #fff; padding: 8px 14px; }

.label {
  font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--teal-dark); margin: 0;
  display: flex; align-items: center; gap: 14px;
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(252, 251, 248, .86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(10, 26, 44, .4); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand img { height: 44px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--label); font-size: 19px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.brand__name em { font-style: normal; color: var(--teal); }
.brand__sub { margin-top: 6px; font-family: var(--label); font-size: 9px; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); transition: color .2s; }
.nav a:hover, .nav a:focus-visible { color: var(--navy); }
.nav .nav__cta { color: var(--ink); padding: 12px 22px; border: 1px solid var(--ink); transition: background .25s, color .25s; }
.nav .nav__cta:hover, .nav .nav__cta:focus-visible { background: var(--midnight); border-color: var(--midnight); color: #fff; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; text-decoration: none; color: #fff; background: var(--midnight);
  padding: 18px 34px; transition: background .25s, transform .25s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--navy); transform: translateY(-1px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--label); font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.link-arrow::after { content: ""; width: 32px; height: 1px; background: var(--teal); transition: width .3s var(--ease); }
.link-arrow:hover::after { width: 48px; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: center; min-height: calc(100svh - 84px - 168px); }
.hero h1 { font-size: clamp(52px, 7.4vw, 108px); margin: 28px 0 32px; }
.lead { max-width: 560px; font-size: 18px; color: var(--ink-soft); margin-bottom: 44px; }
.hero__actions { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }

.hero__art {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background:
    radial-gradient(circle at 62% 40%, rgba(54, 193, 200, .22), transparent 42%),
    repeating-radial-gradient(circle at 62% 40%, rgba(255, 255, 255, .07) 0 1px, transparent 1px 34px),
    linear-gradient(160deg, #164a78 0%, var(--midnight-2) 45%, var(--midnight) 100%);
}
.hero__art::before { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(255, 255, 255, .16); pointer-events: none; }
.hero__art::after { content: ""; position: absolute; left: 62%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(54, 193, 200, .5), transparent); }
.hero__orb {
  position: absolute; left: 62%; top: 40%; width: 24%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 34% 30%, #8ae9ed, var(--teal) 45%, var(--teal-dark) 100%);
  box-shadow: 0 0 90px 10px rgba(54, 193, 200, .35); z-index: 1;
}
.hero__caption {
  position: absolute; left: 44px; bottom: 40px; font-family: var(--label); font-size: 10px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .78); line-height: 2;
}
.hero__caption small { font-size: 10px; color: rgba(255, 255, 255, .45); letter-spacing: .18em; }

/* Facts strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__grid div { padding: 40px 32px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.facts__grid div:first-child { border-left: 0; padding-left: 0; }
.facts strong { font-family: var(--display); font-size: 34px; font-weight: 400; line-height: 1.1; color: var(--ink); }
.facts span { font-family: var(--label); font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }

/* Sections */
.section { padding: 140px 0; scroll-margin-top: 84px; }
.section--dark { background: var(--midnight); color: rgba(255, 255, 255, .72); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark h2 em { color: var(--teal); }
.section--dark .label { color: var(--teal); }
.split { display: grid; grid-template-columns: 1fr 2.4fr; gap: 56px; align-items: start; }
.split > .label { padding-top: 14px; }
.section h2 { font-size: clamp(36px, 4.6vw, 60px); max-width: 760px; }
.statement { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; line-height: 1.25; margin-bottom: 44px; max-width: 820px; }
.prose { font-size: 17px; color: var(--ink-soft); max-width: 600px; }

/* Activities */
.activities {
  list-style: none; margin: 88px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  counter-reset: act;
}
.activities li {
  position: relative; padding: 44px 40px 48px 0; border-bottom: 1px solid var(--line-dark); counter-increment: act;
}
.activities li:not(:nth-child(3n + 1)) { padding-left: 40px; border-left: 1px solid var(--line-dark); }
.activities li::before { content: "0" counter(act); display: block; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--teal); margin-bottom: 28px; }
.activities li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.activities li:hover::after { transform: scaleX(1); }
.activities h3 { font-size: 30px; margin-bottom: 14px; }
.activities p { font-size: 15px; margin: 0; max-width: 320px; }

/* Approach */
.quote { margin: 0; font-family: var(--display); font-size: clamp(40px, 5.4vw, 76px); font-weight: 300; line-height: 1.05; letter-spacing: -.015em; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--line); }
.principles__no { display: block; font-family: var(--display); font-style: italic; font-size: 18px; color: var(--teal-dark); margin-bottom: 20px; }
.principles h3 { font-size: 30px; margin-bottom: 14px; }
.principles p { color: var(--ink-soft); margin: 0; }

/* Contact */
.contact-section { background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight-2) 100%); }
.contact h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 48px; }
.contact__email { font-family: var(--display); font-size: clamp(26px, 4vw, 52px); font-weight: 300; margin: 0 0 56px; overflow-wrap: anywhere; }
.contact__email a { color: #fff; text-decoration: none; background: linear-gradient(var(--teal), var(--teal)) left bottom / 100% 1px no-repeat; padding-bottom: 6px; transition: color .25s, background-size .4s var(--ease); }
.contact__email a:hover { color: var(--teal); }
.contact__addr { font-family: var(--label); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 2.2; color: rgba(255, 255, 255, .55); margin: 0; }

/* Footer */
.site-footer { background: var(--midnight-2); color: rgba(255, 255, 255, .45); font-size: 12px; padding: 48px 0 56px; border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; grid-template-columns: 1fr 2.4fr; gap: 56px; align-items: start; }
.footer__brand { font-family: var(--label); font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; margin: 0; }
.footer__brand em { font-style: normal; color: var(--teal); }
.footer__brand span { display: block; margin-top: 6px; font-size: 8px; font-weight: 500; letter-spacing: .5em; color: rgba(255, 255, 255, .6); }
.site-footer p { margin: 0 0 6px; }
.disclaimer { color: rgba(255, 255, 255, .32); }

/* Scroll reveal (only when JS is on and motion is allowed — see main.js) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .activities li.reveal:nth-child(3n + 2), .js .principles .reveal:nth-child(2), .js .facts .reveal:nth-child(2) { transition-delay: .1s; }
.js .activities li.reveal:nth-child(3n), .js .principles .reveal:nth-child(3), .js .facts .reveal:nth-child(3) { transition-delay: .2s; }
.js .facts .reveal:nth-child(4) { transition-delay: .3s; }

/* Responsive */
@media (max-width: 1024px) {
  .wrap { padding: 0 28px; }
  .nav { gap: 26px; }
  .hero__grid { gap: 48px; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .facts__grid div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts__grid div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .activities { grid-template-columns: repeat(2, 1fr); }
  .activities li, .activities li:not(:nth-child(3n + 1)) { padding: 40px 32px 44px 0; border-left: 0; }
  .activities li:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line-dark); }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__art { aspect-ratio: 16 / 10; }
  .split, .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .split > .label { padding-top: 0; }
  .section { padding: 104px 0; }
  .principles { grid-template-columns: 1fr; gap: 40px; margin-top: 64px; }
  .nav li:not(:last-child) { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-header .wrap { height: 72px; }
  .section { scroll-margin-top: 72px; }
  .brand img { height: 38px; }
  .brand__name { font-size: 16px; }
  .nav .nav__cta { padding: 10px 16px; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { margin: 22px 0 24px; }
  .lead { font-size: 16px; margin-bottom: 36px; }
  .hero__art { aspect-ratio: 4 / 3; }
  .hero__art::before { inset: 14px; }
  .hero__caption { left: 30px; bottom: 28px; }
  .facts__grid div { padding: 28px 16px; }
  .facts strong { font-size: 26px; }
  .facts span { font-size: 9px; letter-spacing: .18em; }
  .section { padding: 80px 0; }
  .activities { grid-template-columns: 1fr; margin-top: 56px; }
  .activities li, .activities li:nth-child(2n), .activities li:not(:nth-child(3n + 1)) { padding: 36px 0 40px; border-left: 0; }
  .activities h3, .principles h3 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
