/* =========================================================
   昀禾資訊 Lumony Tech — 有溫度的 AI 科技
   ========================================================= */

:root {
  --paper: #F5F0E8;
  --paper-2: #ECE4D7;
  --paper-3: #E2D7C6;
  --ink: #1C1915;
  --ink-2: #4E473E;
  --ink-3: #8A8074;
  --line: rgba(28, 25, 21, .14);
  --sun: #E2702A;
  --sun-2: #F2A44B;
  --sun-soft: rgba(242, 164, 75, .22);
  --leaf: #6F7C4C;

  --night: #171411;
  --night-2: #221E19;
  --night-line: rgba(245, 240, 232, .12);

  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --latin: "Instrument Serif", "Times New Roman", serif;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --radius: 22px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
  letter-spacing: .02em;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; }

::selection { background: var(--sun-2); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 4px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.latin { font-family: var(--latin); font-style: italic; font-weight: 400; letter-spacing: 0; }

.br-sm { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--sun);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { color: var(--ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sun); color: var(--ink); }
.btn-pill { height: 42px; padding: 0 18px; font-size: 14px; border: 1px solid var(--ink); }
.btn-pill:hover { border-color: var(--sun); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(245, 240, 232, .9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; }
.brand-sun { fill: var(--sun-2); transition: transform .8s var(--ease); transform-origin: 25px 13px; }
.brand-stalk { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.brand-leaf { fill: var(--ink); }
.brand:hover .brand-sun { transform: scale(1.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-zh { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .14em; }
.brand-en { font-family: var(--latin); font-style: italic; font-size: 15px; color: var(--ink-2); letter-spacing: .02em; }

.nav-list { display: flex; gap: 6px; }
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14.5px;
  letter-spacing: .1em;
  color: var(--ink-2);
  transition: color .3s;
}
.nav-num { font-family: var(--latin); font-style: italic; font-size: 13px; color: var(--ink-3); letter-spacing: 0; }
.nav-list a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--ink); }
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-list a.is-active .nav-num { color: var(--sun); }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  z-index: 60;
}
.menu-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--paper);
  clip-path: circle(0 at calc(100% - 38px) 38px);
  transition: clip-path .8s var(--ease-io);
}
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 38px) 38px); visibility: visible; }
.mobile-menu ul { border-top: 1px solid var(--line); }
.mobile-menu li { border-bottom: 1px solid var(--line); overflow: hidden; }
.mobile-menu li a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 9vw, 44px);
  letter-spacing: .08em;
  transform: translateY(100%);
  transition: transform .8s var(--ease);
}
.mobile-menu li a span { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: 18px; color: var(--sun); letter-spacing: 0; }
.mobile-menu.is-open li a { transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .06s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .12s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .18s; }
.mobile-mail { margin-top: 28px; font-family: var(--latin); font-style: italic; font-size: 22px; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 120px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 10%, #FBF4E6 0%, rgba(251, 244, 230, 0) 60%),
    var(--paper);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.hero-inner { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 0 var(--sun-soft);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 112, 42, .45); }
  80%, 100% { box-shadow: 0 0 0 12px rgba(226, 112, 42, 0); }
}

.hero-title {
  margin-top: 28px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(56px, 11.5vw, 176px);
  line-height: 1.02;
  letter-spacing: .02em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.3s var(--ease);
}
.hero-title .line:nth-child(2) .line-inner { transition-delay: .12s; }
.is-loaded .hero-title .line-inner { transform: none; }
/* 「冷」gets struck through — the rebuttal, drawn */
.hero-title .strike {
  position: relative;
  display: inline-block;
  color: var(--ink);
  transition: color 1s var(--ease) 1.5s;
}
.hero-title .strike::after {
  content: "";
  position: absolute;
  left: -.12em; right: -.12em;
  top: 52%;
  height: .09em;
  border-radius: 999px;
  background: var(--sun);
  transform: rotate(-8deg) scaleX(0);
  transform-origin: left center;
  transition: transform .9s var(--ease) 1.3s;
}
.is-loaded .hero-title .strike { color: rgba(28, 25, 21, .28); }
.is-loaded .hero-title .strike::after { transform: rotate(-8deg) scaleX(1); }

.hero-en {
  margin-top: 20px;
  font-family: var(--latin);
  font-size: clamp(22px, 2.4vw, 34px);
  font-style: italic;
  color: var(--ink-2);
  letter-spacing: 0;
}
.hero-lead {
  margin-top: 18px;
  max-width: 34em;
  color: var(--ink-2);
}
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.scroll-cue-text {
  writing-mode: vertical-rl;
  font-family: var(--latin);
  font-style: italic;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--ink-2);
}
.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 64px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: drip 2.2s var(--ease-io) infinite;
}
@keyframes drip {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 20px 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin-top: -36px;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: .12em;
  white-space: nowrap;
}
.marquee i { font-style: normal; color: var(--sun-2); font-size: 22px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  align-items: end;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section-index {
  font-family: var(--latin);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-2);
  letter-spacing: .02em;
}
.section-index span { color: var(--sun); margin-right: 6px; }
.section-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.05;
  letter-spacing: .06em;
}

.hl {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.hl::after {
  content: "";
  position: absolute;
  left: -.08em; right: -.08em;
  bottom: .08em;
  height: .32em;
  z-index: -1;
  background: var(--sun-2);
  opacity: .55;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) .45s;
}
.is-in .hl::after,
.is-in.hl::after { transform: scaleX(1); }

.tag {
  display: inline-block;
  padding: 2px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--ink-2);
}

/* ---------- News ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr auto;
  gap: 24px;
  align-items: start;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.news-item::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--paper-2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .7s var(--ease);
}
.news-item:hover::before { transform: scaleY(1); }
.news-date { display: flex; flex-direction: column; line-height: 1; }
.news-year { font-family: var(--latin); font-style: italic; font-size: 18px; color: var(--ink-3); }
.news-md { font-family: var(--latin); font-size: clamp(44px, 5vw, 72px); letter-spacing: -.01em; margin-top: 6px; }
.news-heading {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: .06em;
  line-height: 1.35;
}
.news-text { margin-top: 12px; max-width: 40em; color: var(--ink-2); }
.news-new {
  align-self: center;
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--paper);
  font-family: var(--latin);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0;
  animation: spin-y 6s var(--ease-io) infinite;
}
@keyframes spin-y {
  0%, 70% { transform: rotate(0); }
  85% { transform: rotate(-12deg) scale(1.06); }
  100% { transform: rotate(0); }
}

/* ---------- Services (dark) ---------- */
.services {
  background: var(--night);
  color: var(--paper);
  overflow: hidden;
  border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0;
}
.services-glow {
  position: absolute;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  right: -20vw; top: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 164, 75, .28), rgba(226, 112, 42, .08) 40%, transparent 70%);
  pointer-events: none;
}
.services .section-head { border-color: var(--night-line); }
.services .section-index { color: rgba(245, 240, 232, .7); }
.services .section-index span { color: var(--sun-2); }

.services-intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(56px, 8vw, 112px);
}
.services-slogan {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.35;
  letter-spacing: .06em;
}
.services .hl::after { background: var(--sun); opacity: .75; }
.services-desc {
  color: rgba(245, 240, 232, .72);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 2;
  text-align: justify;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 2.6vw, 40px);
  min-height: 460px;
  border-radius: var(--radius);
  background: var(--night-2);
  border: 1px solid var(--night-line);
  overflow: hidden;
  isolation: isolate;
  transition: transform .6s var(--ease), border-color .6s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(242, 164, 75, .18), transparent 60%);
  opacity: 0;
  transition: opacity .5s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(242, 164, 75, .4); }
.service-card:hover::before { opacity: 1; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-num { font-family: var(--latin); font-style: italic; font-size: 18px; color: rgba(245, 240, 232, .55); }
.service-icon {
  width: 56px; height: 56px;
  fill: none;
  stroke: var(--paper);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .8s var(--ease);
}
.service-icon circle { fill: var(--paper); stroke: none; }
.service-icon .spark { stroke: var(--sun-2); transform-origin: center; transition: transform .8s var(--ease); }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.08); }
.service-card:hover .service-icon .spark { transform: rotate(20deg); }
.service-title {
  margin-top: 30px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.35;
  letter-spacing: .06em;
}
.service-en { margin-top: 4px; font-family: var(--latin); font-style: italic; font-size: 19px; color: var(--sun-2); letter-spacing: 0; }
.service-text { margin-top: 18px; color: rgba(245, 240, 232, .7); font-size: 15px; line-height: 1.95; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.service-tags li {
  padding: 3px 12px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: rgba(245, 240, 232, .78);
}

/* ---------- Team ---------- */
.team { background: var(--paper); }
.team-intro {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.7;
  letter-spacing: .06em;
  max-width: 26em;
  margin: 0 0 clamp(56px, 8vw, 104px) auto;
  width: 75%;
}
.team-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.team-card {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  gap: 24px;
  padding: clamp(40px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}
.team-art { width: clamp(96px, 11vw, 150px); aspect-ratio: 1; }
.team-art svg { width: 100%; height: 100%; overflow: visible; }
.team-art .ring { fill: var(--sun-soft); stroke: none; transform-origin: 60px 60px; transform: scale(.6); transition: transform 1.4s var(--ease); }
.team-art .draw {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 2.2s var(--ease-io);
}
.team-art .d2 { transition-delay: .35s; }
.team-art .core { fill: var(--sun); transform-origin: 60px 60px; transform: scale(0); transition: transform 1s var(--ease) 1s; }
.team-card.is-in .ring { transform: scale(1); }
.team-card.is-in .draw { stroke-dashoffset: 0; }
.team-card.is-in .core { transform: scale(1); }
.team-card:hover .team-art svg { animation: float 3s var(--ease-io) infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(4deg); } }

.team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "num num"
    "title text"
    "role text";
  column-gap: clamp(32px, 5vw, 80px);
  align-content: start;
}
.team-num { grid-area: num; font-family: var(--latin); font-style: italic; font-size: 18px; color: var(--ink-3); margin-bottom: 14px; }
.team-title {
  grid-area: title;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.2;
  letter-spacing: .06em;
}
.team-role {
  grid-area: role;
  margin-top: 14px;
  align-self: start;
  justify-self: start;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: .12em;
}
.team-text { grid-area: text; color: var(--ink-2); text-align: justify; align-self: end; }

/* ---------- Contact ---------- */
.contact {
  background: var(--paper-2);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55vw;
  width: 110vw; height: 110vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 164, 75, .5), rgba(242, 164, 75, .12) 35%, transparent 62%);
  pointer-events: none;
}
.contact .container { position: relative; }
.contact-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.contact-headline {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(36px, 5.2vw, 80px);
  line-height: 1.3;
  letter-spacing: .05em;
}
.contact-card {
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--radius);
  background: rgba(245, 240, 232, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.contact-label { font-size: 13px; letter-spacing: .2em; color: var(--ink-3); }
.contact-mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  max-width: 100%;
  font-family: var(--latin);
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.contact-mail svg {
  flex: none;
  width: .6em; height: .6em;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round;
  transition: transform .5s var(--ease);
}
.contact-mail::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform-origin: right;
  transition: transform .6s var(--ease);
}
.contact-mail:hover::after { transform: scaleX(0); }
.contact-mail:hover svg { transform: translate(3px, -3px) rotate(45deg); color: var(--sun); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--paper);
  padding: clamp(56px, 8vw, 96px) 0 32px;
  overflow: hidden;
}
.footer-mega {
  font-family: var(--latin);
  font-size: clamp(88px, 22vw, 340px);
  line-height: .85;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 240, 232, .5);
  transition: color .8s var(--ease);
}
.footer-mega span { color: var(--sun-2); -webkit-text-stroke: 0; }
.footer-mega:hover { color: rgba(245, 240, 232, .06); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  font-size: 13.5px;
  color: rgba(245, 240, 232, .6);
}
.footer-tag { font-family: var(--serif); letter-spacing: .2em; }
.to-top { color: var(--paper); transition: color .3s; }
.to-top:hover { color: var(--sun-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: .08em;
  transform: translate(-50%, 160%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.toast.is-show { transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.service-card[data-reveal].is-in:hover { transform: translateY(-6px); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .services-intro { grid-template-columns: 1fr; }
  .team-content {
    grid-template-columns: 1fr;
    grid-template-areas: "num" "title" "role" "text";
  }
  .team-text { margin-top: 24px; }
  .contact-body { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .brand-mark { width: 34px; height: 34px; }
  .br-sm { display: inline; }
  .hero { padding-bottom: 140px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .scroll-cue { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .news-item { grid-template-columns: 1fr; gap: 16px; }
  .news-new { position: absolute; top: 28px; right: 0; width: 60px; height: 60px; font-size: 17px; }
  .team-intro { width: 100%; }
  .team-card { grid-template-columns: 1fr; gap: 20px; }
  .br-lg { display: none; }
  .contact-actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .marquee-track { animation: none; }
}

/* balanced headline wrapping (CJK orphans) */
.service-title { word-break: keep-all; }
.service-title,
.news-heading,
.team-title,
.services-slogan,
.contact-headline { text-wrap: balance; }

/* ---------- Service media ---------- */
.service-media {
  position: relative;
  margin: 28px 0 0;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #2B2620;
  border: 1px solid var(--night-line);
  isolation: isolate;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
  filter: saturate(.92);
}
.service-card:hover .service-media img { transform: scale(1.07); filter: saturate(1.05); }
/* warm wash that ties photos into the dark palette */
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(23, 20, 17, 0) 45%, rgba(23, 20, 17, .55) 100%);
}

/* 01 — chatbot: keep the face, float a speech bubble */
.media-chatbot img { object-position: 50% 50%; }
.media-bubble {
  position: absolute;
  left: 12px; bottom: 12px;
  max-width: calc(100% - 24px);
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 13px;
  white-space: nowrap;
  border-radius: 14px 14px 14px 4px;
  background: rgba(245, 240, 232, .94);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: .04em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .8s var(--ease) .5s, opacity .8s var(--ease) .5s;
}
.is-in .media-bubble { transform: none; opacity: 1; }
.bubble-name {
  font-family: var(--latin);
  font-style: italic;
  font-size: 13px;
  color: var(--sun);
  letter-spacing: .02em;
}

/* shared window chrome */
.media-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  background: rgba(245, 240, 232, .07);
  border-bottom: 1px solid var(--night-line);
}
.media-chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(245, 240, 232, .22); }
.media-chrome i:first-child { background: var(--sun); }
.media-chrome span { margin-left: 8px; font-family: var(--latin); font-style: italic; font-size: 12px; color: rgba(245, 240, 232, .5); letter-spacing: .02em; }

/* 02 — transcription: screenshot inside a browser frame */
.media-transcribe { display: flex; flex-direction: column; }
.media-transcribe .media-chrome { position: relative; z-index: 2; flex: none; }
.media-transcribe img { flex: 1; min-height: 0; object-position: 50% 0; transform-origin: 50% 0; }

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7FC97A;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* 03 — custom cloud: drawn interface, no photo */
.media-code {
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 70% at 75% 20%, rgba(242, 164, 75, .28), transparent 60%),
    linear-gradient(rgba(245, 240, 232, .04) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(245, 240, 232, .04) 1px, transparent 1px) 0 0 / 22px 22px,
    #221E19;
}
.media-code::after { display: none; }
.code-win {
  width: 78%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(23, 20, 17, .85);
  border: 1px solid var(--night-line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
  transition: transform 1s var(--ease);
}
.service-card:hover .code-win { transform: translateY(-4px) rotate(-1deg); }
.code-lines { display: grid; gap: 8px; padding: 14px 16px 18px; }
.code-lines span {
  display: block;
  height: 6px;
  width: var(--w);
  margin-left: calc(var(--x, 0) * 16px);
  border-radius: 999px;
  background: rgba(245, 240, 232, .18);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .9s var(--ease);
}
.code-lines span.accent { background: var(--sun-2); }
.is-in .code-lines span { transform: scaleX(1); }
.is-in .code-lines span:nth-child(2) { transition-delay: .08s; }
.is-in .code-lines span:nth-child(3) { transition-delay: .16s; }
.is-in .code-lines span:nth-child(4) { transition-delay: .24s; }
.is-in .code-lines span:nth-child(5) { transition-delay: .32s; }
.is-in .code-lines span:nth-child(6) { transition-delay: .40s; }
.is-in .code-lines span:nth-child(7) { transition-delay: .48s; }
.code-status {
  position: absolute;
  right: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(23, 20, 17, .82);
  font-family: var(--latin);
  font-style: italic;
  font-size: 13px;
  color: var(--paper);
}

/* 02 — course: video cover with a play affordance */
.media-course img { object-position: 50% 50%; }
.media-play {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(245, 240, 232, .94);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: transform .6s var(--ease), background .4s, color .4s;
}
.media-play svg { width: 16px; height: 16px; margin-left: 2px; fill: currentColor; }
.service-card:hover .media-play { transform: scale(1.12); background: var(--sun); color: var(--paper); }

/* tablet: single-column cards go side-by-side so photos stay crisp */
@media (max-width: 1080px) and (min-width: 721px) {
  .service-card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    grid-template-areas:
      "top   top"
      "media title"
      "media en"
      "media text"
      "media tags";
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 40px;
  }
  .service-top { grid-area: top; }
  .service-media { grid-area: media; align-self: start; margin-top: 24px; }
  .service-title { grid-area: title; margin-top: 24px; }
  .service-en { grid-area: en; }
  .service-text { grid-area: text; }
  .service-tags { grid-area: tags; }
}
/* trim the screenshot's empty side margins so the event card reads larger */
.media-transcribe img { transform: scale(1.2); }
.service-card:hover .media-transcribe img { transform: scale(1.26); }

/* course cover: warm the cool blues into the site palette; full colour returns on hover */
.media-course img {
  filter: sepia(.45) saturate(.8) hue-rotate(-14deg) brightness(.9) contrast(1.1);
}
.service-card:hover .media-course img {
  filter: sepia(0) saturate(1) hue-rotate(0deg) brightness(1) contrast(1);
}
.media-course::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(242, 164, 75, .55), rgba(226, 112, 42, .25) 55%, rgba(23, 20, 17, .35));
  mix-blend-mode: soft-light;
  transition: opacity 1.2s var(--ease);
}
.service-card:hover .media-course::before { opacity: 0; }
