/* ============================================================
   TomiYu Corporation — Corporate Site
   Design system: TomiYu blue × warm paper × gold accents
   ============================================================ */

:root {
  /* TomiYu blue — sampled from the brand logo (#3073ba), deepened */
  --brand: #2c66a6;
  --brand-deep: #1f4a7e;
  --brand-light: #4a86c8;
  --brand-soft: rgba(44, 102, 166, 0.1);
  --ink: #0d1c30;
  --ink-2: #143054;
  --ink-3: #1d4478;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --white: #ffffff;
  --gold: #b3924f;
  --gold-2: #d4b877;
  /* darker gold for small text on light backgrounds (WCAG AA) */
  --gold-deep: #8a6d33;
  --gold-soft: rgba(179, 146, 79, 0.12);
  --teal: #3c7fc0;
  --text: #24303e;
  --text-soft: #5c6b7a;
  --line: rgba(12, 22, 36, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-serif: "Shippori Mincho", "Noto Serif SC", "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Noto Sans SC", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Cormorant Garamond", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 84px;
  --radius: 18px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  font-feature-settings: "palt";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(74, 134, 200, 0.7);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              border-color 0.35s, background-color 0.35s, opacity 0.3s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(74, 134, 200, 0.14);
  border-color: rgba(74, 134, 200, 0.95);
}
.cursor-ring.is-down { width: 28px; height: 28px; }
.cursor-hidden .cursor-dot, .cursor-hidden .cursor-ring { opacity: 0; }
@media (pointer: coarse), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 10000;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 22px;
  transition: opacity 0.7s var(--ease-io), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { width: 72px; height: 72px; }
.loader__mark .loader__draw {
  stroke-dasharray: 210;
  stroke-dashoffset: 210;
  animation: loaderDraw 1.5s var(--ease-io) forwards;
}
.loader__mark text {
  opacity: 0;
  animation: loaderTextIn 0.9s 0.7s var(--ease) forwards;
}
@keyframes loaderDraw { to { stroke-dashoffset: 0; } }
@keyframes loaderTextIn { to { opacity: 1; } }
.loader__text {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  animation: loaderFade 1.2s 0.3s var(--ease) backwards;
}
@keyframes loaderFade { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 100%;
  z-index: 1001;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease), box-shadow 0.5s, height 0.5s var(--ease),
              backdrop-filter 0.5s;
}
.header__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header.is-scrolled {
  height: 68px;
  background: rgba(247, 245, 240, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-dark:not(.is-scrolled) { color: #fff; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; flex: none; color: var(--brand); }
.header.is-dark:not(.is-scrolled) .brand__mark { color: #fff; }
.footer .brand__mark, .mmenu .brand__mark { color: #fff; }
.brand__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.14em;
  line-height: 1.2;
}
.brand__sub {
  display: block;
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  opacity: 0.62;
  margin-top: 1px;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 8px 2px;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.nav__link.is-active { color: var(--brand); }
.header.is-dark:not(.is-scrolled) .nav__link.is-active { color: var(--gold-2); }

.lang-group {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(128, 138, 150, 0.55);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.header.is-dark:not(.is-scrolled) .lang-group { border-color: rgba(255, 255, 255, 0.4); }
.lang-pill {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.lang-pill:hover { background: rgba(128, 138, 150, 0.16); }
.lang-pill.is-active { background: var(--brand); color: #fff; }
.header.is-dark:not(.is-scrolled) .lang-pill:hover { background: rgba(255, 255, 255, 0.16); }
.header.is-dark:not(.is-scrolled) .lang-pill.is-active { background: #fff; color: var(--brand-deep); }
.mmenu .lang-group { border-color: rgba(255, 255, 255, 0.35); margin-top: 14px; }
.mmenu .lang-pill:hover { background: rgba(255, 255, 255, 0.14); }
.mmenu .lang-pill.is-active { background: #fff; color: var(--brand-deep); }

/* Burger */
.burger {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  z-index: 1102;
}
.burger span {
  position: absolute; left: 12px;
  width: 22px; height: 1.6px;
  background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.3s, background 0.3s;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 27px; }
.burger.is-open span { background: #fff; }
.burger.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile menu */
.mmenu {
  position: fixed; inset: 0;
  z-index: 1100;
  background: linear-gradient(150deg, #0d1c30 0%, #143054 60%, #1d4478 100%);
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow-y: auto;
  padding: 100px clamp(28px, 8vw, 64px) 60px;
  clip-path: circle(0% at calc(100% - 35px) 35px);
  visibility: hidden;
  transition: clip-path 0.75s var(--ease-io), visibility 0.75s;
}
.mmenu.is-open { clip-path: circle(150% at calc(100% - 35px) 35px); visibility: visible; }
/* auto margins center the menu on tall screens but collapse to 0 when the
   content overflows, keeping every item reachable by scrolling */
.mmenu__list { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.mmenu__link {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.mmenu.is-open .mmenu__link { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--i) * 0.06s); }
.mmenu__link small {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold-2);
  text-transform: uppercase;
}
.mmenu__foot {
  margin-top: 48px;
  margin-bottom: auto;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.6s 0.5s;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.mmenu.is-open .mmenu__foot { opacity: 1; }
body.menu-locked { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 42px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.55s var(--ease-io);
}
.btn:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn__arrow { width: 17px; height: 17px; transition: transform 0.45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(6px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary::before { background: linear-gradient(100deg, var(--brand-deep), var(--brand)); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.45); color: #fff; }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); border-color: #fff; }
.btn--line { border: 1px solid var(--ink); color: var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}
.container--wide { max-width: 1360px; }
.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }
.section--tight { padding: clamp(64px, 9vw, 110px) 0; }

/* Section headings */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 44px; height: 1px;
  background: currentColor;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 44px; height: 1px; background: currentColor; }
/* on dark sections keep the brighter gold */
.services .eyebrow, .cta .eyebrow { color: var(--gold-2); }

.h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.h2--center { text-align: center; }
.h2 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  margin-top: 26px;
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 2.3;
  color: var(--text-soft);
  max-width: 46em;
}
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Giant background word */
.bg-word {
  position: absolute;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(90px, 16vw, 230px);
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(12, 22, 36, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-52px); }
[data-reveal="right"] { transform: translateX(52px); }
[data-reveal="zoom"] { transform: scale(0.92); }
[data-reveal].is-visible { opacity: 1; transform: none; }

.line-reveal {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.line-reveal > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.is-visible .line-reveal > span, .line-reveal.is-visible > span { transform: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg::after {
  /* grain */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}
.hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.hero__aurora--1 {
  width: 62vw; height: 62vw;
  min-width: 560px; min-height: 560px;
  left: -18vw; top: -24vw;
  background: radial-gradient(circle at 35% 35%, #2c66a6 0%, rgba(44, 102, 166, 0) 62%);
  animation: aurora1 17s ease-in-out infinite alternate;
}
.hero__aurora--2 {
  width: 48vw; height: 48vw;
  min-width: 460px; min-height: 460px;
  right: -14vw; top: 6vh;
  background: radial-gradient(circle at 60% 40%, rgba(74, 134, 200, 0.75) 0%, rgba(74, 134, 200, 0) 64%);
  animation: aurora2 21s ease-in-out infinite alternate;
}
.hero__aurora--3 {
  width: 36vw; height: 36vw;
  min-width: 380px; min-height: 380px;
  left: 30vw; bottom: -16vh;
  background: radial-gradient(circle at 50% 50%, rgba(179, 146, 79, 0.5) 0%, rgba(179, 146, 79, 0) 66%);
  animation: aurora3 15s ease-in-out infinite alternate;
}
@keyframes aurora1 { to { transform: translate(9vw, 7vh) scale(1.12); } }
@keyframes aurora2 { to { transform: translate(-7vw, 9vh) scale(0.94); } }
@keyframes aurora3 { to { transform: translate(-5vw, -7vh) scale(1.16); } }

.hero__rings {
  position: absolute;
  right: clamp(-160px, -6vw, -40px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(420px, 46vw, 720px);
  opacity: 0.5;
  animation: ringSpin 90s linear infinite;
}
@keyframes ringSpin { to { transform: translateY(-50%) rotate(360deg); } }

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) clamp(20px, 5vw, 56px) 120px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.hero__eyebrow::before { content: ""; width: 52px; height: 1px; background: var(--gold-2); }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(38px, 7.2vw, 84px);
  line-height: 1.42;
  letter-spacing: 0.05em;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-2) 10%, #ecd9a8 55%, var(--gold-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  margin-top: clamp(26px, 3.5vw, 40px);
  max-width: 34em;
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  line-height: 2.35;
  color: rgba(255, 255, 255, 0.78);
}
.hero__cta { margin-top: clamp(36px, 4.5vw, 54px); display: flex; flex-wrap: wrap; gap: 18px; }

.hero__vertical {
  position: absolute;
  right: clamp(22px, 4vw, 54px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 13.5px;
  letter-spacing: 0.42em;
  color: rgba(255,255,255,0.5);
  z-index: 2;
}
.hero__vertical::after {
  content: "";
  display: block;
  width: 1px; height: 74px;
  margin: 22px auto 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), transparent);
}

.scroll-cue {
  position: absolute;
  left: clamp(22px, 5vw, 56px);
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i {
  width: 1px; height: 72px;
  background: rgba(255,255,255,0.28);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--gold-2);
  animation: cueDrop 2.2s var(--ease-io) infinite;
}
@keyframes cueDrop { 55% { top: 100%; } 100% { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  padding: 26px 0;
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 64px;
  /* trailing space inside the item keeps -50% an exact period (no seam jump) */
  padding-right: 64px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Home: about ---------- */
.about { background: var(--paper); overflow: hidden; }
.about .bg-word { right: -3vw; top: 44px; }
.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}
.about__text .lead { margin-top: 30px; }
.about__link { margin-top: 40px; }

.about__visual { position: relative; }
.about__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background: linear-gradient(155deg, #143054 0%, #1d4478 48%, #2f6fae 100%);
  box-shadow: 0 40px 90px -30px rgba(12, 22, 36, 0.45);
}
.about__frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.about__frame-caption {
  position: absolute;
  left: 26px; bottom: 22px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.18em;
}
.about__badge {
  position: absolute;
  right: -26px; top: -26px;
  width: 132px; height: 132px;
  animation: slowSpin 26s linear infinite;
}
@keyframes slowSpin { to { transform: rotate(360deg); } }

/* Stats */
.stats {
  margin-top: clamp(70px, 9vw, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 38px clamp(18px, 3vw, 44px) 8px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--font-en);
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 6px;
}
.stat__num small {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--gold-deep);
  font-weight: 600;
}
.stat__label { margin-top: 12px; font-size: 13.5px; color: var(--text-soft); letter-spacing: 0.08em; }

/* ---------- Home: services ---------- */
.services {
  position: relative;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  overflow: hidden;
}
.services .bg-word { -webkit-text-stroke-color: rgba(255,255,255,0.06); left: -2vw; top: 60px; }
.services .h2 { color: #fff; }
.services .lead { color: rgba(255,255,255,0.66); }

.svc-grid {
  margin-top: clamp(50px, 6vw, 70px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 30px);
}
.svc-card {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(30px, 3.2vw, 42px) clamp(24px, 2.6vw, 34px) clamp(28px, 3vw, 38px);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.6s var(--ease), background 0.5s, border-color 0.5s, box-shadow 0.6s;
  transform-style: preserve-3d;
}
.svc-card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(212, 184, 119, 0.45);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}
.svc-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 184, 119, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.svc-card:hover::before { opacity: 1; }
.svc-card__num {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gold-2);
}
.svc-card__icon {
  width: 58px; height: 58px;
  margin: 26px 0 24px;
  color: var(--gold-2);
}
.svc-card__icon svg { width: 100%; height: 100%; }
.svc-card__title {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.05em;
}
.svc-card__tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
  background: var(--gold-2);
  border-radius: 999px;
  padding: 3px 12px;
}
.svc-card__text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.68);
}
.svc-card__more {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.svc-card__more svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.svc-card:hover .svc-card__more svg { transform: translateX(6px); }

/* ---------- Home: flow preview ---------- */
.flowprev { background: var(--paper); overflow: hidden; }
.flowprev .bg-word { right: -4vw; bottom: 30px; }
.flowprev__steps {
  margin-top: clamp(50px, 6vw, 68px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: fstep;
  position: relative;
}
.fstep {
  position: relative;
  padding: 30px clamp(16px, 2vw, 28px) 0;
  border-left: 1px solid var(--line);
}
.fstep:first-child { border-left: 0; }
.fstep::before {
  counter-increment: fstep;
  content: "0" counter(fstep);
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(34px, 4vw, 46px);
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  line-height: 1;
  display: block;
}
.fstep__title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(16.5px, 1.8vw, 19px);
  color: var(--ink);
  letter-spacing: 0.05em;
}
.fstep__text { margin-top: 10px; font-size: 13.5px; line-height: 2; color: var(--text-soft); }
.flowprev__cta { margin-top: clamp(48px, 6vw, 64px); text-align: center; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta__aurora {
  position: absolute;
  width: 70vw; height: 70vw;
  min-width: 600px; min-height: 600px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(60, 127, 192, 0.35), transparent 70%),
    radial-gradient(closest-side, rgba(179, 146, 79, 0.22), transparent 60%);
  filter: blur(70px);
  animation: ctaPulse 9s ease-in-out infinite alternate;
}
@keyframes ctaPulse { to { transform: translate(-50%, -50%) scale(1.18) rotate(8deg); } }
.cta__inner { position: relative; z-index: 2; }
.cta .h2 { color: #fff; }
.cta__lead {
  margin: 24px auto 0;
  max-width: 38em;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 2.3;
}
.cta__actions { margin-top: 44px; display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
.cta__tel {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
}
.cta__tel b {
  font-family: var(--font-en);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.cta__tel span { font-size: 12px; color: rgba(255,255,255,0.6); letter-spacing: 0.12em; }

/* ---------- Footer ---------- */
.footer {
  background: #081222;
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(64px, 8vw, 96px) 0 0;
  position: relative;
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.footer__brand .brand__name { color: #fff; }
.footer__addr { margin-top: 22px; font-size: 13.5px; line-height: 2.2; font-style: normal; }
.footer__head {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 20px;
}
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a {
  font-size: 14px;
  opacity: 0.78;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.footer__nav a:hover { opacity: 1; transform: translateX(6px); color: var(--gold-2); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.62;
}
.footer__word {
  position: absolute;
  left: 50%; bottom: -0.24em;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: clamp(100px, 18vw, 260px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.028);
  white-space: nowrap;
  pointer-events: none;
}
.totop {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -12px rgba(12,22,36,0.5);
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s var(--ease), visibility 0.4s, background 0.3s;
  z-index: 900;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--brand); }
.totop svg { width: 18px; height: 18px; }

/* ---------- Sub-page hero ---------- */
.phero {
  position: relative;
  padding: calc(var(--header-h) + clamp(70px, 9vw, 110px)) 0 clamp(70px, 9vw, 100px);
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 70%, #1d4478 100%);
  color: #fff;
  overflow: hidden;
}
.phero__aurora {
  position: absolute;
  width: 46vw; height: 46vw;
  min-width: 420px; min-height: 420px;
  right: -12vw; top: -18vw;
  background:
    radial-gradient(closest-side, rgba(60, 127, 192, 0.5), transparent 70%);
  filter: blur(80px);
  animation: aurora2 18s ease-in-out infinite alternate;
}
.phero__aurora--gold {
  right: auto; left: -14vw; top: auto; bottom: -22vw;
  background: radial-gradient(closest-side, rgba(179, 146, 79, 0.34), transparent 70%);
}
.phero__rings {
  position: absolute;
  right: clamp(-140px, -4vw, -30px);
  bottom: -170px;
  width: clamp(360px, 34vw, 520px);
  opacity: 0.4;
  animation: slowSpin 80s linear infinite;
}
.phero__inner { position: relative; z-index: 2; }
.phero__en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-2);
  display: flex; align-items: center; gap: 14px;
}
.phero__en::before { content: ""; width: 46px; height: 1px; background: var(--gold-2); }
.phero__title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 5.6vw, 58px);
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.crumbs {
  margin-top: clamp(26px, 4vw, 40px);
  display: flex; align-items: center; gap: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
}
.crumbs a { transition: color 0.3s; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs svg { width: 12px; height: 12px; opacity: 0.5; }

/* ---------- Company page ---------- */
.philosophy { background: var(--paper); overflow: hidden; }
.philosophy .bg-word { left: -2vw; top: 40px; }
.philosophy__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  position: relative;
}
.philosophy__body p + p { margin-top: 1.6em; }
.philosophy__body { color: var(--text-soft); line-height: 2.4; font-size: 15.5px; }
.philosophy__body strong { color: var(--ink); font-weight: 600; }

.cinfo { background: var(--white); }
.cinfo__table {
  margin-top: clamp(44px, 5vw, 60px);
  border-top: 1px solid var(--line);
}
.cinfo__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.cinfo__row:hover { background: var(--brand-soft); }
.cinfo__th {
  padding: 24px 20px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.1em;
  display: flex; align-items: flex-start; gap: 12px;
}
.cinfo__th::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 13px;
  flex: none;
}
.cinfo__td { padding: 24px 20px 24px 0; font-size: 15px; line-height: 2.1; }

.cmap { background: var(--paper-2); }
.cmap__frame {
  margin-top: clamp(40px, 5vw, 56px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(12,22,36,0.3);
  border: 1px solid var(--line);
}
.cmap__frame iframe { width: 100%; height: clamp(340px, 44vw, 480px); border: 0; display: block; filter: grayscale(0.15); }

/* ---------- Services page ---------- */
/* zebra via ids — avoids :nth-child(of), which older engines drop */
.svcdetail { overflow: hidden; background: var(--paper); }
#svc2.svcdetail { background: var(--white); }
.svcdetail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  position: relative;
}
.svcdetail--flip .svcdetail__grid > .svcdetail__visual { order: -1; }
.svcdetail__num {
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(52px, 6vw, 76px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--gold);
}
.svcdetail__title {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.05em;
}
.svcdetail__badge {
  display: inline-block;
  margin-left: 14px;
  vertical-align: middle;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #fff;
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  border-radius: 999px;
  padding: 5px 14px;
}
.svcdetail__desc { margin-top: 22px; color: var(--text-soft); line-height: 2.3; font-size: 15px; }
.svclist { margin-top: 30px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.svclist li {
  position: relative;
  padding: 15px 4px 15px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.9;
  transition: background 0.3s, padding-left 0.35s var(--ease);
}
.svclist li:hover { background: var(--brand-soft); padding-left: 40px; }
.svclist li::before {
  content: "";
  position: absolute;
  left: 8px; top: 26px;
  width: 14px; height: 1.5px;
  background: var(--gold);
}
.svcdetail__visual { position: relative; }
.svcdetail__art {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: 0 36px 80px -34px rgba(12, 22, 36, 0.45);
}
.svcdetail__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Flow page ---------- */
.flowintro { background: var(--paper); }
.flow-tabs {
  margin-top: clamp(40px, 5vw, 56px);
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.flow-tab {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  transition: all 0.4s var(--ease);
}
.flow-tab svg { width: 17px; height: 17px; }
.flow-tab:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); }
.flow-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(12,22,36,0.5);
}

.flowsec { background: var(--paper); }
.flowsec--alt { background: var(--white); }
.flowsec__head {
  display: flex; align-items: center; gap: 22px;
  margin-bottom: clamp(44px, 6vw, 64px);
}
.flowsec__icon {
  width: 72px; height: 72px; flex: none;
  border-radius: 22px;
  background: linear-gradient(140deg, var(--ink) 0%, var(--ink-3) 100%);
  color: var(--gold-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px -16px rgba(12,22,36,0.5);
}
.flowsec__icon svg { width: 34px; height: 34px; }
.flowsec__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 34px);
  color: var(--ink);
  letter-spacing: 0.06em;
}
.flowsec__sub {
  display: block;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 6px;
}

/* Timeline */
.tl { position: relative; padding-left: clamp(54px, 7vw, 84px); }
.tl__line {
  position: absolute;
  left: clamp(21px, 3vw, 35px);
  top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
  overflow: hidden;
}
.tl__line i {
  position: absolute; left: 0; top: 0;
  width: 100%; height: var(--fill, 0%);
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  transition: height 0.2s linear;
}
.tl__item { position: relative; padding: 0 0 clamp(30px, 4vw, 42px); }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute;
  left: calc(clamp(21px, 3vw, 35px) - clamp(54px, 7vw, 84px));
  top: 26px;
  width: 15px; height: 15px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
  transition: background 0.4s, box-shadow 0.4s;
}
.flowsec--alt .tl__dot { background: var(--white); }
.tl__item.is-visible .tl__dot { background: var(--gold); box-shadow: 0 0 0 6px rgba(179,146,79,0.15); }
.tl__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px clamp(20px, 3vw, 32px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.4s;
}
.flowsec--alt .tl__card { background: var(--paper); }
.tl__card:hover {
  transform: translateX(8px);
  border-color: rgba(179, 146, 79, 0.5);
  box-shadow: 0 24px 50px -24px rgba(12, 22, 36, 0.3);
}
.tl__num {
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(26px, 3vw, 34px);
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  min-width: 52px;
  line-height: 1;
}
.tl__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(16.5px, 1.9vw, 19.5px);
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.tl__icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.tl__icon svg { width: 22px; height: 22px; }
.tl__card--iconed { grid-template-columns: auto auto 1fr; }

/* ---------- Price page (ZH only) ---------- */
.price { background: var(--paper); }
.price-cards {
  margin-top: clamp(44px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 44px);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(12,22,36,0.28); }
.price-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.price-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.price-card__icon svg { width: 27px; height: 27px; }
.price-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 24px);
  color: var(--ink);
}
.price-card__body { margin-top: 18px; color: var(--text-soft); font-size: 14.5px; line-height: 2.2; }
.price-card__body li {
  position: relative;
  padding-left: 26px;
  margin-top: 10px;
}
.price-card__body li::before {
  content: "";
  position: absolute; left: 4px; top: 14px;
  width: 12px; height: 1.5px;
  background: var(--gold);
}
.price-note {
  margin-top: clamp(28px, 4vw, 40px);
  background: linear-gradient(140deg, var(--ink) 0%, var(--ink-2) 100%);
  color: rgba(255,255,255,0.82);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.price-note::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(179,146,79,0.3), transparent);
  filter: blur(30px);
}
.price-note__title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  margin-bottom: 14px;
}
.price-note__title svg { width: 22px; height: 22px; color: var(--gold-2); }
.price-note p { font-size: 14.5px; line-height: 2.3; position: relative; z-index: 1; }

/* ---------- Contact page ---------- */
.contact { background: var(--paper); overflow: hidden; }
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info__item {
  display: flex; gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info__item:first-child { padding-top: 6px; }
.contact-info__icon {
  width: 52px; height: 52px; flex: none;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.contact-info__icon svg { width: 24px; height: 24px; }
.contact-info__label {
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contact-info__value { margin-top: 6px; font-size: 15.5px; line-height: 1.9; color: var(--ink); }
.contact-info__value b { font-family: var(--font-en); font-size: 22px; font-weight: 500; letter-spacing: 0.04em; }
.contact-info__value small { display: block; font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }

.cform {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 48px);
  box-shadow: 0 34px 80px -40px rgba(12, 22, 36, 0.3);
}
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; margin-bottom: 26px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 9px;
}
.field label i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: 1px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  /* 16px minimum prevents iOS Safari's forced focus zoom */
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.35s, box-shadow 0.35s, background 0.35s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(44, 102, 166, 0.14);
}
.cform__submit { text-align: center; margin-top: 8px; }
.cform__submit .btn { width: 100%; justify-content: center; }
.cform__note { margin-top: 16px; font-size: 12px; color: var(--text-soft); text-align: center; line-height: 1.9; }

/* Direct-contact card (replaces the form) */
.contact-mail {
  position: relative;
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-3) 100%);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: clamp(36px, 4.5vw, 56px);
  box-shadow: 0 34px 80px -40px rgba(13, 28, 48, 0.55);
  overflow: hidden;
  text-align: center;
}
.contact-mail::after {
  content: "";
  position: absolute;
  right: -70px; top: -70px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(74, 134, 200, 0.4), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.contact-mail__icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--gold-2);
  display: flex; align-items: center; justify-content: center;
}
.contact-mail__icon svg { width: 30px; height: 30px; }
.contact-mail__label {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.contact-mail__addr {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-en);
  font-size: clamp(19px, 2.6vw, 27px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  border-bottom: 1px solid rgba(212, 184, 119, 0.55);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
  word-break: break-all;
}
.contact-mail__addr:hover { color: var(--gold-2); border-color: var(--gold-2); }
.contact-mail__note {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.7);
}
.contact-mail .btn { margin-top: 26px; }

/* ---------- Utility ---------- */
.tar { text-align: right; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about__grid, .philosophy__grid, .svcdetail__grid, .contact__grid { grid-template-columns: 1fr; }
  .svcdetail--flip .svcdetail__grid > .svcdetail__visual { order: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .flowprev__steps { grid-template-columns: 1fr 1fr; }
  .fstep { padding-bottom: 26px; }
  .fstep:nth-child(odd) { border-left: 0; }
  .hero__vertical { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__visual { max-width: 560px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header .lang-group { display: none; }
  .burger { display: block; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .price-cards { grid-template-columns: 1fr; }
  .cinfo__row { grid-template-columns: 1fr; }
  .cinfo__th { padding-bottom: 0; }
  .cinfo__td { padding: 8px 20px 22px 39px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .scroll-cue { display: none; }
  .about__badge { right: 8px; top: -18px; width: 104px; height: 104px; }
  .svc-grid { grid-template-columns: 1fr; }
  .flowprev__steps { grid-template-columns: 1fr; }
  .fstep { border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .fstep:first-child { border-top: 0; }
  .cform__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .tl__card { grid-template-columns: auto 1fr; gap: 16px; }
  .tl__card--iconed { grid-template-columns: auto 1fr; }
  .tl__icon { display: none; }
  .tl__num { min-width: 42px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { justify-content: center; }
  .totop { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .line-reveal > span { transform: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
