@font-face {
  font-family: Geist;
  src: url('/assets/geist-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Citrus Cloud official dark warm palette */
  --bg: #140f0c;
  --bg-elevated: #19120e;
  --surface: #211813;
  --surface-hover: #2d2018;
  --input-bg: #160f0b;
  --ink: #fcf5ed;
  --ink-soft: #e6d7ca;
  --muted: #cbbcb0;
  --placeholder: #a99789;
  --accent: #ffa457;
  --accent-hover: #ffbc82;
  --accent-ink: #231206;
  --line-subtle: rgb(255 206 164 / 9%);
  --line: rgb(255 206 164 / 14%);
  --line-strong: rgb(255 206 164 / 24%);
  --line-accent: rgb(255 164 87 / 54%);

  /* Citrus Cloud signature light paper contrast band */
  --paper: #f6e9dc;
  --paper-alt: #efe0d1;
  --paper-card: #fff6ee;
  --paper-ink: #271811;
  --paper-muted: #584135;
  --paper-accent: #8f3c18;
  --paper-line: rgb(143 60 24 / 20%);

  /* Typography */
  --font-display: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Baskerville, Georgia, serif;
  --font-sans: Geist, 'PingFang HK', 'PingFang TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Breathing spatial rhythm */
  --header-height: 80px;
  --gutter: clamp(24px, 5.8vw, 96px);
  --wrap: 1260px;
  --section-space: clamp(96px, 11.4vw, 172px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --ease-out: cubic-bezier(.2, .75, .25, 1);

  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang='zh-Hant'] {
  --font-display: 'Songti TC', 'STSong', 'Noto Serif TC', 'Noto Serif CJK TC', 'PMingLiU', 'Iowan Old Style', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; overflow-x: clip; background: var(--bg); color: var(--ink); }
img, svg { display: block; max-inline-size: 100%; }
button, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
p, h1, h2, h3 { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}
h1 { line-height: 1.08; letter-spacing: -.026em; }
h2 { line-height: 1.14; letter-spacing: -.022em; }
h3 { line-height: 1.24; letter-spacing: -.012em; }
p { line-height: 1.76; text-wrap: pretty; }

html[lang='zh-Hant'] h1 { line-height: 1.22; letter-spacing: .018em; }
html[lang='zh-Hant'] h2 { line-height: 1.26; letter-spacing: .012em; }
html[lang='zh-Hant'] h3 { line-height: 1.36; letter-spacing: .01em; }
html[lang='zh-Hant'] p { line-height: 1.88; }

::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; scroll-margin-block: calc(var(--header-height) + 14px) 14px; }
main [id] { scroll-margin-top: calc(var(--header-height) + 20px); }

.wrap { inline-size: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.icon { inline-size: 17px; block-size: 17px; flex-shrink: 0; transition: transform 180ms var(--ease-out); }
.button:hover .icon { transform: translateX(3px); }

.skip-link { position: fixed; z-index: 30; inset: 10px auto auto 10px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-weight: 600; clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }

/* Header */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: rgb(20 15 12 / 82%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-block-end: 1px solid var(--line-subtle);
}
.header-inner {
  min-block-size: calc(var(--header-height) - 1px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  min-block-size: 44px;
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.015em;
  white-space: nowrap;
  transition: color 160ms ease;
}
html[lang='zh-Hant'] .brand { letter-spacing: .03em; font-weight: 550; }
.brand-mark { flex: none; inline-size: 32px; block-size: 32px; }
.brand:hover { color: var(--accent); }

.desktop-nav { display: flex; align-items: center; gap: clamp(26px, 3vw, 48px); }
.desktop-nav a,
.mobile-menu nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 450;
  letter-spacing: .01em;
  transition: color 160ms ease;
}
html[lang='zh-Hant'] .desktop-nav a { letter-spacing: .03em; }
.desktop-nav .nav-contact { display: none; }
.desktop-nav a:hover,
.mobile-menu nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; justify-self: end; gap: 16px; }
.languages {
  display: flex;
  gap: 2px;
  align-items: center;
  border-inline-end: 1px solid var(--line-subtle);
  padding-inline-end: 12px;
}
.languages a {
  display: grid;
  place-items: center;
  block-size: 40px;
  min-inline-size: 40px;
  padding-inline: 8px;
  color: var(--muted);
  border-radius: 6px;
  font-weight: 600;
  font-size: .8rem;
  transition: background-color 160ms ease, color 160ms ease;
}
.languages a:hover { color: var(--ink); background: var(--surface-hover); }
.languages a[aria-current='page'] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.mobile-menu { display: none; }

/* Buttons & Links */
.button {
  min-block-size: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 170ms ease, background-color 170ms ease, border-color 170ms ease, transform 180ms var(--ease-out);
}
.button:hover { transform: translateY(-1.5px); }
.button:active { transform: translateY(0); }
.button-small { min-block-size: 42px; padding: 9px 16px; font-size: .84rem; gap: 7px; }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { background: rgb(33 24 19 / 76%); border-color: var(--line-strong); color: var(--ink); }
.button-outline:hover { background: var(--surface-hover); border-color: var(--accent); color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  gap: 8px;
  color: var(--accent);
  font-weight: 550;
  font-size: .92rem;
  transition: color 160ms ease;
}
.text-link:hover { color: var(--accent-hover); }
.link-arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
.text-link:hover .link-arrow { transform: translateX(4px); }

/* Hero */
.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  min-block-size: clamp(660px, calc(100svh - var(--header-height)), 920px);
  overflow: clip;
  border-block-end: 1px solid var(--line-subtle);
}
.hero-art,
.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-art { z-index: -3; }
.hero-art img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 62% center; }
.hero::before {
  z-index: -2;
  content: '';
  background: radial-gradient(ellipse at 76% 56%, #ff9b4658, #ff702722 28%, transparent 58%);
  opacity: .32;
  transform-origin: 76% 56%;
  mix-blend-mode: screen;
}
.hero::after {
  z-index: -1;
  content: '';
  background:
    linear-gradient(90deg, #140f0c 0%, rgb(20 15 12 / 84%) 25%, rgb(20 15 12 / 26%) 54%, transparent 76%),
    linear-gradient(0deg, #140f0c 0%, rgb(20 15 12 / 46%) 14%, transparent 32%);
}

.hero-inner {
  display: grid;
  grid-template-rows: 1fr auto;
  min-block-size: inherit;
}
.hero-main {
  align-self: center;
  padding-block: clamp(72px, 8.8vw, 128px) clamp(52px, 6.8vw, 96px);
}
.hero-market {
  color: #f1c6a4;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-block-end: clamp(26px, 3.2vw, 38px);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .06em;
}
.hero-market span {
  inline-size: 7px;
  block-size: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgb(255 164 87 / 65%);
}

.hero h1 { font-size: clamp(3.3rem, 5.7vw, 5.65rem); }
html[lang='en'] .hero h1 { font-size: clamp(3.1rem, 5.4vw, 5.3rem); }
.hero h1 span,
.markets h2 span { display: block; }
.accent { color: var(--accent); }
html[lang='en'] .hero h1 .accent { font-style: italic; }

.hero-intro {
  max-inline-size: 32rem;
  margin-block-start: clamp(26px, 3vw, 36px);
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-block-start: clamp(36px, 4vw, 48px);
}

/* Anchored Bottom Hero Service Index (opens vertical breathing space) */
.hero-services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px clamp(28px, 4.2vw, 60px);
  padding-block: 22px 28px;
  border-block-start: 1px solid rgb(255 215 182 / 12%);
}
.hero-services a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-block-size: 44px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 450;
  letter-spacing: .02em;
  transition: color 170ms ease;
}
.hero-service-index {
  font-family: var(--font-mono);
  color: var(--accent);
  opacity: .82;
  font-size: .76rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: opacity 170ms ease;
}
.hero-services a:hover { color: var(--ink); }
.hero-services a:hover .hero-service-index { opacity: 1; }

/* Sections */
.section { padding-block: var(--section-space); }
.section h2 { font-size: clamp(2.35rem, 4.1vw, 3.85rem); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-block-end: clamp(48px, 5.6vw, 78px);
}
.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  margin-block-start: 18px;
  max-inline-size: 36rem;
}
.heading-link { flex-shrink: 0; }

/* Services */
.services { background: var(--bg-elevated); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.8vw, 38px);
}
.service-card {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-rows: auto 1fr;
  min-inline-size: 0;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform 240ms var(--ease-out), border-color 240ms ease;
}
.service-card:focus-within { border-color: var(--line-accent); }
.card-art {
  position: relative;
  overflow: clip;
  aspect-ratio: 16 / 9;
  min-block-size: 164px;
  border-block-end: 1px solid var(--line-subtle);
  background: #1a120d;
}
.card-art-app {
  background: #f5f7fa;
  padding: 10px;
}
.card-art img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}
.card-art-app img {
  object-fit: contain;
  padding: 8px;
}
.card-body {
  padding: clamp(26px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.card-index {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
  opacity: .85;
}
.card-body h3 {
  font-size: clamp(1.36rem, 1.8vw, 1.68rem);
  color: var(--ink);
}
.card-body p {
  color: var(--muted);
  font-size: .95rem;
  margin-block-end: 10px;
}
.card-footer {
  margin-block-start: auto;
  inline-size: 100%;
  padding-block-start: 16px;
  border-block-start: 1px solid var(--line-subtle);
}

/* Approach (Citrus Cloud Signature Light Paper Contrast Band) */
.approach {
  background: var(--paper);
  color: var(--paper-ink);
  border-block-start: 1px solid var(--paper-line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(54px, 6.2vw, 88px) 0 0;
  padding: 0;
  gap: clamp(32px, 4.4vw, 66px);
  list-style: none;
}
.steps li {
  position: relative;
  padding: 30px 8px 0 0;
  border-block-start: 1px solid var(--paper-line);
}
.steps li::before {
  content: '';
  position: absolute;
  inset-block-start: -4px;
  inset-inline-start: 0;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--paper-accent);
  background: var(--paper);
}
.steps li:first-child::before { background: var(--paper-accent); }
.step-number {
  font-family: var(--font-mono);
  color: var(--paper-accent);
  font-size: .78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}
.steps h3 {
  margin-block: 18px 14px;
  font-size: clamp(1.38rem, 1.85vw, 1.72rem);
  color: var(--paper-ink);
}
.steps p {
  color: var(--paper-muted);
  font-size: .96rem;
  max-inline-size: 24rem;
}

/* Markets (Light Paper Alt) */
.markets {
  background: var(--paper-alt);
  color: var(--paper-ink);
  border-block-start: 1px solid var(--paper-line);
}
.markets-grid,
.contact-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  align-items: center;
  gap: clamp(44px, 7.2vw, 112px);
}
.markets-copy p {
  color: var(--paper-muted);
  margin-block-start: 26px;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  max-inline-size: 30rem;
}
.markets-tags {
  list-style: none;
  margin: 30px 0 0;
  padding: 22px 0 0;
  border-block-start: 1px solid var(--paper-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  color: var(--paper-accent);
  font-size: .88rem;
  font-weight: 550;
  letter-spacing: .04em;
}
.markets-tags li { display: inline-flex; align-items: center; }
.markets-tags li + li::before {
  content: '·';
  margin-inline: 14px;
  color: var(--paper-line);
}

.market-map {
  position: relative;
  min-inline-size: 0;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  background: #f4e2d0;
  overflow: hidden;
  box-shadow: 0 14px 36px rgb(39 24 17 / 6%);
}
.market-map img { inline-size: 100%; block-size: auto; }
.market-routes { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }
.market-routes path {
  stroke: var(--paper-accent);
  stroke-opacity: .46;
  stroke-width: 1.7;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
}
.market-list { list-style: none; margin: 0; padding: 0; }
.market-point { position: absolute; display: flex; align-items: center; gap: 7px; transform: translate(-5px, -50%); }
.market-point::before {
  content: '';
  inline-size: 10px;
  block-size: 10px;
  flex: none;
  border: 2px solid var(--paper-card);
  border-radius: 50%;
  background: var(--paper-accent);
  box-shadow: 0 0 0 1px rgb(143 60 24 / 25%);
}
.market-label {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgb(143 60 24 / 26%);
  color: var(--paper-ink);
  background: rgb(255 246 238 / 95%);
  box-shadow: 0 3px 10px rgb(39 24 17 / 9%);
  font-size: clamp(.74rem, 1vw, .86rem);
  font-weight: 600;
  white-space: nowrap;
}
.point-1 { top: 33.11%; left: 42.40%; }
.point-2 { top: 51.05%; left: 51.95%; }
.point-3 { top: 82.32%; left: 40.89%; }

/* Contact */
.contact { background: var(--bg-elevated); }
.contact-grid { align-items: start; }
.contact-copy p { max-inline-size: 29rem; }
.contact-direct {
  margin-block-start: clamp(32px, 3.8vw, 48px);
  padding-block-start: 24px;
  border-block-start: 1px solid var(--line-subtle);
  display: grid;
  gap: 2px;
}
.contact-direct-label {
  font-size: .78rem;
  color: var(--placeholder);
  letter-spacing: .06em;
}
.contact-email { justify-self: start; font-size: 1.04rem; }

.brief-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(28px, 3.8vw, 48px);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.brief-panel.is-highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(255 164 87 / 15%);
}
.form-field + .form-field { margin-block-start: 26px; }
.brief-panel label {
  display: block;
  margin-block-end: 10px;
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 550;
  letter-spacing: .02em;
}
.select-wrap { position: relative; }
.select-chevron {
  position: absolute;
  inset-inline-end: 14px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color 160ms ease;
}
.select-wrap:focus-within .select-chevron { color: var(--accent); }
.brief-panel select,
.brief-panel textarea {
  display: block;
  inline-size: 100%;
  padding: 13px 15px;
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.6;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.brief-panel select:hover,
.brief-panel textarea:hover { border-color: var(--line-accent); }
.brief-panel select:focus,
.brief-panel textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgb(255 164 87 / 18%);
}
.brief-panel select {
  appearance: none;
  -webkit-appearance: none;
  min-block-size: 50px;
  padding-inline-end: 42px;
  cursor: pointer;
}
.brief-panel select:invalid { color: var(--placeholder); }
.brief-panel select option { background: var(--surface); color: var(--ink); }
.brief-panel textarea { min-block-size: 132px; resize: vertical; }
.brief-panel textarea::placeholder { color: var(--placeholder); }
.brief-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.form-status { font-size: .9rem; color: var(--accent); line-height: 1.6; }
.form-status:not(:empty) { margin-block: 16px 0; }
.brief-panel textarea.brief-result { margin-block-start: 10px; }
.noscript-note { display: grid; gap: 8px; color: var(--muted); }

/* Footer matching Citrus Cloud family */
.site-footer {
  background: var(--bg);
  border-block-start: 1px solid var(--line-subtle);
  padding-block: clamp(64px, 7.2vw, 96px) clamp(30px, 3.6vw, 44px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.footer-grid-4 {
  grid-template-columns: 1.25fr .65fr .85fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
}
.footer-intro > p {
  color: var(--muted);
  font-size: .86rem;
  margin-block-start: 16px;
  max-inline-size: 22rem;
}
.footer-mail { margin-block-start: 12px; font-size: .88rem; }
.footer-grid > div > h2 {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .04em;
  color: var(--ink);
  margin: 8px 0 18px;
}
.footer-nav a {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  padding-block: 6px;
  transition: color 160ms ease;
}
.footer-nav a:hover { color: var(--accent); }

.footer-company strong { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); }
.footer-company > p { font-size: .8rem; color: var(--muted); margin-block-start: 4px; }
.icp-link {
  display: inline-block;
  margin-block-start: 8px;
  font-size: .8rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.icp-link:hover { color: var(--accent); }
.office-label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent);
  margin-block-start: 18px;
  letter-spacing: .04em;
}
.footer-company address {
  font-style: normal;
  color: var(--placeholder);
  font-size: .78rem;
  line-height: 1.8;
  margin-block-start: 6px;
}

.footer-bottom {
  margin-block-start: clamp(40px, 4.8vw, 60px);
  padding-block-start: 22px;
  border-block-start: 1px solid var(--line-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  color: var(--placeholder);
  font-size: .8rem;
}
.footer-bottom .text-link { font-size: .84rem; color: var(--muted); }
.footer-bottom .text-link:hover { color: var(--accent); }

/* 404 */
.not-found { padding-block: 16svh; }
.not-found h1 { margin-block: 36px 20px; font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
.not-found h1 span { display: block; color: var(--accent); font-style: italic; }
.not-found p { color: var(--muted); }
.not-found p + p { margin-block-start: 6px; }

/* Responsive */
@media (max-width: 1060px) {
  .header-cta { display: none; }
  .languages { border-inline-end: 0; padding-inline-end: 0; }
  .header-inner { gap: 16px; }
  .desktop-nav .nav-contact { display: inline-flex; }
  .hero::after {
    background:
      linear-gradient(90deg, #140f0c 0%, rgb(20 15 12 / 82%) 34%, rgb(20 15 12 / 28%) 66%, transparent),
      linear-gradient(0deg, #140f0c 0%, transparent 28%);
  }
  .hero-art img { object-position: 66% center; }
  .markets-grid,
  .contact-grid { gap: clamp(32px, 4.8vw, 68px); }
}

@media (max-width: 880px) {
  .desktop-nav { gap: 18px; }
  .desktop-nav a { font-size: .86rem; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .service-card { grid-template-columns: minmax(220px, .86fr) 1.14fr; grid-template-rows: auto; align-content: stretch; }
  .card-art { aspect-ratio: auto; min-block-size: 210px; border-block-end: 0; border-inline-end: 1px solid var(--line-subtle); }
  .markets-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .markets h2 span { display: inline; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-intro, .footer-grid-4 .footer-company { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root {
    --header-height: 66px;
    --section-space: clamp(76px, 12vw, 108px);
  }
  .header-inner { grid-template-columns: 1fr auto; gap: 8px; }
  .brand { font-size: 1.02rem; }
  .brand-mark { inline-size: 28px; block-size: 28px; }
  .header-actions { gap: 4px; }
  .languages a { min-inline-size: 38px; padding-inline: 5px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    border-radius: 7px;
    cursor: pointer;
    list-style: none;
    transition: background-color 160ms ease;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary:hover,
  .mobile-menu[open] summary { background: var(--surface-hover); }
  .mobile-menu nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    padding: 12px var(--gutter) 22px;
    background: rgb(24 17 13 / 97%);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-block-end: 1px solid var(--line);
    box-shadow: 0 20px 44px rgb(0 0 0 / 50%);
  }
  .mobile-menu nav a { padding-inline: 4px; font-size: 1rem; }
  .mobile-menu nav a + a { border-block-start: 1px solid var(--line-subtle); }
  .menu-icon { position: relative; inline-size: 18px; block-size: 12px; }
  .menu-icon::before,
  .menu-icon::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    block-size: 1.6px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 200ms var(--ease-out), inset-block 200ms var(--ease-out);
  }
  .menu-icon::before { inset-block-start: 1px; }
  .menu-icon::after { inset-block-end: 1px; }
  .mobile-menu[open] .menu-icon::before { inset-block-start: 5px; transform: rotate(45deg); }
  .mobile-menu[open] .menu-icon::after { inset-block-end: 5px; transform: rotate(-45deg); }

  .hero { min-block-size: clamp(640px, calc(100svh - var(--header-height)), 840px); }
  .hero-main { align-self: start; padding-block: clamp(48px, 9vw, 72px) clamp(160px, 46vw, 240px); }
  .hero-art { inset: auto 0 0; block-size: min(88vw, 460px); }
  .hero-art img { object-position: 91% 53%; }
  .hero::before { background: radial-gradient(ellipse at 67% 77%, #ff9b4652, #ff702720 24%, transparent 51%); transform-origin: 67% 77%; }
  .hero::after { background: linear-gradient(180deg, #140f0c 0%, #140f0c 36%, rgb(20 15 12 / 64%) 52%, transparent 72%, rgb(20 15 12 / 76%) 90%, #140f0c 100%); }
  .hero-market { margin-block-end: 20px; font-size: .84rem; }
  .hero h1 { font-size: clamp(2.55rem, 9.6vw, 4rem); }
  html[lang='en'] .hero h1 { font-size: clamp(2.2rem, 9.8vw, 3.8rem); }
  .hero-intro { margin-block-start: 20px; }
  .hero-actions { margin-block-start: 28px; gap: 10px; }
  .hero-actions .button { min-block-size: 46px; padding-inline: 18px; font-size: .9rem; }
  .hero-services { gap: 4px 20px; padding-block: 16px 22px; }
  .section h2 { font-size: clamp(2rem, 8.2vw, 2.75rem); }
}

@media (max-width: 540px) {
  .service-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .card-art { aspect-ratio: 16 / 9; min-block-size: 160px; border-inline-end: 0; border-block-end: 1px solid var(--line-subtle); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; margin-block-start: 38px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero[data-enter]::before { animation: hero-warmth 1600ms var(--ease-out) backwards; }
  .hero[data-enter] .hero-art img { animation: hero-photo 1400ms var(--ease-out) backwards; }
  .hero[data-enter] .hero-market { animation: hero-detail 550ms var(--ease-out) 60ms backwards; }
  .hero[data-enter] h1 > span { animation: hero-title 740ms var(--ease-out) 120ms backwards; }
  .hero[data-enter] h1 > span + span { animation-delay: 210ms; }
  .hero[data-enter] .hero-intro { animation: hero-detail 600ms var(--ease-out) 290ms backwards; }
  .hero[data-enter] .hero-actions { animation: hero-detail 580ms var(--ease-out) 360ms backwards; }
  .hero[data-enter] .hero-services { animation: hero-detail 580ms var(--ease-out) 420ms backwards; }

  html.js-motion [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 680ms var(--ease-out), transform 740ms var(--ease-out);
  }
  html.js-motion [data-reveal][data-visible] {
    opacity: 1;
    transform: translateY(0);
  }

  .market-map .market-routes path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 960ms var(--ease-out) 160ms;
  }
  .market-map .market-routes .route-2 { transition-delay: 420ms; }
  .market-map[data-pins-visible] .market-routes path { stroke-dashoffset: 0; }
  .market-map[data-pins-visible] .market-point::before { animation: market-ping 780ms var(--ease-out) backwards; }
  .market-map[data-pins-visible] .point-2::before { animation-delay: 140ms; }
  .market-map[data-pins-visible] .point-3::before { animation-delay: 280ms; }
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover { border-color: var(--line-accent); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle 240px at var(--light-x, 50%) var(--light-y, 45%), #ffac6626, #ff933d0a 55%, transparent 85%);
    opacity: 0;
    transition: opacity 280ms var(--ease-out);
  }
  .service-card:hover { transform: translateY(-3px); }
  .service-card:hover::after { opacity: 1; }
  .card-art img { transition: transform 520ms var(--ease-out); }
  .service-card:hover .card-art img { transform: scale(1.03); }
}

@keyframes hero-warmth {
  0% { opacity: 0; transform: scale(.84); }
  52% { opacity: .66; }
  100% { opacity: .32; transform: scale(1); }
}

@keyframes hero-photo {
  from { transform: scale(1.035); }
  to { transform: scale(1); }
}

@keyframes hero-title {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-detail {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes market-ping {
  from { box-shadow: 0 0 0 0 rgb(143 60 24 / 45%); }
  to { box-shadow: 0 0 0 9px rgb(143 60 24 / 0%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover,
  .button:active,
  .button:hover .icon,
  .text-link:hover .link-arrow { transform: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
