/* GSM Service Tool — shared site styles */
@import url("/assets/fonts.css");

:root {
  --bg: #f3f1ec;
  --bg-deep: #e7e3da;
  --ink: #12110f;
  --muted: #4a463f;
  --accent: #9a3412;
  --accent-bright: #e4572e;
  --accent-ink: #fffaf6;
  --line: rgba(18, 17, 15, 0.14);
  --panel: #1c1b19;
  --panel-muted: #c4bfb6;
  --focus: #9a3412;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shot-w: min(720px, 92vw);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}
body:has(.page-home),
body:has(.page-fit) {
  overflow: hidden;
  height: 100dvh;
}
@media (max-width: 959px) {
  body:has(.page-home),
  body:has(.page-fit) {
    overflow: auto;
    height: auto;
  }
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* A1 — skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--accent-ink);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0.75rem);
  outline: 3px solid var(--accent-bright);
  outline-offset: 2px;
}

/* A2 — visible keyboard focus */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.btn:focus-visible {
  outline-offset: 3px;
}
.bar-nav a:focus-visible,
.footer-links a:focus-visible,
.cap-list a:focus-visible {
  outline-offset: 2px;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Home: lock to one screen — no page scroll on desktop */
.page-home {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
.page-home > main {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.page-home .hero {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  align-items: center;
}
.page-home .hero-copy {
  align-self: center;
  max-width: var(--shot-w);
  width: 100%;
}
.page-home .hero-visual {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  align-self: stretch;
}
.page-home .shot-frame {
  width: min(90%, 640px);
  max-height: calc(100% - 1.25rem);
  margin: 0.45rem auto;
}
.page-home .hero-carousel {
  width: min(96%, 1040px);
  height: auto;
  max-height: none;
  margin: 0.5rem;
}
.page-home .carousel-slide img {
  width: auto;
  height: 480px;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.bar-brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bar-brand:hover { color: var(--accent); }
.bar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.bar-nav a:hover { color: var(--ink); }
.bar-nav a.is-active { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem 1.15rem 1rem;
  gap: 0.55rem;
  max-width: 38rem;
  min-height: 0;
}
@media (min-width: 960px) {
  .hero-copy { padding: 1.1rem 1.75rem 1.1rem 2.5rem; }
}

.brand-mark {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.8vw, 3.45rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 1s var(--ease) 0.08s forwards;
}
.brand-mark span { display: block; color: var(--accent-bright); }

.headline {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.02rem, 1.6vw, 1.28rem);
  line-height: 1.25;
  max-width: none;
  white-space: nowrap;
  opacity: 0;
  animation: rise 1s var(--ease) 0.18s forwards;
}
@media (max-width: 480px) {
  .headline { white-space: normal; }
}
.lede {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 100%;
  opacity: 0;
  animation: rise 1s var(--ease) 0.28s forwards;
}

.cta {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.4rem;
  margin-top: 0.15rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.38s forwards;
  max-width: 100%;
}
.cta .btn {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  text-align: center;
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
@media (max-width: 360px) {
  .cta { gap: 0.3rem; }
  .cta .btn { padding: 0 0.4rem; font-size: 0.72rem; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0 0.85rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1.5px solid var(--ink);
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}
.btn-primary {
  background: var(--ink);
  color: var(--accent-ink);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
}
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.hero-visual {
  position: relative;
  background: #0d0d0d;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  animation: fade 1.1s var(--ease) 0.15s forwards;
}
@media (max-width: 959px) {
  .hero-visual { min-height: 34vh; }
}

.visual-glow {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 35% 25%, rgba(228, 87, 46, 0.22), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05), transparent 45%);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.shot-frame {
  position: relative;
  z-index: 1;
  width: min(88%, 560px);
  max-height: calc(100% - 2rem);
  margin: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
  overflow: hidden;
}
.shot-frame img {
  width: 100%;
  height: auto;
  max-height: min(58vh, 100%);
  object-fit: contain;
  display: block;
}

.hero-carousel {
  position: relative;
  z-index: 1;
  width: min(96%, 1040px);
  height: auto;
  max-height: none;
  margin: 0.5rem auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.carousel-viewport {
  position: relative;
  width: 100%;
  height: 480px;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}
.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.carousel-slide picture {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.carousel-slide img {
  display: block;
  width: auto;
  height: 480px;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 959px) {
  .carousel-viewport {
    height: min(480px, 58vh);
    min-height: min(480px, 58vh);
  }
  .carousel-slide img,
  .page-home .carousel-slide img {
    height: min(480px, 58vh);
    max-height: min(480px, 58vh);
  }
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.carousel-nav:hover,
.carousel-nav:focus-visible {
  background: #2563eb;
  border-color: #2563eb;
  outline: none;
}
.carousel-prev { left: 0.45rem; }
.carousel-next { right: 0.45rem; }
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0.45rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.35rem;
}
.carousel-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.carousel-dot.is-active,
.carousel-dot:hover {
  background: #fff;
}

.visual-caption {
  position: absolute;
  left: 1rem;
  bottom: 0.75rem;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--panel-muted);
}
.hero-carousel .visual-caption {
  top: 0.55rem;
  bottom: auto;
  left: 0.55rem;
  right: auto;
  z-index: 3;
  max-width: calc(100% - 4rem);
  padding: 0.25rem 0.45rem;
  background: rgba(0, 0, 0, 0.55);
  color: #d8d4cc;
  pointer-events: none;
}

.capabilities {
  border-top: 1px solid var(--line);
  padding: 2.25rem 1.5rem 2.75rem;
  background: var(--bg-deep);
}
@media (min-width: 960px) {
  .capabilities { padding: 4.5rem 4rem 5.5rem; }
}
.capabilities-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .capabilities-inner {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
  }
}

/* Home strip — must come after base .capabilities rules */
.page-home > .capabilities {
  flex: none;
  padding: 0.5rem 1.25rem;
  background: var(--bg-deep);
}
.page-home > .capabilities .capabilities-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.5rem;
  max-width: none;
  grid-template-columns: none;
}
.page-home > .capabilities .cap-title {
  font-size: 0.92rem;
  max-width: none;
  white-space: nowrap;
  margin: 0;
}
.page-home > .capabilities .cap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}
.page-home > .capabilities .cap-list li {
  border-top: 0;
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
}
.page-home > .capabilities .cap-list li:first-child {
  border-left: 0;
  padding-left: 0;
}
.page-home > .capabilities .cap-list a {
  padding: 0.1rem 0;
  gap: 0;
}
.page-home > .capabilities .cap-list strong {
  font-size: 0.78rem;
  white-space: nowrap;
}
.page-home > .capabilities .cap-list .arrow,
.page-home > .capabilities .cap-list span {
  display: none;
}

/* Short laptop screens */
@media (min-width: 960px) and (max-height: 820px) {
  .page-home .brand-mark { font-size: clamp(1.85rem, 4.2vh, 2.75rem); }
  .page-home .headline { font-size: 1.05rem; }
  .page-home .lede { font-size: 0.85rem; line-height: 1.35; }
  .page-home .hero-copy { gap: 0.4rem; padding: 0.75rem 1.5rem 0.75rem 2rem; }
  .page-home .btn { min-height: 2.05rem; font-size: 0.74rem; padding: 0 0.7rem; }
  .page-home > .capabilities { padding: 0.35rem 1.15rem; }
  .page-home .shot-frame { width: min(88%, 560px); margin: 0.35rem auto; }
  .page-home .hero-carousel { width: min(96%, 1040px); }
  .page-home .visual-caption { bottom: 0.45rem; }
  footer { padding: 0.45rem 1.15rem; font-size: 0.78rem; }
  .bar { padding: 0.4rem 1.15rem; }
}
@media (min-width: 960px) and (max-height: 700px) {
  .page-home .brand-mark { font-size: 1.7rem; }
  .page-home .lede { display: none; }
}
@media (max-width: 959px) {
  .page-home {
    height: auto;
    max-height: none;
    overflow: visible;
    grid-template-rows: auto auto auto auto;
  }
  .page-home > main { overflow: visible; }
  .page-home > .capabilities .cap-list { flex-direction: column; gap: 0; }
  .page-home > .capabilities .cap-list li {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
  .page-home > .capabilities .cap-list li:first-child { border-top: 0; }
  .page-home > .capabilities .cap-list span { display: block; }
  .page-home > .capabilities .cap-list .arrow { display: inline; }
  .page-home > .capabilities .cap-list a { padding: 0.7rem 0; gap: 0.25rem; }
  .page-home > .capabilities .cap-list strong { white-space: normal; }
}

.cap-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.02em;
  max-width: 10ch;
  line-height: 1.1;
}
.cap-list { list-style: none; display: grid; gap: 0; }
.cap-list li { border-top: 1px solid var(--line); }
.cap-list a {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  transition: color 0.2s ease;
}
.cap-list a:hover { color: var(--accent); }
.cap-list a:hover span { color: var(--ink); }
.cap-list strong {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.cap-list .arrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
}
.cap-list span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 48ch;
}

/* service pages — text wraps at image width; fit one viewport */
.page-fit {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.page-fit > main.service {
  min-height: 0;
  overflow: hidden;
  width: var(--shot-w);
  max-width: var(--shot-w);
  margin: 0 auto;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  box-sizing: border-box;
}
@media (max-width: 959px) {
  .page-fit {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .page-fit > main.service {
    overflow: visible;
    padding: 1rem 1rem 1.25rem;
    width: min(var(--shot-w), 100%);
  }
}

.service {
  padding: 3rem 1.5rem 4.5rem;
  max-width: var(--shot-w);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.service-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.05s forwards;
}
.service h1 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 100%;
  margin: 0;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.12s forwards;
}
.service-lead {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  max-width: 100%;
  margin: 0;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.2s forwards;
}
.service-body {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.28s forwards;
}
.service-body p {
  color: var(--ink);
  line-height: 1.45;
  font-size: 0.9rem;
  max-width: 100%;
  margin: 0;
}
.service-body ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.service-body li {
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.85rem;
}
.service-shot {
  margin: 0.25rem 0;
  border: 1px solid var(--line);
  background: #0d0d0d;
  width: 100%;
  max-width: 100%;
  opacity: 0;
  animation: rise 1s var(--ease) 0.22s forwards;
  overflow: hidden;
  flex: 0 1 auto;
}
.service-shot picture,
.service-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.page-fit .service-shot img {
  max-height: min(36vh, 340px);
  width: 100%;
  object-fit: contain;
  object-position: top center;
  background: #0d0d0d;
}
.page-fit .cta {
  margin-top: 0.15rem;
  width: 100%;
}
@media (min-width: 960px) and (max-height: 820px) {
  .page-fit > main.service { gap: 0.35rem; padding: 0.45rem 0; }
  .page-fit .service h1 { font-size: 1.35rem; }
  .page-fit .service-lead,
  .page-fit .service-body p { font-size: 0.84rem; }
  .page-fit .service-shot img { max-height: min(30vh, 260px); }
  .page-fit .btn { min-height: 2.05rem; font-size: 0.74rem; }
}
@media (min-width: 960px) and (max-height: 700px) {
  .page-fit .service-body ul { display: none; }
  .page-fit .service-shot img { max-height: min(28vh, 220px); }
}

footer {
  border-top: 1px solid var(--line);
  padding: 0.55rem 1.25rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg);
}
footer a:hover { color: var(--ink); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.25rem;
}
.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-links a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .brand-mark, .headline, .lede, .cta, .hero-visual,
  .service-kicker, .service h1, .service-lead, .service-body, .service-shot,
  .skip-link {
    opacity: 1;
    transform: none;
  }
  .shot-frame { animation: none; }
  .carousel-slide { transition: none !important; }
  .visual-glow, .product-ring { animation: none; }
}
