/* ONE COMPANY group site. Static, no build step. */

@property --tilt { syntax: '<angle>'; inherits: true; initial-value: 0deg; }

:root {
  --ground: #EADDD1;
  --slab: #F6EBE0;
  --slab-hi: #FFFAF4;
  --slab-edge: #D6C3B3;
  --well: #E1D1C2;
  --chip: #EEE0D3;
  --row: #FBF3EA;
  --ink: #2A221B;
  --body: #5B4F44;
  --mute: #64574B;
  --on-well: #4E4238;
  --accent: #3CB777;
  --accent-ink: #17603B;
  --sh: 92 62 38;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .9, .2, 1);
  --font: 'Outfit', 'Gothic A1', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --cut: 22px;
}
:root:lang(zh) { --font: 'Outfit', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }
:root:lang(ja) { --font: 'Outfit', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif; }
:root:lang(vi) { --font: 'Be Vietnam Pro', 'Outfit', system-ui, sans-serif; }
:root:lang(th) { --font: 'Outfit', 'Noto Sans Thai', 'Thonburi', 'Leelawadee UI', system-ui, sans-serif; }
:root:lang(km) { --font: 'Outfit', 'Noto Sans Khmer', 'Khmer Sangam MN', 'Leelawadee UI', system-ui, sans-serif; }
:root:lang(lo) { --font: 'Outfit', 'Noto Sans Lao', 'Lao Sangam MN', 'Leelawadee UI', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); line-height: 1.5; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
:lang(ko) body { word-break: keep-all; }
:lang(th) body, :lang(km) body, :lang(lo) body { line-height: 1.75; }
.i18n-pending body { visibility: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
a:hover { color: #0E4429; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 20px; height: 20px; stroke-width: 2; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* Shared surfaces: a raised slab and a recessed well */
.slab {
  background: var(--slab); border-radius: 36px;
  box-shadow: inset 0 2px 0 var(--slab-hi), 0 16px 0 -1px var(--slab-edge), 0 46px 60px -22px rgb(var(--sh) / .42);
}
.well {
  background: var(--well); border-radius: 24px;
  box-shadow: inset 0 12px 20px -6px rgb(var(--sh) / .45), inset 0 -2px 0 rgb(255 255 255 / .75);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn .ico { width: 18px; height: 18px; stroke-width: 2; }
.btn-dark { background: var(--ink); color: var(--slab); box-shadow: 0 10px 16px -8px rgb(42 34 27 / .65), inset 0 1px 0 rgb(255 255 255 / .18); }
.btn-dark:hover { color: var(--slab); }
a.btn:active { transform: scale(.98); }
.btn-block { display: flex; min-height: 58px; font-size: 18px; margin-top: auto; white-space: normal; text-align: center; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 18px; }

.mark {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 100% 38%;
  padding: 0 4px; margin: 0 -4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Language select: native control, styled as a pill */
.lang { position: relative; display: inline-flex; align-items: center; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  min-height: 52px; padding: 0 44px 0 20px; border-radius: 999px;
  border: 1.5px solid #AD9785; background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 500; cursor: pointer;
}
.lang .ico { position: absolute; right: 16px; width: 17px; height: 17px; stroke-width: 2; pointer-events: none; }

/* Sticky dock: slides in once the hero has scrolled away */
.dock {
  position: fixed; z-index: 50; top: 12px; left: 50%;
  width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; gap: 8px 22px; padding: 8px 10px 8px 20px;
  background: rgb(246 235 224 / .92); border-radius: 999px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 var(--slab-hi), 0 14px 30px -14px rgb(var(--sh) / .6);
  transform: translate(-50%, -150%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
.dock.show { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.dock-logo img { height: 34px; width: auto; }
.dock-links { flex: 1; display: flex; gap: 4px 22px; overflow-x: auto; scrollbar-width: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.dock-links::-webkit-scrollbar { display: none; }
.dock-links a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.lang-dock .lang-select { min-height: 42px; font-size: 14px; padding: 0 36px 0 16px; }
.lang-dock .ico { right: 12px; }

/* Hero: a box seen from its corner. Two faces hinge on the shared edge. */
.stage {
  position: relative; overflow: hidden;
  padding: 54px var(--gutter) 120px;
  perspective: 3000px; perspective-origin: 36% 47%;
  background: linear-gradient(180deg, #A48C7A 0%, #C2A590 44%, #E4CFC0 78%, var(--ground) 100%);
}
.stage::before {
  content: ""; position: absolute; inset: -10% -20% 0 20%; pointer-events: none;
  background: radial-gradient(50% 50% at 62% 58%, #F3CBA6 0%, rgb(243 203 166 / 0) 100%);
}
.rig {
  --tilt: 26deg;
  position: relative; left: 6.4vw; display: flex; align-items: stretch;
  width: min(1380px, 94vw); margin: 0 auto; transform-style: preserve-3d;
  transform: rotateY(calc(var(--mx, 0) * 2.4deg)) rotateX(calc(var(--my, 0) * -1.4deg));
}
/* Fit the box to the first screen of short laptops: scale = (viewport height - margins) / box height.
   The floor keeps the small labels readable; below it the box simply runs past the fold. */
@media (min-width: 1101px) { .rig { zoom: clamp(.78, tan(atan2(100vh - 90px, 910px)), 1); } }
/* The faces tilt back behind .rig's own plane, so that empty plane would swallow every
   click on them. Take .rig out of hit-testing and hand it back to the faces. */
.rig { pointer-events: none; }
.rig > .face { pointer-events: auto; }
.face { min-width: 0; position: relative; display: flex; flex-direction: column; }
.face-side { flex: 0 0 27%; transform-origin: 100% 50%; transform: rotateY(calc(var(--tilt) * -.47)); }
.face-main { flex: 0 0 73%; transform-origin: 0 50%; transform: rotateY(var(--tilt)); }
.panel { flex: 1; display: flex; }
.panel-in { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; }
.panel-side { padding: 3px 0 3px 3px; background: #FFF9F2; clip-path: polygon(36px 0, 100% 0, 100% 100%, 36px 100%, 0 calc(100% - 36px), 0 36px); }
.panel-side .panel-in { gap: 15px; padding: 26px 26px 28px; background: linear-gradient(180deg, #F9EEE3, #F1E2D4); clip-path: polygon(34px 0, 100% 0, 100% 100%, 34px 100%, 0 calc(100% - 34px), 0 34px); }
.panel-main { padding: 3px 3px 3px 0; background: #FBF2E8; clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% calc(100% - 46px), calc(100% - 46px) 100%, 0 100%); }
.panel-main .panel-in {
  gap: 18px; padding: 24px 34px 30px 44px; overflow: hidden;
  background: linear-gradient(90deg, #F6EADF 0, #E9DBCE 14px, #DACABC 16px, #E6D8CB 30px, #E2D3C5 60%, #D8C8BA 100%);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%);
}
.floor-shadow { position: absolute; left: 0; right: 3%; top: 100%; height: 48px; background: linear-gradient(180deg, rgb(74 50 32 / .58), rgb(74 50 32 / 0)); filter: blur(10px); }
.face-side .floor-shadow { left: 6%; right: 0; }

.side-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang-side { display: none; }
.lang-side .lang-select { min-height: 44px; font-size: 15px; padding: 0 38px 0 16px; }
.lang-side .ico { right: 13px; }
.logo { padding-left: 8px; }
.logo img { height: 44px; width: auto; }
.hero-title { margin-top: 6px; font-size: clamp(26px, 2.35vw, 34px); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .line > span { display: inline-block; max-width: 100%; }
.hero-sub { margin-top: -4px; padding-left: 2px; font-size: 15px; color: var(--body); }

/* Title sequence (type-scene.js). The wrapper only groups kicker, title and body; in the
   3D hero the grid is drawn on the whole side face, on phones on this wrapper itself. */
.stage { --ts-line: rgb(42 34 27 / .13); --ts-ink: var(--accent-ink); --ts-on: #fff; --ts-step: 16px; }
.ts { display: flex; flex-direction: column; gap: 15px; }
.ta .ts > * { visibility: hidden; }
.kicker { margin: 4px 0 -8px; padding-left: 2px; font: 500 12px/1.3 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--mute); }
.pill-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 5px 5px 5px 22px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--row); color: var(--ink);
  font-size: 17px; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 12px -8px rgb(60 40 25 / .7);
}
.pill-cta:hover { color: var(--ink); }
.pill-cta-btn { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--slab); box-shadow: 0 6px 10px -4px rgb(42 34 27 / .75); transition: transform .3s var(--ease); }
.pill-cta:hover .pill-cta-btn { transform: translateY(3px); }
.pill-cta-btn .ico { stroke-width: 2.2; }
.pillars { display: flex; flex-direction: column; padding-left: 6px; }
.pillars a { display: flex; align-items: center; gap: 14px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; }
.ring { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); transition: background .2s, box-shadow .2s; }
.pillars a:hover .ring { background: var(--accent); box-shadow: inset 0 0 0 3px var(--row); }
.side-h { margin-top: 2px; padding-left: 6px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 9px 16px; border-radius: 20px;
  background: var(--row); color: var(--ink); text-decoration: none;
  box-shadow: inset 0 1px 0 #fff, 0 8px 12px -8px rgb(var(--sh) / .6);
  transition: transform .25s var(--ease);
}
.row:hover { color: var(--ink); transform: translateY(-2px); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-text b { font-size: 16px; font-weight: 600; }
.row-text small { font-size: 13px; color: var(--mute); }

.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding-bottom: 18px; border-bottom: 2px solid rgb(var(--sh) / .14); }
.topnav { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; min-height: 52px; padding: 4px 26px; border-radius: 28px; border: 1.5px solid #AD9785; font-size: 16px; font-weight: 500; }
.topnav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.topnav a:hover, .dock-links a:hover { color: var(--accent-ink); }
.main-head h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.02em; }
.main-head p { font-size: 16px; color: var(--body); }

.niche-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 20px; }
.niche-item { display: flex; flex-direction: column; gap: 9px; min-width: 0; color: var(--ink); text-decoration: none; }
.niche-item:hover { color: var(--ink); }
.niche, .niche-in { clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.niche { flex: 1 1 auto; display: flex; padding: 2px 2px 3px 3px; background: #FBF2E8; }
.niche-in { --cut: 21px; flex: 1; position: relative; aspect-ratio: 1 / 1.05; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; background: #7F6A58; }
.niche-in::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(50 36 25 / .42), rgb(50 36 25 / 0) 34%); }
.niche-in .bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.09) translate(calc(var(--mx, 0) * -7px), calc(var(--my, 0) * -5px));
  transition: transform .5s var(--ease);
}
.niche-item:hover .bg { transform: scale(1.17) translate(calc(var(--mx, 0) * -7px), calc(var(--my, 0) * -5px)); }
.bg-oneplay { object-position: 80% 50%; }
/* Looping clips sit over the still image and fade in once they are actually playing. */
.niche-in .loop { opacity: 0; transition: opacity .8s, transform .5s var(--ease); }
.niche-in .loop.on { opacity: 1; }
.fig { position: relative; z-index: 1; height: auto; filter: drop-shadow(0 8px 6px rgb(30 20 10 / .55)); }
.niche-in .fig-tibi { width: 32%; }
.niche-in .fig-family { width: 40%; }
.niche-label { display: flex; flex-direction: column; }
.niche-label b { font-size: 16px; font-weight: 600; }
.niche-label small { font-size: 13px; color: var(--body); }

/* Motion switch under the hero. Its label follows the current mode. */
.motion-toggle {
  position: absolute; right: var(--gutter); bottom: 30px; z-index: 2;
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px;
  border: 0; border-radius: 999px; background: rgb(246 235 224 / .92); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 1px 0 var(--slab-hi), 0 8px 14px -8px rgb(var(--sh) / .6);
}
.js .motion-toggle { display: inline-flex; }
.motion-toggle > * { display: none; }
.motion-toggle .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.motion-full .motion-toggle :is(.m-off, .i-pause),
.motion-off .motion-toggle :is(.m-on, .i-go) { display: block; }

/* Sections */
.section { padding: clamp(84px, 10vw, 136px) 0 clamp(40px, 5vw, 64px); scroll-margin-top: 40px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 34px; }
.section h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--accent-ink); }
.lead { font-size: 18px; color: var(--body); max-width: 54ch; }
.fine { font-size: 14px; color: var(--mute); }
.stack { display: flex; flex-direction: column; gap: 30px; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 30px; }
:lang(th) h2, :lang(km) h2, :lang(lo) h2, :lang(th) h1, :lang(km) h1, :lang(lo) h1 { letter-spacing: 0; line-height: 1.45; }

.role { padding-top: clamp(72px, 9vw, 120px); display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.split { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.split-lead { flex: 1 1 400px; display: flex; flex-direction: column; gap: 20px; }
.section h2.display { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -.025em; }
.split-lead .lead { font-size: 19px; max-width: 42ch; }
.roles { flex: 1 1 420px; display: flex; flex-direction: column; gap: 30px; }
.roles li { display: flex; gap: 20px; align-items: flex-start; }
.roles h3 { font-size: 21px; font-weight: 600; }
.roles p { margin-top: 4px; font-size: 16px; color: var(--body); max-width: 44ch; }
.roles p.names { font-size: 15px; font-weight: 600; color: var(--ink); }
.dimple { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #DCCBBB; box-shadow: inset 0 6px 10px -3px rgb(var(--sh) / .5), inset 0 -2px 0 rgb(255 255 255 / .7); }
.dimple .ico { width: 26px; height: 26px; stroke-width: 1.7; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; padding: 14px; }
.stats .well { display: flex; flex-direction: column; gap: 2px; padding: 34px 30px 26px; }
.num { font-size: clamp(48px, 5vw, 68px); font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 17px; font-weight: 600; }
.stats .note { font-size: 15px; color: var(--on-well); }

/* Project cards: the whole card is the link (stretched from the title) */
.card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 26px; transition: transform .45s var(--ease), box-shadow .45s; }
.card h3 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.card h3 a { color: var(--ink); text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: 36px; }
.card:has(.stretched):hover { transform: translateY(-6px); box-shadow: inset 0 2px 0 var(--slab-hi), 0 22px 0 -1px var(--slab-edge), 0 60px 70px -24px rgb(var(--sh) / .5); }
.card:has(.stretched:focus-visible) { outline: 3px solid var(--accent-ink); outline-offset: 4px; }
.stretched:focus-visible { outline: none; }
.shot { position: relative; overflow: hidden; border-radius: 24px; background: #7F6A58; display: flex; align-items: flex-end; justify-content: center; }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 14px 22px -8px rgb(40 28 20 / .6), inset 0 -2px 0 rgb(255 255 255 / .35); }
.shot > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .shot > img:first-child { transform: scale(1.05); }
.shot-169 { aspect-ratio: 16 / 9; }
.shot-dark { background: #1E2420; }
.shot .fig-family { width: 21%; margin-bottom: 3%; }
.shot .fig-tibi { width: 20%; margin-bottom: 4%; }
.pos-62 { object-position: 50% 62%; }
.pos-68 { object-position: 50% 68%; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 14px 0; }
.brand { height: 46px; width: auto; margin-bottom: 4px; }
.brand-icon { height: 52px; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rel { padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 13px; font-weight: 600; }
.rel-own { background: var(--ink); color: var(--slab); }
.status { font-size: 14px; font-weight: 600; color: var(--mute); }
.status.live { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.status.live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.card-desc { font-size: 16px; color: var(--body); max-width: 48ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--chip); font-size: 14px; font-weight: 500; }
.card .btn { margin-top: 8px; min-height: 48px; padding: 0 20px; font-size: 15px; }
.card-wide { flex-direction: row; flex-wrap: wrap; gap: 14px 30px; padding: 14px; }
.card-wide .shot { flex: 1 1 400px; min-height: 340px; }
.card-wide .card-body { flex: 1.1 1 380px; min-width: 0; gap: 12px; padding: 22px 22px 22px 6px; }
.card-wide h3 { font-size: 30px; }
.card-wide .card-desc { font-size: 17px; }
.card-flip { flex-wrap: wrap-reverse; flex-direction: row-reverse; }
.card-flip .card-body { padding: 22px 6px 22px 22px; }
.fact { align-self: stretch; display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding: 18px 20px 14px; border-radius: 20px; }
.fact b { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.fact span { font-size: 14px; color: var(--on-well); }

.token { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 44px; padding: 34px clamp(24px, 3vw, 40px) 28px; border-radius: 28px; }
.token h3 { font-size: 18px; font-weight: 600; }
.token-num { font-size: clamp(36px, 3.6vw, 50px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.token-body { flex: 1 1 320px; font-size: 16px; color: var(--on-well); max-width: 62ch; }
.token-body strong { color: var(--ink); font-weight: 600; }

.market { display: flex; flex-direction: column; gap: 12px; padding: 18px 8px 10px; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 30px 40px; }
.market-grid div { display: flex; flex-direction: column; gap: 4px; }
.num-md { font-size: clamp(34px, 3.4vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.market-grid dt { font-size: 16px; color: var(--body); }

.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 34px 26px; }
.roadmap li { display: flex; flex-direction: column; gap: 8px; }
.bar { height: 8px; border-radius: 4px; background: #D2C0AF; box-shadow: inset 0 2px 3px rgb(var(--sh) / .4); }
.bar-on { background: var(--accent); box-shadow: none; }
.bar-half { background: linear-gradient(90deg, var(--accent) 50%, #D2C0AF 50%); box-shadow: none; }
.roadmap h3 { margin: 10px 0 2px; font-size: 22px; font-weight: 700; }
.roadmap p { font-size: 16px; font-weight: 600; }
.roadmap p.soft { font-size: 15px; font-weight: 400; color: var(--body); }
#roadmap > .fine { margin-top: 34px; }

.section-slab { margin-top: clamp(84px, 10vw, 136px); display: flex; flex-wrap: wrap; gap: 36px 56px; padding: clamp(24px, 4vw, 56px); }
.section-slab h2 { font-size: clamp(28px, 3vw, 40px); }
.fd-lead { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.fd-lead .lead { font-size: 17px; max-width: 50ch; }
.facts { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--mute); }
.facts dd { font-size: 16px; font-weight: 500; }
.cities { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 26px; padding: 40px 32px 32px; }
.cities li { display: flex; flex-direction: column; gap: 2px; }
.cities b { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.cities span { font-size: 16px; font-weight: 600; }
.cities small { font-size: 15px; color: var(--on-well); }

.contact { padding: clamp(100px, 12vw, 160px) 0 clamp(72px, 9vw, 120px); display: flex; flex-direction: column; gap: 40px; }
.contact-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.contact-head > div { display: flex; flex-direction: column; gap: 10px; }
.mails { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.mail {
  display: flex; flex-direction: column; gap: 4px; padding: 24px 26px; border-radius: 28px;
  background: var(--slab); color: var(--ink); text-decoration: none;
  box-shadow: inset 0 2px 0 var(--slab-hi), 0 8px 0 -1px var(--slab-edge), 0 26px 28px -18px rgb(var(--sh) / .48);
  transition: transform .3s var(--ease);
}
.mail:hover { color: var(--ink); transform: translateY(-4px); }
.mail small { font-size: 14px; font-weight: 600; color: var(--mute); }
.mail b { font-size: 19px; font-weight: 600; }

.footer { background: #DCCBBB; box-shadow: inset 0 14px 22px -10px rgb(var(--sh) / .42); }
.footer-in { display: flex; flex-direction: column; gap: 26px; padding-top: 56px; padding-bottom: 44px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: 40px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 15px; color: var(--on-well); }
.footer nav { font-size: 15px; font-weight: 500; }
.footer nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.footer nav a:hover { color: var(--accent-ink); }
.footer-projects { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 0 40px; }
.footer-links { display: flex; flex-direction: column; }
.footer .fine { color: var(--on-well); max-width: 86ch; }

/* Phones and tablets keep the 3D object: the side face dissolves into hero text
   and the wall of niches stays tilted in perspective right under the headline. */
@media (max-width: 1100px) {
  .stage { perspective: 1500px; perspective-origin: 28% 42%; padding: 18px var(--gutter) 64px; }
  .stage::before { inset: 0; }
  .rig { --tilt: 20deg; flex-direction: column; gap: 16px; width: auto; max-width: 640px; left: auto; transform: none; }
  .face-side, .panel-side, .panel-side .panel-in { display: contents; }
  .face-side .floor-shadow { display: none; }
  .side-top { order: 1; }
  .ts { order: 2; position: relative; isolation: isolate; gap: 12px; padding: 6px 0 10px; }
  .hero-title { font-size: clamp(32px, 8.4vw, 54px); }
  .hero-sub { margin-top: 0; padding-left: 0; font-size: 16px; color: var(--ink); }
  .kicker { padding-left: 0; color: var(--ink); }
  .face-main { order: 4; flex: none; width: 116%; margin: 6px 0 28px; }
  .pill-cta { order: 5; }
  .pillars { order: 6; }
  .side-h { order: 7; }
  .rows { order: 8; }
  .btn-block { order: 9; margin-top: 6px; }
  .logo { padding-left: 0; }
  /* The language control sits beside the logo so it is on the first screen. */
  .lang-side { display: inline-flex; }
  .lang-side .lang-select { background: var(--row); border-color: transparent; box-shadow: 0 8px 12px -8px rgb(var(--sh) / .6); }
  .topbar { display: none; }
  .panel-main .panel-in { gap: 12px; padding: 18px 18px 20px 30px; }
  .main-head h2 { font-size: clamp(18px, 3.4vw, 26px); }
  .main-head p { display: none; }
  .niche-grid { gap: 10px; }
  .niche, .niche-in { --cut: 12px; }
  .niche-in { --cut: 11px; }
  .niche-label b { font-size: clamp(11px, 2.2vw, 15px); line-height: 1.25; }
  .niche-label small { display: none; }
  .motion-toggle { bottom: 12px; }
}
@media (max-width: 720px) {
  .dock { padding-left: 14px; gap: 8px 12px; }
  .dock-logo img { height: 28px; }
  .card-wide .card-body, .card-flip .card-body { padding: 10px 12px 14px; }
  .card-wide .shot { min-height: 240px; }
  .footer-projects { gap: 0 24px; }
}

/* Motion is on for every visitor, set as a class on <html> before first paint (see index.html):
   motion-full  the default: everything below.
   motion-off   nothing moves. Chosen with the button under the hero, and remembered.
   With none of them (no JavaScript) the page is complete and static. */
.motion-full .niche-item { animation: pop .8s var(--ease) both; animation-delay: calc(.75s + var(--i) * 70ms); }
.motion-full .fig { animation: bob 3.6s ease-in-out infinite alternate; }
.motion-full .fig-family { animation-delay: -1.8s; }
.motion-full .stage::before { animation: drift 14s ease-in-out infinite alternate; }
.motion-full .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.motion-full .reveal.in { opacity: 1; transform: none; }
.motion-full .card.reveal.in { transition: transform .45s var(--ease), box-shadow .45s, opacity .9s var(--ease); transition-delay: 0s; }
.motion-full .roadmap .bar { transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s var(--ease); transition-delay: calc(.2s + var(--i, 0) * 120ms); }
.motion-full .roadmap .in .bar { transform: none; }
@media (min-width: 1101px) {
  /* Opacity must stay off .rig: fading a preserve-3d element flattens the box. */
  .motion-full .rig { animation: unfold 1.6s var(--ease) both; }
  .motion-full .panel, .motion-full .floor-shadow { animation: fade-in .7s ease-out both; }
  .motion-full .panel-main .panel-in::after {
    content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 26%; pointer-events: none;
    background: linear-gradient(100deg, rgb(255 255 255 / 0), rgb(255 255 255 / .32), rgb(255 255 255 / 0));
    transform: skewX(-14deg) translateX(-160%); animation: sheen 9s 2s infinite;
  }
}
@media (max-width: 1100px) {
  .motion-full .rig { animation: unfold-m 1.4s var(--ease) both; }
  .motion-full .panel-main, .motion-full .face-main .floor-shadow { animation: fade-in .7s ease-out both; }
}
@keyframes unfold {
  from { --tilt: 0deg; translate: 0 70px; scale: .93; }
  to { --tilt: 26deg; translate: 0 0; scale: 1; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes unfold-m { from { --tilt: 0deg; } to { --tilt: 20deg; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -5px; } }
@keyframes drift { from { transform: translate(-6%, 3%) scale(1); } to { transform: translate(5%, -4%) scale(1.12); } }
@keyframes sheen { 0% { transform: skewX(-14deg) translateX(-160%); } 24%, 100% { transform: skewX(-14deg) translateX(520%); } }
