/* SP Dental Lab — shared stylesheet */
:root {
  --bg: #0a0f10;
  --surface: #11181a;
  --surface-2: #172022;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2ede4;      /* porcelain */
  --muted: #9aa7a6;     /* brushed metal */
  --teal: #3dac9b;      /* from the logo */
  --teal-bright: #72d8c7;
  --ink: #04100e;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--teal); color: var(--ink); padding: 8px 14px; border-radius: 6px; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(10, 15, 16, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}
.home .site-header { position: fixed; left: 0; right: 0; }
.home .site-header:not(.scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 54px; height: auto; }
.brand span { font-family: var(--display); font-size: 1.3rem; letter-spacing: -0.01em; }

.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a { display: block; padding: 10px 15px; text-decoration: none; color: rgba(242, 237, 228, 0.78); border-radius: 999px; font-weight: 500; font-size: 0.95rem; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current="page"] { color: var(--teal-bright); background: rgba(114, 216, 199, 0.10); }
.nav .nav-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); background: var(--teal); margin-left: 10px; padding: 10px 18px; font-weight: 600; }
.nav .nav-cta svg { width: 18px; height: 18px; }
.nav .nav-cta:hover { background: var(--teal-bright); color: var(--ink); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 5px auto; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .site-header:has(.nav.open) { background: var(--bg) !important; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--pad) 22px; gap: 0; }
  .nav a { padding: 15px 4px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin: 18px 0 0; justify-content: center; border-radius: 999px; border: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
  border: 1px solid transparent; transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--teal); color: var(--ink); }
.btn.primary:hover { background: var(--teal-bright); }
.btn.ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn.ghost:hover { border-color: var(--text); }
.btn:active { transform: scale(0.98); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(600px, 100svh, 920px); display: flex; align-items: center; overflow: hidden; background: var(--bg); }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 68vw; }
.slides { position: absolute; inset: 0; background: #000; overflow: hidden; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 8s ease-out; }
.slides img.on { opacity: 1; transform: scale(1); }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(90deg, var(--bg) 0%, rgba(10, 15, 16, 0.6) 7%, rgba(10, 15, 16, 0) 20%),
  linear-gradient(0deg, var(--bg) 0%, rgba(10, 15, 16, 0) 22%),
  linear-gradient(180deg, rgba(10, 15, 16, 0.75) 0%, rgba(10, 15, 16, 0) 18%); }
.hero-foot { position: absolute; z-index: 2; right: var(--pad); bottom: 26px; display: flex; align-items: center; gap: 22px; }
.slide-caption { color: rgba(242, 237, 228, 0.8); font-size: 0.95rem; }
.slide-dots { display: flex; gap: 8px; }
.slide-dots button { width: 38px; height: 26px; padding: 0; background: none; border: 0; cursor: pointer; }
.slide-dots button::before { content: ""; display: block; height: 2px; background: rgba(255, 255, 255, 0.3); transition: background 0.3s; }
.slide-dots button[aria-current="true"]::before { background: var(--teal-bright); }
.hero-copy { position: relative; z-index: 2; width: 100%; display: grid; gap: 24px; justify-items: start; padding-top: var(--header-h); }
@media (min-width: 901px) { .hero-copy.wrap { max-width: none; margin: 0; padding-left: clamp(36px, 8.5vw, 170px); } }
.hero-copy > * { max-width: min(36vw, 460px); }
.hero-place { color: var(--teal-bright); font-weight: 500; letter-spacing: 0.01em; }
.hero h1 { font-size: clamp(2.7rem, 4.3vw, 4.6rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1; max-width: none; }
.hero h1 span { display: block; overflow: hidden; padding-bottom: 0.08em; white-space: nowrap; }
.hero h1 i { display: block; font-style: normal; }
.hero-lede { color: rgba(242, 237, 228, 0.82); font-size: clamp(1.05rem, 1.35vw, 1.22rem); }
.hero .btn-row { max-width: none; }
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; width: 100%; aspect-ratio: 4 / 3.4; }
  .hero-media::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 15, 16, 0) 30%), linear-gradient(180deg, rgba(10, 15, 16, 0.8) 0%, rgba(10, 15, 16, 0) 26%); }
  .hero-foot { left: var(--pad); right: var(--pad); bottom: 8px; justify-content: space-between; }
  .slide-caption { font-size: 0.85rem; }
  .slide-dots { gap: 6px; flex: none; }
  .slide-dots button { width: 20px; }
  .hero-copy { padding-top: 20px; padding-bottom: 48px; }
  .hero-copy > * { max-width: 100%; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4.2rem); }
}
@media (max-width: 700px) { .hero .btn { width: 100%; } }

/* hero entrance */
.js .hero h1 i { transform: translateY(105%); animation: rise 1.1s var(--ease) 0.15s forwards; }
.js .hero h1 span:nth-child(2) i { animation-delay: 0.3s; }
.js .hero-place, .js .hero-lede, .js .hero .btn-row { opacity: 0; animation: fade 1s ease 0.7s forwards; }
.js .hero-place { animation-delay: 0.1s; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }


/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 300; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* About */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.intro h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 300; line-height: 1.1; }
.intro p { color: var(--muted); font-size: 1.1rem; }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.reasons li { padding: clamp(28px, 3.4vw, 44px) clamp(20px, 3vw, 40px) 8px 0; }
.reasons li + li { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.reasons svg { width: 34px; height: 34px; color: var(--teal-bright); margin-bottom: 22px; }
.reasons h3 { font-size: 1.5rem; margin-bottom: 12px; }
.reasons p { color: var(--muted); }
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .reasons li, .reasons li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Services */
.services { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dept-nav { margin-bottom: clamp(36px, 5vw, 64px); }
.dept-nav::-webkit-scrollbar { display: none; }
.dept-nav ul { display: flex; flex-wrap: wrap; gap: 10px; }
.dept-nav a { display: block; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 0.92rem; color: var(--muted); white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.dept-nav a:hover { color: var(--teal-bright); border-color: var(--teal); }
.dept { padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.dept-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dept-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.dept-head span { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color 0.3s, transform 0.4s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card-pic img { transform: scale(1.06); }
.card-pic .noimg { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--display); font-size: 2.6rem; color: var(--teal); background: radial-gradient(circle at 30% 20%, #16302c, #0a0f10 70%); }
.card-body { display: grid; gap: 2px; padding: 14px 16px 16px; }
.card-cat { color: var(--muted); font-size: 0.82rem; }
.card-name { font-weight: 500; line-height: 1.35; }
.also { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 0.92rem; }
.also span { margin-right: 6px; }
.also em { font-style: normal; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
@media (max-width: 560px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .card-body { padding: 10px 12px 12px; } .card-name { font-size: 0.92rem; } }

/* Videos */
.videos { padding-top: 0; }
.videos-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.videos-top .section-head { margin-bottom: 0; }
.reel-nav { display: flex; gap: 10px; flex: none; }
.reel-nav button { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s, opacity 0.2s; }
.reel-nav button svg { width: 22px; height: 22px; }
.reel-nav button:hover:not(:disabled) { border-color: var(--teal-bright); background: var(--teal); color: var(--ink); }
.reel-nav button:disabled { opacity: 0.3; cursor: default; }
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(190px, 21vw, 260px); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; padding: 6px 2px 6px; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
@media (max-width: 600px) { .videos-top { align-items: flex-start; flex-direction: column; gap: 18px; } .reels { grid-auto-columns: 62vw; } .reel-nav button { width: 44px; height: 44px; } }
.reel { scroll-snap-align: start; }
.reel-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid transparent; background-image: linear-gradient(#000, #000), linear-gradient(135deg, rgba(114, 216, 199, 0.75) 0%, rgba(255, 255, 255, 0.10) 28%, rgba(255, 255, 255, 0.05) 62%, rgba(114, 216, 199, 0.45) 100%); background-origin: border-box; background-clip: padding-box, border-box; }
.reel-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.reel-btn img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s, transform 0.8s var(--ease); }
.reel-btn:hover img { opacity: 1; transform: scale(1.04); }
.reel-btn svg { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; padding: 16px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(10, 15, 16, 0.6); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; backdrop-filter: blur(6px); }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel p { margin-top: 12px; font-size: 0.95rem; color: var(--muted); line-height: 1.4; }
.follow { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.follow > p { font-family: var(--display); font-size: 1.35rem; }
.btn.social-yt, .btn.social-ig, .btn.social-fb { color: #fff; padding: 13px 24px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9); }
.btn.social-yt { background: #e62117; }
.btn.social-ig { background: linear-gradient(45deg, #f7b733 0%, #e1306c 50%, #6a3bd1 100%); }
.btn.social-fb { background: #1877f2; }
.btn.social-yt:hover, .btn.social-ig:hover, .btn.social-fb:hover { filter: brightness(1.12); transform: translateY(-2px); }
@media (max-width: 600px) { .follow .btn { flex: 1 1 100%; } }

/* Technology band */
.techband { position: relative; padding: clamp(96px, 14vw, 200px) 0; overflow: hidden; }
.techband > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.techband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 15, 16, 0.95) 0%, rgba(10, 15, 16, 0.6) 55%, rgba(10, 15, 16, 0.2) 100%); }
.techband .wrap { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; }
.techband h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 300; max-width: 14ch; }
.techband p { color: rgba(242, 237, 228, 0.8); max-width: 44ch; font-size: 1.1rem; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.contact-cards { display: grid; gap: 12px; }
.ccard { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color 0.3s; }

.ccard svg { grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgba(61, 172, 155, 0.14); color: var(--teal-bright); }
.ccard span { color: var(--muted); font-size: 0.86rem; }
.ccard strong { font-weight: 500; font-size: 1.05rem; overflow-wrap: anywhere; }
.map { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface-2); min-height: 360px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.95); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 28px; color: var(--muted); font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: 40px; }
.foot-brand img { width: 96px; height: auto; margin-bottom: 14px; }
.foot-tag { font-family: var(--display); font-size: 1.35rem; color: var(--text); }
.site-footer h2 { font-family: var(--body); font-size: 0.86rem; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--teal-bright); }
.site-footer p { line-height: 1.9; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); transition: border-color 0.2s, color 0.2s; }
.social a:hover { border-color: var(--teal); color: var(--teal-bright); }
.social svg { width: 20px; height: 20px; }
.copy { border-top: 1px solid var(--line); padding-top: 22px; font-size: 0.88rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Floating WhatsApp (mobile) */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: var(--ink); display: none; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 900px) { .wa-float { display: flex; } }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.crumbs a { color: var(--teal-bright); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 300; letter-spacing: -0.03em; max-width: 18ch; }
.page-head .lede { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin-top: 20px; }

.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 8vw, 104px); }
.product.solo { grid-template-columns: minmax(0, 1fr); }
.product.solo .prose { max-width: 68ch; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.stage { position: relative; display: block; width: 100%; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; border-radius: 22px; }
.track { display: flex; height: 100%; transition: transform 0.9s var(--ease); }
.track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; background: #000; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 4 / 3; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .gallery { position: static; } }

.prose .lede { font-family: var(--display); font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.4; color: var(--text); margin-bottom: 24px; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 26px 0 10px; color: var(--teal-bright); }
.prose > :first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; color: rgba(242, 237, 228, 0.86); }
.prose ul { margin: 0 0 18px; border-top: 1px solid var(--line); }
.prose li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); color: rgba(242, 237, 228, 0.86); }
.prose li::before { content: ""; position: absolute; left: 4px; top: 1.35em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.prose .btn-row { margin-top: 32px; }

.more { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.more h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 24px; }
.more .card { background: var(--surface); }

.pager { border-top: 1px solid var(--line); padding: 28px 0 64px; display: flex; justify-content: space-between; gap: 16px; }
.pager a { text-decoration: none; max-width: 46%; }
.pager a span { display: block; color: var(--muted); font-size: 0.88rem; }
.pager a strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.pager a:hover strong { color: var(--teal-bright); }
.pager .next { text-align: right; margin-left: auto; }

/* Technologies */
.machine { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: start; padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.machine:nth-of-type(even) .shots { order: 2; }
.machine:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.machine .shots { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.machine .shots img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); background: #000; }
.machine h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 300; margin-bottom: 22px; }
@media (max-width: 900px) {
  .machine, .machine:nth-of-type(even) { grid-template-columns: 1fr; }
  .machine:nth-of-type(even) .shots { order: 0; }
  .machine .shots { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .machine .shots img:only-child { grid-column: 1 / -1; max-width: 460px; }
}

.machine.noshots, .machine.noshots:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
.machine.noshots > div { max-width: 70ch; }


/* ---------- Frames: fine gradient border with a soft glow ---------- */
.card, .ccard, .stage, .map, .machine .shots img, .thumbs button {
  border: 1px solid transparent;
  background-image: linear-gradient(var(--frame-fill, #0b1112), var(--frame-fill, #0b1112)),
    linear-gradient(135deg, rgba(114, 216, 199, 0.75) 0%, rgba(255, 255, 255, 0.10) 28%, rgba(255, 255, 255, 0.05) 62%, rgba(114, 216, 199, 0.45) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 24px 48px -28px rgba(0, 0, 0, 0.9), 0 0 36px -18px rgba(61, 172, 155, 0.55);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.stage, .machine .shots img, .thumbs button { --frame-fill: #000; }
.ccard, .more .card { --frame-fill: var(--surface); }
.card:hover, .ccard:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 28px 56px -26px rgba(0, 0, 0, 0.95), 0 0 44px -12px rgba(114, 216, 199, 0.7); }
.thumbs button { box-shadow: none; }
.thumbs button:not([aria-current="true"]) { background-image: linear-gradient(#000, #000), linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 12px; }
.lb-close { display: block; margin: 0 0 10px auto; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 18px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .hero h1 i, .js .hero-place, .js .hero-lede, .js .hero .btn-row, .js .hero-foot { animation: none; transform: none; opacity: 1; }
  .slides img { transition: opacity 0.01s; transform: none; }
  .card, .card-pic img { transition: none; }
}
