/* Next Bridge — Design System */
:root {
  --bg: #F5F2EC;
  --bg-2: #EDE8DD;
  --bg-3: #E5DFD0;
  --ink: #0F1A2E;
  --ink-2: #2A3447;
  --ink-soft: #4B5365;
  --ink-mute: #8A8E97;
  --line: rgba(15, 26, 46, 0.12);
  --line-2: rgba(15, 26, 46, 0.06);
  --brand: #0F2B5B;        /* logo midnight blue */
  --brand-deep: #081B3F;
  --brand-soft: #1F3F7A;
  --accent: #B79268;       /* warm sand-gold; oklch ~0.68 0.07 70 */
  --accent-soft: #D9C2A1;
  --paper: #FAF8F3;

  --serif: "Cormorant Garamond", "Noto Serif JP", serif; /* used sparingly for numerals */
  --sans-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --sans-sc: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --sans: var(--sans-en), var(--sans-jp), var(--sans-sc);
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --radius-sm: 2px;
  --radius: 4px;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[lang="ja"] { --sans: var(--sans-jp), var(--sans-en); }
html[lang="zh"] { --sans: var(--sans-sc), var(--sans-en); }
html[lang="en"] { --sans: var(--sans-en), var(--sans-jp); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "palt" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--brand); color: var(--bg); }

/* ---- Layout ---- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(80px, 12vh, 160px) 0;
  position: relative;
}

.section--dark {
  background: var(--brand);
  color: #ECEFF6;
}

.section--paper { background: var(--paper); }

/* ---- Type ---- */
.eyebrow {
  font-family: var(--sans-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section--dark .eyebrow { color: rgba(255,255,255,0.65); }

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.display-1 {
  font-size: clamp(48px, 8.6vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.display-2 {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.display-3 {
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.title-md {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 62ch;
}
.section--dark .lead { color: rgba(255,255,255,0.78); }

.body-sm {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 242, 236, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(245, 242, 236, 0.85);
  backdrop-filter: blur(18px);
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line-2);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark__logo {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: var(--brand) url("assets/logo.png") center/cover no-repeat;
  flex-shrink: 0;
}
.brand-mark__name {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 15px;
}
.brand-mark__name small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 400;
  color: var(--ink-mute);
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .brand-mark__name {
    font-size: 14px;
    white-space: normal;
    line-height: 1.25;
  }
  .brand-mark__name small {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--brand); }
.nav a.is-active::after { transform: scaleX(1); background: var(--brand); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
}
.lang-switch button {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.lang-switch button.is-active {
  background: var(--brand);
  color: #fff;
}

/* mobile nav burger hidden initially - keep desktop-first */
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    padding: 24px var(--gutter);
    align-items: flex-start;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-left: 16px;
  }
  .nav-toggle__bar {
    width: 22px; height: 1px; background: currentColor;
    position: relative;
  }
  .nav-toggle__bar::after {
    content: ""; position: absolute; left: 0; top: 5px;
    width: 22px; height: 1px; background: currentColor;
  }
}

/* ---- IP Banner ---- */
.ip-banner {
  position: fixed;
  top: 80px;
  right: var(--gutter);
  z-index: 90;
  background: var(--brand);
  color: #fff;
  padding: 16px 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 40px -16px rgba(15, 43, 91, 0.5);
  font-size: 13px;
  max-width: 460px;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
}
.ip-banner.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.ip-banner button {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ip-banner__switch { background: var(--accent); color: var(--brand-deep); }
.ip-banner__stay { color: rgba(255,255,255,0.7); }
.ip-banner__close { color: rgba(255,255,255,0.5); padding: 4px; line-height: 1; }

/* ---- CTA Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 12px 28px -12px rgba(15, 43, 91, 0.6); }
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn__arrow {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---- Reveal animations ---- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"].is-in { transition-delay: 0.08s; }
[data-reveal-delay="2"].is-in { transition-delay: 0.16s; }
[data-reveal-delay="3"].is-in { transition-delay: 0.24s; }
[data-reveal-delay="4"].is-in { transition-delay: 0.32s; }

/* ---- Footer ---- */
.site-footer {
  background: var(--brand);
  color: rgba(255,255,255,0.75);
  padding: 100px var(--gutter) 40px;
}
.site-footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer__brand {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.site-footer__col h5 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.site-footer__col a {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s var(--ease);
}
.site-footer__col a:hover { color: var(--accent-soft); }
.site-footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
@media (max-width: 880px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ---- Page-specific blocks ---- */

/* HOME — hero with logo B */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 140px var(--gutter) 80px;
  position: relative;
  overflow: hidden;
}
.hero__copy { position: relative; z-index: 2; }
.hero__headline {
  margin: 28px 0 32px;
}
.hero__headline span { display: block; }
.hero__headline span:nth-child(2) {
  color: var(--brand);
  position: relative;
}
.hero__sub { max-width: 48ch; margin-bottom: 40px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual {
  position: relative;
  height: 88vh;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__b {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--brand);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__b svg {
  width: 75%; height: 75%;
}
.hero__b::before, .hero__b::after {
  content: ""; position: absolute;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.hero__b::before {
  width: 130%; height: 1px;
  top: 65%; left: -15%;
  transform: rotate(-12deg);
}
.hero__b::after {
  width: 1px; height: 130%;
  left: 28%; top: -15%;
}
.hero__caption {
  position: absolute;
  bottom: 28px; left: 28px; right: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 10px;
  writing-mode: horizontal-tb;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px; height: 36px;
  background: var(--ink-mute);
  animation: scrollLine 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.2); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero__bgnum {
  position: absolute;
  right: -2vw; top: 8vh;
  font-family: var(--serif);
  font-size: clamp(200px, 32vw, 480px);
  font-weight: 300;
  color: var(--bg-3);
  line-height: 0.8;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: auto; padding-top: 120px; }
  .hero__visual { height: 60vh; min-height: 380px; }
  .hero__bgnum { display: none; }
}

/* Pillars / Services list */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 80px;
  border-top: 1px solid var(--line);
}
.pillar {
  display: grid;
  grid-template-columns: 80px 1fr 2.4fr 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
  position: relative;
}
.pillar:hover { padding-left: 24px; padding-right: 24px; background: var(--paper); }
.pillar__no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  padding-top: 8px;
}
.pillar__title {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.pillar__sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-top: 8px;
  text-transform: uppercase;
}
.pillar__desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-top: 12px;
}
.pillar__link {
  justify-self: end;
  align-self: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.pillar__link:hover { color: var(--brand); }
.pillar__link svg { transition: transform 0.3s var(--ease); }
.pillar:hover .pillar__link svg { transform: translateX(4px); }

@media (max-width: 880px) {
  .pillar { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .pillar:hover { padding-left: 0; padding-right: 0; background: transparent; }
  .pillar__link { justify-self: start; }
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 100px;
}
.stat {
  padding: 40px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat__value {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand);
  font-family: var(--serif);
}
.stat__label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
}

/* ---- Page header (inner pages) ---- */
.page-head {
  padding: 180px var(--gutter) 80px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.page-head__title { margin-top: 24px; }
.page-head__lead { padding-bottom: 12px; }
@media (max-width: 880px) {
  .page-head { grid-template-columns: 1fr; gap: 24px; padding-top: 140px; }
}

/* SNS — three-column groups */
.sns-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.sns-group {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
}
.sns-group:last-child { border-right: none; }
.sns-group h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
  color: var(--brand);
}
.sns-group ul { list-style: none; }
.sns-group li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
  display: flex;
  gap: 12px;
}
.sns-group li::before {
  content: "+";
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}
@media (max-width: 880px) {
  .sns-groups { grid-template-columns: 1fr; }
  .sns-group { border-right: none; border-bottom: 1px solid var(--line); }
  .sns-group:last-child { border-bottom: none; }
}

/* Creator plans */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan {
  background: var(--paper);
  padding: 40px 32px;
  border-radius: 4px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(15, 43, 91, 0.3); }
.plan__name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  color: var(--brand);
  margin-bottom: 4px;
}
.plan__jp {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.plan__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.plan__no {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }

/* Hybrid items grid */
.hybrid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hybrid-item {
  background: var(--bg);
  padding: 56px 40px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.3s var(--ease);
}
.hybrid-item:hover { background: var(--paper); }
.hybrid-item__tag {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 32px;
}
.hybrid-item__title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hybrid-item__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 720px) { .hybrid-grid { grid-template-columns: 1fr; } }

/* SEO blocks */
.seo-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.seo-block {
  padding: 40px 0;
  border-top: 2px solid var(--brand);
}
.seo-block__num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 24px;
}
.seo-block h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.seo-block p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 880px) { .seo-blocks { grid-template-columns: 1fr; gap: 24px; } }

/* EC channels */
.ec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 80px;
}
.ec-block { padding: 40px 0; }
.ec-block h3 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.ec-block p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 32px; }
.ec-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.ec-channels li {
  list-style: none;
  padding: 18px 0;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ec-channels li::before {
  content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0;
}
@media (max-width: 880px) { .ec-grid { grid-template-columns: 1fr; gap: 40px; } .ec-channels { grid-template-columns: 1fr; } }

/* Specialized — two big cards */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.spec-card {
  background: var(--brand);
  color: #fff;
  padding: 60px 48px;
  border-radius: 4px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.spec-card:nth-child(2) { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.spec-card__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.spec-card:nth-child(2) .spec-card__kicker { color: var(--brand); }
.spec-card__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 28px 0 20px;
}
.spec-card__desc {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 36ch;
}
.spec-card__deco {
  position: absolute;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 220px;
  right: -30px;
  bottom: -80px;
  line-height: 1;
  opacity: 0.08;
  pointer-events: none;
}
@media (max-width: 880px) { .spec-grid { grid-template-columns: 1fr; } }

/* About pillars */
.about-lead {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.005em;
  white-space: pre-line;
  color: var(--ink);
  max-width: 30ch;
}
.about-pillars {
  margin-top: 100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.about-pillar {
  display: grid;
  grid-template-columns: 100px 280px 1fr;
  gap: 60px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.about-pillar:last-child { border-bottom: 1px solid var(--line); }
.about-pillar__no {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 300;
  color: var(--brand);
  line-height: 0.8;
}
.about-pillar__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.about-pillar__title {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.about-pillar__desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}
@media (max-width: 880px) {
  .about-pillar { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .about-pillar__no { font-size: 56px; }
}

/* Works / cases */
.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 80px;
  border-top: 1px solid var(--line);
}
.case {
  display: grid;
  grid-template-columns: 320px 1fr 1fr;
  gap: 40px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.case__visual {
  height: 200px;
  position: relative;
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
}
.case__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.case__client {
  font-family: var(--sans);
  font-size: 36px;
  font-weight: 600;
  font-style: normal;
  color: var(--brand);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.case__industry { font-size: 13px; color: var(--ink-mute); margin-bottom: 18px; }
.case__note { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.case__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case__metric {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.case__metric-value {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
}
.case__metric-label { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 980px) {
  .case { grid-template-columns: 1fr; gap: 24px; }
  .case__visual { height: 160px; }
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__lead {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.5;
  white-space: pre-line;
  color: rgba(255,255,255,0.92);
  font-weight: 400;
}
.contact__email {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 40px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent-soft);
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}
.contact__email:hover { color: #fff; }
.contact__email small { font-family: var(--sans-en); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

.form { display: flex; flex-direction: column; gap: 20px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.form__field input, .form__field select, .form__field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 12px 0;
  color: #fff;
  font-size: 15px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  border-bottom-color: var(--accent);
}
.form__field textarea { min-height: 100px; resize: vertical; font-family: inherit; }
.form__field select option { color: var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form button[type="submit"] {
  margin-top: 20px;
  align-self: flex-start;
  padding: 18px 36px;
  background: var(--accent);
  color: var(--brand-deep);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex; align-items: center; gap: 12px;
  transition: all 0.3s var(--ease);
}
.form button[type="submit"]:hover { background: var(--accent-soft); transform: translateY(-1px); }
@media (max-width: 980px) { .contact { grid-template-columns: 1fr; gap: 50px; } .form__row { grid-template-columns: 1fr; } }

/* Page-routing fakery — visible page sections */
.page { display: none; }
.page.is-active { display: block; }

/* Section divider */
.divider {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 80px 0 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 24px;
  z-index: 95;
  background: var(--brand);
  color: #fff;
  padding: 22px 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 24px 60px -20px rgba(15,43,91,0.55);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
  max-width: 1100px;
  margin: 0 auto;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner__icon { width: 32px; height: 32px; flex-shrink: 0; opacity: 0.9; }
.cookie-banner__body { flex: 1; }
.cookie-banner__title { font-size: 14px; font-weight: 600; margin-bottom: 4px; letter-spacing: 0.01em; }
.cookie-banner__text { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.78); }
.cookie-banner__text a { color: var(--accent-soft); border-bottom: 1px solid rgba(217,194,161,0.4); padding-bottom: 1px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__actions button {
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.cookie-banner__btn--accept { background: var(--accent); color: var(--brand-deep); }
.cookie-banner__btn--accept:hover { background: var(--accent-soft); }
.cookie-banner__btn--essential { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.cookie-banner__btn--essential:hover { background: rgba(255,255,255,0.18); }
.cookie-banner__btn--reject { color: rgba(255,255,255,0.6); }
.cookie-banner__btn--reject:hover { color: #fff; }
@media (max-width: 880px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; bottom: 16px; }
  .cookie-banner__actions { flex-wrap: wrap; }
}

/* ---- Hero v2 enhancements (slogan spacing + content lift) ---- */
.hero-v2__content { transform: translateY(-6vh); }
.hero-v2__h1 { line-height: 0.95 !important; }
.hero-v2__h2 { margin-top: 18px !important; line-height: 1.05 !important; }
@media (max-width: 880px) { .hero-v2__content { transform: translateY(-3vh); } }

/* ---- Page hero (reusable per-page hero shell) ---- */
.page-hero {
  position: relative;
  padding: 180px var(--gutter) 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
}
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.page-hero__bg svg { width: 100%; height: 100%; display: block; }
.page-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; max-width: var(--max); margin: 0 auto; width: 100%; }
.page-hero__title { margin-top: 24px; }
.page-hero__lead { padding-bottom: 12px; max-width: 52ch; }
.page-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(15,26,46,0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,26,46,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0));
}
.page-hero path, .page-hero line, .page-hero circle, .page-hero rect, .page-hero polyline {
  vector-effect: non-scaling-stroke;
}
@media (max-width: 880px) {
  .page-hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .page-hero { padding-top: 140px; min-height: auto; }
}

/* ---- PR media — outlets grid ---- */
.pr-outlets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.pr-outlets li {
  list-style: none;
  padding: 16px 18px;
  font-size: 13px;
  color: var(--ink-2);
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  transition: background 0.2s var(--ease);
}
.pr-outlets li:hover { background: var(--bg-2); }
.pr-outlets li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ---- Form: errors / required marker ---- */
.form__field { position: relative; }
.form__field label .req { color: var(--accent); margin-left: 6px; font-family: var(--mono); font-size: 10px; }
.form__field.has-error input,
.form__field.has-error select,
.form__field.has-error textarea { border-bottom-color: #FF6E6E; }
.form__error {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #FFA0A0;
  margin-top: 6px;
  min-height: 14px;
  opacity: 0; transform: translateY(-2px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.form__field.has-error .form__error { opacity: 1; transform: translateY(0); }

/* ---- Footer slogan typography ---- */
.site-footer__brand--slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: #fff;
  margin-bottom: 14px;
  display: block;
}
.site-footer__brand--sub {
  display: block;
  font-family: var(--sans-en);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-bottom: 24px;
}

/* ---- Legal page ---- */
.legal-page { padding: 160px var(--gutter) 120px; max-width: 880px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(36px, 4vw, 64px); font-weight: 500; letter-spacing: -0.018em; line-height: 1.05; }
.legal-page__updated { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-top: 16px; }
.legal-page__sections { margin-top: 64px; display: flex; flex-direction: column; gap: 40px; }
.legal-section { padding-top: 32px; border-top: 1px solid var(--line); }
.legal-section h2 { font-size: 18px; font-weight: 500; letter-spacing: -0.005em; margin-bottom: 12px; color: var(--brand); }
.legal-section p { font-size: 15px; line-height: 1.85; color: var(--ink-soft); white-space: pre-line; }
.legal-page__back { display: inline-flex; align-items: center; gap: 10px; margin-top: 56px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }
.legal-page__back:hover { color: var(--brand); }

/* ---- Pillar accent dot (visual pop in cards) ---- */
.pillar { position: relative; }
.pillar::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.4s var(--ease);
}
.pillar:hover::before { width: 12px; }

/* Marquee/ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.ticker__track {
  display: inline-flex;
  gap: 60px;
  animation: tickerScroll 38s linear infinite;
}
.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.ticker__track span::after {
  content: "✦";
  color: var(--accent);
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ---- Team section ---- */
.section--team { padding: 60px 0 120px; }
.team-head { max-width: 800px; margin-bottom: 56px; }
.team-photo { position: relative; margin: 0 0 80px; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(15, 26, 46, 0.25); }
.team-photo img { width: 100%; height: auto; display: block; }
.team-photo figcaption {
  position: absolute; left: 24px; bottom: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: rgba(15, 26, 46, 0.55); padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.team-grid > .team-card:first-child {
  grid-column: 1 / -1;
  padding: 56px 56px;
  background: linear-gradient(135deg, #F5F2EC 0%, var(--bg) 100%);
}
.team-grid > .team-card:first-child .team-card__head { gap: 28px; }
.team-grid > .team-card:first-child .team-card__initial {
  width: 88px; height: 88px; font-size: 42px;
}
.team-grid > .team-card:first-child .team-card__role { font-size: 24px; }
.team-grid > .team-card:first-child .team-card__role-en { font-size: 11px; margin-top: 6px; }
.team-grid > .team-card:first-child .team-card__bio {
  font-size: 15.5px; line-height: 1.85; max-width: 78ch;
}
.team-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 18px;
  transition: background 0.3s var(--ease);
}
.team-card:hover { background: var(--paper); }
.team-card__head { display: flex; align-items: center; gap: 18px; }
.team-card__initial {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 26px; font-weight: 500;
  flex-shrink: 0;
}
.team-card__role { font-size: 17px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink); line-height: 1.3; }
.team-card__role-en { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }
.team-card__bio { font-size: 14px; line-height: 1.75; color: var(--ink-soft); flex: 1; }
.team-card__langs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.team-card__langs li {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); background: rgba(255,255,255,0.4);
}
@media (max-width: 880px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-grid > .team-card:first-child { padding: 36px 32px; }
  .team-grid > .team-card:first-child .team-card__initial { width: 56px; height: 56px; font-size: 26px; }
  .team-grid > .team-card:first-child .team-card__role { font-size: 17px; }
  .team-grid > .team-card:first-child .team-card__bio { font-size: 14px; line-height: 1.75; }
  .team-photo figcaption { font-size: 9px; padding: 6px 10px; bottom: 12px; left: 12px; }
}


/* ---- Contact page: invert nav over dark hero ---- */
body:has(#page-contact.is-active) .site-header:not(.is-scrolled) .brand,
body:has(#page-contact.is-active) .site-header:not(.is-scrolled) .nav a,
body:has(#page-contact.is-active) .site-header:not(.is-scrolled) .lang-switch button {
  color: rgba(255,255,255,0.92);
}
body:has(#page-contact.is-active) .site-header:not(.is-scrolled) .nav a.is-active {
  color: #fff;
}
body:has(#page-contact.is-active) .site-header:not(.is-scrolled) .nav a.is-active::after,
body:has(#page-contact.is-active) .site-header:not(.is-scrolled) .nav a:hover::after {
  background: var(--accent);
}
body:has(#page-contact.is-active) .site-header:not(.is-scrolled) .lang-switch {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
body:has(#page-contact.is-active) .site-header:not(.is-scrolled) .lang-switch button.is-active {
  background: rgba(255,255,255,0.95);
  color: var(--brand);
}
body:has(#page-contact.is-active) .site-header:not(.is-scrolled) .brand-mark__logo {
  background: #fff;
  background-image: url("assets/logo.png");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---- Works page: case logo containment ---- */
.case__logo-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 56px;
  color: #fff;
}
.case__logo {
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0.95;
}
@media (max-width: 980px) {
  .case__logo-wrap { padding: 28px 36px; }
}

/* Commerce building rise animation */
@keyframes buildRise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.bld-rise {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: buildRise 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 768px) {
  .ip-banner {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    max-width: none;
    border-radius: 12px 12px 0 0;
    padding: 12px 16px 16px;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
  }
  .ip-banner__text { flex: 1 1 100%; line-height: 1.4; }
  .ip-banner__switch, .ip-banner__stay { flex: 1; text-align: center; padding: 8px 10px; }
  .ip-banner__close { position: absolute; top: 10px; right: 12px; }
}
