/* =========================================================
   Shared site chrome + inner-page components
   (home-only styles live in styles.css)
   ========================================================= */
:root { --header-h: 84px; --wrap: 1320px; --radius: 6px; --soft: #f4f4f5; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.anchor { display: block; position: relative; top: calc(-1 * var(--header-h) - 16px); visibility: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  transition: transform .6s var(--ease), background .4s, box-shadow .4s;
}
.site-header.is-solid { background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-logo { display: block; height: 42px; flex-shrink: 0; margin-right: auto; }
.site-logo img { height: 100%; width: auto; transition: transform .6s var(--ease); }
.site-logo:hover img { transform: scale(1.04); }
.site-header .pill { background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.mainnav > ul { display: flex; gap: clamp(14px, 1.8vw, 30px); font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.mainnav > ul > li { position: relative; height: var(--header-h); display: flex; align-items: center; }
.mainnav > ul > li.has-mega { position: static; }
.has-drop > a::after, .has-mega > a::after { content: ""; }
.drop, .mega {
  position: absolute; top: 100%; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .4s var(--ease), visibility 0s .3s;
  background: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35), 0 0 0 1px var(--line);
  text-transform: none; letter-spacing: 0; font-weight: 500;
}
.drop { left: -18px; min-width: 260px; border-radius: 0 0 var(--radius) var(--radius); padding: 10px 0; }
.drop a { display: block; padding: 9px 20px; font-size: 14px; transition: background .2s, padding .3s var(--ease); }
.drop a:hover { background: var(--soft); padding-left: 26px; }
.mega { left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow: auto; }
.mega__inner { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 32px var(--gutter) 40px; max-width: 1600px; margin: 0 auto; }
.mega__all { display: inline-block; margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px 28px; }
.mega__head { display: block; font-weight: 700; font-size: 14px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega__head:hover { color: var(--blue); }
.mega__col li a { display: block; font-size: 13px; color: var(--muted); padding: 3px 0; line-height: 1.35; transition: color .2s, transform .3s var(--ease); }
.mega__col li a:hover { color: var(--ink); transform: translateX(4px); }
.has-drop:hover > .drop, .has-drop:focus-within > .drop,
.has-mega:hover > .mega, .has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.burger { display: none; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 10px 4px; }
.burger__lines { width: 26px; height: 12px; position: relative; }
.burger__lines i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger__lines i:first-child { top: 0; } .burger__lines i:last-child { top: 10px; }
.burger[aria-expanded="true"] .burger__lines i:first-child { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:last-child { top: 5px; transform: rotate(-45deg); }
@media (max-width: 1180px) {
  .mainnav { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 560px) {
  :root { --header-h: 70px; }
  .site-logo { height: 32px; }
  .site-header .pill { display: none; }
}

/* ---------- Overlay menu ---------- */
.overlay-menu { position: fixed; inset: 0; z-index: 55; background: var(--ink); color: #fff; overflow-y: auto; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
.overlay-menu.is-open { clip-path: inset(0 0 0 0); }
body.menu-open .site-header { background: transparent; box-shadow: none; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .site-header .pill { background: #fff; color: var(--ink); }
.overlay-menu__inner { padding: calc(var(--header-h) + 24px) var(--gutter) 40px; max-width: 1100px; }
.om__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #26262a; }
.om__item--d0 > .om__row > a { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 5vw, 52px); letter-spacing: -.03em; padding: 12px 0; line-height: 1.05; }
.om__item--d1 > .om__row > a { font-size: 18px; font-weight: 600; padding: 12px 0 12px 16px; }
.om__item--d2 > .om__row > a { font-size: 15px; color: #b5b5ba; padding: 9px 0 9px 32px; }
.om__row a:hover { color: #7fb0ff; }
.om__toggle { font-size: 26px; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; transition: transform .4s var(--ease), background .3s; }
.om__toggle:hover { background: #1f1f23; }
.om__toggle[aria-expanded="true"] { transform: rotate(45deg); }
.overlay-menu.is-open .om__item--d0 { animation: omIn .8s var(--ease) both; }
.overlay-menu.is-open .om__item--d0:nth-child(2) { animation-delay: .05s; } .overlay-menu.is-open .om__item--d0:nth-child(3) { animation-delay: .1s; }
.overlay-menu.is-open .om__item--d0:nth-child(4) { animation-delay: .15s; } .overlay-menu.is-open .om__item--d0:nth-child(5) { animation-delay: .2s; }
.overlay-menu.is-open .om__item--d0:nth-child(6) { animation-delay: .25s; } .overlay-menu.is-open .om__item--d0:nth-child(n+7) { animation-delay: .3s; }
@keyframes omIn { from { opacity: 0; transform: translateY(40px); } }
.overlay-menu__foot { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; color: #b5b5ba; font-size: 15px; }

/* ---------- Page transition curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 150; background: var(--ink); pointer-events: none; transform: scaleY(0); transform-origin: bottom; }
.curtain.is-in { transform: scaleY(1); transition: transform .5s var(--ease); }
.curtain.is-out { transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease); }

/* ---------- Shared bits ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; position: relative; overflow: hidden; isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--blue); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; border-radius: inherit; }
.btn:hover::before { transform: none; }
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(4px) rotate(-45deg); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--blue); }
.btn.is-disabled { background: var(--soft); color: var(--muted); cursor: default; }

/* ---------- Inner page hero ---------- */
.phero { padding: calc(var(--header-h) + clamp(40px, 8vh, 90px)) var(--gutter) clamp(32px, 6vh, 64px); max-width: var(--wrap); margin: 0 auto; position: relative; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: clamp(20px, 4vh, 36px); }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs [aria-current] { color: var(--ink); }
.phero__title { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 7.2vw, 120px); line-height: 1; letter-spacing: -.04em; max-width: 14ch; }
.phero__title .w { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }
.phero__lead { max-width: 560px; margin-top: 24px; font-size: 20px; color: #3a3a3f; }
.phero__meta { margin-top: clamp(28px, 5vh, 48px); display: flex; justify-content: flex-end; }
.phero__scroll { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.phero__banner { position: relative; height: clamp(260px, 62vh, 720px); margin: 0 var(--gutter); overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.phero__banner img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.phero__banner.is-gl img { opacity: 0; }
.phero__banner--contain { background: #fff; box-shadow: inset 0 0 0 1px var(--line); height: clamp(240px, 52vh, 600px); }
.phero__banner--contain img { inset: 6% 0; height: 88%; object-fit: contain; }

/* ---------- Sections ---------- */
.sec { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 11vh, 120px) var(--gutter) 0; }
.sec:last-of-type { padding-bottom: clamp(72px, 14vh, 160px); }
.sec-title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.2vw, 64px); line-height: 1.04; letter-spacing: -.03em; max-width: 20ch; margin: 0 0 24px; }
.sub-title { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -.02em; margin: 40px 0 16px; max-width: 34ch; }
.sec-title + .sub-title { margin-top: 0; }
.mini-title { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
.f-title { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 18px; }
.sec > .eyebrow, .feature__body .eyebrow { margin-bottom: 12px; color: var(--blue); }

.lead-p { max-width: 760px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; font-weight: 500; color: var(--ink); margin: 0 0 16px; }
.lead-p + .lead-p { color: #3a3a3f; font-weight: 400; }
.prose { max-width: 760px; font-size: 17px; color: #2b2b30; }
.prose > * + * { margin-top: 14px; }
.prose + .prose { margin-top: 14px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--blue); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose li > p { margin: 0; }
.prose h2, .prose h3, .prose h4 { font-size: 18px; margin-top: 24px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

.checks { max-width: 760px; margin-top: 20px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); font-size: 16px; }
.checks li::before { content: "✦"; position: absolute; left: 4px; top: 14px; color: var(--blue); font-size: 13px; }
.checks strong { font-weight: 700; }
.checks a:hover { color: var(--blue); }

/* ---------- Feature rows (media + text) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: clamp(48px, 9vh, 110px); }
.sec > .feature:first-child, .sec > .anchor:first-child + .feature { margin-top: 0; }
.feature--flip .feature__media { order: 2; }
.feature__media { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.feature__body .prose, .feature__body .checks { max-width: none; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__media { position: relative; top: 0; }
}

.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.media img { width: 100%; height: auto; display: block; }
.media.is-gl img { opacity: 0; }
.media--frame { margin-top: 24px; }
.feature__media .media--frame { margin-top: 0; }
.media__cap { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Slider ---------- */
.slider { position: relative; user-select: none; touch-action: pan-y; }
.slider__track { border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.slider__track { display: grid; }
.slider__slide { grid-area: 1 / 1; opacity: 0; transition: opacity .8s var(--ease); position: relative; }
.slider__slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.slider__slide.is-active { opacity: 1; z-index: 1; }
.slider__slide.is-active img { transform: none; }
.slider__slide figcaption { position: absolute; inset: auto 0 0 0; padding: 24px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.slider__ui { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0 0; background: #fff; }
.slider__count { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slider__dots { display: flex; gap: 6px; margin-right: auto; }
.slider__dot { width: 8px; height: 8px; border-radius: 50%; background: #d4d4d8; transition: width .4s var(--ease), background .3s; }
.slider__dot.is-active { width: 24px; border-radius: 999px; background: var(--ink); }
.slider__arrows { display: flex; gap: 6px; }
.slider__arrows button { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; transition: background .3s, color .3s, transform .3s var(--ease); }
.slider__arrows button:hover { background: var(--ink); color: #fff; transform: scale(1.06); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 32px 24px; margin-top: 28px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card__img { overflow: hidden; border-radius: var(--radius); background: var(--soft); aspect-ratio: 4 / 3; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
a.card:hover .card__img img { transform: scale(1.07); }
.card--cutout .card__img { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.card--cutout .card__img img { object-fit: contain; padding: 6%; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.card__cta { display: inline-flex; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.card__cta i { font-style: normal; transition: transform .4s var(--ease); }
a.card:hover .card__cta i { transform: translateX(5px); }
.cards--plain { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.card--plain { padding: 24px 20px 28px 0; border-bottom: 1px solid var(--line); gap: 0; }
.card--plain .card__n { font-size: 12px; font-weight: 600; color: var(--blue); display: block; margin-bottom: 14px; }
.card--plain p { color: #3a3a3f; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 40px 24px; margin-top: 28px; }
.member__img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; background: var(--soft); margin-bottom: 14px; }
.member__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s, transform 1s var(--ease); }
.member:hover .member__img img { filter: none; transform: scale(1.05); }
.member h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.member__job { color: var(--blue); font-size: 14px; font-weight: 600; margin-top: 2px; }
.member__text { color: var(--muted); font-size: 14px; margin-top: 8px; }
.member__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.member__links a, .social a { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.member__links a:hover, .social a:hover { background: var(--ink); color: #fff; box-shadow: none; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Photos / gallery ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 24px; margin-top: 28px; }
.photos--certs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.photo a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.photos--certs .photo img { aspect-ratio: 3 / 4; object-fit: contain; background: #fff; }
.photo a:hover img { transform: scale(1.05); }
.photo figcaption { margin-top: 10px; font-size: 15px; }
.photo figcaption span { display: block; color: var(--muted); font-size: 14px; }
.gallery { columns: 3 260px; column-gap: 16px; margin-top: 28px; }
.gallery__item { display: block; break-inside: avoid; margin-bottom: 16px; overflow: hidden; border-radius: var(--radius); position: relative; background: var(--soft); }
.gallery__item img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: 13px; font-weight: 500; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.gallery__item:hover span, .gallery__item:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .gallery__item span { opacity: 1; transform: none; } }
.logos { overflow: hidden; margin-top: 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__row { display: flex; gap: 56px; width: max-content; align-items: center; animation: slide 50s linear infinite; }
.logos__row img { height: 54px; width: auto; filter: grayscale(1); opacity: .7; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8,8,10,.94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px 8px; color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox figure { display: grid; justify-items: center; gap: 12px; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { font-size: 14px; color: #c8c8cc; text-align: center; }
.lightbox button { width: 48px; height: 48px; border-radius: 50%; font-size: 22px; background: #1d1d21; justify-self: center; transition: background .3s; }
.lightbox button:hover { background: var(--blue); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }

/* ---------- Video ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px 24px; margin-top: 28px; }
.videos--one { grid-template-columns: 1fr; max-width: 900px; }
.feature__media .videos, .feature__media .video { margin-top: 0; }
.video__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.video__frame img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform 1s var(--ease), opacity .4s; }
.video__frame:hover img { transform: scale(1.05); opacity: 1; }
.video__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 22px; padding-left: 4px; transition: transform .5s var(--ease), background .3s, color .3s; }
.video__frame:hover .video__play { transform: scale(1.12); background: var(--blue); color: #fff; }
.video iframe, .video video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; background: #000; }
.video figcaption { margin-top: 10px; font-size: 15px; font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 36px; padding-left: 36px; max-width: 860px; }
.timeline__line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__line i { position: absolute; inset: 0 0 auto 0; height: 100%; background: var(--blue); transform-origin: top; transform: scaleY(var(--p, 0)); }
.timeline li { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 0 0 36px; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--blue); }
.timeline__year { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--blue); }
.timeline__body h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.timeline__body ul { list-style: disc; padding-left: 1.1em; color: #3a3a3f; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Tabs ---------- */
.tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink); width: fit-content; max-width: 100%; margin-top: 8px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; background: #fff; }
.tabs__btn { padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; transition: background .4s var(--ease), color .3s; }
.tabs__btn:hover { background: var(--soft); }
.tabs__btn.is-active { background: var(--ink); color: #fff; }
.tabs__panel { padding-top: 12px; }
@media (max-width: 700px) { .tabs__nav { border-radius: 18px; } }

/* ---------- Event cards ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 48px 28px; margin-top: 28px; }
.event__img { display: block; overflow: hidden; border-radius: var(--radius); background: var(--soft); aspect-ratio: 4 / 3; margin-bottom: 18px; }
.event__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.event__img:hover img { transform: scale(1.05); }
.event__date { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.event h3 { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -.015em; margin-bottom: 10px; }
.event p { color: #3a3a3f; font-size: 15px; }
.event .btn-row { margin-top: 16px; }
.event .checks { margin-top: 12px; }

/* ---------- Form / map / doc ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin-top: 28px; max-width: 860px; }
.form__f { display: grid; gap: 8px; }
.form__f--wide { grid-column: 1 / -1; }
.form label { font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea, .form select { font: inherit; font-size: 16px; padding: 14px 0; border: 0; border-bottom: 1px solid #c9c9ce; background: transparent; color: var(--ink); border-radius: 0; transition: border-color .3s; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-bottom-color: var(--blue); }
.form textarea { resize: vertical; }
.form__note { font-size: 13px; color: var(--muted); }
.form .btn { justify-self: start; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; min-height: 320px; background: var(--soft); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.map:hover iframe { filter: none; }
.doc { display: inline-flex; align-items: center; gap: 16px; margin-top: 24px; padding: 16px 22px 16px 16px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, transform .4s var(--ease); }
.doc:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }
.doc__icon { width: 52px; height: 52px; border-radius: 4px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.doc strong { display: block; font-size: 16px; }
.doc small { color: var(--muted); font-size: 13px; }

/* ---------- Home additions ---------- */
.hero__eyebrow { position: relative; margin-bottom: 18px; color: var(--blue); }
.hero__sub { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 12px; }
.hero__intro .btn-row { margin-top: 22px; }
.hero__scroll { max-width: 280px; text-align: right; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips a, .chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; transition: background .3s, color .3s, box-shadow .3s; }
.chips a:hover { background: var(--ink); color: #fff; box-shadow: none; }
.intro__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 9vh, 100px); }
.intro__shot { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--soft); }
.intro__shot img { width: 100%; height: 100%; object-fit: cover; }
.intro__shot.is-gl img { opacity: 0; }
.intro__shot:nth-child(2) { transform: translateY(40px); }
@media (max-width: 700px) { .intro__gallery { grid-template-columns: 1fr; } .intro__shot:nth-child(2) { transform: none; } }
.biz { padding: clamp(72px, 14vh, 150px) var(--gutter); text-align: center; display: grid; justify-items: center; }
.biz__title { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -.03em; max-width: 22ch; }
.products__lead { max-width: 560px; margin-top: 16px; color: #3a3a3f; }
.products__lead:first-of-type { font-weight: 600; color: var(--ink); }
.products > .btn-row { margin-top: 40px; }
.pitem .pitem__meta { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .contact { padding: 18vh var(--gutter) 12vh; }
.site-footer .contact__row { margin-bottom: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 56px var(--gutter); border-top: 1px solid #2a2a2e; }
.foot-col h3 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8a8a90; margin-bottom: 16px; }
.foot-col li + li { margin-top: 10px; }
.foot-col a { color: #e6e6ea; }
.foot-col a:hover { color: #7fb0ff; }
.foot-col--brand p { margin-top: 16px; font-weight: 600; }
.foot-col--brand address { font-style: normal; color: #a0a0a6; margin-top: 10px; max-width: 340px; font-size: 15px; }
.site-footer .social a { box-shadow: inset 0 0 0 1px #3a3a3f; color: #e6e6ea; }
.site-footer .social a:hover { background: #fff; color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px var(--gutter) 28px; border-top: 1px solid #2a2a2e; font-size: 13px; color: #8a8a90; }
.foot-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-col--brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal defaults (JS adds motion; content is visible without JS) ---------- */
@media (prefers-reduced-motion: reduce) {
  .overlay-menu { transition: none; }
  .slider__slide, .slider__slide img { transition: none; }
}

/* =========================================================
   Home hero: blueprint stage + blossom branches
   ========================================================= */
.hero--bp {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center;
  gap: clamp(24px, 4vw, 72px); justify-content: stretch;
  padding: calc(var(--header-h) + clamp(24px, 5vh, 56px)) var(--gutter) clamp(56px, 9vh, 96px);
  background: #fff; isolation: isolate;
}
.hero--bp .hero__copy { position: relative; z-index: 3; padding-top: clamp(40px, 9vh, 110px); }
.hero--bp .hero__title { font-size: clamp(52px, 8.6vw, 168px); line-height: .92; letter-spacing: -.045em; }
.hero--bp .line--indent { padding-left: .9em; }
.hero--bp .hero__intro { max-width: 500px; margin-top: clamp(20px, 3.5vh, 36px); }
.hero--bp .hero__scroll { position: absolute; left: var(--gutter); bottom: 22px; max-width: none; text-align: left; z-index: 3; color: var(--muted); }
.hero__grid {
  position: absolute; inset: -40px; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(29,106,229,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(29,106,229,.07) 1px, transparent 1px),
                    linear-gradient(rgba(29,106,229,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(29,106,229,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 65%); mask-image: linear-gradient(90deg, transparent 30%, #000 65%);
}

/* stage */
.stage { position: relative; z-index: 2; margin: 0; perspective: 1400px; }
.stage__frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #0a3480;
  box-shadow: 0 50px 90px -40px rgba(10,52,128,.55), 0 0 0 1px rgba(10,52,128,.12);
  transform-style: preserve-3d; cursor: crosshair; --scan: 0%; --lx: 50%; --ly: 50%; --lr: 0px;
}
.stage__item { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.stage__item.is-active { opacity: 1; visibility: visible; }
.stage__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__bp { clip-path: inset(0 var(--draw, 0%) 0 0); }
.stage__photo { clip-path: inset(0 0 calc(100% - var(--scan)) 0); }
.stage__xray {
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 92%, transparent 100%);
  mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 92%, transparent 100%);
}
.stage__scan {
  position: absolute; left: 0; right: 0; top: var(--scan); height: 2px; margin-top: -1px; z-index: 3; pointer-events: none;
  background: #9cc3ff; box-shadow: 0 0 18px 4px rgba(120,176,255,.75), 0 0 60px 10px rgba(29,106,229,.35);
  opacity: var(--scan-on, 0); transition: opacity .3s;
}
.stage__cross { position: absolute; z-index: 3; pointer-events: none; background: rgba(156,195,255,.55); opacity: 0; transition: opacity .3s; }
.stage__cross--x { left: 0; right: 0; height: 1px; top: var(--ly); }
.stage__cross--y { top: 0; bottom: 0; width: 1px; left: var(--lx); }
.stage__ring { position: absolute; z-index: 4; left: var(--lx); top: var(--ly); width: calc(var(--lr) * 2); height: calc(var(--lr) * 2); transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 0 0 5px rgba(29,106,229,.25); pointer-events: none; }
.stage__frame.is-probing .stage__cross { opacity: 1; }
.stage__corner { position: absolute; z-index: 4; width: 22px; height: 22px; border: 0 solid rgba(255,255,255,.85); pointer-events: none; }
.stage__corner--tl { top: 14px; left: 14px; border-top-width: 1.5px; border-left-width: 1.5px; }
.stage__corner--tr { top: 14px; right: 14px; border-top-width: 1.5px; border-right-width: 1.5px; }
.stage__corner--bl { bottom: 14px; left: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.stage__corner--br { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.stage__hud { position: relative; z-index: 3; margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; align-items: end; }
.stage__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 600 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stage__mode { color: var(--blue); }
.stage__mode::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: 1px; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.stage__xy { margin-left: auto; font-variant-numeric: tabular-nums; }
.stage__cat { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.stage__name { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.02em; line-height: 1.2; }
.stage__name i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.stage__name:hover i { transform: translateX(5px); }
.stage__pager { display: flex; gap: 6px; }
.stage__page { display: grid; gap: 6px; width: 46px; font: 600 11px/1 ui-monospace, Menlo, monospace; color: var(--muted); text-align: left; padding: 4px 0; }
.stage__page i { display: block; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.stage__page i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
.stage__page.is-active { color: var(--ink); }
.hero--bp .badge { top: -44px; right: auto; left: -44px; bottom: auto; width: clamp(96px, 9vw, 140px); background: #fff; border-radius: 50%; z-index: 5; box-shadow: 0 10px 30px -10px rgba(0,0,0,.2); }

/* branches + petals */
.branch { position: absolute; pointer-events: none; will-change: transform; }
.branch svg { display: block; width: 100%; height: auto; overflow: visible; }
.branch--tl { left: -1vw; top: calc(var(--header-h) - 34px); width: min(29vw, 440px); z-index: 1; }
.branch--br { right: -2vw; bottom: -5vh; width: min(30vw, 460px); z-index: 4; }
.branch .br-stroke { fill: none; stroke: #16284a; stroke-linecap: round; }
.branch .bl { cursor: default; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }

@media (max-width: 900px) {
  .hero--bp { grid-template-columns: 1fr; align-content: start; gap: 28px; padding-bottom: 80px; }
  .hero--bp .hero__title { font-size: clamp(52px, 17vw, 120px); }
  .hero--bp .badge { left: auto; right: -10px; bottom: auto; top: -42px; width: 92px; }
  .branch--tl { width: min(46vw, 360px); top: calc(var(--header-h) - 18px); opacity: .85; }
  .branch--br { width: min(40vw, 300px); bottom: -10px; }
  .hero--bp .hero__copy { padding-top: clamp(56px, 11vh, 120px); }
  .hero__grid { -webkit-mask-image: linear-gradient(transparent 40%, #000 70%); mask-image: linear-gradient(transparent 40%, #000 70%); }
  .stage__hud { grid-template-columns: 1fr; }
}

/* blueprint → photo cards (home products) */
.bpx { position: relative; overflow: hidden; background: #0a3480; }
.bpx img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bpx__photo { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
.bpx__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #9cc3ff; box-shadow: 0 0 16px 3px rgba(120,176,255,.7); opacity: 0; transition: top 1s var(--ease), opacity .3s; }
.pitem a:hover .bpx__photo, .hover-img.is-on .bpx__photo { clip-path: inset(0 0 0 0); }
.pitem a:hover .bpx__scan, .hover-img.is-on .bpx__scan { top: 100%; opacity: 1; }
.plist.is-card .pitem__img.bpx img { object-fit: cover; padding: 0; }
.hover-img.bpx { background: #0a3480; }
.hover-img.is-on .bpx__photo { transition-delay: .25s; }
.hover-img.is-on .bpx__scan { transition-delay: .25s; }

/* ---------- First scroll: blueprint → render feature ---------- */
.warp__frame {
  display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px;
  background: #0a3480; --scan: 100%; --scan-on: 0;
  box-shadow: 0 60px 100px -45px rgba(10,52,128,.6), 0 0 0 1px rgba(10,52,128,.14);
}
.warp__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.warp__photo { clip-path: inset(0 0 calc(100% - var(--scan)) 0); }
.warp__scan {
  position: absolute; left: 0; right: 0; top: var(--scan); height: 2px; margin-top: -1px; z-index: 3; pointer-events: none;
  background: #9cc3ff; box-shadow: 0 0 20px 5px rgba(120,176,255,.75), 0 0 70px 14px rgba(29,106,229,.35); opacity: var(--scan-on);
}
.warp__frame .stage__corner { border-color: rgba(255,255,255,.85); mix-blend-mode: difference; }
.warp__hud {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px;
  font: 600 11px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.warp__pct, .warp__mode { color: var(--blue); font-variant-numeric: tabular-nums; }
.warp__name { color: var(--ink); max-width: 70%; }
@media (max-width: 700px) { .warp__hud { font-size: 10px; } }
