@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Rey brand primitives. Cyan and amber are accents, never light-surface body text. */
:root {
  color-scheme: light;
  --navy: #0B1F33;
  --blue: #1565C0;
  --cyan: #00A8E8;
  --amber: #F5A623;
  --red: #E53935;
  --white: #FFFFFF;
  --neutral: #F7F9FC;
  --neutral-secondary: #E9EEF4;
  --text: #334155;
  --muted: #526379;
  --border: #D4DEE9;
  --control-border: #7B8EA5;
  --blue-soft: #EDF6FC;
  --amber-soft: #FFF5DF;
  --amber-hover: #FFB83E;
  --on-navy: #DCE7F2;
  --radius: 10px;
  --shadow: 0 8px 28px rgb(11 31 51 / 5%);
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-heading: 'Space Grotesk', Arial, sans-serif;
}

/* Base and accessible interaction states */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--white); color: var(--text); font: 16px/1.7 var(--font-body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 5px;
}
.skip { position: absolute; top: -100px; left: 20px; padding: 12px; background: var(--amber); color: var(--navy); z-index: 10; }
.skip:focus { top: 10px; }
h1, h2, h3 { color: var(--navy); font-family: var(--font-heading); font-weight: 500; }
h2 { font-size: clamp(32px, 3vw, 46px); line-height: 1.18; letter-spacing: -1.5px; margin: 0; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.5px; }
em { font-style: normal; color: var(--blue); }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: 1.5px; font-weight: 650; margin: 0 0 24px; }

/* Header retains all navigation on small screens. */
.header { max-width: 1440px; margin: auto; min-height: 104px; padding: 22px 5%; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); font: 700 29px/1 var(--font-heading); letter-spacing: -1px; }
.brand-mark { width: 43px; height: 43px; border-radius: 5px; background: var(--amber); color: var(--navy); font-size: 42px; line-height: 36px; padding-left: 9px; position: relative; }
.brand-mark span { font-size: 23px; position: absolute; right: 3px; top: -1px; }
.brand-sub { display: block; font: 600 10px/1.5 var(--font-body); letter-spacing: 2.5px; margin-top: 6px; }
nav { display: flex; gap: 30px; font-size: 14px; font-weight: 550; color: var(--navy); }
nav a { padding: 10px 0; }
nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.nav-cta, .button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 48px; padding: 13px 20px; font-size: 14px; font-weight: 650; border: 1px solid transparent; border-radius: 6px; transition: background .18s, border-color .18s, transform .18s; }
.nav-cta, .primary { background: var(--amber); color: var(--navy); }
.nav-cta:hover, .primary:hover { background: var(--amber-hover); transform: translateY(-2px); }
.secondary { color: var(--blue); background: var(--white); border-color: var(--blue); }
.secondary:hover { background: var(--blue-soft); transform: translateY(-2px); }

/* Bright hero; restrained blueprint grid sits behind the engineering explorer. */
.hero { max-width: 1440px; margin: auto; padding: 76px 5% 72px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 6%; align-items: center; background: radial-gradient(ellipse at 90% 40%, rgb(0 168 232 / 6%), transparent 55%); }
.tiny-cross { background: var(--amber); color: var(--navy); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 3px; font-size: 18px; }
.hero h1 { font-size: clamp(42px, 4.6vw, 68px); line-height: 1.09; letter-spacing: -3px; margin: 0 0 28px; }
.mobile-break { display: none; }
.intro { color: var(--text); font-size: 17px; max-width: 510px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 32px 0; }
.hero-foot { font-size: 12px; letter-spacing: .8px; color: var(--muted); line-height: 2; }
.hero-foot span { margin: 0 5px; color: var(--blue); }
.system { border: 1px solid var(--border); border-top: 4px solid var(--navy); border-radius: var(--radius); background-color: var(--white); background-image: linear-gradient(rgb(21 101 192 / 3%) 1px, transparent 1px), linear-gradient(90deg, rgb(21 101 192 / 3%) 1px, transparent 1px); background-size: 24px 24px; box-shadow: 0 18px 50px rgb(11 31 51 / 8%); padding: 24px 28px; }
.system-heading, .system-bottom { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .8px; color: var(--muted); }
.system-heading { border-bottom: 1px solid var(--border); padding-bottom: 16px; color: var(--navy); font-weight: 600; }
.mono { color: var(--blue); }
.system-title { color: var(--navy); font: 500 28px/1.3 var(--font-heading); letter-spacing: -.7px; margin: 24px 0; }
.system-title span { color: var(--blue); }
.architecture { position: relative; display: grid; gap: 13px; }
.track { position: absolute; left: 34px; top: 20px; bottom: 20px; width: 2px; background: var(--cyan); }
.node { z-index: 1; display: flex; align-items: center; gap: 16px; text-align: left; background: var(--white); border: 1px solid var(--control-border); border-radius: 6px; padding: 13px 16px; width: 100%; transition: background .18s, box-shadow .18s; }
.node:hover { background: var(--blue-soft); box-shadow: 0 2px 10px rgb(21 101 192 / 10%); }
.node.active { border-color: var(--navy); border-left: 5px solid var(--amber); padding-left: 12px; background: var(--amber-soft); }
.node-icon { font: 30px/1 monospace; color: var(--blue); width: 35px; flex-shrink: 0; }
.node small { display: block; font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.node b { margin-left: auto; font-weight: 400; color: var(--blue); }
.node span:nth-child(2) { font-size: 16px; color: var(--navy); font-weight: 550; }
.system-detail { min-height: 133px; margin-top: 24px; border-radius: 6px; padding: 17px 18px; background: var(--navy); border-top: 2px solid var(--cyan); }
.system-detail > span { font-size: 12px; letter-spacing: 1px; color: var(--amber); font-weight: 600; }
.system-detail p { font-size: 14px; color: var(--on-navy); line-height: 1.65; margin: 8px 0 0; }
.system-bottom { font-size: 12px; letter-spacing: 0; padding-top: 18px; flex-wrap: wrap; }

/* Section rhythm and six equal solution cards. */
.principles { background: var(--navy); color: var(--white); padding: 28px 5%; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.principles > span { font-size: 12px; color: var(--on-navy); letter-spacing: 1px; border-left: 3px solid var(--amber); padding-left: 14px; }
.principles p { margin: 0; font: 500 20px/1.4 var(--font-heading); }
.section { margin: auto; padding: 86px max(5%, calc((100vw - 1296px) / 2)); }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 40px; }
.section-heading > p { max-width: 350px; color: var(--muted); font-size: 16px; margin: 0; }
.section-heading .eyebrow::before, .project > .eyebrow::before { content: ''; display: inline-block; width: 18px; height: 3px; background: var(--amber); margin-right: 10px; vertical-align: middle; }
.solutions { background: var(--neutral); }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution-grid article { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); transition: border-color .18s, transform .18s; }
.solution-grid article:hover { border-color: var(--blue); transform: translateY(-3px); }
.card-top { display: flex; justify-content: space-between; align-items: center; color: var(--navy); font-family: var(--font-heading); }
.card-top span:first-child { font-size: 14px; background: var(--amber-soft); border-bottom: 2px solid var(--amber); padding: 2px 8px; }
.card-top span:last-child { font-size: 26px; color: var(--blue); }
.solution-grid p { font-size: 16px; line-height: 1.75; color: var(--text); }
.card-tag { font-size: 12px; letter-spacing: .7px; color: var(--muted); display: block; margin-top: 24px; border-top: 1px solid var(--neutral-secondary); padding-top: 16px; }
.applications { background: var(--white); }
.application-tabs { display: flex; border-bottom: 1px solid var(--control-border); gap: 32px; }
.application-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 16px 2px; font-size: 14px; color: var(--muted); min-height: 48px; }
.application-tabs button:hover { color: var(--blue); background: var(--neutral); }
.application-tabs button[aria-selected=true] { border-bottom-color: var(--blue); color: var(--blue); font-weight: 650; }
.application-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; padding-top: 40px; }
.application-panel h3 { font-size: 34px; letter-spacing: -1px; margin: 0 0 20px; }
.application-panel p:not(.eyebrow) { color: var(--text); max-width: 470px; font-size: 16px; }
.application-engineering { padding: 26px 30px; background: var(--blue-soft); border: 1px solid var(--border); border-top: 3px solid var(--cyan); border-radius: var(--radius); }
.flow { display: grid; text-align: center; }
.flow span { padding: 11px 14px; background: var(--white); border: 1px solid var(--control-border); border-radius: 5px; font-size: 14px; color: var(--navy); }
.flow b { color: var(--blue); font-size: 21px; font-weight: 400; line-height: 1.6; }
.application-panel p.application-note { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.approach { background: var(--neutral); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.steps article { border-top: 2px solid var(--border); padding-top: 25px; }
.steps article > span { font-size: 12px; letter-spacing: 1.4px; color: var(--blue); font-weight: 600; }
.steps p { color: var(--text); font-size: 16px; }
.project { background: var(--white); }
.project-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.project-heading h2 { font-size: clamp(36px, 4vw, 60px); }
.project-heading > p { max-width: 340px; color: var(--text); }
details { margin-top: 32px; border: 1px solid var(--control-border); border-left: 4px solid var(--amber); border-radius: 6px; background: var(--neutral); }
summary { cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 16px; font-weight: 600; color: var(--navy); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary:hover { background: var(--neutral-secondary); }
summary span { color: var(--blue); font-size: 24px; line-height: 1; }
details[open] summary span { transform: rotate(45deg); }
.brief { color: var(--text); padding: 0 22px 20px; font-size: 16px; }
footer { padding: 38px 5%; display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: var(--white); gap: 24px; }
footer .brand { font-size: 22px; color: var(--white); }
.footer-brand { font-size: 12px; letter-spacing: 1px; }
footer p, footer > a:last-child { font-size: 14px; color: var(--on-navy); }
footer a:focus-visible { outline-color: var(--cyan); }
footer > a:last-child:hover { text-decoration: underline; }

/* Concept render and the existing interactive engineering layers. */
.hero { grid-template-columns: 1fr 1.15fr; row-gap: 48px; }
.hero-visual { margin: 0; min-width: 0; }
.hero-visual img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.hero-visual figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--navy); font-size: 12px; margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.hero-visual figcaption span { color: var(--muted); }
.hero .system { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.hero .system-heading, .hero .architecture, .hero .system-bottom { grid-column: 1 / -1; }
.hero .system-title { margin: 0; }
.hero .architecture { grid-template-columns: repeat(4, 1fr); grid-row: 3; gap: 16px; }
.hero .track { left: 20px; right: 20px; top: 50%; bottom: auto; height: 2px; width: auto; }
.hero .node { gap: 10px; padding: 14px 12px; }
.hero .node.active { padding-left: 8px; }
.hero .node-icon { font-size: 26px; width: 28px; }
.hero .node small { font-size: 11px; letter-spacing: .6px; }
.hero .system-detail { margin: 0; min-height: 110px; }
.hero .system-bottom { padding-top: 0; }
@media (max-width: 1050px) {
  .hero .architecture { grid-template-columns: repeat(2, 1fr); }
  .hero .track { display: none; }
}
@media (max-width: 760px) {
  .hero .system { display: block; }
  .hero .system-title { margin: 22px 0; }
  .hero .architecture { grid-template-columns: 1fr; }
  .hero .system-detail { margin-top: 22px; }
  .hero .system-bottom { margin-top: 18px; }
  .hero .node small { font-size: 12px; }
}

/* Responsive refinements preserve the existing section order and controls. */
@media (min-width: 1500px) {
  .principles, footer { padding-left: calc((100vw - 1296px) / 2); padding-right: calc((100vw - 1296px) / 2); }
}
@media (max-width: 1050px) {
  .header { gap: 18px; }
  nav { gap: 18px; }
  .nav-cta { gap: 10px; }
  .hero { gap: 4%; padding-top: 50px; }
  .hero h1 { letter-spacing: -2px; }
  .system { padding: 22px; }
  .principles p { font-size: 17px; }
  .solution-grid { gap: 16px; }
  .solution-grid article { padding: 22px; }
  .section-heading > p { max-width: 290px; }
}
@media (max-width: 760px) {
  .header { flex-wrap: wrap; padding: 20px 6% 10px; gap: 12px; }
  .brand { font-size: 24px; }
  .brand-mark { width: 36px; height: 36px; font-size: 35px; line-height: 30px; }
  .brand-sub { font-size: 9px; }
  .nav-cta { padding: 10px 12px; font-size: 13px; gap: 8px; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; border-top: 1px solid var(--neutral-secondary); padding-top: 6px; }
  nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .hero { grid-template-columns: 1fr; padding: 42px 6% 48px; gap: 34px; }
  .hero h1 { font-size: clamp(38px, 8vw, 58px); letter-spacing: -1.8px; }
  .hero .eyebrow { font-size: 12px; letter-spacing: .8px; }
  .intro { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
  .button { padding: 13px 12px; font-size: 14px; gap: 12px; text-align: center; }
  .hero-foot { font-size: 12px; }
  .system-title { font-size: 27px; }
  .system-detail { min-height: 130px; }
  .principles { padding: 26px 6%; flex-wrap: wrap; gap: 16px 22px; }
  .principles > span { width: 100%; }
  .principles p { font-size: 16px; }
  .section { padding: 56px 6%; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading > p { max-width: 100%; margin-top: 22px; }
  h2 { font-size: 34px; letter-spacing: -1px; }
  .eyebrow { font-size: 12px; margin-bottom: 18px; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid h3 { font-size: 22px; }
  .application-tabs { gap: 12px; }
  .application-tabs button { flex: 1; text-align: left; font-size: 14px; }
  .application-panel { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
  .application-panel h3 { font-size: 29px; }
  .application-engineering { padding: 24px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps h3 { margin: 15px 0; }
  .project-heading { display: block; }
  .project-heading h2 { font-size: 39px; }
  .project-heading > p { max-width: 100%; }
  footer { flex-wrap: wrap; padding: 30px 6%; }
  footer p { order: 3; width: 100%; margin: 0; }
}
@media (max-width: 480px) {
  .hero-actions, .solution-grid { grid-template-columns: 1fr; }
  .hero-actions .button { justify-content: space-between; }
  .system { padding: 20px; }
  .node { gap: 12px; }
  .node small { letter-spacing: .6px; }
  .system-heading { letter-spacing: .3px; }
  .solution-grid article { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Solution-to-brief flow preserves the recovered visual system. */
.solution-link { display: block; margin-top: 22px; color: var(--blue); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
#brief-form { max-width: 800px; }
#brief-form label { display: block; margin: 22px 0 8px; color: var(--navy); font-weight: 600; }
#brief-form select, #brief-form textarea { width: 100%; min-height: 48px; border: 1px solid var(--control-border); border-radius: 6px; padding: 12px; background: var(--white); color: var(--text); font: inherit; }
#brief-form textarea { resize: vertical; }
#brief-form select:focus-visible, #brief-form textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.brief-guidance { margin-top: 24px; border-left: 4px solid var(--amber); padding: 4px 20px; background: var(--neutral); }
.brief-guidance h3 { font-size: 18px; margin-bottom: 8px; }
#brief-status { min-height: 1.7em; color: var(--navy); }
#download-brief:disabled { opacity: .6; cursor: not-allowed; }
/* Official supplied logo; crop only the surrounding blank canvas in CSS. */
.official-logo { display: block; position: relative; overflow: hidden; width: 176px; height: 128px; flex-shrink: 0; background: #fff; }
.official-logo img { position: absolute; width: 220px; height: 220px; max-width: none; left: -22px; top: -47px; }
.header > .brand { flex-shrink: 0; }
@media (max-width: 480px) {
  .header .official-logo { width: 132px; height: 96px; }
  .header .official-logo img { width: 165px; height: 165px; left: -16.5px; top: -35.25px; }
}
/* Equipment illustrations support the explanation without replacing its controls. */
.solution-illustration { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:contain; margin:12px 0 24px; border-radius:6px; background:#fff; }
.illustration-note { color:var(--muted); font-size:14px; margin: -12px 0 26px; }
.hero .system-title { grid-column:1/-1; }
.hero .architecture { grid-row:3; }
.hero .explorer-visual { grid-column:1; grid-row:4; margin:0; background:#fff; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.explorer-visual img { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:contain; }
.explorer-visual figcaption { padding:14px 18px; color:var(--muted); font-size:14px; border-top:1px solid var(--border); }
.hero .system-detail { grid-column:2; grid-row:4; align-self:center; padding:28px; }
.hero .system-detail p { font-size:17px; }
.hero .system-bottom { grid-row:5; }
.footer-name { color:var(--white); font:600 18px/1.4 var(--font-heading); letter-spacing:1px; }
@media(max-width:760px) {
 .hero .explorer-visual { margin-top:24px; }
 .hero .system-detail { padding:20px; }
 .hero .system-detail p { font-size:16px; }
 .illustration-note { margin-top:0; }
}
/* Supported platform names are text, not partner endorsements. */
.platform-support { margin:24px 0; padding-top:18px; border-top:1px solid var(--border); }
.platform-support h4 { font-size:14px; line-height:1.5; color:var(--navy); margin:0 0 12px; }
.platform-support ul { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0; }
.platform-support li { font-size:13px; line-height:1.5; padding:5px 9px; border:1px solid var(--border); border-radius:4px; background:var(--neutral); color:var(--navy); }
.solution-grid .platform-support p { font-size:14px; margin:12px 0 0; }
.reytrace-product img { display:block; width:100%; max-width:250px; height:auto; }
.reytrace-product a { display:inline-block; margin-top:12px; color:var(--blue); font-size:14px; text-decoration:underline; text-underline-offset:4px; }

/* Public project contact remains readable on narrow screens. */
.project-contact { margin: 24px 0; }
.project-contact a, footer a { overflow-wrap: anywhere; }

/* Real customer deployment uses the existing Rey visual system. */
.real-deployment { display:grid; grid-template-columns:1.1fr 1fr; gap:40px; align-items:center; margin-top:56px; padding-top:40px; border-top:1px solid var(--border); }
.real-deployment figure { margin:0; min-width:0; }
.real-deployment img { display:block; width:100%; height:auto; border-radius:var(--radius); border:1px solid var(--border); }
.real-deployment figcaption { margin-top:12px; color:var(--muted); font-size:12px; }
.deployment-copy { min-width:0; }
.deployment-copy h3 { font-size:clamp(25px,2.3vw,34px); line-height:1.2; letter-spacing:-.6px; margin:0 0 20px; }
.deployment-copy > p:not(.eyebrow) { color:var(--text); font-size:16px; line-height:1.75; }
@media(max-width:760px) { .real-deployment { grid-template-columns:1fr; gap:24px; margin-top:36px; padding-top:28px; } }

/* Company identity and service detail pages share the existing Rey design. */
.company-context { color:var(--muted); font-size:14px; margin:20px 0 0; }
.company-summary { background:var(--white); border-top:1px solid var(--border); }
.company-summary h2 { max-width:740px; }
.content-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.content-cards article { padding:26px; border:1px solid var(--border); border-radius:var(--radius); background:var(--neutral); }
.content-cards h3 { margin-top:0; }
.content-cards a { display:block; margin-top:16px; color:var(--blue); text-decoration:underline; text-underline-offset:4px; }
.service-intro { background:var(--neutral); padding-top:60px; padding-bottom:60px; }
.service-intro h1 { font-family:var(--font-heading); font-size:clamp(36px,4.5vw,64px); line-height:1.12; letter-spacing:-1.5px; max-width:1000px; margin:0 0 26px; }
.service-intro .intro { max-width:850px; margin-bottom:30px; }
.service-content { max-width:1050px; margin:auto; padding:0 6% 70px; color:var(--text); }
.content-section { padding-top:48px; }
.content-section h2 { font-size:clamp(27px,3vw,38px); letter-spacing:-.6px; }
.content-section p,.content-section li { font-size:17px; line-height:1.8; }
.content-section li { margin-bottom:12px; }
.content-section a { color:var(--blue); overflow-wrap:anywhere; }
.content-section a.button { color:var(--navy); }
.service-photo { margin:28px 0; }
.service-photo img { display:block; width:100%; height:auto; border-radius:var(--radius); }
.service-photo figcaption { font-size:13px; color:var(--muted); margin-top:12px; }
.service-question { margin-top:16px; }
.service-question p { padding:0 22px 20px; margin:0; }
@media(max-width:760px){ .content-cards { grid-template-columns:1fr; } .service-intro { padding-top:40px; padding-bottom:40px; } .service-content { padding-bottom:48px; } .content-section { padding-top:32px; } }

/* Actual custom automation project: retain full equipment views. */
#ball-dispensing figure img { max-height:580px; object-fit:contain; background:var(--neutral); }
.case-content { max-width:1240px; }
.case-overview { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.case-overview .service-photo { margin:0; }
.case-overview img { max-height:680px; object-fit:contain; background:var(--neutral); }
.case-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-top:28px; }
.case-gallery figure { margin:0; min-width:0; }
.case-gallery img { display:block; width:100%; height:auto; border-radius:var(--radius); border:1px solid var(--border); }
.case-gallery figcaption { margin-top:12px; font-size:13px; line-height:1.65; color:var(--muted); }
.case-gallery a:focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
@media(max-width:760px) { .case-overview { grid-template-columns:1fr; gap:28px; } .case-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; } }
@media(max-width:480px) { .case-gallery { grid-template-columns:1fr; } }

/* Production vision case study and accessible portrait video. */
.case-gallery-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.vision-video-section { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.case-video { margin:0; min-width:0; }
.case-video video { display:block; width:100%; height:auto; max-height:720px; object-fit:contain; background:var(--navy); border-radius:var(--radius); }
.case-video figcaption { margin-top:12px; font-size:13px; line-height:1.65; color:var(--muted); }
#vision-real-deployment img { max-height:580px; object-fit:contain; background:var(--neutral); }
@media(max-width:760px){ .vision-video-section { grid-template-columns:1fr; gap:24px; } }
@media(max-width:480px){ .case-gallery-two { grid-template-columns:1fr; } }

/* Customer projects lead with actual equipment and clear next steps. */
.customer-projects { background:var(--neutral); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.project-grid article { min-width:0; background:var(--white); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.project-photo { display:block; overflow:hidden; background:var(--neutral-secondary); }
.project-photo img { display:block; width:100%; height:280px; object-fit:cover; transition:transform .2s; }
.project-photo:hover img { transform:scale(1.025); }
.project-grid article > div { padding:26px; }
.project-grid .eyebrow { margin-bottom:14px; letter-spacing:1px; }
.project-grid h3 { font-size:25px; line-height:1.25; margin:0 0 16px; }
.project-grid p { margin-top:0; }
.project-grid .solution-link { margin-top:20px; }
.eyebrow { letter-spacing:1px; }
.service-intro .intro { line-height:1.8; }
@media(max-width:1050px){ .project-grid { gap:18px; } .project-grid article > div { padding:22px; } }
@media(max-width:760px){ .project-grid { grid-template-columns:1fr; } .project-photo img { height:320px; } .header nav { flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce){ .project-photo img { transition:none; } .project-photo:hover img { transform:none; } }

/* Long-form retrofit article and readable before/after comparison. */
.retrofit-intro h1 { font-size:clamp(34px,3.4vw,52px); max-width:1100px; line-height:1.17; }
.case-metadata { max-width:1000px; font-size:15px; color:var(--text); }
.case-byline { margin-top:20px; font-size:13px; color:var(--muted); }
.retrofit-content { max-width:1020px; }
.article-jump { display:flex; flex-wrap:wrap; gap:24px; padding:26px 0; border-bottom:1px solid var(--border); }
.article-jump a { color:var(--blue); text-decoration:underline; text-underline-offset:4px; }
.case-article { padding-top:24px; }
.case-article h2 { margin:44px 0 20px; font-size:clamp(27px,3vw,36px); letter-spacing:-.5px; }
.case-article h3 { margin-top:30px; }
.case-article p { font-size:18px; line-height:1.85; margin:0 0 22px; }
.comparison-wrap { overflow-x:auto; margin:24px 0; border:1px solid var(--border); border-radius:var(--radius); }
.retrofit-comparison { width:100%; border-collapse:collapse; font-size:16px; line-height:1.65; }
.retrofit-comparison caption { text-align:left; padding:18px; color:var(--muted); font-size:13px; background:var(--neutral); }
.retrofit-comparison th { text-align:left; background:var(--navy); color:white; width:50%; }
.retrofit-comparison th,.retrofit-comparison td { padding:16px 18px; vertical-align:top; border-bottom:1px solid var(--border); }
.retrofit-comparison tr:last-child td { border-bottom:0; }
.retrofit-comparison td:nth-child(2) { background:var(--blue-soft); }
.retrofit-feature { margin:40px 0 0; padding:28px; border-left:4px solid var(--amber); border-radius:var(--radius); background:var(--neutral); }
.retrofit-feature h3 { font-size:27px; margin:0 0 18px; }
.retrofit-feature .eyebrow { margin-bottom:14px; }
.retrofit-feature p { font-size:17px; line-height:1.8; }
@media(max-width:480px){ .case-article p { font-size:17px; } .retrofit-comparison th,.retrofit-comparison td { padding:12px; font-size:14px; overflow-wrap:anywhere; } .article-jump { justify-content:flex-start; } }

.home-articles { border-bottom:1px solid var(--border); scroll-margin-top:100px; }
.home-article-card { display:grid; grid-template-columns:2fr 1fr; gap:44px; padding:36px; background:var(--neutral); border:1px solid var(--border); border-radius:var(--radius); }
.home-article-card h3 { font-size:clamp(25px,2.6vw,36px); line-height:1.3; margin:0 0 20px; }
.home-article-card h3 a { color:var(--navy); text-decoration:none; }
.home-article-card h3 a:hover { color:var(--blue); }
.home-article-card .button { margin-top:12px; }
.article-summary { border-left:1px solid var(--border); padding-left:30px; align-self:center; }
.article-summary span { font-size:12px; letter-spacing:1px; color:var(--muted); }
.article-summary p { font-size:20px; line-height:1.5; color:var(--navy); }
@media(max-width:760px){ .home-article-card { grid-template-columns:1fr; padding:24px; gap:24px; } .article-summary { border-left:0; border-top:1px solid var(--border); padding:20px 0 0; } }
