:root {
  --ink: #111;
  --red: #b21f24;
  --red-dark: #7f1116;
  --dark: #080808;
  --stone: #f4f4f4;
  --muted: #5d5d5d;
  --line: #dedede;
  --shadow: 0 18px 50px rgba(0,0,0,.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, 92vw); margin: auto; }
.skip-link { position: absolute; left: -999px; top: 12px; z-index: 1000; background: #fff; color: #111; padding: .7rem 1rem; }
.skip-link:focus { left: 12px; }
.topbar { background: var(--red-dark); color: #fff; font-size: .86rem; padding: .4rem 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .8rem; min-width: 0; font-weight: 900; }
.brand img { width: auto; height: 42px; max-width: min(240px, 52vw); object-fit: contain; }
.brand strong { white-space: nowrap; }
.links { display: flex; align-items: center; gap: 1rem; font-weight: 800; }
.links a { padding: .35rem 0; border-bottom: 2px solid transparent; }
.links a:hover, .links a:focus-visible, .links a.active { color: var(--red); border-color: var(--red); }
.menu-btn { display: none; position: relative; width: 46px; height: 40px; border: 0; background: var(--ink); color: #fff; border-radius: 3px; padding: 0; font-size: 0; }
.menu-btn:before { content: ""; position: absolute; left: 13px; top: 11px; width: 20px; height: 2px; background: #fff; box-shadow: 0 7px 0 #fff, 0 14px 0 #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .85rem 1.15rem; border: 2px solid transparent; border-radius: 3px; font-weight: 900; }
.btn.primary { background: var(--red); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.hero { position: relative; display: grid; align-items: center; min-height: 82vh; overflow: hidden; background: var(--dark); color: #fff; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.hero.video-failed .hero-video { display: none; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.52), rgba(0,0,0,.48)), radial-gradient(circle at center, rgba(0,0,0,.16), rgba(0,0,0,.58)); }
.hero-content { position: relative; z-index: 2; max-width: 840px; padding: 6rem 0; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kicker, .eyebrow { margin: 0; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero .kicker, .hero .eyebrow, .dark .eyebrow, .dark-hero .eyebrow { color: #ff5a61; }
.hero .kicker { max-width: none; margin: 0 0 .7rem; color: #fff; font-size: clamp(.82rem, 1.25vw, 1rem); }
.hero h1 { margin: 0 0 .65rem; font-size: clamp(3rem, 8vw, 7rem); line-height: .9; letter-spacing: 0; }
.hero p { max-width: 620px; margin: 0 0 1.5rem; color: #f1f1f1; font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 700; }
.hero .hero-subline { max-width: none; margin: 0 0 1.6rem; font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.05; font-weight: 900; }
.section { padding: 4.25rem 0; }
.section.compact { padding: 3.25rem 0; }
.section.stone { background: var(--stone); }
.section.dark, .dark { background: var(--dark); color: #fff; }
.intro-panel { max-width: 920px; }
.intro-panel p { margin: .5rem 0 0; font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.25; font-weight: 800; }
.intro-panel .intro-support { font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.35; color: var(--muted); font-weight: 800; }
.work-cta { display: grid; grid-template-columns: .65fr 1fr; align-items: end; gap: 2rem; }
.work-cta h2, .section-head h2, .page-hero h1, .timeline-band h2, .cta-panel h2 { margin: .25rem 0; font-size: clamp(2rem, 4vw, 4rem); line-height: .98; letter-spacing: 0; }
.work-cta p, .section-head p, .page-hero p, .timeline-band p, .cta-panel p { max-width: 700px; color: var(--muted); }
.timeline-band { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; background: var(--line); }
.timeline li { background: #fff; padding: 1.15rem; }
.timeline b { display: block; color: var(--red); font-size: 1.5rem; line-height: 1; }
.timeline span { display: block; margin-top: .35rem; font-weight: 800; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-head.tight { margin-bottom: 1.1rem; }
.capability-row, .value-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: rgba(255,255,255,.2); }
.capability-row span, .value-grid span { display: block; padding: 1rem; background: #fff; color: var(--ink); font-weight: 900; }
.dark .capability-row span { background: #181818; color: #fff; border-left: 4px solid var(--red); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.75rem; border-left: 5px solid var(--red); background: var(--stone); }
.page-hero { padding: 4.5rem 0; background: var(--stone); }
.dark-hero, .portfolio-hero { background: var(--dark); color: #fff; }
.dark-hero p, .portfolio-hero p { color: rgba(255,255,255,.78); }
.split, .feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 2rem; align-items: start; }
.feature { align-items: center; }
.feature-media { overflow: hidden; border-radius: 6px; box-shadow: var(--shadow); background: #111; }
.feature-media img { width: 100%; height: 390px; object-fit: cover; }
.aside, .contact-box, .service-tile { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem; box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.aside p, .contact-box p, .service-tile p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.service-tile { border-left: 5px solid var(--red); }
.service-tile h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.compact-values { grid-template-columns: repeat(2, minmax(0,1fr)); background: var(--line); }
.portfolio-section { padding: 8px; background: #0d0d0d; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.portfolio-tile { position: relative; min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #111; color: #fff; }
.portfolio-open { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; overflow: hidden; background: #111; color: #fff; cursor: pointer; text-align: left; }
.tile-media { position: absolute; inset: 0; display: block; overflow: hidden; background: #111; }
.tile-image, .tile-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .22s ease, transform .35s ease, filter .35s ease; }
.tile-image.is-active { opacity: 1; }
.tile-video { z-index: 2; pointer-events: none; }
.portfolio-tile.is-video-hover .tile-video { opacity: 1; }
.portfolio-tile.is-video-hover .tile-image { opacity: 0; }
.tile-play-icon { position: absolute; top: .72rem; right: .72rem; z-index: 4; width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.78); background: rgba(0,0,0,.52); box-shadow: 0 8px 20px rgba(0,0,0,.24); pointer-events: none; transition: opacity .18s ease; }
.tile-play-icon::before { content: ""; position: absolute; left: 15px; top: 11px; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid #fff; }
.portfolio-tile.is-video-hover .tile-play-icon { opacity: 0; }
.portfolio-overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: end; gap: .2rem; padding: 1rem; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.78)); opacity: .92; }
.portfolio-overlay span, .portfolio-overlay em { font-size: .75rem; font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.82); font-weight: 800; }
.portfolio-overlay strong { font-size: clamp(1.1rem, 1.7vw, 1.65rem); line-height: 1.05; }
.portfolio-tile:hover .tile-image.is-active, .portfolio-tile:focus-within .tile-image.is-active, .portfolio-tile.is-video-hover .tile-video { transform: scale(1.045); filter: brightness(.78); }
.tile-controls { position: absolute; left: .55rem; right: .55rem; bottom: .55rem; z-index: 5; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.tile-arrow { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; background: rgba(0,0,0,.48); color: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer; pointer-events: auto; }
.tile-counter { display: inline-flex; align-items: center; min-height: 26px; padding: .25rem .48rem; border-radius: 999px; background: rgba(0,0,0,.54); color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .04em; pointer-events: none; }
.portfolio-open:focus-visible, .tile-arrow:focus-visible, .modal-close:focus-visible, .modal-arrow:focus-visible, .image-lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
.project-modal { position: fixed; inset: 0; z-index: 120; display: none; }
.project-modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.86); }
.modal-panel { position: relative; width: min(1180px, 94vw); max-height: 92vh; margin: 4vh auto; overflow: auto; background: #101010; color: #fff; border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow); }
.modal-copy { padding: 1.25rem 1.4rem .8rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: .75rem 2rem; align-items: end; }
.modal-copy h2 { margin: .25rem 0; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: .96; }
.modal-copy p { margin: 0; color: rgba(255,255,255,.72); }
.modal-close { position: sticky; top: 0; float: right; z-index: 5; margin: .75rem .75rem 0 0; border: 0; background: #fff; color: #111; padding: .6rem .8rem; font-weight: 900; cursor: pointer; }
.modal-video { width: 100%; max-height: 68vh; background: #000; }
.modal-slider { position: relative; background: #000; }
.modal-slides { position: relative; min-height: 62vh; aspect-ratio: 16 / 9; }
.modal-slide { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 0; border: 0; background: #000; opacity: 0; pointer-events: none; cursor: zoom-in; }
.modal-slide.is-active { opacity: 1; pointer-events: auto; }
.modal-slide img { width: 100%; height: 100%; object-fit: contain; }
.modal-arrow { position: absolute; top: 50%; z-index: 4; transform: translateY(-50%); width: 44px; height: 58px; border: 0; background: rgba(255,255,255,.92); color: #111; font-size: 2rem; cursor: pointer; }
.modal-arrow.prev { left: 12px; }
.modal-arrow.next { right: 12px; }
.modal-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: .8rem 1rem; color: #fff; font-weight: 900; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); }
.image-lightbox { position: fixed; inset: 0; z-index: 140; display: none; place-items: center; padding: 1rem; background: rgba(0,0,0,.92); }
.image-lightbox.is-open { display: grid; }
.image-lightbox img { max-width: 94vw; max-height: 88vh; box-shadow: var(--shadow); }
.image-lightbox button { position: fixed; top: 16px; right: 16px; border: 0; background: #fff; color: #111; padding: .65rem .9rem; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label span { display: block; margin-bottom: .35rem; font-weight: 900; }
input, textarea { width: 100%; padding: .9rem; border: 1px solid var(--line); border-radius: 3px; }
textarea { min-height: 145px; }
.full { grid-column: 1 / -1; }
.notice { padding: .9rem; border: 1px dashed var(--red); background: #fff5f5; color: #3a1111; border-radius: 6px; }
.footer { background: var(--dark); color: #fff; padding: 2.2rem 0; }
.footer-compact { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer img { width: auto; max-width: 230px; height: 54px; object-fit: contain; background: #fff; border-radius: 3px; padding: .25rem; }
.footer p { margin: .45rem 0; color: #d4dbe6; }
.footer a { color: #fff; }
@media (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .links { display: none; position: absolute; left: 0; right: 0; top: 74px; flex-direction: column; align-items: flex-start; padding: 1rem 4vw; background: #fff; border-bottom: 1px solid var(--line); }
  .links.open { display: flex; }
  .menu-btn { display: block; }
  .brand strong { display: none; }
  .work-cta, .timeline-band, .split, .feature, .footer-compact, .modal-copy { grid-template-columns: 1fr; }
  .capability-row, .value-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { min-height: 72vh; }
  .hero-content { margin: 0 auto; width: min(92vw, 760px); }
}
@media (max-width: 650px) {
  .section, .section.compact, .page-hero { padding: 2.8rem 0; }
  .portfolio-section { padding: 5px; }
  .portfolio-grid { gap: 5px; }
  .portfolio-overlay { padding: .75rem; }
  .timeline, .service-grid, .form-grid { grid-template-columns: 1fr; }
  .modal-panel { width: 100vw; max-height: 100vh; margin: 0; min-height: 100vh; }
  .modal-slides { min-height: 56vh; aspect-ratio: 4 / 3; }
  .modal-arrow { width: 38px; height: 50px; }
  .footer-compact { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
