/* LANE design system — tokens */
:root {
  /* Color — black primary, taupe accent */
  --bg:           #ffffff;
  --bg-tinted:    #f7f5f0;      /* card / surface — warm neutral */
  --bg-deep:      #ece7dc;      /* contact band / accent surface */
  --ink:          #0a0a0a;       /* primary text */
  --ink-muted:    #6b6b6b;       /* secondary text */
  --ink-mid:      #4a4a4a;       /* between ink and ink-muted */
  --ink-soft:     #9a9a9a;       /* tertiary / labels */
  --line:         #e5e1d6;       /* warm hairline */
  --line-strong:  #cfc8b6;       /* warm stronger line */
  --ink-inverse-bg: #0a0a0a;
  --ink-inverse:    #f2f2f2;
  --accent:       #b3a78d;       /* taupe — secondary brand color */
  --accent-soft:  #ece7dc;       /* tinted accent surface */
  --accent-deep:  #8f836a;       /* darker accent for hover / deep use */

  /* Typography */
  --f-display: "Geist", "Neue Haas Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-sans:    "Geist", "Neue Haas Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-serif:   "Georgia", "Times New Roman", Times, serif;
  --f-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* Scale — desktop */
  --t-xs:   12px;
  --t-sm:   13px;
  --t-base: 15px;
  --t-md:   17px;
  --t-lg:   20px;
  --t-xl:   28px;
  --t-2xl:  40px;
  --t-3xl:  56px;
  --t-4xl:  80px;
  --t-5xl:  120px;

  /* Spacing (8px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;

  /* Layout */
  --container: 1440px;
  --gutter: 72px;
  --radius: 2px;
  --radius-lg: 4px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 260ms;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Type utilities */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: none;
}

/* Serif accent — LANE signature mark (scoped-override friendly) */
.it { color: var(--accent); font-size: 1.13em; }
/* Brand wordmark — LANE always renders in the serif face */
.brand { font-family: var(--f-serif); font-weight: 400; letter-spacing: 0; }
.lede      { font-size: var(--t-lg); line-height: 1.45; color: var(--ink); letter-spacing: -0.005em; }
.body      { font-size: var(--t-md); line-height: 1.6; color: var(--ink); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-width: 0;
}

/* Global overflow guard — prevent horizontal scroll from any inner overflow */
html, body { overflow-x: clip; max-width: 100%; }
main, section, article, header, footer { min-width: 0; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-wrap: break-word; }

/* Grid/flex overflow guard — grid and flex items default to min-width: auto
   which equals content min-content, forcing tracks wider than their fr allocation
   when content (images, long titles, padding) exceeds the column size.
   This broad guard neutralises it so columns shrink correctly. */
:where([class*="grid"], [class*="list"], [class*="row"], [class*="cols"], [class*="strip"], [class*="logos"], [class*="-in"], [class*="-tiles"]) > * {
  min-width: 0;
}
.container > *, .inner > * { min-width: 0; }
@media (max-width: 900px) {
  :root { --gutter: 24px; }
}

/* Links */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-base);
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-arrow:hover { border-color: var(--ink); }
.link-arrow .ar { transition: transform var(--dur) var(--ease); display: inline-block; }
.link-arrow:hover .ar { transform: translateX(4px); }

/* Global header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100px;
}
.site-header .bar > .site-logo { justify-self: start; }
.site-header .bar > .nav { justify-self: center; }
.site-header .bar > .header-right { justify-self: end; display: flex; align-items: center; gap: 8px; }

.site-logo { display: inline-flex; align-items: center; gap: 14px; }
.site-logo img { height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  padding: 10px 14px;
  font-size: var(--t-base);
  color: var(--ink);
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link .caret { width: 10px; height: 10px; opacity: 0.55; }
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); }
.nav-link { color: var(--ink-muted); }

.nav-dropdown {
  position: absolute; top: calc(100% - 4px); left: 50%;
  transform: translate(-50%, 4px);
  display: flex; gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow: 0 8px 28px -10px rgba(0,0,0,0.12);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; pointer-events: auto; transform: translate(-50%, 0);
}
.nav-dropdown a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: var(--t-sm);
  color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-dropdown a:hover { background: var(--ink); color: var(--bg); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: var(--t-sm);
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: 999px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-cta .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; box-shadow: 0 0 0 3px rgba(179,167,141,0.22); }
.nav-cta:hover .dot { background: var(--accent-deep); box-shadow: 0 0 0 3px rgba(143,131,106,0.32); }

/* Language switcher (header-right, beside Contact) */
.lang-switcher { position: relative; outline: none; }
.lang-switcher .lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); cursor: pointer;
  border-radius: 999px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-switcher .lang-trigger:hover { background: var(--bg-tinted); }
.lang-switcher .lang-trigger .caret { width: 10px; height: 10px; opacity: 0.55; }
.lang-dropdown {
  position: absolute; top: calc(100% - 4px); left: 50%;
  transform: translate(-50%, 4px);
  display: flex; gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow: 0 8px 28px -10px rgba(0,0,0,0.12);
}
.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
  opacity: 1; pointer-events: auto; transform: translate(-50%, 0);
}
.lang-dropdown a {
  padding: 8px 12px; border-radius: 999px;
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); min-width: 40px; text-align: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-dropdown a:hover { background: var(--ink); color: var(--bg); }
.lang-dropdown a.is-active { background: var(--ink); color: var(--bg); }

.burger { display: none; }
@media (max-width: 960px) {
  .nav, .nav-cta { display: none; }
  .site-header .bar { grid-template-columns: 1fr auto auto; }
  .burger {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  }
  .burger .bars { width: 18px; height: 10px; position: relative; }
  .burger .bars::before, .burger .bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  }
  .burger .bars::before { top: 1px; } .burger .bars::after { bottom: 1px; }
}

/* Footer */
.site-footer {
  background: var(--ink-inverse-bg); color: var(--ink-inverse);
  padding: 0;
  margin-top: 0;
}
.site-footer a { color: var(--ink-inverse); }
.site-footer .container { padding-left: var(--gutter); padding-right: var(--gutter); }

.footer-main { padding: 80px 0 40px; }

.footer-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid #222;
}
.footer-col h6 {
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: #9a9a9a; font-weight: 400; margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { color: #e0e0e0; font-size: var(--t-sm); transition: color var(--dur) var(--ease), padding var(--dur) var(--ease); display: inline-block; }
.footer-col ul a:hover { color: #fff; padding-left: 6px; }

.footer-brand-col .brand-mark {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: #fff;
}
.footer-brand-col .brand-mark .it {
  font-family: var(--f-serif); font-style: normal; font-weight: 400; color: var(--accent);
  display: block;
}

.footer-bot {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 0;
  font-family: var(--f-mono); font-size: var(--t-xs); color: #888;
}
.footer-bot .links { display: flex; gap: 24px; }
.footer-bot .links a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* Contact band — marquee strip above footer */
.contact-band {
  background: var(--accent-soft);
  color: var(--ink);
  height: 64px;
  max-height: 100px;
  overflow: hidden;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line-strong);
}
.contact-band .marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.contact-band .marquee-track {
  display: inline-flex;
  gap: 64px;
  white-space: nowrap;
  animation: contact-marquee 40s linear infinite;
  padding-left: 64px;
  will-change: transform;
}
.contact-band .marquee-track span {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.68);
  display: inline-flex; align-items: center; gap: 12px;
}
.contact-band .marquee-track span em {
  font-style: normal;
  color: var(--accent-deep);
  font-weight: 500;
}
.contact-band .marquee-track span + span::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  margin-right: 52px; margin-left: -56px;
  transform: translateY(-1px);
}
@keyframes contact-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.contact-band:hover .marquee-track { animation-play-state: paused; }

/* Stat strip — marquee */
.stat-marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.stat-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: stat-marquee 60s linear infinite;
  will-change: transform;
}
.stat-track .stat {
  flex: 0 0 auto;
  padding: 28px 56px;
  border-left: 1px solid var(--line);
}
.stat-track .stat:first-child { border-left: 0; }
.stat-track .n { font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.025em; font-weight: 500; line-height: 1; }
.stat-track .l { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-muted); margin-top: 10px; text-transform: none; }
.stat-marquee:hover .stat-track { animation-play-state: paused; }
@keyframes stat-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}
@media (max-width: 900px) {
  .stat-track .stat { padding: 22px 36px; }
}

/* Section header pattern */
.sec-head {
  display: block;
  padding-bottom: 40px; margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.sec-head .side { display: block; margin-bottom: 16px; }
.sec-head > .side + * { margin-top: 0; }

/* Focus visible */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }

/* Selection */
::selection { background: var(--accent); color: var(--bg); }
