/* baranuygun.digital */
:root {
  --bg: #000;
  --fg: #f2f2f0;
  --muted: #8b8b88;
  --dim: #5c5c5a;
  --line: #222;

  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --radius: clamp(16px, 1.6vw, 24px);
  --card-pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);

  /* fluid type scale, 360px to 1600px */
  --fs-body: clamp(15px, 0.88rem + 0.15vw, 17px);
  --fs-small: clamp(12px, 0.74rem + 0.08vw, 13px);
  --fs-lead: clamp(17px, 0.95rem + 0.4vw, 22px);
  --fs-h3: clamp(26px, .9rem + 2vw, 46px);
  --fs-h2: clamp(40px, 1.4rem + 3vw, 72px);
  --space-section: clamp(80px, 9vw, 140px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--fs-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { overflow-x: clip; }
body { overflow-x: clip; }
.case > *, .atlas-info > *, .hero-grid > *, .about-grid > * { min-width: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
section[id], article[id] { scroll-margin-top: 88px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed !important; z-index: 100; top: 12px; left: 12px; width: auto; height: auto; margin: 0; clip: auto;
  padding: 10px 16px; background: var(--fg); color: var(--bg); border-radius: 8px; font-weight: 600;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* condensed display style for the big headings */
.hero-name, .section-head h2, .case h3, .i-name {
  font-family: var(--font);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: .86;
  margin: 0;
}
/* keep brand names from being uppercased the Turkish way (İ) */
:lang(tr) .case h3, :lang(tr) .i-name { text-transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-block: calc(env(safe-area-inset-top, 0px) + 16px) 16px;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  font-size: var(--fs-small); font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
}
.brand { font-weight: 700; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav-links a { color: var(--muted); transition: color .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted);
  transition: background .25s, color .25s;
}
.lang-btn svg { width: 20px; height: 14px; border-radius: 2px; opacity: .5; transition: opacity .25s; }
.lang-btn:hover { color: var(--fg); }
.lang-btn:hover svg { opacity: 1; }
.lang-btn[aria-pressed="true"] { background: #1c1c1c; color: var(--fg); }
.lang-btn[aria-pressed="true"] svg { opacity: 1; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(116px, 17vh, 190px); }
.hero-name { font-size: clamp(52px, 1.5rem + 7vw, 136px); line-height: .85; white-space: nowrap; }
.hero-name .line { display: block; overflow: hidden; padding-top: .04em; }
.hero-name .line > span { display: inline-block; transition: transform 1.1s var(--ease); }
.js:not(.loaded) .hero-name .line > span { transform: translateY(102%); }
.hero-sub {
  margin: clamp(10px, 1.2vw, 18px) 0 0; color: var(--muted);
  font-size: clamp(18px, 1rem + .9vw, 30px); font-weight: 500; letter-spacing: -0.01em;
}

.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(36px, 4.4vw, 68px); padding-top: 22px; border-top: 1px solid var(--line);
}
.hero-me { grid-column: 1 / span 3; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 64px); }
.portrait {
  width: clamp(150px, 22vw, 330px); aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(255,255,255,.12);
}
.hero-role { margin: 0; color: var(--muted); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .04em; line-height: 1.7; }
.hero-role b { color: var(--fg); font-weight: 600; }
.hero-text { grid-column: 4 / span 6; }
.hero-lead { margin: 0; font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -0.01em; }
.hero-open { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.hero-open::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; }
.hero-links { grid-column: 11 / span 2; list-style: none; margin: 0; padding: 0; justify-self: end; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.hero-links li + li { margin-top: 6px; }
.hero-links a { display: inline-flex; gap: 8px; border-bottom: 1px solid transparent; transition: border-color .25s; }
.hero-links a:hover { border-color: var(--fg); }

/* ---------- project index ---------- */
.index { list-style: none; padding: 0; margin: clamp(56px, 7vw, 104px) 0 0; border-top: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1.4fr) 130px 24px; align-items: center; gap: 20px;
  padding: clamp(14px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--line);
  transition: padding .45s var(--ease), background .3s;
}
.index a:hover { padding-inline: 14px; background: #0b0b0b; }
.i-num { font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.i-name { font-size: clamp(24px, 1rem + 1.6vw, 40px); line-height: 1; }
.i-desc { color: var(--muted); }
.i-status { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.i-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-live::before { background: #3ecf8e; }
.s-review::before { background: #f5a524; }
.s-private::before { background: #6b6b6b; }
.i-arrow { justify-self: end; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.index a:hover .i-arrow { color: var(--fg); transform: translate(2px, 2px); }

/* ---------- section heads ---------- */
.section-head { margin: 0 0 clamp(32px, 4.5vw, 64px); }
.section-head h2 { font-size: var(--fs-h2); }

.work { padding-top: var(--space-section); }
.work .section-head { margin-bottom: clamp(24px, 3vw, 44px); }

/* ---------- case cards ---------- */
.work-rest { display: grid; gap: clamp(16px, 2vw, 28px); padding-top: clamp(16px, 2vw, 28px); }
.case {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 72px); align-items: center;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  padding: var(--card-pad);
  border: 1px solid var(--line);
}
.case-info { position: relative; z-index: 2; max-width: 600px; }
.case-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: clamp(16px, 1.8vw, 24px);
  font-size: var(--fs-small); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; opacity: .65;
}
.case h3 { font-size: var(--fs-h3); line-height: .95; }
.case .case-sub { margin: 12px 0 18px; font-size: var(--fs-lead); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; opacity: .92; }
.case p { margin: 0 0 18px; line-height: 1.6; opacity: .78; }
.case-label { margin: 26px 0 12px; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .55; }
.bullets { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 20px; line-height: 1.5; opacity: .9; }
.bullets li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: currentColor; }
.chips { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-small); font-weight: 500; opacity: .6; }
.chips li + li::before { content: '·'; margin: 0 9px; }
.link { font-weight: 600; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link:hover { opacity: .7; }

.case-media { position: relative; z-index: 1; width: 100%; }

/* CampusFits */
.case-campus { background: #0b0a0d; }
.case-campus::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 0% 100%, rgba(255, 106, 0, .22), transparent 70%),
    radial-gradient(45% 55% at 100% 0%, rgba(255, 30, 120, .16), transparent 70%);
}
.case .cf-logo {
  display: inline-flex; align-items: baseline; white-space: nowrap; text-transform: none;
  font-family: 'Unbounded', 'Arial Black', system-ui, sans-serif; font-weight: 800; font-stretch: 100%;
  font-size: calc(var(--fs-h3) * .95); letter-spacing: -0.03em; line-height: 1; color: #fff;
}
.cf-logo .bld { width: .62em; height: .74em; margin: 0 .06em; flex: none; transform: translateY(.02em); }
.cf-phone { position: relative; display: grid; place-items: center; padding-block: clamp(8px, 2vw, 24px); }
.cf-phone::before {
  content: ''; position: absolute; inset: 6% 4%;
  background: radial-gradient(closest-side, rgba(255, 15, 123, .32), rgba(255, 106, 0, .14), transparent);
  filter: blur(34px);
}
.cf-device {
  position: relative; margin: 0; width: min(100%, clamp(220px, 22vw, 320px)); aspect-ratio: 640 / 1391;
  border-radius: 14% / 6.5%; padding: 2.2%; background: #000; transform: rotate(-4deg);
  box-shadow: 0 40px 90px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1);
  transition: transform .9s var(--ease);
}
.cf-device img { width: 100%; height: 100%; object-fit: cover; border-radius: 12.5% / 5.8%; }
.case-campus:hover .cf-device { transform: rotate(-1deg) translateY(-6px); }

/* store badges: not released yet, so they are labels, not links */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 12px;
  border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.22); color: #fff;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store > span { display: flex; flex-direction: column; line-height: 1.05; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.store small { font-size: 10px; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.7); }

/* Dijital Mankenim (its own brand: cream, burgundy, serif title) */
.case-dm { background: #efe9de; color: #17120f; border-color: #efe9de; }
.case-dm :focus-visible { outline-color: #17120f; }
.case-dm h3 {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-stretch: 100%;
  text-transform: none; letter-spacing: -0.02em; line-height: .95; font-size: calc(var(--fs-h3) * 1.15);
}
.case-dm .case-sub { color: #7a1f2b; }
.case-dm .chips { opacity: .75; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1vw, 14px); }
.g { margin: 0; overflow: hidden; border-radius: clamp(10px, 1vw, 16px); aspect-ratio: 4 / 5; background: #ddd3c3; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g:hover img { transform: scale(1.05); }
.ai-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #17120f; color: #efe9de; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
}

/* Kasam Cepte (its own brand: black and cream) */
.case-kasam { background: #0a0a0a; color: #f3ead8; }
.case-kasam::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 70% at 78% 50%, rgba(232, 213, 174, .12), transparent 70%); }
.phones { aspect-ratio: 1 / 0.92; }
.phone {
  position: absolute; top: 50%; left: 50%; margin: 0; width: 38%;
  border-radius: 12% / 5.6%; padding: 1.4%; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 70px -20px rgba(0,0,0,.9);
  transition: transform .9s var(--ease), filter .6s;
}
.phone img { border-radius: 10.5% / 5%; width: 100%; height: auto; }
.p-center { z-index: 3; transform: translate(-50%, -50%); }
.p-left { z-index: 2; transform: translate(-112%, -47%) rotate(-6deg) scale(.88); filter: brightness(.65); }
.p-right { z-index: 2; transform: translate(12%, -47%) rotate(6deg) scale(.88); filter: brightness(.65); }
.case-kasam:hover .p-left { transform: translate(-122%, -47%) rotate(-8deg) scale(.9); filter: brightness(.85); }
.case-kasam:hover .p-right { transform: translate(22%, -47%) rotate(8deg) scale(.9); filter: brightness(.85); }

/* darkleak (its own brand: terminal green on pure black) */
.case-dl { background: #000; color: #e6edf3; border-color: #12301d; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.case-dl::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 80% 70%, rgba(0, 216, 74, .07), transparent 70%); }
.dl-hero { grid-column: 1 / -1; width: calc(100% + 2 * var(--card-pad)); max-width: none; height: auto; margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 0; border-bottom: 1px solid #12301d; }
.case .dl-title { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-weight: 700; font-stretch: 100%; text-transform: none; letter-spacing: -0.02em; color: #00d84a; text-shadow: 0 0 22px rgba(0, 216, 74, .45); }
.case-dl .case-sub { color: #7ee787; }
.case-dl .bullets li::before { background: #00d84a; }
.case-dl .link { color: #7ee787; }
.dl-private { font-size: var(--fs-small); color: #7ee787 !important; opacity: .8 !important; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.case-dl code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .92em; color: #7ee787; }
.dl-term { align-self: stretch; display: flex; flex-direction: column; border: 1px solid #1f2d24; border-radius: 10px; background: #050806; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid #1f2d24; font: 400 11px ui-monospace, 'SF Mono', Menlo, monospace; color: #7d8590; }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #1f2d24; }
.term-bar span { margin-left: 8px; }
.term {
  flex: 1; margin: 0; padding: 14px 16px; min-height: 360px; overflow-x: auto;
  font: 400 clamp(10.5px, .62rem + .2vw, 12.5px)/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: #e6edf3; white-space: pre;
}
.t-ok { color: #7ee787; }
.t-dim { color: #7d8590; }
.t-red { color: #ff7b72; }
.t-amber { color: #d29922; }
.t-u { text-decoration: underline; text-underline-offset: 2px; }
.t-cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: text-bottom; background: #7ee787; animation: t-blink 1s steps(1) infinite; }
@keyframes t-blink { 50% { opacity: 0; } }
.term-replay { align-self: flex-end; margin: 0 12px 10px; font: 500 11px ui-monospace, 'SF Mono', Menlo, monospace; color: #7d8590; }
.term-replay:hover { color: #7ee787; }
.dl-panel { grid-column: 1 / -1; margin: 8px 0 0; }
.dl-panel-shot { display: block; width: 100%; padding: 0; border: 1px solid #1f2d24; border-radius: 10px; overflow: hidden; background: #000; transition: border-color .3s, transform .5s var(--ease); }
.dl-panel-shot:hover { border-color: #00d84a; transform: translateY(-3px); }
.dl-panel-shot img { width: 100%; height: auto; }
.dl-panel figcaption { margin-top: 10px; font: 400 var(--fs-small) ui-monospace, 'SF Mono', Menlo, monospace; color: #7d8590; }
.s-oss::before { background: #f5a524; }

/* ---------- Atlas (its own brand: amber HUD) ---------- */
.atlas-sec {
  position: relative; overflow: hidden;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto;
  background: #050403; color: #f4e6cc;
  border: 1px solid #2a1c0e; border-radius: var(--radius);
  padding: var(--card-pad);
}
.atlas-sec::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 40% at 50% 70%, rgba(255, 120, 0, .1), transparent 70%); pointer-events: none; }
.atlas-sec .wrap { padding-inline: 0; position: relative; }
.atlas-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.atlas-info .case-meta { color: #ffb340; opacity: .8; }
.atlas-title {
  margin: 0; font-family: 'Cinzel', Georgia, serif; font-weight: 400; font-size: calc(var(--fs-h3) * 1.1);
  letter-spacing: .3em; line-height: 1; color: #ffe2a8; text-shadow: 0 0 40px rgba(255, 138, 0, .4);
}
.atlas-info p { margin: 0 0 18px; line-height: 1.6; color: rgba(244,230,204,.78); }
.atlas-info p.case-sub { margin: 14px 0 18px; font-size: var(--fs-lead); line-height: 1.3; font-weight: 500; color: #ffb340; }
.atlas-info .case-label { color: #ffb340; margin-top: 4px; }
.atlas-info .bullets li { color: rgba(244,230,204,.9); opacity: 1; }
.atlas-info .chips { color: #ffb340; opacity: .8; }
.atlas-info p.atlas-note { font-size: var(--fs-small); color: rgba(255,170,80,.85); margin: 4px 0 0; }

/* the console is laid out at a fixed design size and scaled to fit (see atlas-console.js) */
.atlas-console { position: relative; margin-top: clamp(28px, 3.5vw, 52px); overflow: hidden; border: 1px solid rgba(255,160,60,.18); border-radius: 10px; background: #000; }
.ac {
  --amber: #ff8a00; --gold: #ffb340; --hot: #ffe2a8; --dim: rgba(255, 160, 60, .58); --faint: rgba(255, 150, 50, .16); --text: #f4e6cc;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; --ui: 'Rajdhani', 'Archivo', system-ui, sans-serif; --display: 'Cinzel', Georgia, serif;
  --lv: 0;
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  display: flex; flex-direction: column; background: #000; color: var(--text); font: 500 14px/1.4 var(--ui);
  -webkit-font-smoothing: antialiased; text-align: left;
}
.ac button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.ac-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.ac-top { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto auto auto; gap: 28px; align-items: center; padding: 16px 28px 10px; }
.ac-mark { display: flex; align-items: baseline; gap: 16px; }
.ac-word { font: 700 26px var(--display); letter-spacing: .55em; color: var(--hot); text-shadow: 0 0 18px rgba(255, 140, 0, .55); }
.ac-sub { font: 400 11px var(--mono); letter-spacing: .25em; color: var(--dim); }
.ac-state { display: flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .4em; color: var(--dim); }
.ac-state b { font-weight: 500; }
.ac-state i { width: 7px; height: 7px; background: var(--dim); transform: rotate(45deg); }
.ac-state[data-mode="listen"], .ac-state[data-mode="speak"] { color: var(--gold); }
.ac-state[data-mode="listen"] i, .ac-state[data-mode="speak"] i { background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: ac-blink 1.1s infinite; }
.ac-state[data-mode="think"] { color: var(--hot); }
.ac-state[data-mode="think"] i { background: var(--hot); box-shadow: 0 0 14px var(--amber); animation: ac-blink .35s infinite; }
@keyframes ac-blink { 50% { opacity: .2; } }
.ac-controls { display: flex; gap: 10px; }
.ac-controls button { font: 500 11px var(--mono); letter-spacing: .25em; padding: 8px 14px; color: var(--gold); border: 1px solid var(--dim); transition: .2s; }
.ac-controls button:hover { color: #000; background: var(--gold); box-shadow: 0 0 18px var(--amber); }
.ac-controls [data-ctl="stop"] { color: #ff6b4a; border-color: rgba(255, 107, 74, .6); }
.ac-controls [data-ctl="stop"]:hover { color: #000; background: #ff6b4a; }
.ac-time { text-align: right; }
.ac-time span { display: block; font: 300 26px var(--mono); color: var(--hot); letter-spacing: .06em; }
.ac-time small { font: 400 10px var(--mono); letter-spacing: .3em; color: var(--dim); }

.ac-ruler {
  position: relative; z-index: 1; height: 10px; margin: 0 28px;
  background:
    linear-gradient(var(--faint), var(--faint)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--faint) 0 1px, transparent 1px 12px) 0 0 / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--dim) 0 1px, transparent 1px 120px) 0 0 / 100% 10px no-repeat;
}
.ac-ruler.bottom { transform: scaleY(-1); margin-bottom: 12px; }

.ac-deck { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; grid-template-columns: 270px minmax(0, 1fr) 320px; gap: 28px; padding: 18px 28px; }
.ac-side { display: flex; flex-direction: column; gap: 24px; min-height: 0; position: relative; z-index: 2; }
.ac-side section.grow { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ac h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 11px var(--mono); letter-spacing: .32em; color: var(--gold); }
.ac h4 em { font-style: normal; color: var(--dim); }
.ac h4::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--dim), transparent); }

.ac-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.ac-gauge { position: relative; aspect-ratio: 1; }
.ac-gauge svg { width: 100%; height: 100%; overflow: visible; }
.ac-gauge .v { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ac-gauge .v b { font: 400 20px var(--mono); color: var(--hot); }
.ac-gauge .v span { font: 400 9px var(--mono); letter-spacing: .25em; color: var(--dim); }
.ac-gauge .arc { transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 4px rgba(255, 140, 0, .8)); }
.ac-readout { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 14px 0 0; font: 400 11px var(--mono); }
.ac-readout dt { color: var(--dim); letter-spacing: .2em; }
.ac-readout dd { margin: 0; text-align: right; color: var(--text); }
.ac-micbar { display: inline-block; width: 110px; height: 4px; background: var(--faint); vertical-align: middle; }
.ac-micbar i { display: block; height: 100%; width: 2%; background: var(--gold); box-shadow: 0 0 8px var(--amber); }
.ac-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ac-ops div { display: flex; align-items: center; gap: 10px; }
.ac-ops b { font: 300 34px var(--mono); color: var(--hot); text-shadow: 0 0 16px rgba(255, 140, 0, .5); }
.ac-ops span { font: 400 9px/1.3 var(--mono); letter-spacing: .2em; color: var(--dim); }
.ac-meter { height: 2px; margin: 14px 0 8px; background: var(--faint); }
.ac-meter i { display: block; height: 100%; width: 0; background: var(--gold); box-shadow: 0 0 10px var(--amber); transition: width .8s; }
.ac-note { margin: 0; font: 400 10px var(--mono); letter-spacing: .15em; color: var(--dim); }
.ac-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ac-mods button { position: relative; padding: 8px 10px; text-align: left; font: 400 11px var(--mono); letter-spacing: .18em; color: var(--text); border-left: 1px solid var(--dim); transition: .2s; }
.ac-mods button::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 140, 0, .14), transparent); opacity: 0; transition: .2s; }
.ac-mods button:hover { color: var(--hot); border-left-color: var(--gold); }
.ac-mods button:hover::before { opacity: 1; }
.ac-mods button:active { transform: translateX(2px); }
.ac :focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }

.ac-stage { position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; }
.ac-corner { position: absolute; width: 22px; height: 22px; border: 1px solid var(--dim); z-index: 3; }
.ac-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.ac-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.ac-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.ac-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.ac-atlas { position: relative; z-index: 2; height: 74%; aspect-ratio: 340 / 476; margin-top: 3%; animation: ac-levitate 6s ease-in-out infinite; }
.ac-atlas img {
  position: absolute; inset: 0; width: 100%; height: 100%; transition: filter .15s;
  filter: sepia(.7) saturate(1.6) hue-rotate(-18deg) brightness(.62) contrast(1.25) drop-shadow(0 0 22px rgba(255, 110, 0, .35));
}
.ac[data-mode="speak"] .ac-atlas img {
  filter: sepia(.7) saturate(1.6) hue-rotate(-18deg) brightness(calc(.62 + var(--lv) * .14)) contrast(1.25)
    drop-shadow(0 0 calc(22px + var(--lv) * 30px) rgba(255, 120, 0, calc(.35 + var(--lv) * .4)));
}
.ac-core { position: absolute; width: 230%; aspect-ratio: 1; left: -63.5%; top: 30.5%; transform: translateY(-50%); pointer-events: none; }
@keyframes ac-levitate { 50% { transform: translateY(-14px); } }

/* reticle sits on the globe's centre, behind the statue */
.ac-reticle { position: absolute; left: 51.5%; top: 30.5%; width: 0; height: 0; z-index: -1; pointer-events: none; }
.ac-sweep {
  position: absolute; width: 560px; height: 560px; left: -280px; top: -280px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 140, 0, .16), transparent 18%, transparent);
  animation: ac-spin 6s linear infinite;
  mask: radial-gradient(circle, transparent 30%, #000 31%, #000 70%, transparent 71%);
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 31%, #000 70%, transparent 71%);
}
.ac-dial { position: absolute; width: 620px; height: 620px; left: -310px; top: -310px; animation: ac-spin 90s linear infinite reverse; }
@keyframes ac-spin { to { transform: rotate(360deg); } }
.ac-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 160, 60, .22); }
.ac-ring.r1 { width: 470px; height: 470px; left: -235px; top: -235px; animation: ac-spin 40s linear infinite; }
.ac-ring.r2 { width: 400px; height: 400px; left: -200px; top: -200px; border-style: dotted; border-color: rgba(255, 190, 90, .28); animation: ac-spin 26s linear infinite reverse; }
.ac-ring.r3 { width: 520px; height: 520px; left: -260px; top: -260px; border: 0; border-top: 2px solid rgba(255, 170, 60, .5); border-bottom: 2px solid rgba(255, 170, 60, .15); animation: ac-spin 12s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 140, 0, .6)); }
.ac[data-mode="think"] .ac-ring.r1 { animation-duration: 6s; }
.ac[data-mode="think"] .ac-ring.r2 { animation-duration: 4s; }
.ac[data-mode="think"] .ac-ring.r3 { animation-duration: 1.6s; }
.ac[data-mode="think"] .ac-sweep { animation-duration: 1.4s; }
.ac[data-mode="speak"] .ac-sweep { animation-duration: 3s; }
.ac[data-mode="idle"] .ac-ring { opacity: .45; }
.ac-callout { position: absolute; font: 400 10px var(--mono); letter-spacing: .25em; white-space: nowrap; }
.ac-callout span { display: block; color: var(--dim); }
.ac-callout b { font-weight: 400; color: var(--hot); }
.ac-callout::before { content: ''; position: absolute; height: 1px; background: var(--dim); transform-origin: left; }
.ac-callout.c1 { left: 200px; top: -170px; padding-left: 10px; border-left: 1px solid var(--dim); }
.ac-callout.c1::before { width: 90px; left: -88px; top: 100%; transform: rotate(35deg); }
.ac-callout.c2 { right: 200px; top: 120px; padding-right: 10px; border-right: 1px solid var(--dim); text-align: right; }
.ac-callout.c2::before { width: 90px; right: -88px; top: 0; transform: rotate(35deg); transform-origin: right; }

.ac-aura { position: absolute; left: 51.5%; top: 30.5%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(calc(.85 + var(--lv) * .35));
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 150, 40, .28), rgba(255, 90, 0, .08) 45%, transparent 70%); pointer-events: none; z-index: -1; }
.ac[data-mode="listen"] .ac-aura { animation: ac-breathe 3.2s ease-in-out infinite; }
@keyframes ac-breathe { 50% { opacity: .55; } }
.ac-orbfx { position: absolute; left: 51.5%; top: 30.5%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.ac-orbfx .rip { position: absolute; width: 120px; height: 120px; left: -60px; top: -60px; border-radius: 50%; border: 2px solid rgba(255, 190, 90, .7);
  box-shadow: 0 0 18px rgba(255, 130, 0, .5), inset 0 0 12px rgba(255, 130, 0, .3); opacity: 0; }
.ac[data-mode="speak"] .ac-orbfx .rip { animation: ac-ripple 1.8s cubic-bezier(.2, .6, .3, 1) infinite; }
.ac[data-mode="speak"] .ac-orbfx .rip:nth-child(2) { animation-delay: .6s; }
.ac[data-mode="speak"] .ac-orbfx .rip:nth-child(3) { animation-delay: 1.2s; }
@keyframes ac-ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
.ac-orbfx .rays { position: absolute; width: 360px; height: 360px; left: -180px; top: -180px; border-radius: 50%; opacity: 0; transition: opacity .4s;
  background: repeating-conic-gradient(rgba(255, 200, 110, .16) 0 3deg, transparent 3deg 20deg);
  mask: radial-gradient(circle, transparent 18%, #000 30%, transparent 70%); -webkit-mask: radial-gradient(circle, transparent 18%, #000 30%, transparent 70%);
  animation: ac-spin 14s linear infinite; }
.ac[data-mode="speak"] .ac-orbfx .rays { opacity: calc(.5 + var(--lv) * .5); }
.ac[data-mode="think"] .ac-orbfx .rays { opacity: .5; animation-duration: 3s; }
.ac-orbfx .orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 170, 60, .12); animation: ac-spin 7s linear infinite; }
.ac-orbfx .orbit.o1 { width: 210px; height: 210px; left: -105px; top: -105px; }
.ac-orbfx .orbit.o2 { width: 270px; height: 120px; left: -135px; top: -60px; transform: rotate(-25deg); animation: none; border-color: rgba(255, 170, 60, .08); }
.ac-orbfx .orbit s { position: absolute; width: 6px; height: 6px; top: -3px; left: 50%; border-radius: 50%; background: var(--hot); box-shadow: 0 0 10px 2px var(--amber); }
.ac-orbfx .orbit.o2 s { animation: ac-ellipse 5s linear infinite; offset-path: ellipse(135px 60px at 135px 60px); top: 0; left: 0; }
@keyframes ac-ellipse { to { offset-distance: 100%; } }
.ac[data-mode="think"] .ac-orbfx .orbit.o1 { animation-duration: 1.5s; }

.ac-floor { position: absolute; left: 50%; bottom: 14%; width: 70%; height: 22%; transform: translateX(-50%); pointer-events: none; z-index: 1;
  perspective: 300px; -webkit-mask-image: radial-gradient(ellipse at center 30%, #000 30%, transparent 70%); mask-image: radial-gradient(ellipse at center 30%, #000 30%, transparent 70%); }
.ac-floor::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse at center 30%, rgba(255, 140, 30, calc(.18 + var(--lv) * .25)), transparent 60%); }
.ac-floor i { position: absolute; inset: -40% 0 0; transform: rotateX(70deg); transform-origin: top;
  background: repeating-linear-gradient(90deg, rgba(255, 160, 60, .14) 0 1px, transparent 1px 34px), repeating-linear-gradient(0deg, rgba(255, 160, 60, .14) 0 1px, transparent 1px 34px);
  animation: ac-grid 3s linear infinite; }
@keyframes ac-grid { to { background-position: 0 34px, 0 34px; } }

.ac-caption { position: relative; z-index: 3; margin-top: auto; width: min(640px, 100%); text-align: center; }
.ac-heard { min-height: 20px; font: 300 13px var(--mono); color: var(--dim); letter-spacing: .05em; }
.ac-reply { min-height: 32px; font: 500 22px/1.35 var(--ui); color: var(--hot); text-shadow: 0 0 18px rgba(255, 130, 0, .4); }
.ac-reply .w { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(4px); animation: ac-word .45s forwards; }
@keyframes ac-word { to { opacity: 1; filter: none; transform: none; } }
.ac-trans { min-height: 20px; font: 400 14px var(--font); color: rgba(244, 230, 204, .62); }
.ac-approval { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; font: 400 12px var(--mono); }
.ac-approval[hidden] { display: none; }
.ac-approval .tag { color: #000; background: var(--gold); padding: 2px 8px; letter-spacing: .2em; animation: ac-blink 1s infinite; }
.ac-approval button { color: var(--gold); letter-spacing: .2em; }
.ac-approval button:hover { color: var(--hot); text-shadow: 0 0 10px var(--amber); }
.ac-cmd { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; width: min(640px, 100%); margin: 12px 0 4px; padding: 10px 2px; border-bottom: 1px solid var(--dim); font: 400 14px var(--mono); }
.ac-cmd span { color: var(--gold); animation: ac-blink 1.1s steps(1) infinite; }
.ac-cmd input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--hot); font: inherit; caret-color: var(--gold); }
.ac-cmd input::placeholder { color: rgba(255, 160, 60, .35); }
.ac-cmd:focus-within { border-bottom-color: var(--gold); box-shadow: 0 8px 18px -12px var(--amber); }

.ac-feed { list-style: none; margin: 0; padding: 0; flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 7px; font: 400 12px/1.35 var(--mono);
  mask-image: linear-gradient(#000 75%, transparent); -webkit-mask-image: linear-gradient(#000 75%, transparent); }
.ac-feed li { display: grid; grid-template-columns: 62px 84px 1fr; gap: 6px; animation: ac-feed .4s ease-out; }
@keyframes ac-feed { from { opacity: 0; transform: translateX(12px); color: #fff; } }
.ac-feed time { color: var(--dim); }
.ac-feed .code { color: var(--gold); }
.ac-feed .d { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-feed .reply .d { color: var(--hot); white-space: normal; }
.ac-schedules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font: 400 11px var(--mono); }
.ac-schedules li { display: flex; gap: 10px; align-items: center; }
.ac-schedules li.off { opacity: .35; }
.ac-schedules b { font-weight: 400; color: var(--hot); }
.ac-schedules span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-schedules i { font-style: normal; color: var(--dim); }

/* narrow screens: stage only, bigger type */
.ac.compact .ac-side, .ac.compact .ac-controls, .ac.compact .ac-sub { display: none; }
.ac.compact .ac-top { grid-template-columns: 1fr auto; padding: 18px 22px 10px; }
.ac.compact .ac-time { display: none; }
.ac.compact .ac-deck { grid-template-columns: 1fr; padding: 14px 22px; }
.ac.compact .ac-word { font-size: 30px; }
.ac.compact .ac-state { font-size: 14px; }
.ac.compact .ac-heard { font-size: 16px; }
.ac.compact .ac-reply { font-size: 28px; }
.ac.compact .ac-trans { font-size: 18px; }
.ac.compact .ac-cmd { font-size: 18px; }
.ac.compact .ac-ruler { margin: 0 22px; }

@media (prefers-reduced-motion: reduce) {
  .ac-ring, .ac-orbfx *, .ac-floor i, .ac-sweep, .ac-dial, .ac-atlas { animation: none !important; }
}

/* ---------- process ---------- */
.process { padding-top: var(--space-section); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 40px); }
.steps li { border-top: 1px solid var(--fg); padding-top: 18px; }
.steps span { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.step-title { margin: clamp(16px, 2vw, 28px) 0 8px; font-size: clamp(17px, .95rem + .3vw, 21px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.steps p { margin: 0; color: var(--muted); line-height: 1.55; }

/* ---------- certificates: small thumbnails, click to enlarge ---------- */
.certs { padding-top: var(--space-section); }
.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 32px) clamp(14px, 1.6vw, 24px); }
.cert { display: flex; flex-direction: column; gap: 12px; }
.cert-shot {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 12px; background: #f4f4f2; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cert-shot img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.cert-shot::after {
  content: '+'; position: absolute; right: 10px; bottom: 10px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.75); color: #fff; font-size: 18px; line-height: 1;
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease);
}
.cert-shot:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(255,255,255,.18); }
.cert-shot:hover img { transform: scale(1.03); }
.cert-shot:hover::after, .cert-shot:focus-visible::after { opacity: 1; transform: none; }
.cert-ph {
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 8%;
  background: radial-gradient(120% 90% at 0% 0%, #1d1d1d, #0d0d0d); color: var(--fg); text-align: left;
}
.cert-ph::after { content: '↗'; font-size: 15px; }
.ph-org { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ph-title { font-size: clamp(17px, 1rem + .5vw, 24px); font-weight: 800; font-stretch: 72%; line-height: 1.05; text-transform: uppercase; }
.ph-name { font-size: 12px; color: var(--muted); }
.cert-body h4 { margin: 0 0 4px; font-size: clamp(14px, .82rem + .2vw, 16px); font-weight: 600; line-height: 1.3; }
.cert-org { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.cert-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 6px 0 0; font-size: var(--fs-small); color: var(--muted); }
.cert-meta span:first-child { color: var(--fg); }
.cert-verify { display: inline-block; margin-top: 8px; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid currentColor; }
.cert-verify:hover { opacity: .7; }

.lightbox {
  width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; background: #fff;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; height: auto; max-height: 92vh; object-fit: contain; border-radius: 14px; }
.lb-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--fg); color: var(--bg); font-size: 16px; font-weight: 700;
}

/* ---------- about ---------- */
.about { padding-top: var(--space-section); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.about-text p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; max-width: 640px; }
.about-text .about-big { margin-bottom: 22px; color: var(--fg); font-size: clamp(19px, 1rem + .45vw, 24px); line-height: 1.4; letter-spacing: -0.01em; }
.now { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 640px; }
.now h4 { margin: 0 0 12px; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.now ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.now li { display: flex; align-items: center; gap: 12px; }
.now li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #3ecf8e; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; line-height: 1.5; }
.langs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.langs li { display: flex; justify-content: space-between; gap: 12px; }
.langs small { font-size: var(--fs-small); color: var(--muted); }

/* ---------- contact ---------- */
.contact { padding-top: var(--space-section); padding-bottom: clamp(64px, 8vw, 120px); }
.mail { display: block; text-align: left; width: 100%; }
.mail .mail-text {
  display: block; white-space: nowrap; font-weight: 800; line-height: 1;
  font-stretch: 72%; font-size: 8vw; letter-spacing: -0.01em; transition: color .3s;
}
.mail:hover .mail-text { color: var(--muted); }
[data-fit-text] { display: inline-block; font: inherit; }
.mail small { display: block; margin-top: 12px; font-size: var(--fs-small); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.contact-links { list-style: none; padding: 0; margin: clamp(28px, 4vw, 44px) 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-links a {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--fg);
  font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; transition: background .25s, color .25s;
}
.contact-links a:hover { background: var(--fg); color: var(--bg); }
.contact-links .cv-link { background: var(--fg); color: var(--bg); }
.contact-links .cv-link:hover { background: transparent; color: var(--fg); }

.footer-in {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}
.footer-in > :last-child { justify-self: end; }
.footer a:hover { color: var(--fg); }

/* ---------- reveal (only when JS is running, so the page never stays blank) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.static .reveal, .static .hero-name .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-me { grid-column: 1 / span 4; }
  .hero-text { grid-column: 5 / span 8; }
  .hero-links { grid-column: 5 / span 8; justify-self: start; display: flex; flex-wrap: wrap; gap: 10px 24px; }
  .hero-links li + li { margin-top: 0; }
  .case { gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 860px) {
  .case, .atlas-info, .case-dl { grid-template-columns: minmax(0, 1fr); }
  .term { min-height: 0; }
  .case-info { max-width: 640px; }
  .phones { aspect-ratio: 4 / 3; width: 100%; max-width: 620px; justify-self: center; }
  .phone { width: 30%; }
  .gallery { width: 100%; max-width: 560px; justify-self: center; }
  .about-grid { grid-template-columns: 1fr; }
  .index a { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 14px; }
  .i-desc { grid-column: 2 / 4; grid-row: 2; font-size: var(--fs-small); }
  .i-status { grid-column: 3; grid-row: 1; }
  .i-arrow { display: none; }
}
@media (max-width: 700px) {
  .nav { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; column-gap: 10px; }
  .brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; min-width: 0; justify-content: space-between; gap: 8px; font-size: 11px; letter-spacing: .02em; }
  .lang-btn { height: 28px; padding: 0 8px 0 7px; gap: 5px; }
  .lang-btn svg { width: 17px; height: 12px; }
  .hero { padding-top: 140px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-me, .hero-text, .hero-links { grid-column: 1 / -1; }
  .hero-top { grid-template-columns: 1fr; gap: 28px; }
  .portrait { order: -1; width: 132px; }
  .phones { aspect-ratio: 1 / 1.05; }
  .phone { width: 46%; }
  .p-left { transform: translate(-96%, -46%) rotate(-6deg) scale(.82); }
  .p-right { transform: translate(-4%, -46%) rotate(6deg) scale(.82); }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .facts > div { grid-template-columns: 1fr; gap: 6px; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-in > :last-child { justify-self: start; }
  .lb-close { top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js:not(.loaded) .hero-name .line > span { transform: none; }
}
