/* ==========================================================================
   Sun Industries, LLC — site styles
   Palette is derived from the logo: navy #172842 and brushed gold.
   ========================================================================== */

:root {
  --navy-950: #0a1322;
  --navy-900: #0f1b2e;
  --navy-800: #142339;
  --navy-700: #172842;   /* logo background */
  --navy-600: #1f3252;

  --gold: #c9a75f;
  --gold-bright: #e6cb8a;
  --gold-dim: #9a8250;

  --paper: #f3f1eb;
  --paper-2: #e9e6de;
  --ink: #101a2b;
  --ink-2: #3a4557;
  --ink-3: #6b7484;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1360px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --nav-h: 72px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Theme tokens (swapped per section) */
.theme-dark {
  --bg: var(--navy-900);
  --fg: #f4f2ec;
  --fg-2: rgba(244, 242, 236, .72);
  --fg-3: rgba(244, 242, 236, .48);
  --line: rgba(244, 242, 236, .14);
  --line-strong: rgba(244, 242, 236, .32);
  --accent: var(--gold);
  --surface-hover: rgba(244, 242, 236, .04);
  background: var(--bg);
  color: var(--fg);
}
.theme-light {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --line: rgba(16, 26, 43, .14);
  --line-strong: rgba(16, 26, 43, .4);
  --accent: var(--gold-dim);
  --surface-hover: rgba(16, 26, 43, .035);
  background: var(--bg);
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--navy-900);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: #f4f2ec;
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 16px; top: -100px;
  padding: 10px 14px; background: var(--gold); color: var(--navy-950);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; z-index: 100;
}
.skip-link:focus { top: 12px; }

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

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9em;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 28px;
}
.eyebrow .num { color: var(--accent); }
.eyebrow .sep { display: inline-block; width: 28px; height: 1px; background: var(--line-strong); }
.eyebrow-brand { display: inline-flex; align-items: center; gap: .9em; white-space: nowrap; }

.display {
  font-size: clamp(2.5rem, 4.7vw, 4.4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  font-weight: 300;
  color: var(--fg-2);
  max-width: 56ch;
}
.statement {
  margin-top: clamp(72px, 10vw, 140px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-wrap: balance;
}
.statement::after { content: ""; display: block; width: 72px; height: 2px; margin-top: 32px; background: var(--accent); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .75em;
  padding: 15px 22px;
  border: 1px solid currentColor;
  font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-solid { background: var(--gold); color: var(--navy-950); border-color: var(--gold); }
.btn-solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-outline { color: var(--fg); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { color: var(--fg-2); border-color: transparent; padding-inline: 8px; }
.btn-ghost:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  --fg: #f4f2ec; --fg-2: rgba(244,242,236,.72); --line-strong: rgba(244,242,236,.32);
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(15, 27, 46, .86);
  border-bottom-color: rgba(244, 242, 236, .12);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.site-header.is-open {
  background: var(--navy-900);
  border-bottom-color: rgba(244, 242, 236, .12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-bar {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 40px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; }
.brand-name {
  font-size: 13.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
}
.brand-llc { color: var(--fg-2); }

.site-nav ul { display: flex; gap: 36px; }
.site-nav a {
  position: relative; display: inline-block; padding: 6px 0;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-2); transition: color .25s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--fg); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.nav-cta { padding: 12px 18px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.nav-toggle-bar { display: block; width: 24px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease), opacity .3s; }
.is-open .nav-toggle-bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.is-open .nav-toggle-bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: var(--navy-900); color: #f4f2ec;
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ol { border-top: 1px solid rgba(244,242,236,.14); }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid rgba(244,242,236,.14);
  font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 300; letter-spacing: -0.02em;
}
.mobile-menu li a .num { font-size: 12px; letter-spacing: .16em; color: var(--gold); }
.mobile-menu-foot { margin-top: auto; padding-top: 32px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  --bg: var(--navy-700);
  background:
    radial-gradient(1200px 600px at 85% 40%, rgba(201, 167, 95, .10), transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--navy-900) 100%);
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px));
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(244,242,236,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,242,236,.06) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 80%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 34vw, 480px);
  align-items: center; gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.hero-copy .eyebrow { margin-bottom: 34px; }
.hero-copy .lede { margin-top: 30px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 40px; }

.hero-art { position: relative; justify-self: end; width: 100%; }
.hero-art img { width: 100%; height: auto; position: relative; }
.hero-glow {
  position: absolute; inset: -20% -10%;
  background: radial-gradient(closest-side, rgba(201,167,95,.16), transparent 70%);
  filter: blur(10px);
}

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts li {
  padding: 26px 24px 26px 0;
  display: flex; flex-direction: column; gap: 8px;
  border-right: 1px solid var(--line);
}
.facts li + li { padding-left: 32px; }
.facts li:last-child { border-right: 0; }
.facts-label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.facts-value { font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 400; letter-spacing: -0.01em; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(88px, 11vw, 160px); border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .title { max-width: 18ch; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.split-aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.split-aside .lede { margin-top: 28px; }
.split-main > p + p { margin-top: 22px; color: var(--fg-2); }

/* Rows (capabilities) */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px;
  padding: 34px 0 36px;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.row-num { font-size: 12px; letter-spacing: .16em; color: var(--accent); padding-top: 9px; }
.row h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.row p { margin-top: 12px; color: var(--fg-2); max-width: 54ch; }
.row-body { position: relative; }
.row-body::after {
  content: "\2192"; position: absolute; right: 0; top: 4px;
  color: var(--accent); opacity: 0; transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.row:hover .row-body::after { opacity: 1; transform: translateX(0); }

/* Cards (approach) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.card {
  padding: 40px 32px 48px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.card + .card { padding-left: 32px; }
.card:last-child { border-right: 0; }
.card:hover { background: var(--surface-hover); }
.card-num { display: block; font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--accent); margin-bottom: 72px; }
.card h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; }
.card p { margin-top: 14px; color: var(--fg-2); }

/* Spec list (company) */
.spec { margin-top: 48px; border-top: 1px solid var(--line); }
.spec-row {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.spec dt { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); padding-top: 4px; }
.spec dd { margin: 0; color: var(--fg); }

.company-mark { margin-top: 56px; width: 200px; opacity: .92; }

/* Contact */
.contact {
  --bg: var(--navy-700);
  background:
    radial-gradient(900px 500px at 20% 110%, rgba(201,167,95,.12), transparent 60%),
    var(--navy-700);
}
.contact .lede { margin-top: 28px; }
.contact-person { margin-top: 44px; display: flex; flex-direction: column; gap: 6px; }
.contact-name { font-size: 1.3rem; font-weight: 400; letter-spacing: -0.015em; }
.contact-role { font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.contact .actions { margin-top: 28px; gap: 20px 32px; }
.contact-link {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 300; letter-spacing: -0.01em;
  color: var(--fg-2); overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.contact-link:hover { color: var(--gold); border-color: var(--gold); }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.page-hero {
  --bg: var(--navy-700);
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 100%);
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 clamp(48px, 6vw, 80px);
}
.page-hero .eyebrow { margin-bottom: 22px; }
.page-meta { margin-top: 22px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }

.notfound { min-height: calc(100vh - 160px); display: flex; align-items: center; padding-bottom: clamp(80px, 10vw, 140px); }
.notfound .lede { margin-top: 26px; }

.legal { padding-top: clamp(56px, 7vw, 96px); }
.legal .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.legal .split-aside .eyebrow { margin-bottom: 18px; }
.toc { border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; font-size: 14px; color: var(--fg-2); transition: color .25s var(--ease); }
.toc a:hover { color: var(--fg); }
.toc .num { font-size: 11px; letter-spacing: .12em; color: var(--accent); }

.legal-body { max-width: 72ch; }
.legal-body h2 {
  display: flex; gap: 16px; align-items: baseline;
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 1.9vw, 1.55rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.25;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h2 .num { font-size: 12px; letter-spacing: .16em; color: var(--accent); flex: 0 0 auto; }
.legal-body p { margin-top: 16px; color: var(--fg-2); }
.legal-body strong { color: var(--fg); font-weight: 500; }
.legal-body ul { margin-top: 14px; padding-left: 1.25em; list-style: disc; color: var(--fg-2); }
.legal-body li { padding-left: .25em; }
.legal-body li + li { margin-top: 8px; }
.legal-body li::marker { color: var(--accent); }
.legal-body a { color: var(--fg); border-bottom: 1px solid var(--line-strong); transition: color .25s var(--ease), border-color .25s var(--ease); }
.legal-body a:hover { color: var(--gold-dim); border-color: var(--gold-dim); }
.legal-body .notice { font-size: .92em; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { --bg: var(--navy-950); background: var(--bg); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px;
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px);
}
.footer-brand p { margin-top: 24px; color: var(--fg-2); font-weight: 300; line-height: 1.4; }
.footer-brand img { width: 56px; height: 56px; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); gap: 32px; }
.footer-heading { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-person { color: var(--fg); font-size: 15px; }
.footer-person span { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.footer-person + li { margin-top: 14px; }
.footer-col a { color: var(--fg-2); font-size: 15px; overflow-wrap: anywhere; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--fg-3);
}
.to-top { display: inline-flex; align-items: center; gap: .6em; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; color: var(--fg-2); }
.to-top .arrow { transition: transform .3s var(--ease); }
.to-top:hover .arrow { transform: translateY(-3px); }

.footer-wordmark {
  padding: 24px var(--gutter) 0;
  font-size: clamp(2.6rem, 9.55vw, 9.6rem);
  font-weight: 500; letter-spacing: -0.045em; line-height: .9; text-transform: uppercase;
  white-space: nowrap; overflow: hidden;
  color: rgba(244, 242, 236, .055);
  user-select: none;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn .arrow, .site-nav a::after, .row-body::after { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .site-nav ul { gap: 26px; }
  .facts li { padding-right: 16px; }
}

@media (max-width: 920px) {
  :root { --nav-h: 64px; }
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 12.5px; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { order: -1; width: min(72vw, 400px); justify-self: start; }
  .split, .legal .split { grid-template-columns: 1fr; gap: 40px; }
  .toc { columns: 2; column-gap: 32px; border-top: 0; }
  .toc li { break-inside: avoid; }
  .split-aside { position: static; }
  .cards { grid-template-columns: 1fr; }
  .card, .card + .card { padding: 32px 0 36px; border-right: 0; }
  .card-num { margin-bottom: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .company-mark { margin-top: 32px; width: 140px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-llc { display: none; }
  .hero .eyebrow-brand { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts li:last-child { border-bottom: 0; }
  .row { grid-template-columns: 44px minmax(0, 1fr); padding: 26px 0 28px; }
  .row-body::after { display: none; }
  .spec-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .toc { columns: 1; border-top: 1px solid var(--line); }
  .actions .btn { width: 100%; justify-content: space-between; }
  .actions .btn-ghost { justify-content: center; }
  .contact-link { width: 100%; }
  .footer-col-contact { grid-column: 1 / -1; order: 3; }
}
