/* ============================================================
   D&T site — shared styles (header, footer, logo, primitives)
   Tokens come from css/tokens/*.css (D&T design system).
   ============================================================ */
@import url('./tokens/colors.css');
@import url('./tokens/typography.css');
@import url('./tokens/spacing.css');

html, body { margin: 0; padding: 0; }
*, *::before, *::after { box-sizing: border-box; }
::selection { background: var(--blue-500); color: #fff; }
a { color: var(--blue-500); }
a:hover { color: var(--blue-700); }
img, video { display: block; }
[hidden] { display: none !important; }

.mono { font-family: var(--font-mono); }

/* Page shell: blueprint grid on white surfaces only */
.page {
  font-family: var(--font-sans);
  color: var(--ink-800);
  background-color: #fbfcfe;
  background-image:
    linear-gradient(#eef2fa 1px, transparent 1px),
    linear-gradient(90deg, #eef2fa 1px, transparent 1px);
  background-size: 36px 36px;
}

.wrap {
  max-width: 1288px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 44px);
  padding-right: clamp(20px, 4vw, 44px);
}
.inner { max-width: 1200px; margin: 0 auto; }

/* ---------- Registration-mark corners ---------- */
.ticks { position: relative; }
.tick {
  position: absolute; width: 14px; height: 14px; z-index: 3; pointer-events: none;
}
.tick--tl { top: -2px; left: -2px; border-top: 2px solid var(--blue-500); border-left: 2px solid var(--blue-500); }
.tick--br { bottom: -2px; right: -2px; border-bottom: 2px solid var(--blue-500); border-right: 2px solid var(--blue-500); }
.ticks--inset .tick--tl { top: -1px; left: -1px; }
.ticks--inset .tick--br { bottom: -1px; right: -1px; }

/* ---------- Section heading: 01 —— Title ———— ---------- */
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.sec-head__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--blue-500); }
.sec-head__title { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900); margin: 0; }
.sec-head__rule { flex: 1; height: 1px; background: #d6deef; }

/* ---------- Buttons ---------- */
/* DS Button · variant="dark" · size="lg" */
.btn-ds {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px;
  font-family: var(--font-sans); font-size: 16px; font-weight: var(--fw-semibold);
  letter-spacing: 0.01em; line-height: 1; white-space: nowrap;
  border-radius: var(--radius-sm);
  background: var(--color-action); color: var(--color-on-action);
  border: 1px solid var(--color-action);
  text-decoration: none; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast);
}
.btn-ds:hover { background: var(--color-action-hover); color: #fff; }
.btn-ds:active { transform: translateY(0.5px); }

/* Uppercase CTA (View more → / Contact us →) */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; padding: 13px 22px; border-radius: 5px; text-decoration: none;
  transition: background 160ms ease;
}
.cta--dark { color: #fff; background: var(--ink-950); }
.cta--dark:hover { background: var(--blue-900); color: #fff; }
.cta--light { color: var(--ink-950); background: #fff; }
.cta--light:hover { background: #dfe4f3; color: var(--ink-950); }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

/* ---------- Tabs (underline style) ---------- */
.tabs {
  display: flex; gap: 28px; border-bottom: 1px solid var(--ink-200); margin-bottom: 36px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__tab {
  all: unset; cursor: pointer; white-space: nowrap; font-size: 14px; font-weight: 500; color: #7a818c;
  padding: 12px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 160ms ease;
  font-family: var(--font-sans);
}
.tabs__tab[aria-selected="true"] { font-weight: 600; color: var(--ink-900); border-bottom-color: var(--blue-500); }
.tabs__tab:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.tabs--lav { border-bottom-color: #cdd5ea; margin-bottom: 32px; }

/* ---------- Small shared bits ---------- */
.label-mono {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #7a818c; margin-bottom: 10px;
}
.kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--blue-500);
  text-transform: uppercase; margin-bottom: 12px;
}
.chip {
  font-family: var(--font-mono); font-size: 13px; color: var(--blue-900); background: var(--surface-lavender);
  border: 1px solid #d6deef; padding: 3px 10px; border-radius: 5px;
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip--white { font-size: 12.5px; background: #fff; border-color: #cdd5ea; padding: 4px 10px; }
.muted { color: var(--ink-600); }
.prose { display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 1.75; color: var(--ink-600); }
.prose p { margin: 0; text-wrap: pretty; }
.card-accent { background: #fff; border: 1px solid #d6deef; border-top: 3px solid var(--blue-500); }
.frame { position: relative; border: 1.5px solid var(--blue-500); background: #fff; }
.frame--shadow { box-shadow: 0 12px 30px rgba(31,39,64,0.08); }

/* Key / value rows (mono label + value) */
.kv { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ink-200); }
.kv > div { padding: 13px 0; border-bottom: 1px solid var(--ink-200); }
.kv dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #7a818c; margin-bottom: 4px; }
.kv dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--blue-900); }
.kv a { color: var(--blue-900); text-decoration: none; }
.kv a:hover { color: var(--blue-500); }
/* inline variant: label left, value right */
.kv--row > div { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding: 12px 0; }
.kv--row dt { margin: 0; white-space: nowrap; }
.kv--row dd { font-size: 14px; text-align: right; }

/* ---------- Sub-page header band ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue-800), var(--blue-900)); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.16; }
.page-hero__inner { position: relative; padding-top: 56px; padding-bottom: 52px; }
.page-hero__eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--blue-300); text-transform: uppercase;
  margin-bottom: 16px; display: flex; gap: 16px; align-items: center;
}
.page-hero__eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--blue-300); flex: none; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: #fff; margin: 0 0 14px; }
.page-hero p { font-size: 16px; line-height: 1.6; color: #cdd3e2; max-width: 560px; margin: 0; text-wrap: pretty; }

/* In-page section nav under the header band */
.subnav { background: #fff; border-bottom: 1px solid #d6deef; }
.subnav nav { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav nav::-webkit-scrollbar { display: none; }
.subnav a {
  padding: 15px 0; font-size: 14px; font-weight: 500; color: var(--ink-600); text-decoration: none;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.subnav a:hover { color: var(--ink-900); border-bottom-color: var(--blue-500); }

/* Section rhythm */
.section { scroll-margin-top: 80px; padding-top: 68px; padding-bottom: 64px; }
.band { scroll-margin-top: 80px; padding: 68px clamp(20px, 4vw, 44px) 76px; }
.band--lav { background: var(--surface-lavender); }
.band--lav .sec-head__rule { background: #cdd5ea; }
.sec-head--gap { margin-bottom: 28px; }
.lede { font-size: 15px; line-height: 1.7; color: var(--ink-600); max-width: 640px; margin: 0 0 32px; text-wrap: pretty; }

/* Dark call-to-action band */
.cta-band { position: relative; padding: 56px clamp(20px, 4vw, 44px); background: var(--blue-900); overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.14; }
.cta-band__inner { position: relative; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-band__text { flex: 1 1 480px; }
.cta-band h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: #fff; margin: 0 0 8px; }
.cta-band p { font-size: 15px; line-height: 1.7; color: var(--blue-200); margin: 0; text-wrap: pretty; }

/* ============================================================
   Animated brand logo ("Precision Assemble")
   ============================================================ */
.dnt-hl { position: relative; display: inline-block; line-height: 0;
  --mk: 30px; --ww: calc(var(--mk) * 2.991);
  --cad: #6c80b8; --cadg: rgba(80,104,168,.20); }
.dnt-hl.bg-dark { --cad: #9aa9d6; --cadg: rgba(154,169,214,.22); }
.dnt-hl-lockup { position: relative; display: inline-block; width: var(--ww); height: calc(var(--ww) * 0.407); }
.dnt-hl-markwrap { position: absolute; left: 2.5%; top: 7.72%; width: 33.43%; height: 82.1%; }
.dnt-hl-mark-inner { position: absolute; inset: 0; will-change: transform, opacity; }
.dnt-hl-mark { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1; }
.dnt-hl-grid { position: absolute; inset: -12%; opacity: 0;
  background-image: linear-gradient(var(--cadg) 1px, transparent 1px), linear-gradient(90deg, var(--cadg) 1px, transparent 1px);
  background-size: 5px 5px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 82%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 82%); }
.dnt-hl-br { position: absolute; width: 26%; height: 26%; border: 1.5px solid var(--cad); opacity: 0; }
.dnt-hl-br.tl { left: -7%; top: -7%; border-right: none; border-bottom: none; }
.dnt-hl-br.tr { right: -7%; top: -7%; border-left: none; border-bottom: none; }
.dnt-hl-br.bl { left: -7%; bottom: -7%; border-right: none; border-top: none; }
.dnt-hl-br.br { right: -7%; bottom: -7%; border-left: none; border-top: none; }
.dnt-hl-text { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1;
  clip-path: inset(0 0% 0 38%); display: none; pointer-events: none; }
.dnt-hl.bg-light .txt-light { display: block; }
.dnt-hl.bg-dark .txt-dark { display: block; }

.dnt-hl.playing .dnt-hl-grid { animation: dnthl-grid 1.9s ease forwards; }
.dnt-hl.playing .dnt-hl-br.tl { animation: dnthl-tl 1.9s cubic-bezier(.3,.7,.3,1) forwards; }
.dnt-hl.playing .dnt-hl-br.tr { animation: dnthl-tr 1.9s cubic-bezier(.3,.7,.3,1) forwards; }
.dnt-hl.playing .dnt-hl-br.bl { animation: dnthl-bl 1.9s cubic-bezier(.3,.7,.3,1) forwards; }
.dnt-hl.playing .dnt-hl-br.br { animation: dnthl-br 1.9s cubic-bezier(.3,.7,.3,1) forwards; }
.dnt-hl.playing .dnt-hl-mark { animation: dnthl-mark 1.9s cubic-bezier(.4,0,.2,1) forwards; }
.dnt-hl.playing .dnt-hl-text { animation: dnthl-text 2.05s cubic-bezier(.4,0,.2,1) forwards; }

@keyframes dnthl-grid { 0% { opacity: 0 } 20% { opacity: 1 } 68% { opacity: 1 } 100% { opacity: 0 } }
@keyframes dnthl-tl { 0% { opacity: 0; transform: translate(-11px,-11px) } 24% { opacity: 1 } 44% { transform: translate(0,0) } 60% { opacity: 1 } 80% { opacity: 0 } 100% { opacity: 0 } }
@keyframes dnthl-tr { 0% { opacity: 0; transform: translate(11px,-11px) } 24% { opacity: 1 } 44% { transform: translate(0,0) } 60% { opacity: 1 } 80% { opacity: 0 } 100% { opacity: 0 } }
@keyframes dnthl-bl { 0% { opacity: 0; transform: translate(-11px,11px) } 24% { opacity: 1 } 44% { transform: translate(0,0) } 60% { opacity: 1 } 80% { opacity: 0 } 100% { opacity: 0 } }
@keyframes dnthl-br { 0% { opacity: 0; transform: translate(11px,11px) } 24% { opacity: 1 } 44% { transform: translate(0,0) } 60% { opacity: 1 } 80% { opacity: 0 } 100% { opacity: 0 } }
@keyframes dnthl-mark { 0%, 50% { opacity: 0; transform: scale(1.08) } 64% { opacity: 1 } 74% { transform: scale(1) } 80% { transform: scale(1.015) } 100% { opacity: 1; transform: scale(1) } }
@keyframes dnthl-text { 0%, 68% { clip-path: inset(0 100% 0 38%); opacity: 0; } 72% { opacity: 1; } 100% { clip-path: inset(0 0% 0 38%); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .dnt-hl .dnt-hl-mark { opacity: 1 !important; animation: none !important; }
  .dnt-hl .dnt-hl-text { opacity: 1 !important; clip-path: inset(0 0% 0 38%) !important; animation: none !important; }
  .dnt-hl .dnt-hl-grid, .dnt-hl .dnt-hl-br { animation: none !important; opacity: 0 !important; }
}

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid #d6deef;
  background: rgba(251,252,254,0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-sans);
}
.site-header__bar {
  max-width: 1288px; margin: 0 auto;
  padding: 12px clamp(20px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__home { display: flex; align-items: center; text-decoration: none; }
.site-header__right { display: flex; align-items: center; gap: 40px; }
.site-nav { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.site-nav__item { position: relative; padding: 10px 0; }
.site-nav__link {
  text-decoration: none; color: var(--ink-700); font-weight: 500;
  padding-bottom: 3px; border-bottom: 2px solid transparent; transition: color 160ms ease;
}
.site-nav__link[aria-current="page"] { color: var(--blue-900); font-weight: 600; border-bottom-color: var(--blue-500); }
.site-nav__drop {
  display: none; position: absolute; top: 100%; left: -16px; min-width: 200px;
  background: #fff; border: 1px solid #d6deef; border-top: 2px solid var(--blue-500);
  box-shadow: 0 12px 28px rgba(31,39,64,0.12); padding: 6px 0; flex-direction: column;
}
.site-nav__item:hover .site-nav__drop,
.site-nav__item:focus-within .site-nav__drop { display: flex; }
.site-nav__drop a {
  padding: 9px 16px; font-size: 13px; font-weight: 500; color: var(--ink-700);
  text-decoration: none; transition: background 140ms ease;
}
.site-nav__drop a:hover { background: #f3f5fc; color: var(--blue-900); }
.site-header__quote {
  text-decoration: none; font-size: 13px; font-weight: 600; color: #fff;
  background: var(--ink-950); padding: 10px 20px; border-radius: 999px; transition: background 160ms ease;
}
.site-header__quote:hover { background: var(--blue-500); color: #fff; }
.site-header__menu-btn {
  display: none;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--blue-900);
  background: #fff; border: 1px solid var(--ink-300); border-radius: 5px;
  padding: 10px 16px; min-height: 44px; cursor: pointer;
}
.site-menu {
  border-top: 1px solid #d6deef; background: #fff;
  padding: 8px clamp(20px, 4vw, 44px) 20px; flex-direction: column; display: none;
}
.site-menu__group { padding: 12px 0; border-bottom: 1px solid #eef1f6; }
.site-menu__title { font-size: 16px; font-weight: 600; color: var(--blue-900); text-decoration: none; }
.site-menu__subs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.site-menu__subs a { font-size: 14px; color: var(--ink-600); text-decoration: none; padding: 6px 0; }
.site-menu__quote {
  margin-top: 16px; text-align: center; text-decoration: none; font-size: 14px; font-weight: 600;
  color: #fff; background: var(--ink-950); padding: 13px 20px; border-radius: 999px;
}
.site-menu__quote:hover { color: #fff; }

@media (max-width: 899.98px) {
  .site-header__right { display: none; }
  .site-header__menu-btn { display: inline-block; }
  .site-header.menu-open .site-menu { display: flex; }
}

/* ============================================================
   Site footer
   ============================================================ */
.site-footer { background: var(--blue-900); padding: 56px clamp(20px, 4vw, 44px) 28px; font-family: var(--font-sans); }
.site-footer__top { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px 56px; }
.site-footer__brand { flex: 1 1 260px; }
.site-footer__logo { height: 30px; width: auto; margin-bottom: 18px; }
.site-footer__addr { font-size: 13px; line-height: 1.7; color: #a3abc3; margin: 0 0 14px; font-style: normal; }
.site-footer__contact { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; }
.site-footer__contact a { color: var(--blue-200); text-decoration: none; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__cols { flex: 3 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 32px; }
.site-footer__col-title {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--blue-300); text-transform: uppercase; margin-bottom: 16px; text-decoration: none;
}
.site-footer__col-title:hover { color: #fff; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { font-size: 13px; color: #d3d8e3; text-decoration: none; transition: color 140ms ease; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom {
  max-width: 1200px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--blue-300);
}
.site-footer__bottom a { color: #d3d8e3; text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }
