/* GTECH DISTRIBUTIONS — Druk + GT Walsheim */
@font-face {
  font-family: "Druk";
  src: url("../assets/fonts/Druk-Bold.woff2") format("woff2"),
       url("../assets/fonts/Druk-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Walsheim";
  src: url("../assets/fonts/GTWalsheim.woff2") format("woff2"),
       url("../assets/fonts/GTWalsheim.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Walsheim";
  src: url("../assets/fonts/GTWalsheim-Medium.woff2") format("woff2"),
       url("../assets/fonts/GTWalsheim-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --sand: #f7e4cb;
  --black: #0a121a;
  --olive: #4e6659;
  --white: #ffffff;
  --coral: #ff5e6f;
  --muted: #000000;
  --line: rgba(10, 18, 26, 0.12);
  --sand-dim: rgba(247, 228, 203, 0.72);
  /* Display + body fonts */
  --display: "Druk", "Arial Narrow", sans-serif;
  --sans: "GT Walsheim", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --frame: 1440px;
  --pad: clamp(20px, 3.5vw, 48px);
  --header: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--sand);
  color: var(--black);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
p, ol, ul, figure { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.25rem); max-width: 18ch; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.25rem); max-width: 22ch; }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.95rem); letter-spacing: 0.03em; }
[hidden] { display: none !important; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--black);
  color: var(--sand);
  padding: 8px 12px;
}

.frame {
  width: min(var(--frame), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  max-width: 100%;
}

.label {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
}

.slogan {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--coral);
  letter-spacing: 0.03em;
}
.slogan.light { color: var(--sand); margin-bottom: 10px; }
.partner-line {
  margin: -6px 0 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pill:hover {
  background: var(--black);
  color: var(--sand);
  transform: translateY(-1px);
}
.pill.solid { background: var(--coral); color: var(--white); }
.pill.solid.dark { background: var(--black); color: var(--sand); }
.pill.solid.dark:hover { background: var(--olive); }
.pill:disabled,
.pill[disabled] {
  background: #cfc6b8;
  color: #fff;
  cursor: not-allowed;
  transform: none;
}
.pill:disabled:hover,
.pill[disabled]:hover {
  background: #cfc6b8;
  color: #fff;
  transform: none;
}

.text-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--black);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}
.text-go::after {
  content: "→";
  color: var(--coral);
}
.text-go:hover { color: var(--olive); }

.ghost-btn {
  border: 0;
  background: transparent;
  min-height: 40px;
  padding: 0 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--muted);
}
.ghost-btn:hover { color: var(--black); }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top-row {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.brand-lockup img {
  display: block;
  width: auto;
  height: clamp(34px, 4.2vw, 46px);
  max-width: min(420px, 58vw);
  object-fit: contain;
}
.mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35em;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--sand);
}
.mark span {
  font-family: inherit;
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  line-height: inherit;
}
.mark.invert { color: var(--sand); }
.mark.invert span { color: var(--sand); }

.top-nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}
.top-nav a {
  font-size: 1.05rem;
  font-weight: 400;
  color: #000000;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}
.top-nav a:hover { color: var(--coral); }

.top-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.top-tools .ghost-btn {
  font-size: 1.05rem;
  font-weight: 400;
  color: #000000;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}
.top-tools .ghost-btn:hover { color: var(--coral); }
.lang { position: relative; }
.lang-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  min-width: 148px;
  max-height: min(320px, 70vh);
  overflow-y: auto;
  z-index: 60;
  box-shadow: 0 10px 24px rgba(10, 18, 26, 0.1);
}
html[lang^="zh"] body,
html[lang^="ja"] body {
  font-family: "Noto Sans SC", "Noto Sans JP", "GT Walsheim", system-ui, sans-serif;
}
.lang-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}
.lang-list button:hover,
.lang-list button.is-active { background: var(--sand); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--black);
  transition: transform 0.2s ease, top 0.2s ease;
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle.is-open span:first-child {
  top: 19px;
  transform: rotate(45deg);
}
.menu-toggle.is-open span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

.drawer {
  border-top: 1px solid var(--line);
  padding: 8px 0 18px;
  background: var(--white);
}
.drawer-links a,
.drawer-links button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
}
.drawer-links .pill {
  width: 100%;
  margin-top: 14px;
}

/* Hero */
.open {
  padding: 48px 0 40px;
  background:
    radial-gradient(ellipse 65% 45% at 8% 15%, rgba(78, 102, 89, 0.16), transparent 55%),
    var(--sand);
}
.open-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.open-figure {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--black);
  box-shadow: 0 18px 40px rgba(10, 18, 26, 0.16);
}
.open-figure .hero-poster,
.open-figure .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.open-figure .hero-poster { z-index: 0; }
.open-figure .hero-video { z-index: 1; }
.open-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  max-width: 48ch;
}
.open-lead .lead-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15em;
  color: var(--black);
  letter-spacing: 0.02em;
}
.open-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Why */
.why {
  padding: 80px 0;
  background: var(--white);
}
.section-intro { margin-bottom: 36px; }
.section-intro.wide h2 { max-width: none; }
.intro-lead {
  margin-top: 14px;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.08rem;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-grid article {
  padding: 24px;
  background: var(--sand);
  border-radius: 14px;
  border: 1px solid var(--line);
  min-height: 100%;
}
.why-grid h3 {
  margin-bottom: 10px;
  font-size: clamp(0.9rem, 1.5vw, 1.45rem);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.why-grid p { color: var(--muted); font-size: 0.98rem; }

/* Products */
.stack {
  padding: 56px 0;
  background: var(--sand);
}
.stack .section-intro {
  margin-bottom: 8px;
}
.slab {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.slab-flip {
  grid-template-columns: 0.95fr 1.05fr;
}
.slab-flip .slab-text { order: 2; }
.slab-flip img { order: 1; }
.slab-no-media {
  grid-template-columns: 1fr;
}
.slab img {
  width: 100%;
  max-height: 168px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: var(--black);
}
.slab img.slab-img-contain {
  object-fit: contain;
  background: #0A121A;
}
.slab img.slab-img-top {
  object-position: top;
  object-fit: contain;
  max-height: 240px;
  aspect-ratio: 16 / 9;
  background: #0A121A;
}
.slab img.slab-img-low {
  object-position: 50% 72%;
}
.slab img.slab-img-upper {
  object-position: 50% 30%;
}
.slab img.slab-img-spc {
  object-position: 50% 0%;
}
.slab img.slab-img-sch {
  object-position: 50% 0%;
}
.slab img.slab-img-itin {
  object-position: 50% 0%;
  object-fit: cover;
}
.slab img.slab-img-hx {
  object-position: 50% 0%;
}
.slab img.slab-img-bottom {
  /* Slightly flatter than 16:9 so cover crops a little from the top */
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
  object-position: center bottom;
}
.slab img.slab-img-full {
  max-height: 320px;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}
.slab-text h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.02em;
}
.slab-text p:not(.label) {
  margin: 8px 0 10px;
  color: var(--muted);
  max-width: 48ch;
  font-size: 0.9rem;
  line-height: 1.45;
}
.slab-text .text-go {
  font-size: 0.88rem;
}

/* Field */
.field {
  position: relative;
  min-height: 380px;
  display: grid;
  align-items: end;
}
.field > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.48);
}
.field-caption {
  position: relative;
  z-index: 1;
  padding: 52px 0;
}
.field-caption .slogan {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}
.field-caption > p:last-child {
  max-width: 36ch;
  font-size: 1.05rem;
  color: var(--sand-dim);
}

/* Principles */
.principles {
  padding: 72px 0;
  background: var(--black);
  color: var(--sand);
}
.principles .label { color: var(--coral); }
.principles h2 { color: var(--sand); max-width: 18ch; }
.principles-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.principle-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}
.principle-list li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(247, 228, 203, 0.14);
  display: grid;
  gap: 6px;
}
.principle-list li:first-child { padding-top: 0; }
.principle-list strong {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.principle-list span { color: var(--sand-dim); }

/* Voice */
.voice {
  padding: 64px 0 80px;
  background: var(--white);
}
.voice-card {
  max-width: 960px;
  padding: 32px;
  background: var(--sand);
  border-radius: 16px;
  border-left: 5px solid var(--coral);
}
blockquote {
  margin: 8px 0 16px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.3;
  color: var(--black);
}
.attr {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Connect — two columns, no fragile % gradient split */
.connect {
  padding: 80px 0;
  background: var(--olive);
}
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.connect-intro {
  color: var(--sand);
  padding: 8px 4px 8px 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.connect-intro .label { color: var(--coral); }
.connect-intro h2 {
  color: var(--sand);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}
.office-address {
  margin-top: 14px;
  color: var(--sand-dim);
  font-style: normal;
  max-width: 42ch;
  line-height: 1.55;
}
.map-embed {
  margin-top: 22px;
  flex: 1;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(247, 228, 203, 0.18);
  background: rgba(10, 18, 26, 0.25);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.intake {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(10, 18, 26, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
  box-shadow: 0 18px 40px rgba(10, 18, 26, 0.14);
}
.intake h3 {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 4px;
  color: #000000;
}
.intake label {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 400;
  color: #000000;
}
.intake .full { grid-column: 1 / -1; }
.intake input,
.intake textarea,
.intake select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--sand);
  outline: none;
  width: 100%;
  appearance: auto;
  color: #000000;
  font-weight: 400;
}
.intake input::placeholder,
.intake textarea::placeholder {
  color: #000000;
  opacity: 1;
  font-weight: 400;
}
.intake select {
  color: #000000;
  font-weight: 400;
}
.intake input:focus,
.intake textarea:focus,
.intake select:focus { border-color: var(--black); }
.intake .pill {
  justify-self: start;
  grid-column: 1 / -1;
  margin-top: 4px;
  font-weight: 400;
}
.toast {
  grid-column: 1 / -1;
  color: var(--olive);
  font-weight: 700;
  font-size: 0.9rem;
}
.toast.on-dark { color: var(--sand); }
.toast.is-error { color: var(--coral); }

/* Footer */
.foot {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--sand);
  padding: 64px 0 0;
}
.foot-main {
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) minmax(0, 2.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
  padding-bottom: 8px;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 100%;
}
.foot-logo {
  display: inline-flex;
  line-height: 0;
}
.foot-logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(360px, 72vw);
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.foot-follow-label {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sand);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.foot-col h4 {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sand);
}
.foot-col a,
.foot-col .foot-link-btn {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--sand-dim);
  margin-bottom: 11px;
  transition: color 0.2s var(--ease);
}
.foot-col .foot-link-btn {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.foot-col a:hover,
.foot-col .foot-link-btn:hover { color: var(--white); }
.foot-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.foot-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  color: var(--sand);
  flex-shrink: 0;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.foot-social-links a:hover { color: var(--white); }
.foot-social-links svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.foot-mark {
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin: 28px 0 4px;
  user-select: none;
}
.foot-mark-copy {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 10.4vw, 8.6rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--sand);
  white-space: nowrap;
  animation: foot-mark-slide 5.2s ease-out infinite;
}
@keyframes foot-mark-slide {
  0% { transform: translate3d(100vw, 0, 0); }
  62% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.foot-base {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(247, 228, 203, 0.16);
  font-size: 0.78rem;
  color: var(--sand-dim);
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}
.foot-legal a,
.foot-legal .foot-link-btn {
  color: var(--sand-dim);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.foot-legal a:hover,
.foot-legal .foot-link-btn:hover { color: var(--sand); }
.foot-meta {
  margin-left: auto;
  text-align: right;
}
.foot-copy {
  margin: 0;
  line-height: 1.5;
}
.foot-partner {
  margin: 4px 0 0;
  line-height: 1.5;
}

/* Overlays */
.search-layer {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  box-shadow: 0 12px 30px rgba(10, 18, 26, 0.1);
}
.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-box input {
  flex: 1;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--white);
  outline: none;
}
.search-box input:focus { border-color: var(--black); }

/* Legal page */
.legal {
  padding: 48px 0 80px;
  background: var(--white);
}
.legal-card { max-width: 820px; }
.legal-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}
.legal-card h1 {
  margin: 0 0 28px;
  max-width: none;
  font-size: clamp(2rem, 4vw, 3rem);
}
.legal-body h2 {
  margin: 0 0 16px;
  max-width: none;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
.legal-body p {
  margin: 0 0 16px;
  color: var(--black);
  font-size: 1rem;
  line-height: 1.65;
}
.legal-body ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.legal-body li {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.65;
}
.legal-body li:last-child { margin-bottom: 0; }
.legal-body a {
  color: var(--olive);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover { color: var(--coral); }
.legal-body .notice-sign {
  margin-top: 20px;
  margin-bottom: 6px;
  font-weight: 700;
}
.legal-back {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--olive);
}
.legal-back:hover { color: var(--coral); }

/* Notice overlay */
.notice-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(10, 18, 26, 0.62);
  backdrop-filter: blur(6px);
}
.notice-layer[hidden] { display: none; }
.notice-panel {
  width: min(640px, 100%);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--black);
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(10, 18, 26, 0.28);
  overflow: hidden;
}
.notice-head {
  flex-shrink: 0;
  padding: 28px 32px 18px;
  border-bottom: 1px solid var(--line);
}
.notice-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}
.notice-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
}
.notice-scroll {
  flex: 1 1 auto;
  min-height: 140px;
  overflow-y: auto;
  padding: 22px 32px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.notice-scroll p {
  margin: 0 0 14px;
  color: var(--black);
  font-size: 0.95rem;
  line-height: 1.6;
}
.notice-scroll h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
.notice-scroll ul {
  margin: 0 0 14px;
  padding-left: 1.15em;
}
.notice-scroll li {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.notice-scroll li:last-child { margin-bottom: 0; }
.notice-scroll a {
  color: var(--olive);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notice-scroll a:hover { color: var(--coral); }
.notice-scroll .notice-sign {
  margin-top: 18px;
  margin-bottom: 6px;
  font-weight: 700;
}
.notice-scroll p:last-child { margin-bottom: 0; }
.notice-scroll::-webkit-scrollbar { width: 10px; }
.notice-scroll::-webkit-scrollbar-thumb {
  background: rgba(10, 18, 26, 0.22);
  border-radius: 999px;
  border: 2px solid var(--white);
}
.notice-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  padding: 16px 32px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.notice-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 42ch;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.notice-check input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex-shrink: 0;
  border: 1.5px solid rgba(10, 18, 26, 0.35);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
}
.notice-check input:checked {
  background: var(--olive);
  border-color: var(--olive);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.notice-check input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.notice-actions .pill { min-width: 148px; }
body.notice-open { overflow: hidden; }

@media (max-width: 560px) {
  .notice-head,
  .notice-scroll,
  .notice-actions { padding-left: 20px; padding-right: 20px; }
  .notice-actions { flex-direction: column; align-items: stretch; }
  .notice-actions .pill { width: 100%; }
}

@media (max-width: 960px) {
  .top-nav,
  .top-tools > .pill,
  .top-tools .lang,
  .top-tools > .ghost-btn[data-search] { display: none; }
  .menu-toggle { display: block; }

  .open-grid,
  .why-grid,
  .slab,
  .slab-flip,
  .principles-grid,
  .connect-grid,
  .intake {
    grid-template-columns: 1fr;
  }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .foot-brand {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }
  .foot-mark-copy {
    font-size: clamp(2.4rem, 12vw, 4.4rem);
    line-height: 0.9;
  }
  .slab-flip .slab-text,
  .slab-flip img { order: initial; }
  .why, .stack, .connect { padding: 56px 0; }
  .open { padding: 36px 0 44px; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand { flex-direction: column; align-items: flex-start; }
  .open-actions { flex-direction: column; align-items: flex-start; }
  .brand-lockup img { height: 34px; max-width: 240px; }
  .mark { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .open-figure .hero-video { display: none; }
}
