:root {
  --ink: #100c19;
  --ink-raised: #181122;
  --paper: #faf4e7;
  --white: #fffaf3;
  --muted: #c9becf;
  --yellow: #ffd600;
  --pink: #ff4daa;
  --violet: #b68aff;
  --line: rgb(255 255 255 / 16%);
  --body: Chivo, system-ui, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --header-height: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--body); line-height: 1.55; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { color: var(--ink); background: var(--yellow); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 5px; }
p, h1, h2, h3, dl, dd { margin: 0; }

.frame { width: min(100% - 108px, 1332px); margin-inline: auto; }
.skip { position: fixed; z-index: 20; inset: 10px auto auto 10px; transform: translateY(-150%); background: var(--yellow); color: var(--ink); padding: 12px; }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 5; background: rgb(16 12 25 / 96%); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: var(--header-height); align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: none; }
.brand img { width: 174px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3.1vw, 47px); font-size: .9rem; font-weight: 600; }
.nav a { transition: color .18s ease; }
.nav a:hover { color: var(--yellow); }
.nav-contact { padding: 10px 15px; border: 1px solid rgb(255 214 0 / 52%); color: var(--yellow); }
.nav-contact span { margin-left: 8px; }
.nav-contact:hover { background: var(--yellow); color: var(--ink) !important; }
.menu-toggle { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: none; padding: 8px 11px; cursor: pointer; }
.menu-icon { width: 14px; height: 9px; border-block: 1px solid currentColor; }

.hero, .stories { position: relative; isolation: isolate; overflow: hidden; }
.hero { display: flex; align-items: center; min-height: clamp(620px, 50vw, 760px); background: #150b24; }
.hero-art, .stories-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::after, .stories::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hero::after { background: linear-gradient(90deg, #100c19 1%, rgb(16 12 25 / 90%) 25%, rgb(16 12 25 / 39%) 54%, transparent 77%), linear-gradient(0deg, rgb(16 12 25 / 54%), transparent 32%); }
.hero-inner { padding-block: 66px 73px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--yellow); font: 600 .76rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .105em; }
.eyebrow > span { display: inline-block; width: 21px; height: 3px; flex: none; background: currentColor; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: .88; letter-spacing: -.025em; text-transform: uppercase; }
h1 { font-size: clamp(5rem, 9.8vw, 10rem); margin: 23px 0 28px; }
h1 em { color: var(--yellow); font-style: normal; }
.hero-lede { max-width: 530px; font-size: clamp(1.08rem, 1.47vw, 1.31rem); color: #f0e7f2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 27px; margin-top: 32px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 17px; border: 1px solid transparent; font-weight: 700; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-3px); }
.button span, .text-link span { font-size: 1.2em; line-height: 1; }
.button-yellow { background: var(--yellow); color: var(--ink); }
.button-yellow:hover { background: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1px solid rgb(255 255 255 / 44%); padding: 8px 0; }
.text-link:hover { color: var(--yellow); border-color: var(--yellow); }

.figures { background: var(--ink); border-block: 1px solid var(--line); }
.figures-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.figure { display: flex; flex-direction: column-reverse; justify-content: start; padding: 21px clamp(13px, 3vw, 46px) 27px; gap: 7px; }
.figure:first-child { padding-left: 0; }
.figure + .figure { border-left: 1px solid var(--line); }
.figure dd { color: var(--yellow); font: 700 clamp(3.1rem, 5.7vw, 5.2rem)/.94 var(--display); letter-spacing: -.025em; }
.figure dd small { font-size: .42em; color: var(--white); text-transform: uppercase; letter-spacing: .01em; }
.figure dd span { font-size: .64em; }
.figure dt { max-width: 258px; color: var(--muted); font: 500 clamp(.67rem, 1vw, .76rem)/1.45 var(--mono); text-transform: uppercase; letter-spacing: .03em; }

.section { padding-block: clamp(67px, 8vw, 121px); }
.section h2, .stories h2 { margin: 14px 0 26px; font-size: clamp(4rem, 7.65vw, 7.85rem); }
.project { background: var(--paper); color: var(--ink); }
.project .eyebrow, .team .eyebrow { color: #9b0967; }
.project-grid { display: grid; grid-template-columns: 1.02fr minmax(0, .98fr); gap: clamp(42px, 7vw, 116px); align-items: center; }
.project-grid > div > p:not(.eyebrow, .calc-kicker) { max-width: 530px; }
.project .lede { font-size: clamp(1.12rem, 1.6vw, 1.36rem); margin-bottom: 16px; }
.calculator { background: var(--ink); color: var(--white); padding: clamp(24px, 3.2vw, 44px); position: relative; border-top: 5px solid var(--yellow); box-shadow: 10px 10px 0 #e8dbcf; }
.calc-kicker { color: var(--violet); font: 600 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.calculator h3 { font: 700 clamp(2.1rem, 3.6vw, 3.3rem)/.98 var(--display); margin: 9px 0 24px; }
.calc-field { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.calc-field label { color: var(--muted); font-size: .85rem; }
.calc-field output { flex: none; font: 600 clamp(.92rem, 1.5vw, 1.22rem)/1.2 var(--mono); }
.calculator input[type='range'] { width: 100%; min-height: 27px; display: block; appearance: none; cursor: pointer; margin: 0; background: transparent; }
.calculator input::-webkit-slider-runnable-track { height: 5px; background: linear-gradient(90deg, var(--yellow) var(--progress, 28.57%), #493c54 var(--progress, 28.57%)); }
.calculator input::-moz-range-track { height: 5px; background: linear-gradient(90deg, var(--yellow) var(--progress, 28.57%), #493c54 var(--progress, 28.57%)); }
.calculator input::-webkit-slider-thumb { appearance: none; width: 19px; height: 19px; margin-top: -7px; border: 2px solid var(--ink); background: var(--yellow); outline: 1px solid var(--yellow); border-radius: 0; }
.calculator input::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--ink); background: var(--yellow); outline: 1px solid var(--yellow); border-radius: 0; }
.range-ends { display: flex; justify-content: space-between; color: var(--muted); font: 500 .7rem/1.4 var(--mono); }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--line); }
.calc-results div { display: grid; gap: 4px; }
.calc-results span { color: var(--muted); font-size: .8rem; }
.calc-results output { color: var(--yellow); font: 700 clamp(2.15rem, 3.7vw, 3.8rem)/1 var(--display); white-space: nowrap; }
.calc-results div + div output { color: var(--white); }
.calc-note { margin-top: 16px; color: var(--muted); font-size: .73rem; }

.process { background: radial-gradient(ellipse at 90% 18%, #281738 0%, transparent 55%), var(--ink); }
.section-head { display: grid; grid-template-columns: 1.3fr minmax(0, .7fr); gap: 38px; align-items: end; margin-bottom: 34px; }
.section-head h2 { margin-bottom: 0; }
.section-head > p { max-width: 460px; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.23rem); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; border-block: 1px solid var(--line); }
.steps li { padding: 26px clamp(14px, 2.65vw, 39px) 32px; }
.steps li:first-child { padding-left: 0; }
.steps li + li { border-left: 1px solid var(--line); }
.step-number { display: inline-block; color: var(--pink); font: 600 .93rem/1 var(--mono); }
.steps h3 { font: 700 clamp(1.85rem, 3.2vw, 2.95rem)/1.03 var(--display); margin: 10px 0 9px; }
.steps p { color: var(--muted); max-width: 31ch; }
.status-note { margin-top: 22px; padding-left: 13px; border-left: 2px solid var(--violet); color: var(--muted); font-size: .88rem; }

.stories { min-height: clamp(480px, 43vw, 680px); display: flex; align-items: center; background: #180c25; border-block: 1px solid var(--line); }
.stories::after { background: linear-gradient(90deg, #100c19 0%, rgb(16 12 25 / 85%) 33%, transparent 77%); }
.stories-inner { padding-block: 75px; }
.stories h2 { font-size: clamp(3.8rem, 6.85vw, 7.25rem); }
.stories-inner > p:last-child { max-width: 490px; color: #efe4f1; font-size: clamp(1rem, 1.4vw, 1.22rem); }

.team { background: var(--paper); color: var(--ink); }
.team .section-head > p { color: #514554; }
.names { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; border-block: 1px solid #c9bcc5; }
.names li { padding: 23px clamp(15px, 3vw, 44px) 30px; font: 800 clamp(2.1rem, 4.1vw, 4.3rem)/.9 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.names li:first-child { padding-left: 0; }
.names li + li { border-left: 1px solid #c9bcc5; }
.names li span { display: block; color: #713273; }

.contact { overflow: hidden; background: var(--yellow); color: var(--ink); }
.contact-inner { position: relative; padding-block: clamp(58px, 7.2vw, 110px); isolation: isolate; }
.contact-copy { position: relative; z-index: 1; width: min(100%, 660px); }
.contact h2 { font-size: clamp(4.5rem, 10vw, 10rem); margin-bottom: 17px; }
.contact p { max-width: 485px; font-size: clamp(1.03rem, 1.55vw, 1.29rem); margin-bottom: 22px; }
.contact-bolt { position: absolute; z-index: -1; width: clamp(290px, 35vw, 590px); height: auto; max-width: none; right: -25px; top: 50%; transform: translateY(-50%) rotate(-8deg); }
.button-dark { color: var(--yellow); background: var(--ink); min-width: 150px; }
.button-dark:hover { color: var(--white); }
.contact :focus-visible { outline-color: #5d246e; }
.footer { background: var(--ink); color: var(--muted); font-size: .84rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding-block: 22px; }
.footer img { width: 139px; height: auto; }
.footer a:hover { color: var(--yellow); }
.back-top { flex: none; }
.back-top span { margin-left: 5px; }

@media (max-width: 1020px) {
  .frame { width: calc(100% - 68px); }
  h1 { font-size: clamp(5rem, 11vw, 7.4rem); }
  .hero::after { background: linear-gradient(90deg, #100c19 0%, rgb(16 12 25 / 82%) 35%, rgb(16 12 25 / 32%) 72%, transparent); }
  .project-grid { gap: 46px; }
  .contact-bolt { right: -45px; }
}

@media (max-width: 740px) {
  :root { --header-height: 61px; }
  .frame { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; gap: 10px; padding-block: 5px; }
  .brand img { width: 141px; }
  .nav { flex-basis: 100%; display: grid; gap: 0; padding-bottom: 10px; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .nav .nav-contact { padding-inline: 10px; border: 1px solid rgb(255 214 0 / 52%); margin-top: 6px; }
  .hero { min-height: 0; align-items: end; }
  .hero-inner { padding-block: clamp(215px, 49vw, 350px) 49px; }
  .hero-art { height: 72%; object-position: right center; }
  .hero::after { background: linear-gradient(180deg, transparent 9%, rgb(16 12 25 / 18%) 30%, #100c19 66%), linear-gradient(90deg, rgb(16 12 25 / 22%), transparent 60%); }
  h1 { font-size: clamp(2.65rem, 13.25vw, 6.7rem); margin-block: 15px 19px; }
  .hero-lede { font-size: 1.04rem; }
  .hero-actions { gap: 12px 17px; margin-top: 23px; }
  .button { gap: 13px; }
  .figure { padding: 16px 8px 20px 11px; }
  .figure dd { font-size: clamp(2.5rem, 9.7vw, 4.25rem); }
  .figure dd small { display: block; font-size: .39em; margin-top: 3px; }
  .figure dt { font-size: clamp(.58rem, 2.4vw, .73rem); }
  .project-grid, .section-head { grid-template-columns: 1fr; gap: 26px; }
  .section h2 { font-size: clamp(3.4rem, 11.8vw, 6.1rem); }
  .section-head { align-items: start; margin-bottom: 24px; }
  .calculator { box-shadow: 6px 6px 0 #e8dbcf; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:first-child { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 6px 10px; padding: 16px 0; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .step-number { padding-top: 8px; }
  .steps h3 { margin: 0; }
  .steps p { grid-column: 2; max-width: none; }
  .stories { min-height: 0; align-items: end; }
  .stories-inner { padding-block: clamp(230px, 49vw, 350px) 58px; }
  .stories h2 { font-size: clamp(3.4rem, 11vw, 6rem); }
  .stories-art { height: 77%; }
  .stories::after { background: linear-gradient(180deg, transparent 12%, rgb(16 12 25 / 19%) 37%, #100c19 73%); }
  .names { grid-template-columns: 1fr; }
  .names li, .names li:first-child { padding: 12px 0 16px; font-size: clamp(2.1rem, 8.5vw, 3.8rem); }
  .names li + li { border-left: 0; border-top: 1px solid #c9bcc5; }
  .names li span { display: inline; }
  .contact-bolt { opacity: .23; right: -80px; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 370px) {
  .frame { width: calc(100% - 32px); }
  .hero-actions { align-items: flex-start; }
  .contact h2 { font-size: 4.05rem; }
  .calc-field label { font-size: .76rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-inner { animation: arrive .58s cubic-bezier(.2,.65,.25,1) both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
