:root {
  --navy: #081830;
  --navy-soft: #12243f;
  --cream: #f6f1e8;
  --cream-deep: #ebe4d6;
  --teal: #417086;
  --copper: #e5683a;
  --copper-hot: #f07848;
  --gold: #d3ab33;
  --graphite: #919191;
  --silver: #b7b7b7;
  --ink: #081830;
  --muted: #5d6b7c;
  --line: rgba(8, 24, 48, 0.14);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Commissioner", "Avenir Next", "Segoe UI", sans-serif;
  --shell: min(1120px, calc(100% - 8vw));
  --nav: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 420;
  font-size: 1.05rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

button, input, textarea { font: inherit; color: inherit; }

a { color: inherit; }

::selection { background: var(--copper); color: var(--navy); }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--cream);
  color: var(--navy);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.skip:focus { top: 1rem; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  height: 2px;
  width: 0;
  background: var(--copper);
  pointer-events: none;
}

.shell { width: var(--shell); margin-inline: auto; }

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }

/* Nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav);
  padding: 0.7rem 4vw;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav.is-stuck {
  background: rgba(8, 24, 48, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(246, 241, 232, 0.08);
}

.brand {
  display: grid;
  place-items: center;
  background: var(--cream);
  border-radius: 12px;
  padding: 0.28rem 0.45rem 0.18rem;
  line-height: 0;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.brand {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand img { height: 46px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 1.7rem; }

.nav-links a {
  position: relative;
  display: inline-block;
  color: var(--cream);
  text-decoration: none;
  font-weight: 520;
  font-size: 0.98rem;
  transform-origin: center bottom;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

@media (hover: hover) {
  .brand:hover { transform: scale(1.08) rotate(-3deg); }
  .nav-links a:hover { transform: scale(1.14); }
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 60;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 6px auto;
  background: var(--cream);
  transition: transform 0.3s ease;
}

.nav.is-open .nav-toggle span:first-child { transform: translateY(3.8px) rotate(40deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-3.8px) rotate(-40deg); }

/* Intro curtain */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--navy);
  animation: lift 0.85s cubic-bezier(0.76, 0, 0.2, 1) 1.25s forwards;
}

.curtain-plate {
  background: var(--cream);
  border-radius: 18px;
  padding: 1rem 1.3rem 0.75rem;
  animation: plate-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.curtain-plate img { width: 168px; height: auto; display: block; }

@keyframes plate-in {
  from { opacity: 0; transform: scale(0.92) rotate(-6deg); }
  to { opacity: 1; transform: scale(1) rotate(-2deg); }
}

@keyframes lift {
  to { transform: translateY(-101%); visibility: hidden; }
}

html.skip-intro .curtain { display: none; }

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  animation: ken 26s ease-in-out infinite alternate;
}

@keyframes ken {
  from { transform: scale(1.04); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

.hero-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: 68vw;
  background:
    radial-gradient(420px 280px at 18% 78%, rgba(229, 104, 58, 0.18), transparent 70%),
    var(--navy);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/></svg>");
  background-size: 180px;
}

.hero-scrim {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto 0;
  height: 150px;
  background: linear-gradient(rgba(8, 24, 48, 0.7), transparent);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(38rem, 50vw);
  min-height: 100dvh;
  margin-left: 5.5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6.2rem 0 4rem;
}

.logo-plate {
  display: inline-block;
  width: fit-content;
  background: var(--cream);
  border-radius: 18px;
  padding: 0.85rem 1.15rem 0.55rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  transform: rotate(-2.4deg);
}

.logo-plate img { width: min(232px, 58vw); display: block; }

.hero-eq { margin: 0; font-weight: 520; }

.hero-eq .line {
  display: block;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.12;
  color: var(--cream);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-eq .impact {
  margin-top: 0.15rem;
  font-size: clamp(2.35rem, 4.4vw, 4.15rem);
  font-style: italic;
  font-weight: 560;
  line-height: 1.02;
  color: var(--gold);
}

@media (hover: hover) {
  .hero-eq:hover .line { transform: scale(1.03); }
  .hero-eq:hover .impact { transform: scale(1.07); }
}

.op {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0 0.15rem 0.18rem 0.35rem;
  border-radius: 50%;
  background: var(--copper);
  color: var(--navy);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  vertical-align: middle;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-solid { background: var(--copper); color: var(--navy); }
.btn-solid:hover { background: var(--copper-hot); transform: translateY(-2px) scale(1.05); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(246, 241, 232, 0.45);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--copper);
  color: var(--copper);
  transform: translateY(-2px) scale(1.05);
}

.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

.rise { animation: rise 0.95s cubic-bezier(0.16, 1, 0.3, 1) both; }
.d1 { animation-delay: 1.35s; }
.d2 { animation-delay: 1.55s; }
.d3 { animation-delay: 1.72s; }
.d4 { animation-delay: 1.9s; }
.d5 { animation-delay: 2.08s; }

html.skip-intro .rise { animation: none; }

@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

.constellation-wrap {
  position: absolute;
  z-index: 4;
  right: 3vw;
  bottom: 7vh;
  width: min(440px, 38vw);
  pointer-events: none;
}

.constellation { width: 100%; height: auto; overflow: visible; }

.constellation .wire {
  fill: none;
  stroke: rgba(246, 241, 232, 0.72);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: draw 2.2s ease 1.45s forwards;
}

.constellation .wire.hot { stroke: var(--copper); }

.constellation .node { transform-box: fill-box; transform-origin: center; animation: pop 0.55s ease both; }

@keyframes draw { to { stroke-dashoffset: 0; } }

@keyframes pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

html.skip-intro .constellation .wire { animation: none; stroke-dashoffset: 0; }
html.skip-intro .constellation .node { animation: none; }

/* Statements */

.statements {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.statement {
  min-height: 340px;
  margin: 0;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  color: var(--navy);
  background: var(--graphite);
  transition: filter 0.35s ease;
}

.statement p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.15vw, 2.2rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.18;
  transform-origin: left top;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.statement--teal { background: var(--teal); color: var(--cream); }
.statement--copper { background: var(--copper); }
.statement--gold { background: var(--gold); }

.statement-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.statement-index {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0.7;
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mark {
  width: 54px;
  height: 54px;
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .statement:hover {
    z-index: 1;
    filter: saturate(1.12) brightness(1.05);
  }
  .statement:hover p { transform: scale(1.08); }
  .statement:hover .statement-index { transform: scale(1.55); }
  .statement:hover .mark { transform: scale(1.2) rotate(12deg); }
}

/* Services */

.services {
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}

.section-title {
  margin: 0 0 0.4rem;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.9;
}

.section-rule {
  width: 64px;
  height: 3px;
  margin: 1.1rem 0 2.2rem;
  background: var(--copper);
  border: 0;
}

.service {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 1.15fr;
  gap: 1.5rem 2rem;
  padding: 1.7rem 1.1rem;
  border-top: 1px solid var(--line);
  transition: background 0.35s ease, color 0.35s ease;
}

.service:last-child { border-bottom: 1px solid var(--line); }

.service header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.service h3 {
  display: inline-block;
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1.05;
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.idx {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  color: var(--copper);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.service ul { margin: 0; padding: 0; list-style: none; }

.service li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 1.15rem;
  color: var(--muted);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}

.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}

@media (hover: hover) {
  .service:hover { background: var(--navy); color: var(--cream); }
  .service:hover .idx { transform: scale(1.35); }
  .service:hover h3 { transform: scale(1.1); }
  .service:hover li { color: rgba(246, 241, 232, 0.82); }
  .service li:hover { transform: scale(1.06); color: var(--cream); }
}

/* Products */

.products-band {
  position: relative;
  background:
    radial-gradient(520px 280px at 90% 10%, rgba(211, 171, 51, 0.12), transparent 70%),
    var(--navy);
  color: var(--cream);
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  overflow: hidden;
}

.products-band .section-title { color: var(--cream); }

.products-lead {
  max-width: 38rem;
  margin: 0 0 2.4rem;
  color: rgba(246, 241, 232, 0.78);
  font-size: 1.12rem;
}

.products { list-style: none; margin: 0; padding: 0; }

.products li {
  position: relative;
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 1.25rem 0.2rem;
  border-top: 1px solid rgba(246, 241, 232, 0.14);
  transition: padding 0.35s ease, background 0.35s ease;
}

.products li:last-child { border-bottom: 1px solid rgba(246, 241, 232, 0.14); }

.products .idx { font-size: 0.95rem; }

.products h3 {
  display: inline-block;
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 3.15rem);
  font-weight: 520;
  line-height: 1.05;
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

@media (hover: hover) {
  .products li:hover {
    z-index: 1;
    padding-left: 1rem;
    background: rgba(229, 104, 58, 0.08);
  }
  .products li:hover .idx { transform: scale(1.4); }
  .products li:hover h3 { color: var(--gold); transform: scale(1.08); }
}

/* Contact */

.contact {
  background:
    radial-gradient(640px 360px at 8% 0%, rgba(229, 104, 58, 0.16), transparent 68%),
    radial-gradient(480px 380px at 100% 100%, rgba(65, 112, 134, 0.28), transparent 70%),
    #071426;
  color: var(--cream);
  padding: clamp(4.5rem, 8vw, 7rem) 0 0;
  border-top: 1px solid rgba(229, 104, 58, 0.45);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: 3.5rem;
}

.contact h2 { margin: 0; font-size: clamp(3.2rem, 7vw, 5.6rem); line-height: 0.9; }

.contact-invite {
  margin: 1rem 0 1.4rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: rgba(246, 241, 232, 0.86);
}

.mail {
  display: inline-block;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  border-bottom: 2px solid var(--copper);
  padding-bottom: 0.1rem;
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.mail:hover { color: var(--gold); transform: scale(1.07); }

.form-panel {
  background: var(--cream);
  color: var(--navy);
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.05rem; }

.field span {
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(8, 24, 48, 0.22);
  background: transparent;
  padding: 0.55rem 0 0.7rem;
  border-radius: 0;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--copper); }

.form-panel .btn { width: 100%; margin-top: 0.4rem; }

.form-alert {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  background: rgba(65, 112, 134, 0.14);
}

.form-alert.is-on { display: block; }
.form-alert.is-err { background: rgba(229, 104, 58, 0.16); }

.footer {
  border-top: 1px solid rgba(246, 241, 232, 0.1);
  padding: 1.3rem 0 1.5rem;
}

.footer p { margin: 0; color: rgba(246, 241, 232, 0.62); font-size: 0.92rem; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease var(--d, 0s),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 45;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 6rem 2rem;
    background: var(--navy);
    pointer-events: none;
    transform: translateY(calc(-100% - 48px));
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.is-open .nav-links {
    pointer-events: auto;
    transform: none;
  }

  .nav-links a { font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -0.03em; }

  .hero-panel { width: 100%; clip-path: none; background: rgba(8, 24, 48, 0.78); }
  .hero-photo { opacity: 0.55; }
  .hero-copy { width: auto; margin: 0; padding: 6.5rem 1.3rem 3rem; min-height: 100dvh; }
  .constellation-wrap { display: none; }
  .statements { grid-template-columns: 1fr; }
  .statement { min-height: 0; }
  .service { grid-template-columns: 1fr; gap: 0.7rem; border-left: 3px solid var(--copper); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .products li { grid-template-columns: 2.6rem 1fr; }
  .hero-eq .line { font-size: 1.85rem; }
  .hero-eq .impact { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curtain { display: none; }
  .hero-photo,
  .rise,
  .constellation .wire,
  .constellation .node { animation: none; }
  .constellation .wire { stroke-dashoffset: 0; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .logo-plate { transform: none; }
}
