/* ==========================================================================
   Neo-Pacific Consulting Co. Ltd. — stylesheet
   Single-file, dependency-free. Organised as:
     1. Design tokens          6. Stats
     2. Reset & base           7. Services & cards
     3. Utilities & buttons    8. Brands
     4. Backdrop & header      9. About & timeline
     5. Hero                  10. Offices, contact, footer, motion, print
   ========================================================================== */

/* 1. Design tokens -------------------------------------------------------- */
:root {
  color-scheme: light;

  --c-bg: #f3f7fc;
  --c-bg-2: #e9f1fa;
  --c-surface: #ffffff;
  --c-surface-2: #f7fafe;
  --c-text: #0b1b33;
  --c-text-muted: #4e6485;
  --c-border: rgba(11, 27, 51, 0.1);
  --c-border-strong: rgba(11, 27, 51, 0.17);

  --c-brand: #0077b6;
  --c-brand-dark: #005f99;
  --c-brand-light: #38bdf8;
  --c-cyan: #38bdf8;
  --c-navy: #0a1e46;
  --c-linkedin: #0a66c2;
  --c-linkedin-dark: #094e9f;

  --grad-brand: linear-gradient(135deg, #0077b6 0%, #38bdf8 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(0, 119, 182, 0.12), rgba(56, 189, 248, 0.12));

  --sh-1: 0 1px 2px rgba(11, 27, 51, 0.04), 0 2px 8px rgba(11, 27, 51, 0.05);
  --sh-2: 0 10px 30px rgba(11, 27, 51, 0.09), 0 2px 6px rgba(11, 27, 51, 0.05);
  --sh-3: 0 26px 60px rgba(11, 27, 51, 0.14);
  --sh-glow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 12px 40px rgba(0, 119, 182, 0.22);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.75rem;
  --s-8: 3.5rem;
  --s-9: 5rem;

  --maxw: 1180px;
  --header-h: 4.5rem;

  --fs-hero: clamp(2.5rem, 1.6rem + 5vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2vw, 2.6rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Noto Sans KR", "Noto Sans JP", "Noto Sans TC", "Malgun Gothic",
    "Yu Gothic", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.6s;
}

[data-theme="dark"] {
  color-scheme: dark;

  --c-bg: #04102a;
  --c-bg-2: #071b3a;
  --c-surface: rgba(255, 255, 255, 0.045);
  --c-surface-2: rgba(255, 255, 255, 0.075);
  --c-text: #eaf2fb;
  --c-text-muted: #9fb4d1;
  --c-border: rgba(255, 255, 255, 0.1);
  --c-border-strong: rgba(255, 255, 255, 0.19);

  --c-brand: #4cc2f1;
  --c-brand-dark: #7dd3fc;
  --c-brand-light: #7dd3fc;
  --c-navy: #04102a;

  --grad-brand: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --sh-2: 0 12px 34px rgba(0, 0, 0, 0.4);
  --sh-3: 0 30px 70px rgba(0, 0, 0, 0.5);
  --sh-glow: 0 0 0 1px rgba(125, 211, 252, 0.4), 0 14px 44px rgba(14, 165, 233, 0.28);
}

/* 2. Reset & base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 45%, var(--c-bg) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--s-3);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: var(--fs-hero); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-brand-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt, address { margin: 0; font-style: normal; }

svg { flex: none; }

:focus-visible {
  outline: 3px solid var(--c-brand-light);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: rgba(56, 189, 248, 0.32); }

/* 3. Utilities & buttons -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: var(--s-2);
  left: 50%;
  translate: -50% -160%;
  z-index: 200;
  padding: 0.7rem 1.15rem;
  border-radius: var(--r-pill);
  background: var(--c-navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--sh-2);
  transition: translate 0.25s var(--ease);
}
.skip-link:focus { translate: -50% 0; color: #fff; }

.ico { width: 1.15em; height: 1.15em; }
.ico--fill { fill: currentColor; }
.ico--chev { width: 0.85em; height: 0.85em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background-image: var(--grad-brand); color: #fff; box-shadow: var(--sh-2); }
.btn--primary:hover { color: #fff; box-shadow: var(--sh-glow); }

.btn--ghost {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-border-strong);
  box-shadow: var(--sh-1);
}
.btn--ghost:hover { color: var(--c-brand); border-color: var(--c-brand); }

.btn--linkedin { background: var(--c-linkedin); color: #fff; box-shadow: var(--sh-2); }
.btn--linkedin:hover { background: var(--c-linkedin-dark); color: #fff; }

.btn--sm { padding: 0.6rem 1rem; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn-icon:hover { color: var(--c-brand); border-color: var(--c-brand); transform: translateY(-1px); }
.btn-icon svg { width: 1.2rem; height: 1.2rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text-muted);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.03em;
}
.chips--markets { margin-top: var(--s-5); }
.chips--markets li { color: var(--c-brand); border-color: rgba(0, 119, 182, 0.28); }
[data-theme="dark"] .chips--markets li { border-color: rgba(125, 211, 252, 0.32); }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section__head { max-width: 62ch; margin-bottom: var(--s-6); }
.section__title { margin-bottom: var(--s-3); }
.section__lead { color: var(--c-text-muted); font-size: var(--fs-lead); margin: 0; }
.outro {
  max-width: 70ch;
  margin-top: var(--s-6);
  padding-left: var(--s-4);
  border-left: 3px solid transparent;
  border-image: var(--grad-brand) 1;
  color: var(--c-text-muted);
  font-size: var(--fs-lead);
}

/* 4. Backdrop ------------------------------------------------------------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: np-drift 26s ease-in-out infinite alternate;
}
.backdrop__blob--a { width: 44rem; height: 44rem; top: -18rem; right: -14rem; background: radial-gradient(circle, rgba(56, 189, 248, 0.6), transparent 65%); }
.backdrop__blob--b { width: 36rem; height: 36rem; bottom: -16rem; left: -12rem; background: radial-gradient(circle, rgba(0, 119, 182, 0.5), transparent 65%); animation-delay: -8s; }
.backdrop__blob--c { width: 30rem; height: 30rem; top: 34%; left: 42%; background: radial-gradient(circle, rgba(10, 102, 194, 0.28), transparent 65%); animation-delay: -16s; }
[data-theme="dark"] .backdrop__blob { opacity: 0.38; }

.backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--c-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--c-border) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 5%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 5%, transparent 72%);
}

@keyframes np-drift {
  from { translate: 0 0; }
  to { translate: 2.5rem 2rem; }
}

/* 5. Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
[data-theme="dark"] .site-header { background: rgba(4, 16, 42, 0.72); }
.site-header.is-scrolled { border-bottom-color: var(--c-border); box-shadow: var(--sh-1); }

.site-header__inner { display: flex; align-items: center; gap: var(--s-3); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-inline-end: auto; color: var(--c-text); text-decoration: none; }
.brand:hover { color: var(--c-text); }
.brand__mark { width: 2.5rem; height: 2.5rem; border-radius: 50%; box-shadow: 0 0 0 1px var(--c-border), 0 6px 18px rgba(0, 119, 182, 0.28); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 750; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-muted); }

.nav__list { display: flex; align-items: center; gap: 0.1rem; }
.nav__link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  font-weight: 620;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link:hover { color: var(--c-brand); background: var(--c-surface-2); }
.nav__link.is-active { color: var(--c-brand); background: var(--grad-brand-soft); }

.site-header__actions { display: flex; align-items: center; gap: 0.45rem; }
.nav-toggle { display: none; }

/* Language switcher */
.lang { position: relative; }
.lang__trigger { width: auto; padding-inline: 0.75rem; }
.lang__code { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.08em; }
.lang__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  z-index: 30;
  min-width: 12.5rem;
  padding: 0.4rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-3);
}
[data-theme="dark"] .lang__menu { background: #0b2450; }
.lang__menu[hidden] { display: none; }
.lang__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-text);
  font: inherit;
  font-size: var(--fs-sm);
  text-align: start;
  cursor: pointer;
}
.lang__opt:hover { background: var(--c-surface-2); color: var(--c-brand); }
.lang__opt[aria-selected="true"] { background: var(--grad-brand-soft); color: var(--c-brand); font-weight: 700; }
.lang__tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--c-text-muted); }

/* Theme toggle */
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

/* Mobile drawer */
.nav-scrim { position: fixed; inset: 0; z-index: 98; background: rgba(4, 16, 42, 0.45); backdrop-filter: blur(2px); }
.nav-scrim[hidden] { display: none; }
body.is-locked { overflow: hidden; }

.nav-toggle__bar { transform-box: fill-box; transform-origin: center; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.site-header.nav-open .nav-toggle__bar--1 { transform: translateY(5px) rotate(45deg); }
.site-header.nav-open .nav-toggle__bar--2 { opacity: 0; }
.site-header.nav-open .nav-toggle__bar--3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 99;
    max-height: calc(100dvh - var(--header-h));
    overflow: auto;
    padding: var(--s-4) clamp(1.15rem, 4vw, 2.5rem) var(--s-5);
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }
  [data-theme="dark"] .nav { background: #0b2450; }
  .site-header.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .nav__link { display: block; padding: 0.85rem 0.75rem; border-radius: var(--r-md); font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
}
/* 6. Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(2.25rem, 6vw, 4.25rem) clamp(1.75rem, 5vw, 3.25rem); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero__content > .eyebrow { margin-bottom: var(--s-4); }
.hero__title { display: flex; flex-direction: column; margin-bottom: var(--s-4); }
.hero__title-top { font-weight: 800; }
.hero__title-accent {
  font-weight: 700;
  background-image: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tagline {
  font-size: var(--fs-lead);
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}
.hero__lead { max-width: 54ch; color: var(--c-text-muted); margin-bottom: var(--s-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.hero__art { display: flex; justify-content: center; }
.orbit { position: relative; display: grid; place-items: center; width: min(30rem, 100%); aspect-ratio: 1; }
.orbit__ring { position: absolute; border-radius: 50%; }
.orbit__ring--1 { inset: 6%; border: 1px dashed var(--c-border-strong); animation: np-spin 70s linear infinite; }
.orbit__ring--2 { inset: 21%; border: 1px solid rgba(0, 119, 182, 0.25); }
[data-theme="dark"] .orbit__ring--2 { border-color: rgba(125, 211, 252, 0.28); }
.orbit__logo { position: relative; width: 58%; height: auto; border-radius: 50%; filter: drop-shadow(0 24px 50px rgba(0, 119, 182, 0.35)); }
.orbit__path { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit__chip {
  position: absolute;
  padding: 0.45rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--sh-2);
  color: var(--c-brand);
  font-size: var(--fs-xs);
  font-weight: 750;
  letter-spacing: 0.05em;
}
[data-theme="dark"] .orbit__chip { background: #0b2450; }
.orbit__chip--a { top: 7%; left: 2%; animation: np-float 7s ease-in-out infinite; }
.orbit__chip--b { right: 1%; bottom: 11%; animation: np-float 7s ease-in-out infinite reverse; }

@keyframes np-spin { to { rotate: 360deg; } }
@keyframes np-float { 50% { translate: 0 -0.65rem; } }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { margin-top: var(--s-5); }
  .orbit { width: min(21rem, 82%); }
}

/* 7. Stats --------------------------------------------------------------- */
.stats { padding-block: clamp(1.25rem, 3vw, 2rem); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: var(--s-3); }
.stat {
  padding: 1.35rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-1);
  text-align: center;
}
[data-theme="dark"] .stat { background: var(--c-surface); }
.stat__value {
  display: block;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background-image: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { display: block; margin-top: 0.4rem; font-size: var(--fs-xs); font-weight: 650; color: var(--c-text-muted); }

/* 8. Services & cards ---------------------------------------------------- */
.cards { display: grid; gap: var(--s-4); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 1.9rem);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
[data-theme="dark"] .card { background: var(--c-surface); }
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(56, 189, 248, 0.45); }
.card:hover::before { opacity: 1; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  margin-bottom: var(--s-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--grad-brand-soft);
  color: var(--c-brand);
}
.card__icon svg { width: 1.35rem; height: 1.35rem; }
.card__title { margin-bottom: 0.5rem; }
.card__text { margin: 0; color: var(--c-text-muted); font-size: var(--fs-sm); }

/* 9. Brands -------------------------------------------------------------- */
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--s-4); }
.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  overflow: hidden;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-2);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
[data-theme="dark"] .brand-card { background: var(--c-surface); }
.brand-card::after {
  content: "";
  position: absolute;
  right: -25%;
  bottom: -55%;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 65%);
  pointer-events: none;
}
.brand-card--ev::after { background: radial-gradient(circle, rgba(0, 119, 182, 0.3), transparent 65%); }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.brand-card__tag { margin: 0; font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-brand); }
.brand-card__name { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.03em; }
.brand-card__text { margin: 0; color: var(--c-text-muted); font-size: var(--fs-sm); }
.brand-card__cta { align-self: flex-start; margin-top: var(--s-2); }

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-border);
}
.partners__label { margin: 0; font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-muted); }
.partners__list { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.partners__list span { font-weight: 700; letter-spacing: -0.01em; }
.partners__list span + span::before { content: "·"; margin-right: var(--s-3); color: var(--c-text-muted); }

/* 10. About -------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(2rem, 5vw, 3.5rem); }
.about__media { position: relative; }
.about__media::before {
  content: "";
  position: absolute;
  inset: 8% -6% -8% 6%;
  border-radius: var(--r-xl);
  background: var(--grad-brand-soft);
  z-index: -1;
}
.about__photo {
  width: 100%;
  max-width: 21rem;
  margin-inline: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
}
.about__role { margin: 0 0 var(--s-4); font-weight: 650; color: var(--c-brand); }
.about__text { color: var(--c-text-muted); font-size: var(--fs-lead); }
.about__text a { font-weight: 650; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media::before { display: none; }
}

/* 11. Timeline ----------------------------------------------------------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.56rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(180deg, var(--c-brand-light), rgba(0, 119, 182, 0.12));
}
.timeline__item { position: relative; padding: 0 0 var(--s-6) 2.5rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 3px solid var(--c-brand);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}
[data-theme="dark"] .timeline__dot { background: #04102a; }
.timeline__item--now .timeline__dot { border-color: transparent; background-image: var(--grad-brand); box-shadow: var(--sh-glow); }
.timeline__year { display: inline-block; margin-bottom: 0.3rem; font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-brand); }
.timeline__text { max-width: 72ch; margin: 0; color: var(--c-text-muted); }
.timeline__text strong { color: var(--c-text); }

/* 12. Offices ------------------------------------------------------------ */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--s-4); }
.office {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-1);
}
[data-theme="dark"] .office { background: var(--c-surface); }
.office__tag { margin: 0 0 var(--s-2); font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-brand); }
.office__city { margin-bottom: var(--s-3); }
.office__addr { color: var(--c-text-muted); font-size: var(--fs-sm); line-height: 1.7; }
.office__addr-roman { display: block; margin-top: 0.4rem; font-size: var(--fs-xs); opacity: 0.9; }
.office__desc { margin-bottom: var(--s-4); color: var(--c-text-muted); font-size: var(--fs-sm); }
.office__link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--c-brand); font-size: var(--fs-sm); font-weight: 650; text-decoration: none; }
.office__link:hover { text-decoration: underline; }

/* 13. Contact ------------------------------------------------------------ */
.contact__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--s-4); }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
[data-theme="dark"] .contact-card { background: var(--c-surface); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(56, 189, 248, 0.45); }
.contact-card__label { margin: 0; font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-muted); }
.contact-card__value {
  color: var(--c-text);
  font-size: clamp(1.12rem, 1rem + 0.6vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.contact-card__value:hover { color: var(--c-brand); }

.btn-copy {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  margin-top: var(--s-1);
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  color: var(--c-text-muted);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 650;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-copy:hover { color: var(--c-brand); border-color: var(--c-brand); }
.btn-copy svg { width: 1rem; height: 1rem; }
.btn-copy.is-done { color: #15803d; border-color: #15803d; }
[data-theme="dark"] .btn-copy.is-done { color: #4ade80; border-color: #4ade80; }

/* 14. Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 var(--s-6);
  border-top: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-theme="dark"] .site-footer { background: rgba(255, 255, 255, 0.03); }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 3.5rem); }
.site-footer__name { margin: var(--s-3) 0 0.2rem; font-weight: 750; letter-spacing: -0.01em; }
.site-footer__tag { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-muted); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.site-footer__social a { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--c-brand); font-size: var(--fs-sm); font-weight: 650; text-decoration: none; }
.site-footer__social a:hover { text-decoration: underline; }

.legal { display: grid; gap: var(--s-3); }
.legal__row {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-sm);
}
.legal__row:last-child { padding-bottom: 0; border-bottom: 0; }
.legal dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-muted); }
.legal dd { color: var(--c-text); overflow-wrap: anywhere; }
.legal__sep { color: var(--c-text-muted); }
.site-footer__copy {
  grid-column: 1 / -1;
  margin: var(--s-5) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

@media (max-width: 820px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .legal__row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* 15. Back to top -------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: #fff;
  color: var(--c-text);
  cursor: pointer;
  box-shadow: var(--sh-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, color 0.25s;
}
[data-theme="dark"] .to-top { background: #0b2450; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--c-brand); border-color: var(--c-brand); }

/* 16. Motion ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Without JavaScript the content must stay visible, so the hidden starting
   state only applies once the script has announced itself. */
html:not(.has-js) .reveal { opacity: 1; transform: none; }

/* Content already in view is shown by the script straight away; this keeps the
   page readable even if IntersectionObserver is unavailable. */
html.no-io .reveal { opacity: 1; transform: none; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 17. Print -------------------------------------------------------------- */
@media print {
  .site-header,
  .to-top,
  .backdrop,
  .nav-scrim,
  .hero__art,
  .hero__cta,
  .btn-copy { display: none !important; }
  body { background: #fff; color: #000; }
  .card,
  .stat,
  .brand-card,
  .office,
  .contact-card { border-color: #ccc; background: #fff; box-shadow: none; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #555; }
  .section { padding-block: 1rem; }
  .reveal { opacity: 1 !important; transform: none !important; }
}