/* ==========================================================================
   way2solution — Christian Hahn
   Palette taken from the logo: anthracite, two greys, one orange.
   Signature details: chamfered corners (like the turns of the logo path)
   and the orange route that runs through the whole page.
   ========================================================================== */

:root {
  --ink: #141414;
  --ink-2: #1b1b1b;
  --ink-3: #242424;
  --deep: #0f0f10;
  --paper: #efede8;
  --paper-2: #e5e2db;
  --card: #f7f6f2;

  --orange: #f47c20;
  --orange-hi: #ff9447;
  --orange-ink: #b4550b;
  --grey-d: #7a7a7a;
  --grey-l: #c4c4c4;

  --fg: #ecebe7;
  --fg-2: #a6a49f;
  --fg-3: #6e6c68;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --chip: rgba(255, 255, 255, 0.06);

  --f-sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --f-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --f-brand: 'Roboto', var(--f-sans);

  --gutter: clamp(20px, 6vw, 104px);
  --maxw: 1500px;
  --hdr: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ch: 12px;
}

.theme-light {
  --fg: #151515;
  --fg-2: #55534e;
  --fg-3: #8b8882;
  --line: rgba(0, 0, 0, 0.11);
  --line-2: rgba(0, 0, 0, 0.2);
  --chip: rgba(0, 0, 0, 0.05);
  background: var(--paper);
  color: var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--orange); color: #141414; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: 12px; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--orange); color: #141414; padding: 10px 16px; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 16px; }

/* Film grain — very subtle, makes flat dark surfaces feel printed */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Icons ---------- */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- Brand ---------- */
.mark { width: 34px; height: 34px; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.wordmark { display: flex; flex-direction: column; font-family: var(--f-brand); line-height: 1; }
.wordmark b { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: #8e8e8e; }
.wordmark i { font-style: normal; color: var(--orange); }
.wordmark small { margin-top: 3px; font-weight: 300; font-size: 12.5px; letter-spacing: 0.01em; color: var(--grey-l); }

/* ---------- Buttons ---------- */
.btn {
  --c: 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px 0 20px;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: 0.005em;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn .i { transition: transform 0.4s var(--ease); }
.btn:hover .i { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #141414; }
.btn-primary:hover { background: var(--orange-hi); }
.btn-ghost { background: var(--chip); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.theme-light .btn-ghost:hover { background: rgba(0, 0, 0, 0.09); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; --c: 8px; }
.btn-line { height: 46px; padding: 0 18px; gap: 14px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); clip-path: none; font-weight: 520; }
.btn-line:hover { background: var(--chip); }
[data-swap] .lbl-b { display: none; }
[data-swap][aria-expanded='true'] .lbl-a { display: none; }
[data-swap][aria-expanded='true'] .lbl-b { display: inline; }

/* plus/minus */
.pm { position: relative; width: 12px; height: 12px; flex: none; }
.pm::before, .pm::after { content: ''; position: absolute; left: 0; top: 5.25px; width: 12px; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease); }
.pm::after { transform: rotate(90deg); }
[aria-expanded='true'] > .pm::after { transform: rotate(0deg); }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr); transition: transform 0.5s var(--ease), background-color 0.4s, box-shadow 0.4s; }
.hdr::before { content: ''; position: absolute; inset: 0; background: rgba(20, 20, 20, 0.78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); opacity: 0; transition: opacity 0.4s; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07); }
.hdr.is-solid::before { opacity: 1; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-in { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 14px; font-size: 14.5px; color: var(--fg-2); transition: color 0.25s; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--fg); }
.nav a.is-active::after { transform: scaleX(1); }
.hdr-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; box-shadow: inset 0 0 0 1px var(--line); height: 34px; padding: 3px; }
.lang a { display: grid; place-items: center; height: 100%; padding: 0 10px; color: var(--fg-3); transition: color 0.25s, background-color 0.25s; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current] { color: #141414; background: var(--fg); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger-l { position: absolute; left: 11px; width: 22px; height: 1.6px; background: var(--fg); transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.burger-l:nth-child(1) { top: 17px; }
.burger-l:nth-child(2) { top: 25px; }
.burger[aria-expanded='true'] .burger-l:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded='true'] .burger-l:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; background: var(--ink); padding-top: calc(var(--hdr) + 24px); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-in { display: flex; flex-direction: column; min-height: calc(100% - 24px); }
.menu-in > a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(32px, 9vw, 46px); font-weight: 560; letter-spacing: -0.03em; font-variation-settings: 'wdth' 108; }
.menu-in > a .mono { color: var(--orange); }
.menu-foot { margin-top: auto; padding: 32px 0 40px; display: flex; flex-direction: column; gap: 6px; color: var(--fg-2); }
.menu.is-open .menu-in > a { animation: menuIn 0.7s var(--ease) both; }
.menu.is-open .menu-in > a:nth-child(2) { animation-delay: 0.04s; }
.menu.is-open .menu-in > a:nth-child(3) { animation-delay: 0.08s; }
.menu.is-open .menu-in > a:nth-child(4) { animation-delay: 0.12s; }
.menu.is-open .menu-in > a:nth-child(5) { animation-delay: 0.16s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Route (the orange line through the page) ---------- */
main { position: relative; display: block; }
.route { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: none; }
.route svg { width: 100%; height: 100%; overflow: visible; }
.route-track { fill: none; stroke: #8a8a8a; stroke-opacity: 0.32; stroke-width: 1; stroke-dasharray: 2 7; }
.route-line { fill: none; stroke: var(--orange); stroke-width: 2.25; stroke-linejoin: miter; }
.has-route .route { display: block; }
.route-end { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); margin-right: 4px; transform: scale(0.35); opacity: 0.55; transition: transform 0.7s var(--ease), opacity 0.4s; position: relative; flex: none; }
.route-end::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--orange); opacity: 0; transform: scale(0.6); }
.route-end.is-reached { transform: scale(1); opacity: 1; }
.route-end.is-reached::after { animation: ring 2.4s var(--ease) 0.3s infinite; }
@keyframes ring { 0% { opacity: 0.8; transform: scale(0.6); } 80%, 100% { opacity: 0; transform: scale(1.7); } }

/* ---------- Reveal system ---------- */
.js [data-r] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-r].is-in { opacity: 1; transform: none; }
.js [data-r='clip'] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); translate: 0 0.35em; transition: clip-path 1.1s var(--ease), translate 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-r='clip'].is-in { clip-path: inset(0 0 -0.2em 0); translate: 0 0; }
.js [data-r='card'] { transform: translate3d(0, 40px, 0) rotate(-2deg); transition-duration: 1.2s, 1.4s; }

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: clamp(104px, 12vw, 176px); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-bottom: clamp(56px, 7vw, 96px); }
.sec-label { grid-column: 1 / span 3; display: flex; align-items: center; gap: 12px; height: fit-content; padding-top: 0.9em; color: var(--fg-2); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.sec-label .idx { color: var(--fg-3); transition: color 0.5s; }
.sec-label .bar { width: 28px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.sec-label .bar::after { content: ''; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease) 0.1s; }
.sec-label.is-reached .idx { color: var(--orange); }
.sec-label.is-reached .bar::after { transform: scaleX(1); }
.sec-titles { grid-column: 4 / -1; }
.h2 { font-size: clamp(38px, 5.4vw, 80px); line-height: 0.98; font-weight: 560; letter-spacing: -0.035em; font-variation-settings: 'wdth' 106; text-wrap: balance; max-width: 15ch; }
.h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; font-weight: 560; letter-spacing: -0.025em; font-variation-settings: 'wdth' 104; }
.lead { margin-top: 28px; max-width: 54ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.mini-label { display: flex; align-items: center; gap: 12px; color: var(--fg-2); margin-bottom: 28px; }
.mini-label .bar { width: 28px; height: 1px; background: var(--orange); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { --c: 6px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.04em; padding: 5px 9px; background: var(--chip); color: var(--fg-2); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--hdr) + clamp(48px, 9vh, 112px)); padding-bottom: 40px; overflow: hidden; isolation: isolate; }
.hero-maze { position: absolute; z-index: -1; top: 0; right: -6vw; width: min(66vw, 1020px); height: 100%; -webkit-mask: radial-gradient(70% 62% at 58% 46%, #000 30%, transparent 78%); mask: radial-gradient(70% 62% at 58% 46%, #000 30%, transparent 78%); }
.hero-maze svg { width: 100%; height: 100%; }
.mz-walls { fill: none; stroke: rgba(255, 255, 255, 0.065); stroke-width: 1.5; stroke-linecap: square; }
.mz-path { fill: none; stroke: var(--orange); stroke-opacity: 0.42; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mz-dot { fill: var(--orange); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.2); }
.is-loaded .mz-path { stroke-dashoffset: 0; transition: stroke-dashoffset 3.2s var(--ease-io) 0.5s; }
.is-loaded .mz-dot { opacity: 0.8; transform: none; transition: opacity 0.4s 3.5s, transform 0.8s var(--ease) 3.5s; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: clamp(40px, 5vw, 96px); align-items: center; }
.eyebrow { color: var(--fg-2); margin-bottom: clamp(20px, 3vh, 32px); }
.hero-name { font-size: clamp(64px, 9.4vw, 156px); line-height: 0.86; font-weight: 600; letter-spacing: -0.048em; font-variation-settings: 'wdth' 110; margin-left: -0.04em; }
.hero-name .ln { display: block; }
.js .hero-name .ch { display: inline-block; transform: translate3d(0, 102%, 0); transition: transform 1.15s var(--ease); transition-delay: calc(0.12s + var(--i) * 0.035s); }
.js .hero-name .lw { display: inline-block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; vertical-align: top; }
.js.is-loaded .hero-name .ch { transform: none; }
.hero-tag { margin-top: clamp(28px, 4vh, 44px); font-size: clamp(22px, 2.15vw, 32px); line-height: 1.18; font-weight: 450; letter-spacing: -0.018em; font-variation-settings: 'wdth' 102; max-width: 25ch; text-wrap: balance; }
.hero-lead { margin-top: 18px; max-width: 48ch; color: var(--fg-2); font-size: 17.5px; }
.hero-actions { margin-top: clamp(28px, 4vh, 40px); display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero photos: in the air (Bonanza) + on the ground (portrait) */
.hero-media { position: relative; width: 100%; max-width: 640px; justify-self: end; aspect-ratio: 1 / 0.86; }
.hm-air { --c: 22px; position: absolute; top: 0; right: 0; width: 88%; height: 82%; margin: 0; overflow: hidden; background: var(--ink-3); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.hm-air::before { content: ''; position: absolute; right: 0; top: 0; z-index: 2; width: 22px; height: 22px; background: var(--orange); clip-path: polygon(0 0, 100% 100%, 100% 0); }
.hm-air img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; transform: scale(1.1) translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hm-air figcaption, .hm-ground figcaption { font-size: 10.5px; letter-spacing: 0.06em; }
.hm-air figcaption { position: absolute; right: 14px; bottom: 14px; z-index: 2; color: #fff; background: rgba(15, 15, 16, 0.62); padding: 7px 10px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hm-ground { position: absolute; left: 0; bottom: 0; z-index: 3; width: 30%; margin: 0; background: var(--card); padding: 9px 9px 0; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.85); transform: rotate(-2deg); }
.hm-ground img { width: 100%; height: auto; filter: grayscale(1) contrast(1.06) brightness(1.03); }
.hm-ground figcaption { color: #55534e; padding: 9px 1px 10px; line-height: 1.35; }
.js [data-r='media'] { transform: translate3d(0, 34px, 0); transition-duration: 1.2s, 1.4s; }
.js [data-r='media'] .hm-ground { opacity: 0; transform: translate3d(-24px, 40px, 0) rotate(-6deg); transition: opacity 0.9s var(--ease) 0.45s, transform 1.3s var(--ease) 0.45s; }
.js [data-r='media'].is-in .hm-ground { opacity: 1; transform: rotate(-2deg); }

/* Stats */
.hero-foot { margin-top: clamp(56px, 8vh, 96px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 22px 24px 0 0; position: relative; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.odo { font-size: clamp(38px, 4.2vw, 64px); line-height: 1; font-weight: 560; letter-spacing: -0.035em; font-variation-settings: 'wdth' 112; font-variant-numeric: tabular-nums; white-space: nowrap; }
.odo-v { display: inline-flex; white-space: pre; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; position: relative; }
.odo-strip { display: flex; flex-direction: column; transition: transform 1.8s var(--ease); transition-delay: var(--od, 0s); }
.odo-strip span { height: 1em; line-height: 1; }
.stat-label { margin-top: 10px; color: var(--fg-2); font-size: 14.5px; line-height: 1.4; max-width: 22ch; }

/* ---------- Expertise ---------- */
.xp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.xp-cell { position: relative; padding: clamp(32px, 4vw, 56px) clamp(24px, 3.4vw, 52px) clamp(36px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.xp-cell:nth-child(even) { padding-left: clamp(24px, 3.4vw, 52px); border-left: 1px solid var(--line); }
.xp-cell::before { content: ''; position: absolute; left: -1px; top: -1px; width: 0; height: 2px; background: var(--orange); transition: width 0.7s var(--ease); }
.xp-cell:nth-child(odd)::before { left: 0; }
.xp-cell:hover::before { width: 72px; }
.xp-num { display: block; color: var(--orange); margin-bottom: 26px; }
.xp-title { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; font-weight: 560; letter-spacing: -0.025em; font-variation-settings: 'wdth' 104; margin-bottom: 14px; }
.xp-cell > p { color: var(--fg-2); max-width: 46ch; margin-bottom: 24px; }

/* ---------- Projects ---------- */
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pc { position: relative; }
.pc::after { content: ''; position: absolute; right: 0; top: 0; width: 22px; height: 22px; background: var(--orange); clip-path: polygon(0 0, 100% 100%, 100% 0); transform: scale(0); transform-origin: top right; transition: transform 0.5s var(--ease); }
.pc:hover::after, .pc:focus-within::after { transform: scale(1); }
.pc-body { --c: 22px; position: relative; background: var(--card); padding: clamp(26px, 3vw, 40px); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); transition: background-color 0.4s; }
.pc:hover .pc-body { background: #fbfaf8; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--fg-3); margin-bottom: 26px; }
.pc-meta span + span { color: var(--fg-2); }
.pc-headrow { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.pc-title { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; font-weight: 580; letter-spacing: -0.028em; font-variation-settings: 'wdth' 104; }
.pc-metric { text-align: right; flex: none; max-width: 46%; }
.pc-mv { display: block; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--orange-ink); font-variation-settings: 'wdth' 112; white-space: nowrap; }
.pc-ml { display: block; margin-top: 6px; color: var(--fg-3); font-size: 10.5px; }
.pc-sum { margin-top: 18px; color: var(--fg-2); max-width: 58ch; }
.pc-facts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.pc-facts > div { padding: 14px 24px 0 0; margin-right: 24px; }
.pc-facts > div + div { padding-left: 0; }
.pc-facts dt { color: var(--fg-3); margin-bottom: 4px; }
.pc-facts dd { font-size: 15px; line-height: 1.4; font-weight: 500; }
.pc-facts .pc-role { flex: 1 1 220px; }
.pc-toggle { margin-top: 26px; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 0 2px; border-top: 1px solid var(--line); font-weight: 560; font-size: 15px; transition: color 0.25s; }
.pc-toggle:hover { color: var(--orange-ink); }
.pc-detail { padding-top: 18px; }
.pc-dl { color: var(--orange-ink); margin-bottom: 10px; }
.pc-detail > p:not(.mono) { color: var(--fg-2); margin-bottom: 20px; }

.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.collapse-in { overflow: hidden; min-height: 0; }
.collapse.is-open { grid-template-rows: 1fr; }
.collapse:not(.is-open) .collapse-in { visibility: hidden; transition: visibility 0s 0.6s; }

.pindex { margin-top: clamp(56px, 7vw, 96px); }
.pindex-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line-2); }
.pindex-title { font-size: clamp(22px, 2vw, 28px); font-weight: 560; letter-spacing: -0.02em; }
.pi-head, .pi-row { display: grid; grid-template-columns: 170px minmax(0, 1.3fr) minmax(0, 1fr) 170px 20px; gap: 20px; align-items: center; text-align: left; }
.pi-head { padding: 22px 0 12px; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.pi-row { width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); transition: background-color 0.25s, padding 0.4s var(--ease); position: relative; }
.pi-row::before { content: ''; position: absolute; left: -16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--orange); transform: scale(0); transition: transform 0.35s var(--ease); }
.pi-row:hover::before, .pi-row[aria-expanded='true']::before { transform: scale(1); }
.pi-period, .pi-vol { color: var(--fg-3); }
.pi-title { font-weight: 560; font-size: 17px; }
.pi-client { color: var(--fg-2); font-size: 15px; }
.pi-detail { padding: 6px 40px 26px calc(170px + 20px); color: var(--fg-2); max-width: calc(170px + 20px + 78ch); }
.pi-detail p + p { margin-top: 10px; }
.pi-role .mono { color: var(--fg-3); margin-right: 6px; }
.pi-role .sep { margin: 0 8px; color: var(--fg-3); }
.pi-item:last-child .collapse.is-open { border-bottom: 1px solid var(--line); }

/* ---------- Career timeline ---------- */
.sec-career { padding-top: 0; }
.sec-career .sec-head { padding-top: clamp(104px, 12vw, 176px); border-top: 1px solid var(--line); }
.tl { position: relative; --yw: 130px; }
.tl-legend { display: grid; grid-template-columns: 1fr var(--yw) 1fr; color: var(--fg-3); margin-bottom: 26px; }
.tl-legend .tl-k-desk { text-align: right; }
.tl-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px; }
.tl-k-desk::before { background: var(--fg); }
.tl-k-air::before { background: var(--orange); }
.tl-legend span:empty::before { display: none; }
.tl-spine { position: absolute; left: 50%; top: 48px; bottom: 0; width: 1px; background: var(--line-2); transform: translateX(-0.5px); }
.tl-fill { position: absolute; left: -0.5px; top: 0; width: 2px; height: 100%; background: var(--fg); transform-origin: top; transform: scaleY(var(--p, 0)); }
.tl-row { display: grid; grid-template-columns: 1fr var(--yw) 1fr; align-items: start; padding: 22px 0; }
.tl-year { display: flex; justify-content: center; position: relative; z-index: 1; padding-top: 2px; }
.tl-year span { background: var(--paper); padding: 6px 10px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 0.4s, background-color 0.4s, box-shadow 0.4s; }
.tl-row.is-passed .tl-year span { color: var(--paper); background: var(--fg); box-shadow: none; }
.tl-row.is-current .tl-year span { background: var(--orange); color: #141414; box-shadow: none; }
.tl-desk { text-align: right; }
.tl-item h3 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.tl-item p { margin-top: 6px; color: var(--fg-2); font-size: 15.5px; line-height: 1.5; max-width: 44ch; }
.tl-desk .tl-item p { margin-left: auto; }
.tl-air .tl-item h3 { color: var(--orange-ink); }
.tl-tag { display: none; }

.facts { margin-top: clamp(72px, 9vw, 128px); display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 48px; padding-top: 36px; border-top: 1px solid var(--line-2); }
.fact h3 { color: var(--fg-3); margin-bottom: 18px; }
.fact li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fact li:first-child { padding-top: 0; }
.fact li b { font-weight: 600; font-size: 16px; }
.fact li span { color: var(--fg-2); font-size: 15px; }
.fact .langs li { flex-direction: row; justify-content: space-between; align-items: baseline; }
.fact .tags li { padding: 7px 11px; font-size: 12px; }

/* ---------- Anywhere ---------- */
.anywhere { position: relative; padding-block: clamp(120px, 15vw, 220px); background: var(--ink); }
.aw-words { display: flex; flex-direction: column; font-size: clamp(64px, 12.2vw, 208px); line-height: 0.88; font-weight: 640; letter-spacing: -0.05em; font-variation-settings: 'wdth' 118; }
.aw-w { color: #2b2b2b; transition: color 0.8s var(--ease); }
.aw-w i { font-style: normal; transition: color 0.8s var(--ease); }
.aw-w.is-on { color: var(--fg); }
.aw-w.is-on i { color: var(--orange); }
.aw-w:nth-child(2) { padding-left: 0.6em; }
.aw-w:nth-child(3) { padding-left: 1.2em; }
.aw-foot { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: baseline; }
.aw-note { grid-column: 1 / span 4; color: var(--fg-3); }
.aw-text { grid-column: 6 / -1; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; color: var(--fg-2); max-width: 40ch; }

/* ---------- Aviation ---------- */
.aviation { background: var(--deep); }
.av-quote { margin: 0 0 clamp(80px, 10vw, 140px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.av-quote blockquote { grid-column: 4 / -2; font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.12; letter-spacing: -0.01em; color: var(--fg); text-indent: -0.42em; }
.av-quote blockquote p::before { content: '“'; color: var(--orange); }
.av-quote blockquote p::after { content: '”'; color: var(--orange); }
.av-quote figcaption { grid-column: 4 / -1; margin-top: 22px; color: var(--fg-3); }

.av-story { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.av-steps { counter-reset: s; padding-block: 8vh 24vh; }
.av-step { padding: 7vh 0; border-top: 1px solid var(--line); opacity: 0.32; transition: opacity 0.6s var(--ease); }
.av-step:first-child { border-top: 0; }
.av-step.is-active, .av-step.is-past { opacity: 1; }
.av-step.is-past { opacity: 0.55; }
.av-tag { display: flex; align-items: baseline; gap: 14px; font-size: clamp(20px, 1.7vw, 24px); font-weight: 580; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 14px; font-variation-settings: 'wdth' 104; }
.av-tag .mono { color: var(--fg-3); transition: color 0.4s; }
.av-step.is-active .av-tag .mono { color: var(--orange); }
.av-text { color: var(--fg-2); max-width: 50ch; }
.av-chart { position: sticky; top: calc(var(--hdr) + 3vh); height: calc(100svh - var(--hdr) - 6vh); display: flex; align-items: center; }
.av-chart-in { width: 100%; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); background: #121213; }
.chart-head { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--fg-3); }
.chart-readout { display: flex; gap: 14px; color: var(--fg); }
.chart-readout b { font-weight: 500; color: var(--orange); }
.chart { flex: 1; min-height: 0; width: 100%; height: 100%; padding: 10px; overflow: visible; }
.ch-grid line { stroke: rgba(255, 255, 255, 0.055); stroke-width: 1; }
.ch-gl { fill: var(--fg-3); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.05em; }
.ch-scale path { fill: none; stroke: var(--fg-3); stroke-width: 1; }
.ch-scale text, .ch-north text { fill: var(--fg-3); font-family: var(--f-mono); font-size: 9.5px; text-anchor: middle; }
.ch-north path { fill: var(--fg-3); }
.ch-route { fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io); }
.ch-route.is-on { stroke-dashoffset: 0; }
.ch-pt { opacity: 0; transition: opacity 0.6s var(--ease); }
.ch-pt .ch-dot { fill: var(--fg); transform: scale(0); transition: transform 0.6s var(--ease); }
.ch-pt.is-on { opacity: 1; }
.ch-pt.is-on .ch-dot { transform: none; }
.ch-pt.is-focus .ch-dot { fill: var(--orange); }
.ch-pt text { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; }
.ch-code { fill: var(--fg); font-weight: 500; }
.ch-name { fill: var(--fg-2); }
.ch-dim { fill: var(--fg-3); }
.ch-pt.is-minor .ch-dot { fill: var(--fg-2); }
.ch-pt.is-minor text { font-size: 10px; }
.ch-ring { fill: none; stroke: var(--orange); stroke-width: 1; transform-origin: center; animation: chRing 2.6s var(--ease) infinite; }
@keyframes chRing { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.ch-off { opacity: 0; transition: opacity 0.6s; }
.ch-off.is-on { opacity: 1; }
.ch-off path { fill: none; stroke: var(--orange); stroke-width: 1.6; }
.ch-off text { font-family: var(--f-mono); font-size: 11px; fill: var(--fg); letter-spacing: 0.04em; }
.ch-off .ch-name { fill: var(--fg-2); }
.ch-off .ch-dim { fill: var(--fg-3); }

.av-aircraft { margin-top: clamp(80px, 10vw, 150px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.av-ai { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ai { width: min(100%, 360px); aspect-ratio: 1; }
.ai-bezel { fill: #1a1a1b; stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.ai-sky { fill: #2e2e30; }
.ai-gnd { fill: #161617; }
.ai-hz { stroke: var(--orange); stroke-width: 1.5; }
.ai-ladder line { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.2; }
.ai-ladder text { fill: rgba(255, 255, 255, 0.55); font-family: var(--f-mono); font-size: 8px; }
.ai-rim { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.ai-ticks line { stroke: var(--fg-2); stroke-width: 1.5; }
.ai-zero { fill: var(--fg); }
.ai-ptr { fill: var(--orange); }
.ai-plane path { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: square; }
.ai-plane circle { fill: var(--orange); }
.av-ai-hint { color: var(--fg-3); text-align: center; }
.av-ac .h3 { margin-bottom: 18px; }
.av-ac-text { color: var(--fg-2); max-width: 56ch; }
.specs { margin-top: 32px; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.specs dt { color: var(--fg-3); }
.specs dd { font-weight: 500; }

.av-stats { margin-top: clamp(72px, 9vw, 128px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.av-stats .stat:first-child { padding-left: 0; }

.eng { margin-top: clamp(80px, 10vw, 140px); }
.eng-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.eng-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 8px 0 20px; }
.eng-photos figure { margin: 0; }
.eng-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.eng-photos figcaption { margin-top: 8px; color: var(--fg-3); font-size: 10.5px; }
@media (max-width: 700px) {
  .eng-photos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .eng-photos figure:first-child { grid-column: 1 / -1; }
}
.eng-card { --c: 18px; position: relative; padding: clamp(26px, 2.6vw, 36px); background: #18181a; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); display: flex; flex-direction: column; }
.eng-title { font-size: 24px; font-weight: 580; letter-spacing: -0.02em; margin-bottom: 14px; font-variation-settings: 'wdth' 104; }
.eng-card > p { color: var(--fg-2); font-size: 16px; }
.eng-quote { margin-top: auto; padding-top: 22px; }
.eng-quote p { font-family: var(--f-serif); font-style: italic; font-size: 20px; line-height: 1.3; color: var(--fg); padding-left: 16px; border-left: 2px solid var(--orange); }
.stars { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.stars > span:first-child { color: var(--orange); letter-spacing: 3px; font-size: 15px; }
.stars .mono { color: var(--fg-3); }
.review + .review { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.review p { font-family: var(--f-serif); font-style: italic; font-size: 19px; line-height: 1.35; color: var(--fg); }
.review footer { margin-top: 10px; color: var(--fg-3); font-size: 11px; text-transform: none; letter-spacing: 0.02em; }

.bridge { margin-top: clamp(80px, 10vw, 140px); padding-top: 36px; border-top: 1px solid var(--line); }
.bridge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.bridge-grid .mono { color: var(--orange); }
.bridge-grid h3 { margin: 14px 0 10px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; font-weight: 580; letter-spacing: -0.03em; font-variation-settings: 'wdth' 108; }
.bridge-grid p { color: var(--fg-2); max-width: 38ch; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(96px, 10vw, 150px); }
.contact .sec-label { padding-top: 0.55em; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.ct-big { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(22px, 2.3vw, 34px); line-height: 1.15; font-weight: 520; letter-spacing: -0.025em; font-variation-settings: 'wdth' 104; transition: color 0.25s; overflow-wrap: anywhere; }
.ct-big:first-of-type { border-top: 1px solid var(--line); }
.ct-big .mono, .ct-addr .mono { display: block; color: var(--fg-3); margin-bottom: 6px; letter-spacing: 0.08em; }
.ct-big:hover { color: var(--orange); }
.ct-addr { font-style: normal; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.ct-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.ct-qr { margin-top: 36px; display: flex; gap: 20px; align-items: center; }
.qr-box { width: 112px; aspect-ratio: 1; padding: 10px; background: var(--card); flex: none; }
.ct-qr p { display: flex; flex-direction: column; gap: 4px; max-width: 32ch; color: var(--fg-2); font-size: 14.5px; line-height: 1.45; }
.ct-qr b { color: var(--fg); font-weight: 580; font-size: 16px; }

.ct-form { --c: 22px; background: var(--ink-2); padding: clamp(28px, 3.4vw, 48px); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.ct-form-title { font-size: 24px; font-weight: 580; letter-spacing: -0.02em; margin-bottom: 18px; }
.hp { position: absolute; left: -9999px; }
.field { position: relative; margin-top: 10px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 26px 0 10px; outline: none; border-radius: 0; resize: vertical; transition: border-color 0.3s; }
.field textarea { min-height: 120px; }
.field label { position: absolute; left: 0; top: 24px; color: var(--fg-3); pointer-events: none; transform-origin: left top; transition: transform 0.35s var(--ease), color 0.3s; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--orange); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-18px) scale(0.78); color: var(--fg-2); }
.ct-privacy { margin-top: 22px; color: var(--fg-3); font-size: 13.5px; line-height: 1.5; }
.ct-privacy a, .ct-status a { text-decoration: underline; text-underline-offset: 3px; }
.btn-send { margin-top: 26px; }
.btn-send:hover .i { transform: translateX(4px); }
.ct-status { margin-top: 18px; min-height: 1.5em; font-size: 15px; color: var(--fg-2); }
.ct-status.is-ok { color: var(--fg); }
.ct-status.is-ok::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 10px; vertical-align: 1px; }

/* ---------- Footer ---------- */
.ftr { background: var(--deep); padding: 72px 0 32px; border-top: 1px solid var(--line); }
.ftr-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.brand-lg .mark { width: 52px; height: 52px; }
.brand-lg .wordmark b { font-size: 26px; }
.brand-lg .wordmark small { font-size: 16px; }
.ftr-nav, .ftr-contact { display: flex; flex-direction: column; gap: 8px; color: var(--fg-2); }
.ftr-nav a, .ftr-contact a { width: fit-content; transition: color 0.25s; }
.ftr-nav a:hover, .ftr-contact a:hover { color: var(--orange); }
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 14px; }
.ftr-bot a:hover { color: var(--fg); }
.to-top { display: inline-flex; align-items: center; gap: 8px; }
.to-top .i { width: 15px; height: 15px; }

/* ---------- Legal page ---------- */
.legal { padding: calc(var(--hdr) + 96px) 0 120px; }
.legal-wrap { max-width: 980px; }
.legal-sub { color: var(--fg-3); margin: 18px 0 48px; }
.legal-dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-dl dt { color: var(--fg-3); }
.legal .h3 { margin: 96px 0 24px; }
.legal-text { color: var(--fg-2); max-width: 70ch; }
.legal-text h3 { color: var(--fg); font-size: 18px; margin: 32px 0 8px; }
.legal-text a, .legal-dl a { text-decoration: underline; text-underline-offset: 3px; }
.todo { background: rgba(244, 124, 32, 0.18); color: var(--orange-hi); padding: 1px 6px; }


/* ---------- Client logos (running strip) ---------- */
.clients-band { position: relative; padding: 30px 0 34px; overflow: hidden; border-bottom: 1px solid var(--line); }
.clients-head p { color: var(--fg-3); margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-item { display: flex; align-items: center; gap: 14px; height: 84px; padding: 0 clamp(34px, 4.4vw, 68px); }
.logo-item img { width: auto; max-width: 300px; transition: transform 0.5s var(--ease); }
.logo-item span { font-size: 16px; line-height: 1.15; font-weight: 620; letter-spacing: -0.01em; color: #151515; }
.logo-item:hover img { transform: scale(1.06); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Project photos ---------- */
.pc-media { --pad: clamp(26px, 3vw, 40px); position: relative; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 26px; aspect-ratio: 16 / 7.2; overflow: hidden; background: #d8d5ce; }
.pc-media > img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.9) contrast(1.05); transform: scale(1.02); transition: filter 0.8s var(--ease), transform 1.4s var(--ease); }
.pc:hover .pc-media > img, .pc:focus-within .pc-media > img { filter: grayscale(0) contrast(1); transform: scale(1.07); }
.pc-media::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.45)); pointer-events: none; }
.pc-logo { --c: 8px; position: absolute; left: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; height: 46px; padding: 0 14px; background: #fff; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.pc-logo img { height: 24px; width: auto; max-width: 150px; }
.pc-media figcaption { position: absolute; right: 16px; bottom: 16px; z-index: 2; max-width: 45%; text-align: right; color: rgba(255, 255, 255, 0.9); font-size: 10px; }

/* hover preview in the full project list */
.pi-preview { --c: 14px; position: fixed; left: 0; top: 0; z-index: 70; width: 300px; aspect-ratio: 16 / 10; margin: 0; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0); transition: opacity 0.3s; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.pi-preview img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 0.6s var(--ease); }
.pi-preview.is-on { opacity: 1; }
.pi-preview.is-on img { transform: scale(1); }

/* ---------- Bridge: on the ground · in the air ---------- */
.bridge-sec { background: var(--ink); }
.bridge-sec .sec-label .bar { width: 28px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; }
.split-img { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.split-img.is-in img { transform: scale(1); }
.split-img:first-child img { filter: grayscale(1) contrast(1.12) brightness(0.92); }
.split-img::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(10, 10, 10, 0.7)); }
.split-img figcaption { position: absolute; left: clamp(18px, 2.4vw, 32px); bottom: clamp(16px, 2.2vw, 28px); z-index: 2; display: flex; flex-direction: column; gap: 6px; color: #fff; }
.split-img figcaption b { font-size: clamp(28px, 3.2vw, 48px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; font-variation-settings: 'wdth' 110; }
.split-img figcaption .mono { color: rgba(255, 255, 255, 0.75); font-size: 10.5px; }
.split-img:last-child { --c: 22px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.split-axis { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.split-axis::before { content: ''; position: absolute; left: -1px; right: -1px; top: 50%; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform 1s var(--ease) 0.5s; }
.split-axis i { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px var(--ink); transform: scale(0); transition: transform 0.6s var(--ease) 1.2s; }
.split:has(.is-in) .split-axis::before { transform: scaleX(1); }
.split:has(.is-in) .split-axis i { transform: scale(1); }
.rules { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: r; }
.rule { --c: 18px; display: flex; flex-direction: column; background: var(--ink-2); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.rule-img { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.rule-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 1.4s var(--ease), filter 0.6s; }
.rule:hover .rule-img img { transform: scale(1.06); filter: none; }
.rule-text { padding: 26px clamp(22px, 2.4vw, 32px) 32px; }
.rule-pair { display: flex; gap: 12px; color: var(--orange); margin-bottom: 14px; }
.rule-pair span { color: var(--fg-3); }
.rule h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1; font-weight: 580; letter-spacing: -0.03em; font-variation-settings: 'wdth' 108; margin-bottom: 12px; }
.rule-text > p:last-child { color: var(--fg-2); }

/* ---------- Anywhere: photo + copy ---------- */
.aw-foot { align-items: end; }
.aw-photo { --c: 18px; grid-column: 1 / span 5; margin: 0; }
.aw-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.aw-photo figcaption { margin-top: 12px; color: var(--fg-3); font-size: 10.5px; }
.aw-copy { grid-column: 7 / -1; }
.aw-copy .aw-text, .aw-copy .aw-note { grid-column: auto; }
.aw-copy .aw-note { margin-top: 22px; }

/* ---------- Aviation story photos ---------- */
.av-photos { margin-top: 24px; display: grid; gap: 12px; max-width: 560px; }
.av-photos.is-pair { grid-template-columns: 1fr 1fr; }
.av-photos figure { margin: 0; }
.av-photos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.av-photos.is-pair img { aspect-ratio: 4 / 3; }
.av-photos figcaption { margin-top: 8px; color: var(--fg-3); font-size: 10.5px; }

.credits li { padding: 3px 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .hdr-cta { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { align-items: flex-start; }
  .hero-maze { width: 100vw; right: -30vw; opacity: 0.7; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 22px; }
  .sec-label { grid-column: 1 / -1; padding-top: 0; margin-bottom: 26px; }
  .sec-titles { grid-column: 1 / -1; }
  .pc-grid { grid-template-columns: 1fr; }
  .pi-head, .pi-row { grid-template-columns: 140px minmax(0, 1fr) minmax(0, 0.8fr) 20px; }
  .pi-vol, .pi-head span:nth-child(4) { display: none; }
  .pi-detail { padding-left: calc(140px + 20px); }
  .av-quote blockquote, .av-quote figcaption { grid-column: 1 / -1; }
  .av-aircraft { grid-template-columns: 1fr; }
  .eng-grid { grid-template-columns: 1fr 1fr; }
  .eng-reviews { grid-column: 1 / -1; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-top .brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .av-story { grid-template-columns: 1fr; }
  .av-chart { position: relative; top: 0; height: auto; order: -1; }
  .av-chart-in { height: auto; }
  .chart { height: auto; }
  .av-steps { padding-block: 24px 0; }
  .av-step { padding: 28px 0; opacity: 1; }
  .av-step.is-past { opacity: 1; }
  .ct-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 40px; }
  .bridge-grid { grid-template-columns: 1fr; }
  .aw-foot { grid-template-columns: 1fr; }
  .aw-note, .aw-text { grid-column: 1 / -1; }

  /* timeline → single column */
  .tl { --yw: 0px; padding-left: 28px; }
  .tl-legend { display: none; }
  .tl-spine { left: 4px; top: 0; }
  .tl-row { grid-template-columns: 1fr; padding: 0; }
  .tl-year { order: -1; justify-content: flex-start; margin: 26px 0 10px -28px; padding-left: 0; }
  .tl-desk, .tl-air { text-align: left; }
  .tl-cell:empty { display: none; }
  .tl-item { padding: 6px 0 10px; }
  .tl-desk .tl-item p { margin-left: 0; }
  .tl-tag { display: inline-block; color: var(--fg-3); margin-bottom: 2px; }
  .tl-air .tl-tag { color: var(--orange-ink); }
}

@media (max-width: 900px) {
  /* chart: bigger codes, names live in the step texts */
  .ch-pt text { font-size: 21px; }
  .ch-pt .ch-name, .ch-pt.is-minor text { display: none; }
  .ch-gl { font-size: 15px; }
  .ch-off text { font-size: 18px; }
  .ch-off text + text { transform: translateY(8px); }
  .ch-off .ch-dim { display: none; }
  .ch-scale text, .ch-north text { font-size: 15px; }
  .ch-pt .ch-dot { r: 6px; }
  .ch-route { stroke-width: 2.6; }
}

@media (max-width: 640px) {
  :root { --hdr: 64px; }
  body { font-size: 16px; }
  .wordmark small { display: none; }
  .wordmark b { font-size: 18px; }
  .mark { width: 30px; height: 30px; }
  .lang a { padding: 0 8px; }
  .hdr-right { gap: 8px; }
  .hero { padding-top: calc(var(--hdr) + 40px); }
  .hero-name { font-size: clamp(54px, 17vw, 84px); }
  .hero-actions { display: none; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 14px; }
  .stat:nth-child(3) { padding-left: 0; }
  .odo { font-size: clamp(32px, 10vw, 44px); }
  .stat-label { font-size: 13.5px; }
  .clients { gap: 12px; }
  .clients-list { font-size: 14px; }
  .xp { grid-template-columns: 1fr; }
  .xp-cell, .xp-cell:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
  .pc-headrow { flex-direction: column; gap: 14px; }
  .pc-metric { text-align: left; max-width: none; }
  .pi-head { display: none; }
  .pi-row { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; }
  .pi-period { grid-column: 1; grid-row: 1; }
  .pi-title { grid-column: 1; grid-row: 2; }
  .pi-client { grid-column: 1; grid-row: 3; font-size: 14px; }
  .pi-row .pm { grid-column: 2; grid-row: 1 / span 3; }
  .pi-detail { padding: 0 0 22px; }
  .aw-w:nth-child(2) { padding-left: 0.3em; }
  .aw-w:nth-child(3) { padding-left: 0.6em; }
  .chart-head { flex-direction: column; gap: 6px; }
  .specs > div { grid-template-columns: 1fr; gap: 2px; }
  .av-stats { grid-template-columns: 1fr; }
  .av-stats .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; }
  .eng-grid { grid-template-columns: 1fr; }
  .ct-qr { flex-direction: row; }
  .qr-box { width: 96px; }
  .ftr-top { grid-template-columns: 1fr; }
  .legal-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .bcard-back { grid-template-columns: 1fr 1.2fr; gap: 14px; }
  .bc-qrtitle { font-size: 16px; }
  .bc-qrtext p:not(.bc-qrtitle) { font-size: 12px; }
  .bc-qrtext a { margin-top: 6px; }
  .bc-qr { width: 100%; }
}

@media (max-width: 400px) {
  .bc-lines { font-size: 10px; }
  .bc-role { font-size: 12px; }
  .bc-co { font-size: 11.5px; }
}
@media (max-width: 360px) {
  .hdr-in { gap: 10px; }
  .brand { gap: 8px; }
  .mark { width: 26px; height: 26px; }
  .wordmark b { font-size: 16px; }
  .hdr-right { gap: 4px; }
  .lang { height: 32px; }
  .lang a { padding: 0 6px; }
  .burger { width: 40px; }
  .hero-name { font-size: 48px; }
  .aw-words { font-size: 17vw; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  .js [data-r], .js [data-r='clip'] { opacity: 1; transform: none; clip-path: none; translate: none; }
}


@media (max-width: 1180px) {
  .hero-media { justify-self: start; max-width: 680px; }
  .rules { grid-template-columns: 1fr 1fr; }
  .rules .rule:last-child { grid-column: 1 / -1; }
  .pi-preview { display: none; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-axis { height: 56px; }
  .split-axis::before { left: 50%; right: auto; top: -1px; bottom: -1px; width: 2px; height: auto; transform: scaleY(0); }
  .split:has(.is-in) .split-axis::before { transform: scaleY(1); }
  .aw-photo, .aw-copy { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero-media { aspect-ratio: 1 / 0.95; margin-top: 8px; }
  .hm-air { width: 92%; height: 78%; }
  .hm-ground { width: 36%; }
  .hm-air figcaption { left: 12px; right: auto; bottom: auto; top: 12px; }
  .rules { grid-template-columns: 1fr; }
  .logo-item { height: 64px; padding: 0 26px; }
  .logo-item img { max-height: 40px; }
  .pc-media figcaption { display: none; }
  .av-photos.is-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask: none; mask: none; }
  .marquee-track { animation: none !important; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
  .marquee-track [aria-hidden='true'] { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .hdr, .route, .hero-maze, .ct-form, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}

.nf-action { margin-top: 32px; }

/* ==========================================================================
   Day theme (light variant): <html class="day">
   Same layout, white base. Sections alternate white / warm paper.
   ========================================================================== */
html.day {
  --ink: #ffffff;
  --ink-2: #f5f3ef;
  --ink-3: #ebe8e2;
  --deep: #f7f5f1;
  --paper: #f2efea;
  --card: #ffffff;
  --fg: #151515;
  --fg-2: #55534e;
  --fg-3: #8b8882;
  --line: rgba(0, 0, 0, 0.1);
  --line-2: rgba(0, 0, 0, 0.18);
  --chip: rgba(0, 0, 0, 0.05);
  --grey-l: #9a9a9a;
}
html.day body { background: var(--ink); color: var(--fg); }
html.day body::after { opacity: 0.03; }

/* header + menu */
html.day .hdr::before { background: rgba(255, 255, 255, 0.86); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); }
html.day .lang a[aria-current] { color: #ffffff; }
html.day .btn-ghost:hover { background: rgba(0, 0, 0, 0.08); }

/* orange as text needs the darker tone on white (contrast) */
html.day .xp-num,
html.day .rule-pair,
html.day .chart-readout b,
html.day .sec-label.is-reached .idx,
html.day .av-step.is-active .av-tag .mono,
html.day .menu-in > a .mono,
html.day .ct-big:hover,
html.day .ftr-nav a:hover,
html.day .ftr-contact a:hover,
html.day .todo { color: var(--orange-ink); }
html.day .stars > span:first-child { color: var(--orange-ink); }
html.day .todo { background: rgba(244, 124, 32, 0.14); }

/* hero */
html.day .mz-walls { stroke: rgba(0, 0, 0, 0.07); }
html.day .mz-path { stroke-opacity: 0.55; }
html.day .hm-ground { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06); }

/* sections that were dark */
html.day .anywhere { background: var(--paper); }
html.day .aw-w { color: #dcd8d0; }
html.day .aw-w.is-on { color: var(--fg); }
html.day .bridge-sec { background: var(--ink); }
html.day .split-axis i { box-shadow: 0 0 0 6px var(--ink); }
html.day .aviation { background: var(--paper); }
html.day .av-chart-in { background: #ffffff; border-color: var(--line-2); }
html.day .ch-grid line { stroke: rgba(0, 0, 0, 0.07); }
html.day .ch-north path { fill: var(--fg-3); }
html.day .eng-card, html.day .rule { background: #ffffff; box-shadow: 0 0 0 1px var(--line); }
html.day .eng-card { clip-path: none; }
html.day .ct-form { background: var(--paper); }
html.day .qr-box { box-shadow: 0 0 0 1px var(--line-2); }
html.day .ftr { background: var(--paper); }
html.day .pc-body { box-shadow: 0 0 0 1px var(--line); }
html.day .projects-band, html.day #projects, html.day #career { background: var(--paper); }
html.day .clients-band { background: #ffffff; border-top: 1px solid var(--line); }

/* the attitude indicator stays a real (dark) instrument */
html.day .ai-bezel { fill: #1a1a1b; }
html.day .av-ai-hint { color: var(--fg-3); }

/* ---------- Meeting 9 Nov 2026 ---------- */
/* hero: portrait only, the aviation photo moved further down */
.hero-media.is-portrait { aspect-ratio: auto; max-width: 270px; justify-self: center; padding: 24px 0 8px; }
.hero-media.is-portrait .hm-ground { position: relative; left: auto; bottom: auto; width: 100%; }
@media (max-width: 1180px) { .hero-media.is-portrait { justify-self: start; max-width: 230px; } }
@media (max-width: 640px) { .hero-media.is-portrait { max-width: 190px; aspect-ratio: auto; } }

/* profile (education, languages, toolbox) as its own section */
.facts-top { margin-top: 0; padding-top: 0; border-top: 0; }
.sec-skills { padding-bottom: clamp(88px, 10vw, 140px); }

/* contact form: topic + call back */
.field-select select { width: 100%; font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 26px 28px 10px 0; outline: none; border-radius: 0; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 34px, calc(100% - 7px) 34px; background-size: 5px 5px; background-repeat: no-repeat; }
.field-select select:focus { border-bottom-color: var(--orange); }
.field-select label { transform: translateY(-18px) scale(0.78); color: var(--fg-2); }
.field-select option { color: #151515; }
.check { display: flex; align-items: center; gap: 12px; margin-top: 22px; cursor: pointer; color: var(--fg); font-size: 15.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); margin: 0; flex: none; }
.js .field-phone { display: none; }
.js .field-phone.is-on { display: block; }

/* day theme: section rhythm with the new order */
html.day .anywhere { background: var(--ink); }

.hero-tag { max-width: 34ch; }

/* ---------- Destinations map (aviation) ---------- */
.av-map { margin-top: clamp(80px, 10vw, 150px); }
.dm { --land: #1c1c1e; --land-line: #2e2e31; --sea: #121213; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.dm-ctl .h3 { margin: 6px 0 16px; }
.av-map-lead { color: var(--fg-2); max-width: 46ch; }
.dm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.dm-tab { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); background: transparent; border: 1px solid var(--line-2); padding: 9px 12px 8px; cursor: pointer; display: inline-flex; align-items: baseline; gap: 8px; transition: color 0.25s, background-color 0.25s, border-color 0.25s; }
.dm-tab:hover { color: var(--fg); border-color: var(--fg-3); }
.dm-tab[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #141414; }
.dm-n { font-size: 10.5px; opacity: 0.7; }
.dm-count { margin-top: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--fg-3); }
.dm-count b { color: var(--orange); font-weight: 500; font-size: 15px; margin-right: 4px; }
.dm-list { columns: 2; column-gap: 24px; margin-top: 14px; font-size: 14px; line-height: 1.35; }
.dm-list[hidden] { display: none; }
.dm-list li { break-inside: avoid; padding: 4px 0; color: var(--fg-2); display: flex; gap: 10px; cursor: default; transition: color 0.2s; }
.dm-list li b { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--fg-3); min-width: 4.4ch; padding-top: 1px; transition: color 0.2s; }
.dm-list li:hover, .dm-list li.is-hot { color: var(--fg); }
.dm-list li:hover b, .dm-list li.is-hot b { color: var(--orange); }
.dm-map { position: relative; border: 1px solid var(--line); background: var(--sea); }
.dm-map svg { display: block; width: 100%; height: auto; }
.dm-land { fill: var(--land); stroke: var(--land-line); stroke-width: 0.8; stroke-linejoin: round; }
.dm-route { fill: none; stroke: var(--orange); stroke-width: 1.3; stroke-linecap: round; opacity: 0; transition: opacity 0.4s; }
.dm-route.is-on { opacity: 0.6; }
.dm-route.is-hot { opacity: 1; stroke-width: 2.2; }
.dm-pt circle { fill: var(--sea); stroke: var(--orange); stroke-width: 1.6; transition: fill 0.25s; }
.dm-pt text, .dm-home text { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em; fill: var(--fg-2); }
.dm-pt { opacity: 0.22; transition: opacity 0.4s; }
.dm-pt text { opacity: 0; transition: opacity 0.3s; }
.dm-pt.is-on { opacity: 1; }
.dm-pt.is-on text { opacity: 1; }
.dm-pt.is-hot circle { fill: var(--orange); }
.dm-pt.is-hot text { fill: var(--fg); font-weight: 600; }
.dm-home circle { fill: var(--orange); }
.dm-home .dm-home-ring { fill: none; stroke: var(--orange); stroke-width: 1; opacity: 0.55; }
.dm-home text { fill: var(--fg); font-weight: 600; }
.js .dm:not(.is-drawn) .dm-route { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .dm.is-drawn .dm-route { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--ease), opacity 0.4s; }
.js .dm.is-drawn .dm-route:nth-child(4n+1) { transition-delay: 0.08s; }
.js .dm.is-drawn .dm-route:nth-child(4n+2) { transition-delay: 0.2s; }
.js .dm.is-drawn .dm-route:nth-child(4n+3) { transition-delay: 0.32s; }
.no-js .dm-tabs { display: none; }
.av-year { margin-top: clamp(56px, 6vw, 88px); }
.av-stats.av-stats-year { margin-top: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
html.day .dm { --land: #e9e7e1; --land-line: #d3d0c8; --sea: #ffffff; }
html.day .dm-map { border-color: var(--line-2); }
@media (prefers-reduced-motion: reduce) {
  .js .dm .dm-route { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
}
@media (max-width: 1000px) {
  .dm { grid-template-columns: 1fr; }
  .av-stats.av-stats-year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .av-stats.av-stats-year .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .av-stats.av-stats-year .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
}
@media (max-width: 560px) {
  .dm-tab { padding: 8px 10px 7px; }
  .dm-pt text, .dm-home text { font-size: 13px; }
}
.dm-pt text, .dm-home text { paint-order: stroke; stroke: var(--sea); stroke-width: 3px; stroke-linejoin: round; }
.av-stats-year .odo { font-size: clamp(30px, 3vw, 46px); }
.dm-list li { padding: 3px 0; }
@media (max-width: 1000px) {
  .dm-ctl { display: contents; }
  .dm { row-gap: 0; }
  .dm-map { order: 1; margin-top: 28px; }
  .dm-count, .dm-list { order: 2; }
}
