/* =========================================================
   mithot.dev — design system
   Sharp, technical, blueprint-inspired. No glassmorphism.
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

/* ---------- Tokens ---------- */
:root {
  --bg:           #08090B;
  --bg-2:         #0C0E11;
  --surface:      #101317;
  --surface-2:    #161A20;
  --line:         #1F242B;
  --line-strong:  #2E3641;
  --text:         #EEF0F3;
  --text-2:       #99A1AC;
  --text-3:       #6B7381;
  --accent:       #FF5A1F;
  --accent-2:     #FF8A5B;
  --accent-soft:  rgba(255, 90, 31, .13);
  --ok:           #3DD68C;
  --shadow:       0 1px 2px rgba(0,0,0,.4), 0 12px 40px -12px rgba(0,0,0,.7);

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;

  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Space Grotesk", var(--f-sans);
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Consolas", monospace;

  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

html[data-theme="light"] {
  --bg:           #F7F6F3;
  --bg-2:         #FFFFFF;
  --surface:      #FFFFFF;
  --surface-2:    #F2F0EC;
  --line:         #E4E1DA;
  --line-strong:  #CBC7BE;
  --text:         #15171B;
  --text-2:       #575D66;
  --text-3:       #868C95;
  --accent:       #D93F06;
  --accent-2:     #B93504;
  --accent-soft:  rgba(217, 63, 6, .09);
  --ok:           #12885A;
  --shadow:       0 1px 2px rgba(20,22,26,.05), 0 14px 40px -16px rgba(20,22,26,.22);
}

/* ---------- Base ---------- */
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fine film grain — texture without blur/glass */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .03;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 14px;
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Language visibility ---------- */
html[data-lang="tr"] [data-only="en"],
html[data-lang="en"] [data-only="tr"] { display: none !important; }

/* ---------- Shared bits ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: .7;
}

.mono {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--text-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, color .18s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px -8px var(--accent);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }

/* corner crosshair marks — the signature detail */
.ticks { position: relative; }
.ticks::before,
.ticks::after {
  content: "+";
  position: absolute;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1;
  color: var(--line-strong);
  transition: color .2s var(--ease);
}
.ticks::before { top: 8px; left: 8px; }
.ticks::after  { bottom: 8px; right: 8px; }
.ticks:hover::before, .ticks:hover::after { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: var(--bg-2);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--accent);
  background: var(--surface);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand .dim { color: var(--text-3); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color .18s;
}
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1.5px;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-2);
  background: var(--surface);
  transition: color .18s, border-color .18s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--line-strong); }
.icon-btn svg { width: 16px; height: 16px; }

.lang-btn {
  width: auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--text-3);
}
.lang-btn .sep { color: var(--line-strong); margin: 0 5px; }
.lang-btn .on { color: var(--accent); }

html[data-theme="light"] .icon-sun,
html[data-theme="dark"]  .icon-moon { display: none; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -1px 0 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 5%, transparent 72%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 5%, transparent 72%);
  opacity: .8;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 68px);
  margin: 22px 0 0;
}
.hero h1 .hl {
  color: var(--accent);
}
.hero-sub {
  margin-top: 22px;
  max-width: 56ch;
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* spec card — solid, bordered, technical */
.spec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.spec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.dot.live { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.spec-head .spacer { margin-left: auto; }

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-key {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.spec-val { font-weight: 500; text-align: right; }
.spec-val.ok { color: var(--ok); }

.caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee strip ---------- */
.strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 16px 0;
}
.marquee {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; }
.marquee li {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.marquee li::after { content: "\25C6"; font-size: 7px; color: var(--accent); opacity: .65; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  margin-top: 18px;
}
.sec-head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 16.5px;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card {
  position: relative;
  padding: 34px 28px 32px;
  background: var(--bg);
  transition: background-color .22s var(--ease);
}
.card:hover { background: var(--surface); }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .32s var(--ease);
}
.card:hover::before { width: 100%; }
.card-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--text-3);
}
.card-icon {
  width: 40px; height: 40px;
  margin: 18px 0 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--accent);
  background: var(--accent-soft);
}
.card-icon svg { width: 19px; height: 19px; }
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { font-size: 14.8px; color: var(--text-2); }

/* ---------- Platforms ---------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}
.platform {
  padding: 32px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .22s var(--ease);
}
.platform:hover { border-color: var(--line-strong); }
.platform-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 22px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.platform-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}
.platform-logo svg { width: 23px; height: 23px; }
.platform h3 { font-size: 19px; }
.platform .sub {
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.platform ul li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  color: var(--text-2);
}
.platform ul li:last-child { border-bottom: 0; padding-bottom: 0; }
.platform .check {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.9;
}

/* ---------- Work ---------- */
.work-list { border-top: 1px solid var(--line); }
.work-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) minmax(0, 1.1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding .25s var(--ease), background-color .25s;
}
.work-item:hover { padding-inline: 18px; background: var(--surface); }
.work-idx {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--text-3);
}
.work-title {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.work-desc { color: var(--text-2); font-size: 14.8px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-3);
}
.work-status {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  white-space: nowrap;
}
.work-status.live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.work-status.soon { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about-body p + p { margin-top: 18px; }
.about-body p { color: var(--text-2); font-size: 16.5px; }
.about-body strong { color: var(--text); font-weight: 600; }

.principles {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.principle {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.principle:last-child { border-bottom: 0; }
.principle-mark {
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 3px;
}
.principle h4 { font-size: 15.5px; margin-bottom: 4px; }
.principle p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-box {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(36px, 6vw, 68px);
  text-align: center;
  overflow: hidden;
}
.contact-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000, transparent 70%);
  pointer-events: none;
}
.contact-box > * { position: relative; }
.contact-box h2 {
  font-size: clamp(28px, 4.2vw, 46px);
  margin: 20px 0 16px;
}
.contact-box p { color: var(--text-2); max-width: 52ch; margin-inline: auto; }
.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 10px 30px -12px var(--accent);
  transition: transform .18s var(--ease), background-color .18s;
}
.tg-btn:hover { background: var(--accent-2); transform: translateY(-2px); }
.tg-btn svg { width: 21px; height: 21px; }
.tg-btn .handle {
  font-family: var(--f-mono);
  letter-spacing: -.01em;
}
.tg-note {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--text-3);
}

/* inline Telegram link inside legal prose */
.tg-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 14px;
  padding: 3px 11px 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  vertical-align: -2px;
  transition: border-color .18s, background-color .18s;
}
.tg-inline:hover { border-color: var(--accent); background: var(--accent-soft); }
.tg-inline svg { width: 14px; height: 14px; }

/* ---------- Legal pages ---------- */
.page-head {
  padding: clamp(48px, 7vw, 92px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-head h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin-top: 20px;
}
.page-head .updated {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-3);
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.legal {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 56px;
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 110px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.toc-title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.toc a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-2);
  transition: color .18s, transform .18s var(--ease);
}
.toc a:hover { color: var(--accent); transform: translateX(3px); }

.prose { max-width: 74ch; }
.prose section { scroll-margin-top: 100px; }
.prose section + section { margin-top: 46px; }
.prose h2 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.prose h2 .n {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .1em;
}
.prose h3 { font-size: 16.5px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-size: 15.5px; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; }
.prose li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.callout {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--surface);
}
.callout p { font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-about { max-width: 34ch; margin-top: 16px; font-size: 14.5px; color: var(--text-2); }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14.5px; color: var(--text-2); transition: color .18s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-3);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .18s;
}
.to-top:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .work-item { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .work-desc { grid-column: 2 / -1; margin-top: -8px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: 70px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px 24px 26px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav a.is-active::after { display: none; }
  .header-inner { gap: 10px; }
  .header-actions { margin-left: auto; }
  .hero-actions .btn { flex: 1 1 auto; }
  .work-item { grid-template-columns: 1fr; gap: 10px; padding: 24px 4px; }
  .work-item:hover { padding-inline: 10px; }
  .work-desc { margin-top: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

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

@media print {
  .site-header, .site-footer, .toc, .hero::before { display: none; }
  body { background: #fff; color: #000; }
}
