/* Creative Studio × sand-cobalt × asymmetric-service-grid × display-sans-technical */

:root {
  --page: #f3f5f8;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.68);
  --surface-alt: #ebe6dc;
  --text: #101828;
  --muted: #667085;
  --muted-soft: #98a2b3;
  --accent: #276ef1;
  --accent-deep: #1d4ed8;
  --accent-soft: #8fabd3;
  --accent-glow: rgba(39, 110, 241, 0.14);
  --line: rgba(16, 24, 40, 0.1);
  --line-strong: rgba(16, 24, 40, 0.18);
  --void: #0a1628;
  --radius: 12px;
  --radius-lg: 20px;
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
  --rail-width: clamp(220px, 17vw, 272px);
  --content-max: 1320px;
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hero-max-h-desktop: 55vh;
  --hero-max-h-tablet: 44vh;
  --hero-max-h-mobile: 38vh;
  --hero-max-area-desktop: 0.5;
  --hero-max-area-tablet: 0.42;
  --hero-max-area-mobile: 0.36;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  line-height: 1.58;
  font-family: var(--font-body);
  font-size: 16px;
  background:
    radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--accent-soft) 28%, transparent), transparent 34%),
    linear-gradient(180deg, var(--page) 0%, color-mix(in srgb, var(--surface) 70%, var(--page)) 100%);
  color: var(--text);
}

body, button, input, select, textarea { font: inherit; }

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

img, svg, video, canvas, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--text);
}

h1 {
  font-size: clamp(2.15rem, 4.8vw, 4.35rem);
  margin-bottom: 1.1rem;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.22;
}

p { color: var(--muted); }

.page-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100vh;
  max-width: 2160px;
  margin: 0 auto;
}

.side-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 40;
  min-width: 0;
}

.rail-brand-row {
  display: grid;
  grid-template-columns: min(64px, 18vw) minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand {
  display: contents;
}

.brand > span:last-child,
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  min-width: 0;
}

.rail-brand-row .brand {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  width: min(64px, 18vw);
  height: min(64px, 18vw);
  max-width: 64px;
  max-height: 64px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, var(--accent-soft), var(--accent)),
    radial-gradient(circle at 30% 25%, #fff 0%, transparent 55%);
  box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 auto;
  min-width: 0;
}

.rail-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.55rem 0.5rem;
  border-top: 1px solid var(--line);
}

.rail-nav a:hover {
  color: var(--accent-deep);
}

.rail-cta-wrap { margin-top: auto; min-width: 0; }

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rail-cta-wrap .header-cta {
  width: 100%;
  text-align: center;
}

.header-cta,
.button-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-deep);
}

.button-primary:hover,
.header-cta:hover {
  background: var(--accent-deep);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.page-main { min-width: 0; }

.section-inner {
  width: min(var(--content-max), calc(100% - clamp(1.25rem, 3.5vw, 2.75rem)));
  margin: 0 auto;
}

.section { padding: var(--section-space) 0; }

.eyebrow,
.section-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  max-width: 42rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.65rem 0 1rem;
}

.geo-line {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

/* Creative Studio hero — frosted band + cutout window for scene */
.cs-hero {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero-stage {
  position: relative;
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.06);
}

.hero-copy { min-width: 0; z-index: 2; }

.hero-visual-shell {
  position: relative;
  min-width: 0;
  justify-self: stretch;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: linear-gradient(165deg, #eef3fb 0%, #dfeaf8 48%, #c8daf0 100%);
  max-height: var(--hero-max-h-desktop);
  max-width: 100%;
  aspect-ratio: 4 / 3;
}

.hero-visual {
  width: 100%;
  height: 100%;
  min-height: clamp(200px, 32vh, 420px);
  max-height: var(--hero-max-h-desktop);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-heading > p { font-size: 1.02rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.asymmetric-service-grid .card:nth-child(1) { grid-column: span 5; }
.asymmetric-service-grid .card:nth-child(2) { grid-column: span 7; transform: translateY(0.85rem); }
.asymmetric-service-grid .card:nth-child(3) { grid-column: span 4; }
.asymmetric-service-grid .card:nth-child(4) { grid-column: span 4; transform: translateY(-0.55rem); }
.asymmetric-service-grid .card:nth-child(5) { grid-column: span 4; }
.asymmetric-service-grid .card:nth-child(6) { grid-column: span 6; transform: translateY(0.65rem); }
.asymmetric-service-grid .card:nth-child(7) { grid-column: span 6; }

.card {
  min-width: 0;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
}

.card p { margin-bottom: 0; }

.card-icon,
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: var(--accent-glow);
  color: var(--accent-deep);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.card small {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted-soft);
  font-size: 0.78rem;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.process-list li {
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.process-list .step-icon { flex: 0 0 42px; margin-bottom: 0; }

.geo-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.geo-chip {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-glow));
}

.geo-chip strong,
.geo-chip span { display: block; }

.geo-chip span {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.guide-body { display: grid; gap: 1.25rem; }

.chapter {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.chapter ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.chapter li { margin: 0.35rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.tripscan-disclaimer {
  font-size: 0.82rem !important;
  margin-top: 1rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--page);
  color: var(--text);
  padding: 0.78rem 0.85rem;
  border-radius: calc(var(--radius) - 4px);
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.form-message {
  color: var(--accent-deep);
  margin: 0;
  font-size: 0.88rem;
}

.site-footer {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: color-mix(in srgb, var(--surface) 88%, var(--page));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand { font-size: 1.35rem; font-weight: 700; }

.site-footer a {
  display: block;
  color: var(--muted);
  margin: 0.3rem 0;
  font-size: 0.88rem;
}

.footer-coverage {
  font-size: 0.82rem;
  color: var(--muted-soft);
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-brand-row {
    flex: 1 1 220px;
  }

  .rail-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1 100%;
    order: 3;
  }

  .rail-nav a {
    border-top: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
  }

  .rail-cta-wrap {
    margin-top: 0;
    width: auto;
  }

  .rail-cta-wrap .header-cta { width: auto; }

  .hero-editorial-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual-shell {
    max-height: var(--hero-max-h-tablet);
    max-width: min(100%, calc(var(--hero-max-h-tablet) * 4 / 3 * var(--hero-max-area-tablet) * 2));
  }

  .hero-visual { max-height: var(--hero-max-h-tablet); }

  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

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

@media (max-width: 720px) {
  .hero-visual-shell {
    max-height: var(--hero-max-h-mobile);
    max-width: min(100%, calc(100vw * var(--hero-max-area-mobile)));
  }

  .hero-visual { max-height: var(--hero-max-h-mobile); min-height: 180px; }

  .cards-grid:not(.asymmetric-service-grid),
  .geo-chips,
  .process-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .asymmetric-service-grid .card,
  .asymmetric-service-grid .card:nth-child(n) {
    grid-column: span 12;
    transform: none;
  }
}

@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;
  }
}
