/* Tervik Building Products: spec-sheet layout. Navy is the drawing ink; orange (the K's arm) marks the one action per view. */
:root {
  --ground: #EDF0F4; --ground-2: #E2E6EC; --panel: #F8F9FB;
  --ink: #032054; --ink-2: #4E5C76; --rule: rgba(3, 32, 84, .14);
  --orange: #F36B02; --navy: #032054; --bp: #0A2A68; --bp-ink: #E6EDFA; --bp-rule: rgba(230, 237, 250, .14);
  --shadow: 0 30px 60px -30px rgba(3, 32, 84, .35);
  --display: "Archivo", "Arial Black", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --max: 1360px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--ground); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 900px) { .wrap { padding-inline: 40px; } }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.arm { display: inline-block; width: 18px; height: 9px; background: var(--orange); clip-path: polygon(28% 0, 100% 0, 72% 100%, 0 100%); flex: none; }
.eyebrow { display: flex; align-items: center; gap: .7em; color: var(--ink-2); margin: 0 0 1.2rem; }
.h2 { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 112; font-size: clamp(2rem, 4.6vw, 4.1rem); line-height: .95; letter-spacing: -.025em; margin: 0; text-transform: uppercase; text-wrap: balance; }
.sec { padding-block: clamp(4.5rem, 10vw, 8rem); }
.sec-head { display: grid; gap: 1rem 4rem; align-items: end; margin-bottom: 3rem; }
.sec-head p { margin: 0; max-width: 46ch; color: var(--ink-2); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1.3fr 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; height: 48px; padding: 0 1.4rem; font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 1.5px solid var(--ink); background: none; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--ground); }
.btn--orange { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn--orange:hover { box-shadow: 4px 4px 0 var(--bp-ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.nav__inner { height: 64px; display: flex; align-items: center; gap: 1.6rem; }
.brand img { width: 132px; }
.nav__links { display: none; gap: 1.8rem; margin-left: auto; }
.nav__links a { font: .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); position: relative; padding: .4rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--orange); transition: width .25s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav .btn { height: 36px; padding: 0 1rem; font-size: .7rem; margin-left: auto; }
@media (min-width: 900px) { .nav__links { display: flex; } .nav .btn { margin-left: 0; } }
@media (max-width: 420px) { .brand img { width: 110px; } }

/* Language switch */
.lang { display: inline-grid; place-items: center; height: 36px; min-width: 40px; padding: 0 .6rem; border: 1px solid var(--rule); text-decoration: none; color: var(--ink); margin-left: auto; }
.lang:hover { border-color: var(--ink); }
.lang + .btn { margin-left: 0; }
@media (min-width: 900px) { .lang { margin-left: 0; } }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); background: radial-gradient(120% 80% at 75% 40%, var(--panel), var(--ground) 70%); }
.hero::before { display: none; z-index: 1; content: ""; position: absolute; inset: 0; background:
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 48px 48px;
  opacity: .45; mask-image: radial-gradient(80% 70% at 70% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(80% 70% at 70% 45%, #000 20%, transparent 75%); }
.hero__grid { position: relative; z-index: 2; display: grid; gap: 3rem; align-items: center; padding-block: 3.5rem 4.5rem; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.25fr 1fr; min-height: min(820px, calc(100svh - 64px)); padding-block: 4rem 5rem; } }
.hero__title { font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 112; font-size: clamp(2.5rem, 6.2vw, 6rem); line-height: .86; letter-spacing: -.035em; text-transform: uppercase; margin: 0 0 2rem; }
.hero__title span { display: block; }
.hero__title .o { color: transparent; -webkit-text-stroke: 2px var(--ink); }
@media (max-width: 760px) { .hero__title { font-size: clamp(2.1rem, 10.2vw, 3.6rem); } .hero__title .o { -webkit-text-stroke-width: 1.4px; } }
.hero__lede { max-width: 44ch; font-size: clamp(1rem, 1.3vw, 1.18rem); margin: 0 0 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

.stage { position: relative; justify-self: center; width: min(100%, 480px); }
.stage__sheet { position: relative; aspect-ratio: 4 / 5; background: var(--panel); border: 1px solid var(--rule); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
.stage__sheet::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-26.6deg, transparent 0 46px, var(--rule) 46px 47px); opacity: .55; }
.stage__sheet::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 9%; height: 26px; background: radial-gradient(closest-side, rgba(3, 32, 84, .22), transparent); }
.stage__sheet img { position: absolute; z-index: 1; top: 10%; height: 78%; width: auto; max-width: none; left: 38%; transform: translateX(-50%); mix-blend-mode: multiply; }
.stage__corner { position: absolute; z-index: 2; color: var(--ink-2); font-size: .62rem; }
.stage__corner--tl { top: 14px; left: 16px; } .stage__corner--br { bottom: 14px; right: 16px; }
.stage__card { position: absolute; z-index: 3; right: -28px; bottom: 36px; width: 230px; background: var(--panel); border: 1px solid var(--rule); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.stage__card-name { font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 110; font-size: 1.2rem; margin: .45rem 0 .3rem; padding-bottom: .55rem; border-bottom: 1.5px solid var(--ink); }
.stage__card ul { list-style: none; margin: 0; padding: 0; }
.stage__card li { display: flex; justify-content: space-between; padding: .38rem 0; border-bottom: 1px dashed var(--rule); color: var(--ink-2); }
.stage__card li b { color: var(--ink); font-weight: 500; }
@media (max-width: 1180px) { .stage__card { right: 12px; } }
@media (max-width: 560px) { .stage__sheet img { left: 50%; } .stage__card { position: relative; right: auto; bottom: auto; width: auto; margin-top: -1px; box-shadow: none; } }

/* Hero photo */
.hero__photo { position: relative; height: 56vw; max-height: 460px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero__photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, var(--ground)); }
.hero .stage { width: 100%; }
@media (min-width: 1000px) {
  .hero__photo { position: absolute; inset: 0 0 0 34%; height: auto; max-height: none; }
  .hero__photo::after { inset: 0; height: auto; background: linear-gradient(90deg, var(--ground) 0%, color-mix(in srgb, var(--ground) 70%, transparent) 22%, transparent 48%), linear-gradient(transparent 70%, color-mix(in srgb, var(--ground) 55%, transparent)); }
  .hero .stage { align-self: end; justify-self: end; width: 250px; }
  .hero .stage__card { position: relative; right: auto; bottom: auto; width: 250px; }
}
@media (max-width: 999px) { .hero__grid { padding-top: 0; } .hero .stage__card { position: relative; right: auto; bottom: auto; width: auto; box-shadow: none; } }

/* Ticker */
.ticker { background: var(--navy); color: var(--bp-ink); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: tick 60s linear infinite; padding: .9rem 0; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.tick { display: flex; align-items: center; gap: .8rem; padding: 0 2rem; white-space: nowrap; }
.tick .arm { width: 14px; height: 7px; }
.tick i { font-style: normal; opacity: .6; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Divisions */
.divs { display: grid; border: 1px solid var(--rule); background: var(--panel); }
@media (min-width: 900px) { .divs { grid-template-columns: repeat(3, 1fr); } }
.div { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.div:last-child { border-bottom: 0; }
@media (min-width: 900px) { .div { border-bottom: 0; border-right: 1px solid var(--rule); } .div:last-child { border-right: 0; } }
.div__media { position: relative; height: 320px; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 45%, #fff, var(--ground) 100%); border-bottom: 1px solid var(--rule); overflow: hidden; }
.div__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: var(--ground-2); opacity: .6; }
.div__media img { position: relative; z-index: 1; height: 260px; width: auto; max-width: 84%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.div:hover .div__media img { transform: translateY(-6px) scale(1.02); }
.div__tag { position: absolute; z-index: 2; top: 12px; left: 12px; background: var(--navy); color: var(--bp-ink); padding: .3rem .55rem; font-size: .62rem; }
.div__body { padding: 1.4rem 1.3rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.div__num { color: var(--orange); }
.div__title { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 108; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; margin: 0; }
.div__desc { margin: 0; color: var(--ink-2); }
.div__list { list-style: none; margin: .4rem 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.div__list li { display: flex; gap: .8rem; padding: .55rem 0; border-bottom: 1px dashed var(--rule); font-size: .95rem; }
.div__list li span { color: var(--ink-2); font: .7rem/1.9 var(--mono); min-width: 2.2em; }

/* About */
.about { background: var(--ground-2); border-block: 1px solid var(--rule); }
.about__text { font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 100; font-size: clamp(1.6rem, 3.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; margin: 0; max-width: 20em; text-wrap: pretty; }
.about__text em { font-style: normal; color: color-mix(in srgb, var(--ink) 40%, transparent); }
.stats { display: grid; grid-template-columns: 1fr; margin: 4.5rem 0 0; border-top: 1.5px solid var(--ink); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 1.4rem 1.2rem 1.4rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: .4rem; }
.stat dt { font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 112; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat dt small { font-size: .38em; margin-left: .15em; font-weight: 600; color: var(--ink-2); }
.stat dd { margin: 0; color: var(--ink-2); max-width: 24ch; }

/* Contact (blueprint) */
.contact { background: var(--bp); color: var(--bp-ink); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background:
    linear-gradient(var(--bp-rule) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--bp-rule) 1px, transparent 1px) 0 0 / 32px 32px; }
.contact .wrap { position: relative; }
.contact .eyebrow { color: color-mix(in srgb, var(--bp-ink) 70%, transparent); }
.contact__grid { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.3fr 1fr; } }
.contact__lede { color: color-mix(in srgb, var(--bp-ink) 80%, transparent); max-width: 44ch; margin: 1.4rem 0 0; font-size: 1.08rem; }
.contact__card { background: color-mix(in srgb, var(--navy) 60%, transparent); border: 1px solid var(--bp-rule); padding: 1.4rem; }
.contact__card dl { margin: 0 0 1.4rem; }
.contact__card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--bp-rule); }
.contact__card dt { opacity: .65; }
.contact__card dd { margin: 0; text-align: right; }
.contact__card .btn { width: 100%; }

/* Footer */
.footer { background: var(--navy); color: var(--bp-ink); padding-top: 3.5rem; overflow: hidden; }
.footer__cols { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); padding-bottom: 2.5rem; border-bottom: 1px solid var(--bp-rule); }
@media (min-width: 900px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer h4 { margin: 0 0 .9rem; opacity: .6; font-weight: 400; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer__fine { opacity: .6; font-size: .68rem; }
.footer__mark { padding-block: 2.5rem 0; }
.footer__mark img { width: 100%; transform: translateY(14%); }

/* Reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
}

/* Legal page */
.legal { padding-block: 4rem 6rem; max-width: 820px; }
.legal h1 { font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 112; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .95; text-transform: uppercase; letter-spacing: -.03em; margin: 0 0 1rem; }
.legal h2 { font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; margin: 2.4rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.legal p { color: var(--ink-2); max-width: 64ch; }
