@font-face {
  font-family: Nunito;
  src: url("assets/nunito.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #100b0b;
  --panel: #18100f;
  --ink: #fff5ed;
  --muted: #d1bdb5;
  --accent: #ff9c62;
  --red: #ef5141;
  --line: #54312a;
  --rail: 72px;
  --gutter: clamp(22px, 5vw, 76px);
  --display: Nunito, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 system-ui, sans-serif; }
body, main { min-width: 0; }
main { margin-left: var(--rail); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
figure, ul, ol { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 4.3rem); letter-spacing: -.045em; }
h2 strong, .campaign h3 strong { color: var(--accent); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.55rem); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
:target { scroll-margin-top: 12px; }
.sr-only, .skip:not(:focus) { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; padding: 12px 18px; background: var(--accent); color: var(--bg); }

.rail { position: fixed; z-index: 4; inset: 0 auto 0 0; width: var(--rail); background: #120c0c; border-right: 1px solid var(--line); display: flex; align-items: center; flex-direction: column; padding: 24px 0 20px; }
.menu-toggle { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #aa7e72; color: var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; }
.menu-toggle span { position: absolute; width: 16px; height: 1px; background: currentColor; transition: transform 200ms ease; }
.menu-toggle span:first-child { transform: translateY(-3px); }
.menu-toggle span:last-child { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.menu-toggle:hover { color: var(--accent); }
.rail-links { display: flex; flex: 1; min-height: 0; width: 100%; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 3vh, 28px); }
.rail-links a { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); font-size: .68rem; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.rail-links a:hover, .rail-links a[aria-current] { color: var(--accent); }
.menu { position: absolute; inset: 20px auto auto calc(100% + 12px); width: min(290px, calc(100vw - 96px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid var(--line); border-top: 2px solid var(--red); background: #201414; padding: 10px 18px; box-shadow: 0 14px 36px #0008; }
.menu a { display: block; padding: 10px 0; text-decoration: none; }
.menu a + a { border-top: 1px solid var(--line); }
.menu a:hover { color: var(--accent); }
.mobile-home, .mobile-contact { display: none; }
.wrap { width: min(100%, 1480px); margin-inline: auto; padding-inline: var(--gutter); }

.hero { position: relative; overflow: hidden; background: #130b0a; isolation: isolate; border-top: 3px solid var(--red); border-image: linear-gradient(90deg, #a72522, #f35039 58%, #ee873e) 1; }
.hero-visual { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 51%; isolation: isolate; overflow: hidden; background: #5a241e; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, #130b0a 0%, #130b0a9c 15%, transparent 44%), linear-gradient(0deg, #130b0a 0%, transparent 25%), linear-gradient(180deg, #34110da6 0%, transparent 36%); }
.hero-inner { position: relative; min-height: min(820px, max(682px, 94svh)); padding-block: clamp(18px, 4vh, 46px) 42px; display: flex; flex-direction: column; justify-content: center; }
.hero-top { display: flex; align-items: center; gap: 20px; align-self: flex-start; }
.hero-top img { width: 110px; height: auto; }
.hero-top span { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; border-left: 1px solid var(--line); padding-left: 18px; }
.hero-copy { width: min(57%, 645px); margin: auto 0; padding-block: 44px 48px; }
.hero h1 { text-transform: uppercase; padding-left: clamp(14px, 2vw, 30px); border-left: 3px solid var(--red); font-size: clamp(3.05rem, 6.75vw, 7rem); line-height: .93; letter-spacing: -.054em; }
.hero h1 strong { display: block; color: var(--accent); }
.byline { margin: 18px 0 22px; font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 640; }
.hero-lead { margin-bottom: 5px; font-size: clamp(1.2rem, 2.15vw, 1.75rem); line-height: 1.23; max-width: 30ch; }
.hero-text { max-width: 39ch; color: var(--muted); margin-bottom: 22px; }
.hero-stats { display: inline-flex; flex-wrap: wrap; padding: 0; list-style: none; border: 1px solid #a15a46; background: #130b0abb; }
.hero-stats li { padding: 8px 13px; color: var(--ink); font-size: .875rem; }
.hero-stats li + li { border-left: 1px solid #a15a46; }
.hero-stats strong { color: var(--accent); }
.hero-copy .actions { margin-top: 23px; }
.hero-scroll { align-self: flex-end; padding: 3px 13px 3px 0; border-right: 2px solid var(--red); text-decoration: none; text-transform: uppercase; font-size: .75rem; letter-spacing: .13em; }
.hero-scroll:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 23px; }
.pill { min-height: 46px; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; display: inline-flex; justify-content: center; align-items: center; text-align: center; text-decoration: none; font-size: .9rem; font-weight: 750; line-height: 1.3; transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease; }
.primary { background: var(--accent); color: #190d09; }
.primary:hover { background: #ffc198; }
.outlined { border-color: #ad6b58; color: var(--ink); background: #130b0a55; }
.outlined:hover { border-color: var(--accent); background: #382019; }
.text-link { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { color: #ffd0b3; }

.section { padding-block: clamp(62px, 9vw, 133px); border-top: 1px solid var(--line); }
.tinted { background: var(--panel); }
.section-head { max-width: 830px; margin-bottom: clamp(20px, 4vw, 44px); }
.eyebrow { margin-bottom: 12px; color: #ff8d78; text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; font-weight: 750; }
.intro { max-width: 66ch; margin-top: 15px; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.16rem); }
.grid { display: grid; gap: clamp(12px, 2vw, 24px); }
.grid > * { min-width: 0; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rule-grid > * { padding: 19px clamp(11px, 1.6vw, 23px) 20px 0; border-top: 1px solid #a25445; }
.rule-grid p:not(.eyebrow), .brands p { margin-top: 8px; color: var(--muted); }
.fine { margin-top: 18px; max-width: 90ch; color: var(--muted); font-size: .87rem; line-height: 1.55; }

.profile { display: grid; grid-template-columns: minmax(235px, .8fr) minmax(0, 1.2fr); gap: clamp(26px, 6vw, 90px); align-items: center; }
.profile figure { position: relative; align-self: stretch; min-height: 450px; border-top: 2px solid var(--red); overflow: hidden; }
.profile figure img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.timeline { margin: 22px 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 102px 1fr; gap: 5px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.timeline li > span { color: var(--accent); font-variant-numeric: tabular-nums; font-size: .88rem; font-weight: 700; }
.timeline h3, .timeline p { font-size: 1rem; text-wrap: wrap; }
.timeline p { color: var(--muted); margin-top: 3px; }

.metrics { gap: 0; border: 1px solid var(--line); }
.metrics a { display: grid; align-content: start; padding: clamp(14px, 2vw, 30px); background: #1a100f; text-decoration: none; }
.metrics a + a { border-left: 1px solid var(--line); }
.metrics a:hover { background: #2a1714; }
.metrics a > span:first-child { min-height: 2.95em; line-height: 1.25; }
.metrics strong, .program-numbers strong { color: var(--accent); font: 800 clamp(1.7rem, 3.5vw, 3.55rem)/1.05 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.metrics a > span:nth-of-type(2) { color: var(--muted); margin: 5px 0; }
.metrics small { color: #ffad95; font-size: .86rem; overflow-wrap: anywhere; }
.program-card { background: #211413; border: 1px solid var(--line); display: flex; flex-direction: column; }
.program-card > div { padding: clamp(13px, 1.5vw, 22px); }
.program-card p { margin-top: 9px; color: var(--muted); }
.program-numbers { display: flex; flex-direction: column; padding-block: 12px; }
.program-numbers strong { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.program-numbers span { color: var(--muted); font-size: .89rem; }
.program-short { font-size: .9rem; }
.program-card .library-link { margin-top: auto; display: block; padding: 12px clamp(13px, 1.5vw, 22px); border-top: 1px solid var(--line); font-size: .9rem; }
.extra-highlights { margin: 0; padding-left: 1.18rem; color: var(--muted); font-size: .91rem; }
.extra-highlights li + li { margin-top: 6px; }
.video-thumb { display: block; position: relative; overflow: hidden; background: #35201b; }
.video-thumb img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; transition: opacity 220ms ease; }
.video-thumb:hover img { opacity: .77; }
.play { display: grid; place-items: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border: 1px solid #fff9; border-radius: 50%; background: #160d0edb; }
.play::before { content: ""; border-block: 7px solid transparent; border-left: 11px solid #fff5eb; margin-left: 3px; }
.video-card { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.video-card h3 { margin-top: 6px; }
.video-meta { margin: 10px 0 0; color: var(--muted); font-size: .84rem; }
.video-card .video-count { margin-top: 6px; color: var(--accent); font-size: .88rem; }
.brands article { padding: 0 0 15px; border-bottom: 1px solid var(--line); }
.brand-logo { display: grid; place-items: center; height: 105px; background: #faf1ea; border-radius: 3px; padding: 14px; }
.brand-logo img { max-width: 100%; max-height: 72px; object-fit: contain; }
.brands .text-link { font-size: .9rem; }
.cases { margin-top: 42px; }
.product-grid .text-link { font-size: .94rem; }
.table-frame { border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { text-align: left; padding: 12px clamp(10px, 2vw, 23px); vertical-align: top; overflow-wrap: anywhere; }
thead { color: var(--accent); background: #2e1915; }
tbody tr { border-top: 1px solid var(--line); }
td { color: var(--muted); }
th:first-child { width: 31%; }
.campaign { margin-top: clamp(34px, 6vw, 75px); }
.campaign > h3 { font: 800 clamp(1.55rem, 3vw, 2.65rem)/1.15 var(--display); }
.campaign ol { list-style: none; padding: 0; margin-top: 22px; }
.campaign h4 { font-size: 1.1rem; }
details { margin-top: 22px; border-block: 1px solid var(--line); }
summary { cursor: pointer; color: var(--accent); padding: 12px 0; font-weight: 680; }
.details-body { padding-bottom: 14px; color: var(--muted); }

.contact { background: radial-gradient(ellipse at right bottom, #591a14, transparent 64%), #241311; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .42fr); align-items: center; gap: 26px; }
.contact-logo { width: min(245px, 100%); height: auto; justify-self: center; }
.email { display: inline-block; margin-top: 17px; overflow-wrap: anywhere; }
footer { padding-block: 24px; border-top: 1px solid var(--line); }
.footer-inner, .footer-inner nav { display: flex; justify-content: space-between; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

dialog { width: min(760px, calc(100vw - 24px)); max-width: none; padding: clamp(12px, 2vw, 23px); border: 1px solid var(--line); border-top: 2px solid var(--red); color: var(--ink); background: var(--panel); }
dialog::backdrop { background: #060404dc; }
.dialog-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding-bottom: 10px; }
.dialog-top h2 { font-size: clamp(1.2rem, 3vw, 1.65rem); }
.dialog-top button { min-height: 44px; color: var(--ink); border: 1px solid var(--line); background: transparent; padding: 0 14px; cursor: pointer; }
.player-frame iframe { display: block; width: 100%; border: 0; aspect-ratio: 16 / 9; }
.youtube-link { display: inline-block; margin-top: 10px; }

.library-hero { padding-top: 60px; }
.library-list { display: grid; gap: 12px; }
.library-list details { margin-top: 0; padding-inline: 10px; }
.library-list summary { min-height: 50px; }
.library-table th:first-child { width: 54%; }
.library-table td:last-child { white-space: nowrap; }
.library-table .text-link { color: var(--ink); overflow-wrap: anywhere; }
.library-table .text-link:hover { color: var(--accent); }
.library-filter { margin-block: 20px; }
.library-filter label { display: block; }
.library-filter input { color: var(--ink); background: var(--panel); border: 1px solid #aa7e72; border-radius: 2px; min-height: 46px; width: min(460px, 100%); padding: 8px 11px; font: inherit; }
.library-status { color: var(--muted); margin-top: 6px; }

@media (max-width: 1050px) {
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics a:nth-child(3) { border-left: 0; }
  .metrics a:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 800px) {
  :root { --rail: 0px; }
  main { margin-top: 58px; }
  :target { scroll-margin-top: 66px; }
  .rail { inset: 0 0 auto; width: auto; min-height: 58px; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left)); flex-direction: row; justify-content: space-between; gap: 7px; }
  .menu-toggle { width: 43px; height: 43px; }
  .rail-links { display: none; }
  .menu { inset: calc(100% + 4px) auto auto 12px; width: min(320px, calc(100vw - 24px)); max-height: calc(100dvh - 75px); }
  .mobile-home, .mobile-contact { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-size: .84rem; font-weight: 730; }
  .mobile-contact { color: var(--accent); white-space: nowrap; }
  .hero-inner { min-height: 635px; }
  .hero-visual { width: 57%; }
  .hero-copy { width: 68%; }
  .profile { grid-template-columns: minmax(165px, .7fr) minmax(0, 1.3fr); }
  .programs { grid-template-columns: 1fr; }
  .program-card { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); align-items: start; }
  .program-card .library-link { grid-column: 1 / -1; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  .hero-inner { min-height: 0; padding-block: 18px 23px; }
  .hero-top img { width: 77px; }
  .hero-top { gap: 9px; }
  .hero-top span { font-size: .7rem; padding: 5px 8px; background: #130b0adc; border: 0; }
  .hero-visual { width: 100%; height: 300px; }
  .hero-visual img { width: 71%; margin-left: auto; object-position: center 42%; }
  .hero-visual::after { background: linear-gradient(90deg, #130b0a 29%, #130b0a9a 45%, transparent 69%), linear-gradient(0deg, #130b0a 0%, transparent 38%); }
  .hero-copy { width: 100%; padding-block: 185px 22px; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 4.65rem); }
  .hero-scroll { align-self: flex-start; padding: 3px 0 3px 8px; border: 0; border-left: 2px solid var(--red); }
  .byline { margin-bottom: 16px; }
  .profile, .two, .contact-grid, .campaign .grid { grid-template-columns: 1fr; }
  .profile figure { min-height: clamp(245px, 76vw, 390px); }
  .profile figure img { object-position: center 30%; }
  .timeline li { grid-template-columns: 82px 1fr; }
  .metrics a { padding-inline: 10px; }
  .metrics a > span:first-child { min-height: 3.5em; font-size: .9rem; }
  .grid.four:not(.metrics), .video-grid { gap: 12px; }
  .program-card { display: flex; }
  .program-card .video-thumb { width: 100%; }
  .program-card .library-link { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-logo { height: 85px; }
  .contact-logo { display: none; }
  .library-table th:first-child { width: 51%; }
  .library-table th, .library-table td { padding-inline: 6px; font-size: .79rem; }
}
@media (max-width: 365px) {
  .hero-stats li { padding-inline: 8px; }
  .video-grid, .product-grid { grid-template-columns: 1fr; }
}
@media (max-height: 615px) and (min-width: 801px) {
  .rail-links { gap: 9px; }
  .rail-links a { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.library-page main { margin: 0; }
.library-hero .section-head { margin-top: 30px; }
.library-hero h1 { font-size: clamp(2rem, 4.2vw, 4.3rem); letter-spacing: -.045em; }
.library-hero h1 strong { color: var(--accent); }
.library-list details:target { border-color: var(--accent); }
.library-table th:last-child { overflow-wrap: normal; }
@media (max-width: 570px) {
  .library-table th:first-child { width: 44%; }
  .library-table th:last-child { overflow-wrap: anywhere; }
}
