/* pginfotec.io — Peter Goldstein
   Design tokens kept from the previous version of the site. */

:root {
  --bg: #07111f;
  --bg-soft: #0c1829;
  --panel: rgba(17, 31, 51, 0.78);
  --panel-solid: #101f33;
  --text: #eef4ff;
  --muted: #a8b6cc;
  --faint: #7f90aa;
  --accent: #57d3ff;
  --accent-2: #7c8cff;
  --accent-3: #7fffc4;
  --warm: #ffd28a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(87, 211, 255, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  --max-width: 1180px;
  --nav-h: 74px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background:
    radial-gradient(circle at 10% 10%, rgba(87, 211, 255, 0.14), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(124, 140, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #06101d 0%, #081321 38%, #07111f 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

img,
iframe {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  z-index: 1000;
  background: white;
  color: #07111f;
  padding: 10px 14px;
  border-radius: 10px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #07111f;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 8px 24px rgba(87, 211, 255, 0.25);
}

.brand small {
  display: block;
  color: var(--faint);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(87, 211, 255, 0.35);
  background: rgba(87, 211, 255, 0.08);
  color: var(--text) !important;
  white-space: nowrap;
}

.mobile-menu {
  display: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(127, 255, 196, 0.2);
  background: rgba(127, 255, 196, 0.07);
  color: #c8ffe5;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 6px rgba(127, 255, 196, 0.1);
}

h1 {
  max-width: 820px;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin-bottom: 26px;
}

.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(110deg, #ffffff 0%, #aeefff 38%, #91a0ff 72%, #b6ffe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  margin-bottom: 32px;
}

.hero-copy strong {
  color: var(--text);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  color: #07111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 16px 40px rgba(87, 211, 255, 0.18);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-card {
  position: relative;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--panel);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  top: -90px;
  right: -80px;
  background: rgba(87, 211, 255, 0.12);
  filter: blur(8px);
  pointer-events: none;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.code-line {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  margin-bottom: 15px;
  align-items: start;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
}

.code-num {
  color: #60718d;
  text-align: right;
  user-select: none;
}

.code-value {
  color: #d9e7ff;
  overflow-wrap: anywhere;
}

.code-value .key {
  color: #8edcff;
}

.code-value .string {
  color: #a6f3ca;
}

.code-value .array {
  color: #c5b8ff;
}

.status-card {
  margin-top: 26px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(127, 255, 196, 0.06);
  border: 1px solid rgba(127, 255, 196, 0.14);
  color: #d8ffea;
  font-size: 0.92rem;
}

/* ---------- Sections ---------- */

section {
  padding: 104px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 46px;
  margin-bottom: 46px;
  align-items: end;
}

.section-kicker {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin-bottom: 0;
}

.section-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 0;
}

.subhead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 56px 0 22px;
  color: #dcebff;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

.stat {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(13, 26, 44, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
}

.stat strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
}

.proof {
  padding: 20px 18px;
  background: rgba(10, 21, 37, 0.94);
}

.proof strong {
  display: block;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--accent-3);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.proof span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

/* ---------- Panels & grids ---------- */

.about-grid,
.skills-grid,
.case-grid,
.process-grid,
.tech-grid,
.roles-grid,
.strengths-grid,
.work-grid {
  display: grid;
  gap: 20px;
}

.about-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.panel p,
.panel li {
  color: var(--muted);
}

.highlight-panel {
  background:
    linear-gradient(145deg, rgba(87, 211, 255, 0.11), rgba(124, 140, 255, 0.08)),
    var(--panel-solid);
}

.quote-mark {
  font-size: 3.6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 2px;
}

.skills-grid {
  grid-template-columns: repeat(5, 1fr);
}

.skills-grid.six {
  grid-template-columns: repeat(3, 1fr);
}

.skill-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(87, 211, 255, 0.1);
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 24px;
}

.skill-card h3 {
  font-size: 1.16rem;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 0.93rem;
}

/* ---------- Proven strengths ---------- */

.strengths-grid {
  grid-template-columns: repeat(3, 1fr);
  counter-reset: strength;
}

.strength {
  position: relative;
  display: flex;
  flex-direction: column;
  counter-increment: strength;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.strength:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.strength::before {
  content: counter(strength, decimal-leading-zero);
  position: absolute;
  top: 26px;
  right: 28px;
  color: rgba(87, 211, 255, 0.45);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.strength h3 {
  font-size: 1.22rem;
  padding-right: 34px;
  margin-bottom: 10px;
}

.strength p {
  font-size: 0.95rem;
}

.evidence {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 0.88rem;
  color: #cfe0f5;
}

.evidence b {
  color: var(--accent-3);
  font-weight: 800;
}

/* ---------- Use cases ---------- */

.uc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.uc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.chip[aria-pressed="true"] {
  color: #07111f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.chip .count {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
  font-weight: 800;
}

.uc-status {
  color: var(--faint);
  font-size: 0.88rem;
}

.uc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

.uc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 30px 26px;
  overflow: hidden;
  transition: border-color 180ms ease;
}

.uc-card:hover {
  border-color: rgba(87, 211, 255, 0.22);
}

.uc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  opacity: 0.85;
}

.uc-card[hidden] {
  display: none;
}

.uc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.case-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #c7eaff;
  background: rgba(87, 211, 255, 0.08);
  border: 1px solid rgba(87, 211, 255, 0.12);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.case-tag[data-tone="mint"] {
  color: #ccffe8;
  background: rgba(127, 255, 196, 0.07);
  border-color: rgba(127, 255, 196, 0.14);
}

.case-tag[data-tone="indigo"] {
  color: #dcdfff;
  background: rgba(124, 140, 255, 0.1);
  border-color: rgba(124, 140, 255, 0.18);
}

.case-tag[data-tone="warm"] {
  color: #ffe7c0;
  background: rgba(255, 210, 138, 0.08);
  border-color: rgba(255, 210, 138, 0.16);
}

.uc-context {
  color: var(--faint);
  font-size: 0.86rem;
}

.uc-card h3 {
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.uc-card > p {
  font-size: 0.97rem;
  margin-bottom: 18px;
}

.uc-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.kpi {
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(127, 255, 196, 0.05);
  border: 1px solid rgba(127, 255, 196, 0.12);
}

.kpi strong {
  display: block;
  font-size: 1.32rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #dbffeb;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.uc-kpis:has(.kpi:nth-child(4)) {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}

.uc-kpis:has(.kpi:nth-child(4)) .kpi strong {
  font-size: 1.08rem;
}

.uc-more {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.uc-more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.92rem;
  list-style: none;
}

.uc-more summary::-webkit-details-marker {
  display: none;
}

.uc-more summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(87, 211, 255, 0.3);
  font-size: 0.9rem;
  line-height: 1;
}

.uc-more[open] summary::after {
  content: "–";
}

.uc-more h4 {
  margin: 16px 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #cfe0f5;
}

.uc-more ul {
  padding-left: 20px;
  margin: 0 0 6px;
  font-size: 0.94rem;
}

.uc-more li + li {
  margin-top: 5px;
}

.uc-more p {
  font-size: 0.94rem;
  margin-bottom: 6px;
}

.uc-card .tags {
  margin-top: 16px;
}

.uc-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.uc-more-wrap .btn[hidden] {
  display: none;
}

.uc-card .case-result {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.also-built {
  margin-top: 20px;
}

.also-built h3 {
  font-size: 1.15rem;
}

.also-built ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 36px;
  font-size: 0.95rem;
}

.also-built li strong {
  color: var(--text);
}

.uc-card .tag {
  padding: 5px 9px;
  font-size: 0.76rem;
}

/* Customer-facing case studies kept from the previous site */

.case-grid {
  grid-template-columns: repeat(2, 1fr);
}

.case-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.case-card .case-tag {
  margin-bottom: 22px;
}

.case-card h3 {
  font-size: 1.55rem;
  margin-bottom: 13px;
}

.case-card ul {
  padding-left: 20px;
  margin: 12px 0 20px;
}

.case-card li + li {
  margin-top: 6px;
}

.case-result {
  margin-top: auto;
  padding: 16px;
  border-radius: 14px;
  background: rgba(127, 255, 196, 0.05);
  border: 1px solid rgba(127, 255, 196, 0.12);
}

.case-result strong {
  display: block;
  color: #dbffeb;
  margin-bottom: 5px;
}

/* ---------- Process ---------- */

.process-grid {
  grid-template-columns: repeat(5, 1fr);
  counter-reset: process;
}

.process-card {
  position: relative;
  min-height: 230px;
  counter-increment: process;
}

.process-card::before {
  content: "0" counter(process);
  display: block;
  color: rgba(87, 211, 255, 0.55);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin-bottom: 52px;
}

.process-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* ---------- Technology ---------- */

.tech-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tech-grid .wide {
  grid-column: span 2;
}

.tech-card h3 {
  font-size: 1.06rem;
  color: #dcebff;
  margin-bottom: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag {
  padding: 8px 11px;
  color: #c9d7eb;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1.3;
}

/* ---------- Timeline ---------- */

.timeline {
  display: grid;
  gap: 18px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(255, 255, 255, 0.06));
}

.timeline-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 22px;
  align-items: start;
}

.timeline-dot {
  width: 13px;
  height: 13px;
  margin: 8px 0 0 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(87, 211, 255, 0.1);
  position: relative;
  z-index: 2;
}

.timeline-content {
  padding: 24px 26px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 18px;
}

.timeline-content h3 {
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------- Testimonials ---------- */

.testimonial-carousel {
  position: relative;
  max-width: 1060px;
  margin-inline: auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 4px;
}

.testimonial-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 52px 56px;
  border-radius: 30px;
  border: 1px solid rgba(87, 211, 255, 0.16);
  background:
    radial-gradient(circle at 50% -20%, rgba(87, 211, 255, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.testimonial-card .quote-mark {
  margin-bottom: 24px;
}

.testimonial-card blockquote {
  max-width: 900px;
  margin: 0 0 28px;
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
  line-height: 1.4;
  letter-spacing: -0.035em;
  color: #eff7ff;
}

.testimonial-card cite {
  color: var(--muted);
  font-style: normal;
  font-size: 1rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 1.25rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(87, 211, 255, 0.3);
  background: rgba(87, 211, 255, 0.08);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    width 180ms ease,
    border-radius 180ms ease,
    background 180ms ease;
}

.carousel-dot.active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

/* ---------- Roles & ways to work ---------- */

.roles-grid {
  grid-template-columns: repeat(4, 1fr);
}

.role {
  text-align: center;
  padding: 20px;
  border-radius: 16px;
  color: #d9e7f7;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-weight: 700;
}

.work-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.work-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.work-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 0.94rem;
}

.work-card li + li {
  margin-top: 4px;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-list details {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 16px;
  padding: 0 22px;
  transition: border-color 160ms ease;
}

.faq-list details[open] {
  border-color: rgba(87, 211, 255, 0.22);
  background: rgba(87, 211, 255, 0.035);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.04rem;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  color: var(--muted);
  margin: 0 0 18px;
}

/* ---------- Booking / contact ---------- */

.book-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  align-items: stretch;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(87, 211, 255, 0.16);
  background:
    radial-gradient(circle at 90% 10%, rgba(124, 140, 255, 0.16), transparent 35%),
    linear-gradient(145deg, rgba(87, 211, 255, 0.1), rgba(127, 255, 196, 0.05)),
    var(--panel-solid);
  box-shadow: var(--shadow);
  padding: 40px;
}

.book-info h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.book-info > p {
  color: var(--muted);
  margin: 0;
}

.book-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.book-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: #d6e3f5;
  font-size: 0.96rem;
}

.book-list li::before {
  content: "✓";
  color: var(--accent-3);
  font-weight: 900;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.calendar-frame {
  position: relative;
  min-height: 680px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.calendar-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 680px;
  border: 0;
}

.calendar-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  color: #33415a;
  background: #f4f7fb;
}

.calendar-fallback a {
  color: #0b57d0;
  font-weight: 800;
  text-decoration: underline;
}

.calendar-frame iframe {
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */

footer {
  padding: 46px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h3 {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1140px) {
  .nav-links {
    gap: 16px;
    font-size: 0.9rem;
  }

  .proof-band {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .about-grid,
  .section-head,
  .book-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .skills-grid.six,
  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .uc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--nav-h) + 8px);
    padding: 18px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    background: #0c1829;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-cta {
    text-align: center;
  }

  .mobile-menu {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .stats,
  .case-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid .wide {
    grid-column: auto;
  }

  .also-built ul {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  section {
    padding: 76px 0;
  }

  h1 {
    font-size: clamp(2.6rem, 12.5vw, 3.6rem);
  }

  .brand small {
    display: none;
  }

  .hero-card,
  .panel,
  .case-card,
  .uc-card,
  .book-info {
    padding: 24px;
  }

  .stats,
  .skills-grid,
  .skills-grid.six,
  .strengths-grid,
  .process-grid,
  .roles-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .proof-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-card,
  .process-card {
    min-height: auto;
  }

  .process-card::before {
    margin-bottom: 26px;
  }

  .hero-actions,
  .hero-actions .btn,
  .book-actions,
  .book-actions .btn {
    width: 100%;
  }

  .testimonial-card {
    min-height: 410px;
    padding: 38px 24px;
  }

  .calendar-frame,
  .calendar-frame iframe {
    min-height: 760px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print / Save as PDF ---------- */

@media print {
  body {
    color: #111;
    background: #fff;
  }

  body::before,
  .nav,
  .hero-card,
  .hero-actions,
  .mobile-menu,
  .uc-toolbar,
  .carousel-controls,
  .calendar-frame,
  .book-actions {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 20px 0 30px;
  }

  .hero-grid,
  .section-head,
  .about-grid,
  .book-grid {
    display: block;
  }

  h1,
  h2,
  h3,
  .gradient-text {
    color: #111 !important;
    background: none !important;
    -webkit-text-fill-color: initial;
  }

  .hero-copy,
  .section-intro,
  .panel p,
  .panel li,
  .timeline-content p,
  .testimonial-card cite,
  .book-info p,
  .kpi span,
  .proof span,
  footer {
    color: #333 !important;
  }

  .panel,
  .stat,
  .proof,
  .case-card,
  .uc-card,
  .tech-card,
  .timeline-content,
  .book-info,
  .kpi {
    background: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .kpi strong,
  .proof strong,
  .evidence b {
    color: #0a5d3d !important;
  }

  .uc-card[hidden] {
    display: flex !important;
  }

  .testimonial-carousel {
    overflow: visible;
  }

  .testimonial-track {
    display: block;
    transform: none !important;
  }

  .testimonial-card {
    min-height: 0;
    padding: 16px;
    background: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }

  .testimonial-card blockquote {
    font-size: 1rem;
    color: #111;
  }

  section {
    padding: 28px 0;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

.strength-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
}

.strength-link:hover {
  color: var(--accent-3);
}
