/* Glassline Detail Studio — editorial auto appearance care */
:root {
  --gl-charcoal: #141416;
  --gl-charcoal-soft: #252528;
  --gl-cream: #f0e9de;
  --gl-cream-deep: #e4dbd0;
  --gl-pale: #f7f4ef;
  --gl-lime: #d4f53c;
  --gl-lime-dim: #b8d92a;
  --gl-metal: #c4a574;
  --gl-metal-deep: #9a7a4e;
  --gl-text: #1c1c1e;
  --gl-mute: #5c5954;
  --gl-focus: #d4f53c;
  --gl-max: 78rem;
  --gl-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --gl-display: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--gl-cream);
  color: var(--gl-text);
  font: 1.05rem/1.62 var(--gl-sans);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gl-charcoal-soft); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.gl-nav-rail:focus-visible,
.gl-cta:focus-visible {
  outline: 3px solid var(--gl-focus);
  outline-offset: 3px;
}

.gl-skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.gl-skip:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 100;
  background: var(--gl-charcoal);
  color: var(--gl-lime);
  padding: 0.75rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.gl-masthead {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem 1rem 0.85rem;
  background: var(--gl-pale);
  border-bottom: 2px solid var(--gl-charcoal);
}

.gl-wordmark {
  font-family: var(--gl-display);
  font-size: clamp(1.15rem, 4.2vw, 1.45rem);
  font-weight: 800;
  text-decoration: none;
  color: var(--gl-charcoal);
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.gl-wordmark span {
  display: block;
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gl-metal-deep);
  margin-top: 0.35rem;
}

.gl-nav { width: 100%; min-width: 0; }

.gl-nav-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--gl-metal) var(--gl-cream-deep);
  padding: 0.15rem 0 0.35rem;
  margin: 0 -0.15rem;
}
.gl-nav-rail a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gl-charcoal);
  background: var(--gl-cream-deep);
  padding: 0.55rem 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid transparent;
}
.gl-nav-rail a:hover {
  background: var(--gl-lime);
  border-color: var(--gl-charcoal);
}
.gl-nav-rail a[aria-current="page"] {
  background: var(--gl-charcoal);
  color: var(--gl-lime);
}

.gl-page {
  max-width: var(--gl-max);
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.gl-lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--gl-mute);
  max-width: 38rem;
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--gl-display);
  font-weight: 800;
  line-height: 0.98;
  color: var(--gl-charcoal);
  margin: 0 0 0.75rem;
  letter-spacing: -0.045em;
}
h1 { font-size: clamp(2.35rem, 9vw, 4.25rem); }
h2 { font-size: clamp(1.55rem, 4.5vw, 2.35rem); letter-spacing: -0.035em; line-height: 1.05; }
h3 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gl-metal-deep); }

.gl-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gl-metal-deep);
  margin: 0 0 0.65rem;
}

.gl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.gl-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  background: var(--gl-charcoal);
  color: var(--gl-lime);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--gl-charcoal);
}
.gl-cta--lime {
  background: var(--gl-lime);
  color: var(--gl-charcoal);
  border-color: var(--gl-charcoal);
}
.gl-cta--ghost {
  background: transparent;
  color: var(--gl-charcoal);
}
.gl-cta--metal {
  background: var(--gl-metal);
  border-color: var(--gl-metal-deep);
  color: var(--gl-charcoal);
}

/* Split hero — image-led with index rail */
.gl-hero-split {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  background: var(--gl-charcoal);
  color: var(--gl-cream);
  margin-bottom: 0;
}

.gl-index-rail {
  grid-row: 1 / 3;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 1rem 0.55rem;
  background: var(--gl-lime);
  color: var(--gl-charcoal);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-right: 2px solid var(--gl-charcoal);
}
.gl-index-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.gl-index-rail a {
  color: inherit;
  text-decoration: none;
}
.gl-index-rail a:hover { text-decoration: underline; }

.gl-hero-split__media {
  grid-column: 2;
  grid-row: 1;
  min-height: 12rem;
  position: relative;
  overflow: hidden;
}
.gl-hero-split__media img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  object-position: 58% 42%;
  aspect-ratio: 16 / 11;
}

.gl-hero-split__copy {
  grid-column: 2;
  grid-row: 2;
  padding: 1.35rem 1.15rem 1.75rem;
}
.gl-hero-split__copy h1 { color: var(--gl-cream); margin-bottom: 0.65rem; }
.gl-hero-split__copy .gl-lede { color: rgba(240, 233, 222, 0.82); }

.gl-hero-split--page .gl-hero-split__media img {
  aspect-ratio: 16 / 9;
  min-height: 10rem;
  max-height: 28vh;
  object-position: 50% 40%;
}
.gl-hero-split--page .gl-hero-split__copy { padding-top: 1rem; }

/* Bands */
.gl-band {
  padding: 2rem 1.15rem;
}
.gl-band--black {
  background: var(--gl-charcoal);
  color: var(--gl-cream);
  margin-left: 0;
  margin-right: 0;
}
.gl-band--black h2,
.gl-band--black h3 { color: var(--gl-lime); }
.gl-band--black .gl-lede { color: rgba(240, 233, 222, 0.78); }
.gl-band--black a:not(.gl-cta) { color: var(--gl-lime); }

.gl-band--lime {
  background: var(--gl-lime);
  color: var(--gl-charcoal);
  border-top: 2px solid var(--gl-charcoal);
  border-bottom: 2px solid var(--gl-charcoal);
}
.gl-band--lime h2 { color: var(--gl-charcoal); }

.gl-band--pale {
  background: var(--gl-pale);
}

.gl-band--editorial {
  background: var(--gl-cream);
  border-top: 1px solid var(--gl-metal);
}

.gl-discipline-strip {
  display: grid;
  gap: 0;
  border: 2px solid var(--gl-charcoal);
  margin-top: 1.25rem;
}
.gl-discipline-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--gl-charcoal);
  background: var(--gl-pale);
  min-height: 44px;
}
.gl-discipline-row:last-child { border-bottom: none; }
.gl-discipline-row:hover { background: var(--gl-lime); }
.gl-discipline-row__num {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gl-metal-deep);
}
.gl-discipline-row h3 { margin: 0; font-size: 0.92rem; }
.gl-discipline-row p { margin: 0.2rem 0 0; font-size: 0.92rem; color: var(--gl-mute); text-transform: none; letter-spacing: 0; font-weight: 400; }
.gl-discipline-row__arrow {
  font-weight: 800;
  color: var(--gl-charcoal);
}

.gl-journal {
  display: grid;
  gap: 1.35rem;
  margin-top: 1rem;
}
.gl-journal__meta {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gl-metal-deep);
  margin-bottom: 0.5rem;
}

.gl-spec-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.gl-spec-list li {
  padding: 0.85rem 1rem 0.85rem 3.25rem;
  background: var(--gl-pale);
  border-left: 4px solid var(--gl-lime-dim);
  position: relative;
  color: var(--gl-mute);
  font-size: 0.98rem;
}
.gl-spec-list li::before {
  content: attr(data-tag);
  position: absolute;
  left: 0.85rem;
  top: 0.82rem;
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--gl-charcoal);
  letter-spacing: 0.05em;
}

.gl-photo {
  margin: 0;
  overflow: hidden;
  background: var(--gl-charcoal);
}
.gl-photo img { width: 100%; object-fit: cover; }
.gl-crop--bay img { aspect-ratio: 5 / 4; object-position: 55% 40%; }
.gl-crop--coat img { aspect-ratio: 4 / 5; object-position: 48% 35%; }
.gl-crop--cabin img { aspect-ratio: 16 / 10; object-position: 52% 45%; }
.gl-crop--wide img { aspect-ratio: 16 / 9; object-position: 50% 42%; }
.gl-crop--tall img { aspect-ratio: 3 / 4; object-position: 50% 38%; }

.gl-split-editorial {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

.gl-approach-cols {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}
.gl-approach-card {
  padding: 1.15rem;
  background: var(--gl-charcoal-soft);
  border: 1px solid rgba(212, 245, 60, 0.25);
}
.gl-approach-card h3 { color: var(--gl-lime); margin-bottom: 0.45rem; }
.gl-approach-card p { margin: 0; color: rgba(240, 233, 222, 0.85); font-size: 0.98rem; }
.gl-approach-card a {
  color: var(--gl-lime);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
.gl-approach-card a:hover { color: var(--gl-cream); }

.gl-path-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.gl-path-pill {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--gl-charcoal);
  color: var(--gl-cream);
  border: 1px solid var(--gl-charcoal);
}
.gl-path-pill:hover {
  background: var(--gl-lime);
  color: var(--gl-charcoal);
}

.gl-faq {
  border-bottom: 2px solid var(--gl-charcoal);
  padding: 0.85rem 0;
  margin: 0;
}
.gl-faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.98rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}
.gl-faq summary::-webkit-details-marker { display: none; }
.gl-faq p { margin: 0.65rem 0 0; color: var(--gl-mute); max-width: 40rem; }

.gl-footer {
  background: var(--gl-charcoal);
  color: var(--gl-cream);
  padding: 1.75rem 1.15rem 2.25rem;
  margin-top: 2rem;
}
.gl-disclosure {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gl-lime);
  margin: 0 0 1.25rem;
}
.gl-footer-grid {
  display: grid;
  gap: 1.25rem;
}
.gl-footer-mark {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gl-metal);
}
.gl-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1.5rem;
}
.gl-footer-links li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}
.gl-footer-links a {
  color: var(--gl-cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.gl-footer-links a:hover { color: var(--gl-lime); }

@media (max-width: 719px) {
  .gl-hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .gl-index-rail {
    grid-column: 1;
    grid-row: 1;
    writing-mode: horizontal-tb;
    transform: none;
    width: 100%;
    border-right: none;
    border-bottom: 2px solid var(--gl-charcoal);
    padding: 0.55rem 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .gl-index-rail ol {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.65rem;
  }
  .gl-index-rail li { flex: 0 0 auto; white-space: nowrap; }
  .gl-hero-split__media {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
  .gl-hero-split__copy {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
  }
  .gl-hero-split__copy h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .gl-discipline-row {
    grid-template-columns: 2.5rem 1fr;
  }
  .gl-discipline-row__arrow { display: none; }
  .gl-path-pill { max-width: 100%; }
}

@media (min-width: 720px) {
  .gl-masthead {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    max-width: var(--gl-max);
    margin: 0 auto;
  }
  .gl-nav { flex: 1 1 auto; max-width: 52rem; }
  .gl-nav-rail {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: flex-end;
    gap: 0.25rem 0.35rem;
  }
  .gl-hero-split {
    grid-template-columns: auto 1.15fr 0.85fr;
    grid-template-rows: 1fr;
    min-height: 28rem;
  }
  .gl-hero-split__media {
    grid-column: 2;
    grid-row: 1;
    min-height: 100%;
  }
  .gl-hero-split__media img {
    min-height: 28rem;
    aspect-ratio: auto;
    height: 100%;
  }
  .gl-hero-split__copy {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.75rem;
  }
  .gl-hero-split--page {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }
  .gl-hero-split--page .gl-hero-split__media { grid-column: 2; grid-row: 1; }
  .gl-hero-split--page .gl-hero-split__copy { grid-column: 2; grid-row: 2; }
  .gl-band { padding: 2.5rem 1.75rem; }
  .gl-split-editorial { grid-template-columns: 1fr 1fr; }
  .gl-split-editorial--flip > *:first-child { order: 2; }
  .gl-journal { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .gl-approach-cols { grid-template-columns: repeat(3, 1fr); }
  .gl-footer-grid {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
    max-width: var(--gl-max);
    margin: 0 auto;
  }
  .gl-footer-links ul { columns: 2; }
}

@media (min-width: 1024px) {
  .gl-discipline-strip { grid-template-columns: repeat(2, 1fr); }
  .gl-discipline-row:nth-child(odd) { border-right: 1px solid var(--gl-charcoal); }
}
