:root {
  color-scheme: light;
  --paper: #f2eee5;
  --ink: #202326;
  --muted: #565a5b;
  --orange: #ff671d;
  --red: #202326;
  --blue: #194bd6;
  --line: #d0ccc3;
  --sport: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 16px/1.65 Arial, Helvetica, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, [role=button]:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.skip-link { position: fixed; top: .7rem; left: 1rem; z-index: 20; padding: .65rem 1rem; background: var(--ink); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { max-width: 1320px; padding: 1.65rem clamp(1.25rem,4vw,3.5rem); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { font: italic 900 2.6rem/1 var(--sport); letter-spacing: -.07em; text-decoration: none; }
.wordmark span { display: block; margin-top: .45rem; font: 700 .6rem/1 Arial,sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem,3vw,2.6rem); }
.site-header nav a { font-size: .875rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { text-decoration: underline; }
.nav-contact { padding: .65rem 1.2rem; background: var(--ink); color: var(--paper); }
.hero { position: relative; isolation: isolate; width: min(1320px,100%); margin: 0 auto; min-height: 530px; padding: 4rem clamp(1.25rem,4vw,3.5rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('rallye-livery.svg') center/cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(242,238,229,.98) 0%,rgba(242,238,229,.96) 42%,rgba(242,238,229,.85) 51%,rgba(242,238,229,0) 65%); }
.hero__content { min-width: 0; }
.eyebrow { margin: 0 0 1.25rem; color: var(--blue); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1,h2,h3 { font-family: var(--sport); line-height: 1.05; letter-spacing: -.045em; }
h1 { margin: 0; font-size: clamp(2.7rem,5vw,4.6rem); font-weight: 900; font-style: italic; text-transform: uppercase; }
.intro { max-width: 52ch; margin: 1.6rem 0 1.8rem; color: #393d3f; font-size: 1rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.1rem; padding: .85rem 1.25rem; border: 1px solid var(--orange); background: var(--orange); color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; transition: background .18s, transform .18s; }
.button:hover { background: #ff874d; transform: translateY(-2px); }
.text-link { display: inline-block; margin-top: 1.25rem; font-weight: 700; text-decoration: none; color: var(--blue); }
.text-link:hover { text-decoration: underline; }
.hero-actions .text-link { margin: 0; color: var(--ink); font-size: .9rem; }
.hero__visual { position: relative; isolation: isolate; min-width: 0; padding: 1.2rem 0; }
.hero__visual::before { content: ''; position: absolute; z-index: -1; inset: -3% -7%; background: radial-gradient(ellipse at center, #171a1b 42%,rgba(23,26,27,.96) 55%,rgba(23,26,27,0) 73%); }
.hero__visual picture { display: block; mix-blend-mode: screen; }
.hero__visual img { display: block; width: 100%; height: auto; max-width: 570px; margin-inline: auto; }
.project-strip { max-width: 1320px; margin: 1rem auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding: .85rem clamp(1.25rem,4vw,3.5rem); color: var(--paper); background: var(--blue); font-size: .75rem; line-height: 1.5; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.overview-section,.projects-section,.diy-section,.license-teaser { width: min(1320px,100%); margin: auto; padding: 4.5rem clamp(1.25rem,4vw,3.5rem); }
.overview-section { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; border-bottom: 1px solid var(--line); }
.overview-section .eyebrow { grid-column: 1 / -1; }
h2 { margin: 0; max-width: 24ch; font-size: clamp(2rem,3.4vw,3.15rem); font-weight: 800; }
.section-copy { margin: 0; max-width: 62ch; color: var(--muted); }
.projects-section .section-heading { display: flex; justify-content: space-between; align-items: start; gap: 2rem; }
.section-heading .eyebrow { padding-top: .4rem; }
.section-heading h2 { max-width: 23ch; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.project-card { display: flex; flex-direction: column; min-width: 0; padding: 1.8rem; border: 1px solid var(--line); border-left: 5px solid var(--orange); background: #f9f7f1; text-decoration: none; transition: transform .2s,box-shadow .2s; }
.project-card:nth-child(2) { border-left-color: var(--red); }
.project-card:nth-child(3) { border-left-color: var(--blue); }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 22px #2023260d; }
.project-number { font: italic 900 3.3rem/1 var(--sport); letter-spacing: -.06em; }
.project-card h3 { font-size: 1.8rem; margin: 1.5rem 0 .75rem; }
.project-card p { font-size: 1rem; margin: 0 0 1.5rem; color: var(--muted); }
.project-card .project-status { margin-top: auto; font-size: .875rem; font-weight: 700; color: var(--blue); }
.card-action { padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; font-weight: 700; display: flex; justify-content: space-between; }
.diy-section { background: var(--ink); color: var(--paper); position: relative; isolation: isolate; overflow: hidden; }
.diy-section::before { content: ''; position: absolute; width: 380px; height: 330px; right: -50px; top: -160px; z-index: -1; background: url('rallye-livery.svg') center/cover; opacity: .12; transform: rotate(-5deg); }
.diy-section .eyebrow { color: #d7ff3f; }
.diy-points strong { color: var(--paper); }
.diy-lead { color: #d0d0c9; max-width: 70ch; margin: 1.5rem 0 0; }
.diy-points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.diy-points p,.diy-link { margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.diy-points strong { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.diy-points span { color: #d0d0c9; }
.diy-link { text-decoration: none; }
.diy-link:hover strong { text-decoration: underline; }
.diy-link:focus-visible { outline-color: #d7ff3f; }
.license-teaser h2 { margin-bottom: 1.5rem; }
.license-teaser > p:not(.eyebrow) { max-width: 85ch; color: var(--muted); }
footer { max-width: 1320px; margin: auto; padding: 1.7rem clamp(1.25rem,4vw,3.5rem); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { text-decoration: none; font: italic 900 1.8rem/1 var(--sport); }
.footer-brand span { margin-left: 1rem; font: 400 .875rem Arial,sans-serif; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .875rem; }
footer nav a { text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
.legal-page { position: relative; }
.legal-page::before { content: ''; position: absolute; top: 130px; right: 0; width: min(44vw,600px); height: 510px; background: url('rallye-livery.svg') center/cover; opacity: .08; pointer-events: none; z-index: -1; }
.legal-content { width: min(900px,100%); margin: auto; padding: 2rem clamp(1.25rem,5vw,4rem) 5rem; }
.legal-content h1 { overflow-wrap: anywhere; margin: 0 0 2rem; font-size: clamp(2.5rem,5vw,4.5rem); }
.legal-content h2 { font-size: 1.45rem; margin: 2.5rem 0 .75rem; letter-spacing: -.02em; }
.legal-content p { color: var(--muted); max-width: 68ch; }
.legal-content .lead { color: var(--ink); font-size: 1.15rem; }
.legal-content a { color: var(--blue); overflow-wrap: anywhere; }
.back-link { display: inline-block; margin-bottom: 3rem; text-decoration: none; font-weight: 700; font-size: .9rem; }
.back-link:hover { text-decoration: underline; }
.legal-note { margin-top: 3rem; font-size: .875rem; }
@media (max-width: 1050px) {
  .hero { gap: 1.5rem; grid-template-columns: 1.2fr 1fr; }
  .hero h1 { font-size: clamp(2.7rem,5.1vw,3.4rem); }
  .project-card { padding: 1.25rem; }
  .project-card h3 { font-size: 1.55rem; }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 1.2rem; padding-block: 1.25rem; }
  .site-header nav { width: 100%; justify-content: space-between; gap: .65rem; }
  .site-header nav a { font-size: .8rem; }
  .nav-contact { padding: .45rem .7rem; }
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 2rem; gap: 1rem; }
  .hero::before { background-size: auto 100%; background-position: center; }
  .hero::after { background: linear-gradient(180deg,rgba(242,238,229,.97) 0%,rgba(242,238,229,.96) 45%,rgba(242,238,229,.8) 55%,rgba(242,238,229,0) 72%); }
  .hero h1 { font-size: clamp(2.2rem,8.3vw,3.7rem); }
  .hero__visual { width: min(440px,92%); margin: 1.5rem auto 0; }
  .hero__visual::before { inset: -2% -5%; }
  .hero-actions { gap: 1rem; }
  .project-strip { margin-top: .5rem; font-size: .7rem; }
  .project-strip span:last-child { display: none; }
  .overview-section { grid-template-columns: 1fr; gap: 1.25rem; }
  .overview-section .eyebrow { margin: 0; }
  .overview-section,.projects-section,.diy-section,.license-teaser { padding-block: 3rem; }
  .projects-section .section-heading { display: block; }
  .project-grid,.diy-points { grid-template-columns: 1fr; }
  .project-card { padding: 1.5rem; }
  .project-card h3 { font-size: 1.9rem; }
  .project-number { font-size: 2.6rem; }
  .project-card h3 { margin-top: 1rem; }
  .project-card .project-status { margin-top: 0; }
  .legal-content { padding-top: 1.5rem; }
}

/* Video intro over the same painted racing livery as the homepage. */
.intro-screen {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  transition: opacity 1.35s cubic-bezier(.22, .7, .25, 1), visibility 0s linear 1.35s;
}

.intro-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(23,26,27,.78) 0%, rgba(23,26,27,.38) 55%, rgba(23,26,27,.65) 100%),
    url('rallye-livery.svg') center / cover no-repeat;
}

.intro-screen[hidden] { display: none; }

.intro-video {
  position: absolute;
  inset: 4% 4% 16%;
  width: 92%;
  height: 80%;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: screen;
  transition: opacity 1.2s ease, transform 1.35s cubic-bezier(.22, .7, .25, 1), filter 1.2s ease;
}

.intro-video-caption {
  position: absolute;
  z-index: 2;
  bottom: 4.8rem;
  color: var(--paper);
  padding: .3rem .7rem;
  background: rgba(23,26,27,.8);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  transition: opacity .6s ease, transform .6s ease;
}

.intro-video-caption span {
  color: #d0d0c9;
  font-size: .63rem;
  letter-spacing: .15em;
}

.intro-logo {
  position: relative;
  z-index: 1;
  width: min(900px, 88vw);
  max-height: 72vh;
  object-fit: contain;
  mix-blend-mode: screen;
  animation: logo-arrival 2.2s cubic-bezier(.2, .8, .2, 1) both;
}


.intro-screen p {
  position: absolute;
  z-index: 2;
  bottom: 1.7rem;
  margin: 0;
  padding: .7rem 1rem;
  border: 1px solid var(--orange);
  border-radius: 0;
  color: #f3f4f1;
  background: rgba(18, 22, 21, .94);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  animation: hint-arrival .6s 1.4s both;
  transition: opacity .6s ease, transform .6s ease;
}

.intro-screen--leave {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.intro-screen--leave .intro-video {
  opacity: 0;
  transform: scale(1.025);
  filter: blur(3px);
}

.intro-screen--leave .intro-video-caption,
.intro-screen--leave p {
  opacity: 0;
  transform: translateY(8px);
}

@keyframes logo-arrival {
  0% { opacity: 0; transform: scale(.78); filter: blur(10px); }
  35% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}


@keyframes hint-arrival {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Language selection, supporting illustrations and original-logo treatment. */
.hero { overflow: clip; }
.site-header { gap: 1.3rem; flex-wrap: wrap; }
.language-switch { display: flex; align-items: center; gap: .2rem; border: 1px solid var(--line); padding: .2rem; }
.language-switch a { padding: .35rem .5rem; font-size: .8rem; font-weight: 700; text-decoration: none; }
.language-switch a[aria-current="page"] { color: var(--paper); background: var(--ink); }
.language-switch a:hover { text-decoration: underline; }
.hero:focus:not(:focus-visible) { outline: none; }
.hero__visual { display: grid; }
.hero__visual::before { inset: -12%; background: radial-gradient(ellipse at center,rgba(23,26,27,.98) 28%,rgba(23,26,27,.9) 47%,rgba(23,26,27,0) 70%); }
.hero__visual::after { content: ''; width: 42px; height: 4px; position: absolute; bottom: 0; right: 15%; transform: skew(-18deg); background: #ff5aa5; box-shadow: -48px 0 #20d9c5,-96px 0 #d7ff3f; }
.project-figure { margin: -1.8rem -1.8rem 1.5rem; }
.project-figure img,.detail-figure img { display: block; width: 100%; height: auto; }
.project-figure figcaption { padding: .7rem 1rem; background: var(--ink); color: var(--paper); font-size: .8rem; line-height: 1.5; }
.project-figure figcaption span { display: block; color: #afb7bb; font-size: .75rem; }
.detail-figure { margin: 2rem 0; max-width: 640px; }
.detail-figure figcaption { font-size: .875rem; color: var(--muted); margin-top: .6rem; }
.project-card:nth-child(2):hover { border-left-color: #20d9c5; }
.project-card:nth-child(3):hover { border-left-color: #ff5aa5; }
@media (max-width: 1050px) { .project-figure { margin: -1.25rem -1.25rem 1.25rem; } }
@media (max-width: 760px) { .site-header .language-switch { width: auto; order: 0; margin-left: auto; } .site-header > nav { order: 1; } .project-figure { margin: -1.5rem -1.5rem 1.5rem; } }

/* GLB playground */
.playground { max-width:1500px; margin:auto; padding:24px clamp(16px,3vw,48px); }
.playground-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.playground h1 {font-size:clamp(30px,4vw,48px);margin:0;}
.playground .eyebrow {margin:0 0 4px;}
.explorer-frame {display:block;width:100%;height:76vh;min-height:600px;border:2px solid var(--ink,#202326);background:#202326;}
.explorer-note {font-size:14px;}
@media(max-width:640px){.explorer-frame{height:82vh;min-height:650px;}.playground{padding:20px 12px;}}

/* Official branding masters: preserve artwork, colors and aspect ratio. */
.wordmark {display:block;flex:0 0 auto;line-height:0;}
.wordmark img {display:block;width:160px;height:auto;}
.footer-brand {display:flex;align-items:center;gap:16px;}
.footer-brand img {display:block;width:140px;height:auto;}
.footer-brand span {margin-left:0;}
.hero__visual .brand-master {filter:none;transform:none;opacity:1;mix-blend-mode:normal;}
.intro-video-caption img {display:block;width:200px;max-width:55vw;height:auto;margin:auto;}

/* Blend the original white-backed artwork into the surrounding surface. */
.wordmark img, .footer-brand img, .intro-video-caption img {mix-blend-mode:multiply;}
.hero__visual::before {inset:-15%;background:radial-gradient(ellipse at center,#f2eee5 25%,rgba(242,238,229,.92) 45%,rgba(242,238,229,0) 72%);}
.hero__visual .brand-master {position:relative;mix-blend-mode:multiply;}
.intro-video-caption {background:#f2eee5;}

.playground-promo {margin:2rem 0;padding:clamp(1.25rem,3vw,2rem);border:1px solid var(--line);border-left:6px solid #ff671d;background:rgba(242,238,229,.94);}
.playground-promo h2 {margin-top:.5rem;}
.playground-promo .button {white-space:normal;}

/* A soft oval edge integrates the master artwork without a rectangular panel. */
.hero__visual .brand-master {
  -webkit-mask-image: radial-gradient(ellipse 70% 95% at 50% 50%, #000 53%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 95% at 50% 50%, #000 53%, transparent 72%);
}
.hero__visual::before {
  inset:-10%;
  background:radial-gradient(ellipse at center,rgba(242,238,229,.97) 20%,rgba(242,238,229,.75) 42%,rgba(242,238,229,0) 70%);
}

/* Make the interactive model discoverable in the first screen. */
.hero-playground {margin-top:1.5rem;padding:1.2rem 1.3rem;border:1px solid rgba(32,35,38,.2);border-left:4px solid var(--orange);background:rgba(242,238,229,.94);}
.hero-playground .eyebrow {margin:0 0 .5rem;font-size:.75rem;}
.hero-playground h2 {margin:0;font-size:clamp(1.3rem,2.1vw,1.7rem);}
.hero-playground > p:not(.eyebrow) {margin:.6rem 0 1rem;max-width:48ch;font-size:1rem;line-height:1.5;}
.hero-playground .hero-actions {gap:.9rem 1.2rem;}
@media(max-width:540px){.hero-playground{padding:1rem;}.hero-playground .button{width:100%;}}

/* Uneven cut edges echo the painted checkerboard. */
.project-card {
  border:0;
  border-left:5px solid var(--orange);
  clip-path:polygon(0 2%,18% 0,39% 1.2%,64% 0,83% 1.6%,98% .4%,100% 23%,98.6% 47%,100% 72%,98% 99%,76% 98%,51% 100%,29% 98.7%,1% 100%,0 76%,1.2% 52%,0 26%);
}
.project-card:nth-child(2) {
  clip-path:polygon(1% 0,24% 1.7%,47% .3%,72% 2%,99% 0,98.8% 27%,100% 51%,98.5% 77%,100% 98%,79% 100%,54% 98.5%,31% 100%,0 98%,1.1% 72%,0 43%);
}
.project-card:nth-child(3) {
  clip-path:polygon(0 1%,23% 0,43% 1.8%,67% .4%,98% 2%,100% 29%,98.7% 55%,100% 79%,98% 100%,75% 98.4%,48% 100%,22% 98%,1% 99%,0 71%,1.5% 39%);
}
.project-card:focus-visible {outline:3px solid var(--blue);outline-offset:-9px;}
@media(prefers-reduced-motion:reduce){.project-card{transition:none;}.project-card:hover{transform:none;}}

/* Fine outlines follow each irregular card silhouette. */
.project-card {position:relative;}
.project-card::after {content:"";position:absolute;inset:2px;pointer-events:none;z-index:2;background-size:100% 100%;background-repeat:no-repeat;}
.project-card:nth-child(1)::after {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpolygon%20points%3D%220%2C2%2018%2C0%2039%2C1.2%2064%2C0%2083%2C1.6%2098%2C.4%20100%2C23%2098.6%2C47%20100%2C72%2098%2C99%2076%2C98%2051%2C100%2029%2C98.7%201%2C100%200%2C76%201.2%2C52%200%2C26%22%20fill%3D%22none%22%20stroke%3D%22%23202326%22%20stroke-opacity%3D%22.3%22%20stroke-width%3D%221%22%20vector-effect%3D%22non-scaling-stroke%22%2F%3E%3C%2Fsvg%3E");}
.project-card:nth-child(2)::after {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpolygon%20points%3D%221%2C0%2024%2C1.7%2047%2C.3%2072%2C2%2099%2C0%2098.8%2C27%20100%2C51%2098.5%2C77%20100%2C98%2079%2C100%2054%2C98.5%2031%2C100%200%2C98%201.1%2C72%200%2C43%22%20fill%3D%22none%22%20stroke%3D%22%23202326%22%20stroke-opacity%3D%22.3%22%20stroke-width%3D%221%22%20vector-effect%3D%22non-scaling-stroke%22%2F%3E%3C%2Fsvg%3E");}
.project-card:nth-child(3)::after {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpolygon%20points%3D%220%2C1%2023%2C0%2043%2C1.8%2067%2C.4%2098%2C2%20100%2C29%2098.7%2C55%20100%2C79%2098%2C100%2075%2C98.4%2048%2C100%2022%2C98%201%2C99%200%2C71%201.5%2C39%22%20fill%3D%22none%22%20stroke%3D%22%23202326%22%20stroke-opacity%3D%22.3%22%20stroke-width%3D%221%22%20vector-effect%3D%22non-scaling-stroke%22%2F%3E%3C%2Fsvg%3E");}

.youtube-section {max-width:1200px;margin:1rem auto 3rem;padding:clamp(1.5rem,4vw,3rem);display:flex;align-items:center;justify-content:space-between;gap:2rem;border-top:2px solid var(--orange);border-bottom:1px solid var(--line);background:rgba(242,238,229,.95);}
.youtube-section h2 {margin:.4rem 0;font-size:clamp(1.8rem,3vw,2.8rem);}
.youtube-section p {max-width:52ch;}
.youtube-section .button {flex-shrink:0;}
@media(max-width:700px){.youtube-section{margin-inline:1.25rem;flex-direction:column;align-items:flex-start;gap:1rem;}}

/* Real project imagery: preserve the complete module silhouette. */
.rig-feature {max-width:1200px;margin:2rem auto 3rem;padding:clamp(1.25rem,4vw,3rem);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(1.5rem,4vw,4rem);}
.rig-feature figure {margin:0;background:#171a1d;color:#f2eee5;}
.rig-feature img {display:block;width:100%;height:420px;object-fit:contain;}
.rig-feature figcaption {padding:1rem;font-size:.8rem;}
.rig-feature h2 {font-size:clamp(2rem,3vw,3rem);margin:.5rem 0 1rem;}
.rig-feature p {line-height:1.6;}
.rig-feature .text-link {display:block;}
.rig-card-figure img {height:220px;object-fit:contain;background:#171a1d;}
.rig-gallery-section {margin:3rem 0;scroll-margin-top:2rem;}
.rig-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;}
.rig-gallery figure {margin:0;border:1px solid var(--line);background:#171a1d;}
.rig-gallery a {display:block;}
.rig-gallery img {display:block;width:100%;height:340px;object-fit:contain;}
.rig-gallery figcaption {padding:1rem;background:var(--paper);font-weight:700;font-size:.95rem;}
.rig-gallery figcaption span {display:block;margin-top:.4rem;font-size:.75rem;font-weight:400;color:var(--muted);}
@media(max-width:700px){.rig-feature{grid-template-columns:1fr;}.rig-feature img{height:350px;}.rig-gallery{grid-template-columns:1fr;}}

.rig-specs {max-width:1200px;margin:2rem auto;padding:clamp(1.25rem,4vw,3rem);}
.rig-specs h2 {font-size:clamp(1.8rem,3vw,2.8rem);}
.rig-specs-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:2rem 0 1rem;}
.rig-specs-grid > div {display:flex;flex-direction:column;padding:1.2rem;background:var(--ink);color:var(--paper);border-top:4px solid var(--orange);}
.rig-specs-grid dt {order:2;margin-top:.8rem;font-size:.9rem;}
.rig-specs-grid dd {margin:0;}
.spec-qualifier {display:block;font-size:.8rem;margin-bottom:.65rem;}
.rig-specs-grid strong {font:700 clamp(2.4rem,4vw,3.8rem)/1 var(--sport);color:var(--orange);}
.spec-unit {font-size:1rem;white-space:nowrap;}
.rig-specs-note {font-size:.85rem;line-height:1.6;color:var(--muted);max-width:90ch;}
.rig-specs-diy {margin-top:1.5rem;border-left:4px solid var(--blue);padding:1rem 1.3rem;background:rgba(242,238,229,.95);}
.rig-specs-diy > strong {font-size:1.2rem;}.rig-specs-diy p {margin:.6rem 0;}.rig-specs-diy .text-link{margin-top:.3rem;}
@media(max-width:850px){.rig-specs-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:380px){.rig-specs-grid{grid-template-columns:1fr;}}

.control-box-card img {height:220px;object-fit:contain;background:#bfc3c6;}
.control-box-section {margin:2rem 0 3rem;}
.control-box-gallery figure,.control-box-gallery a {background:#bfc3c6;}
.control-box-gallery img {height:460px;object-fit:contain;}
@media(max-width:700px){.control-box-gallery img{height:400px;}}

.adapter-card img {height:220px;object-fit:contain;background:#171a1d;}
.adapter-section {margin:2rem 0 3rem;}
.adapter-gallery img {height:460px;object-fit:contain;}
.adapter-note {font-size:.85rem;line-height:1.6;color:var(--muted);}
@media(max-width:700px){.adapter-gallery img{height:400px;}}

.core-features {margin:2rem 0 3rem;}
.core-feature-note {font-size:.85rem;line-height:1.6;color:var(--muted);}


.core-specs-grid strong {font-size:clamp(2rem,3.4vw,3rem);}

.rig-specs-overview {margin:1.5rem 0 0;border:1px solid rgba(32,35,38,.2);border-top:4px solid var(--orange);background:var(--paper);}
.rig-specs-overview a {display:block;}
.rig-specs-overview img {display:block;width:100%;height:auto;max-height:520px;object-fit:contain;padding:clamp(.5rem,2vw,1.5rem);}
.rig-specs-overview figcaption {padding:.8rem 1rem;border-top:1px solid rgba(32,35,38,.15);font-size:.85rem;color:var(--muted);}
