/* ==========================================================================
   myinori.com — Hoh portfolio
   Plain CSS, system fonts only, no external assets.
   ========================================================================== */

:root {
  --ink: #070b16;
  --ink-2: #0b1220;
  --panel: #0d1526;
  --line: rgba(148, 163, 184, 0.16);
  --text: #dbe3f0;
  --text-muted: #a9b6cc;
  --teal: #2dd4bf;
  --teal-soft: #5eead4;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --light: #f5f7fb;
  --light-line: #e2e9f3;
  --light-text: #182337;
  --light-muted: #475467;
  --teal-ink: #0f766e;
  --radius: 18px;
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 28px -20px rgba(16, 24, 40, 0.28);
  --wrap: 1160px;
  --header-h: 74px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: #f4f8ff;
}

h1, h2, h3 { text-wrap: balance; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-soft); text-decoration: none; }
a:hover { color: #a7f3e4; }

:where(a, button):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

/* The skip link targets <main tabindex="-1">; that programmatic focus target
   must not paint an outline, while real focusable elements keep theirs. */
main:focus,
main:focus-visible { outline: none; }

::selection { background: rgba(34, 211, 238, 0.28); color: #f4fbff; }

.wrap {
  width: min(var(--wrap), 100% - clamp(36px, 9vw, 80px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: #eafffb;
  color: #04121a;
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; color: #04121a; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(6, 9, 18, 0.94);
  box-shadow: 0 12px 34px -22px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 42px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
}
.nav-list a {
  color: #c6d2e4;
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-list a:hover { color: var(--teal-soft); border-bottom-color: rgba(94, 234, 212, 0.6); }

.nav-cta { padding: 9px 18px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:hover { border-color: rgba(94, 234, 212, 0.5); }

.bars { display: grid; gap: 5px; width: 20px; }
.bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 92px) clamp(64px, 8vw, 108px);
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(700px 460px at 6% 88%, rgba(139, 92, 246, 0.15), transparent 66%),
    var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.11) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 62% 34%, #000 12%, transparent 78%);
  mask-image: radial-gradient(80% 70% at 62% 34%, #000 12%, transparent 78%);
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(30px, 5vw, 62px);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0.35rem 0 1.05rem;
  text-wrap: balance;
}

.grad { color: var(--teal-soft); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background: linear-gradient(102deg, #5eead4 0%, #22d3ee 44%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: inherit;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7de3d0;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.eyebrow-dark { color: var(--teal-ink); }

.lede {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 62ch;
}
.dark-muted { color: var(--light-muted); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 1.15rem;
}

.hero-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: #8b9ab3;
}

.hero-art { margin: 0; position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% -6% -10% -4%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.3), transparent 72%);
  filter: blur(28px);
  z-index: -1;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  box-shadow: 0 34px 90px -40px rgba(34, 211, 238, 0.55);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease,
    background-color 0.22s ease, color 0.22s ease;
}
.btn-primary {
  background: linear-gradient(115deg, #2dd4bf 0%, #22d3ee 46%, #8b5cf6 100%);
  color: #04121a;
  box-shadow: 0 14px 34px -18px rgba(34, 211, 238, 0.85);
}
.btn-primary:hover {
  color: #04121a;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -18px rgba(34, 211, 238, 0.95);
}
.btn-ghost {
  border-color: rgba(148, 163, 184, 0.45);
  color: #e8effa;
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--teal-soft);
  color: var(--teal-soft);
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* -------------------------------------------------------------- sections */

.section { padding-block: clamp(60px, 8vw, 108px); }
.section-light {
  background: var(--light);
  color: var(--light-text);
}
.section-light h2, .section-light h3 { color: #0b1220; }
.section-light a { color: var(--teal-ink); }
.section-light a:hover { color: #0b5f59; }
.section-dark { background: var(--ink); }
.section-dark + .section-dark { border-top: 1px solid rgba(255, 255, 255, 0.05); }

.section-head {
  max-width: 72ch;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.section-head h2 {
  font-size: clamp(1.65rem, 3.3vw, 2.55rem);
  margin: 0.5rem 0 0.85rem;
}
.section-light .section-head .lede { color: var(--light-muted); }

.card-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  border-radius: var(--radius);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.55rem; }
.card p { font-size: 0.975rem; line-height: 1.66; }

.light-card {
  background: #fff;
  border: 1px solid var(--light-line);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 2.3vw, 28px);
}
.light-card p { color: var(--light-muted); }
.light-card:hover {
  transform: translateY(-3px);
  border-color: #cfe0f2;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 26px 44px -26px rgba(16, 24, 40, 0.32);
}

.dark-card {
  background: linear-gradient(180deg, rgba(19, 29, 48, 0.92), rgba(12, 19, 35, 0.92));
  border: 1px solid var(--line);
  padding: clamp(20px, 2.3vw, 26px);
}
.dark-card p { color: var(--text-muted); }
.dark-card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, 0.4);
  box-shadow: 0 28px 50px -34px rgba(34, 211, 238, 0.55);
}

.mono-tag {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.85rem;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  background: rgba(13, 148, 136, 0.08);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--teal-ink);
}
.dark-card .mono-tag {
  color: var(--teal-soft);
  border-color: rgba(45, 212, 191, 0.26);
  background: rgba(45, 212, 191, 0.08);
}

.media-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.media-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 671;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.media-body { padding: clamp(18px, 2.2vw, 24px); }

.text-card { display: flex; flex-direction: column; justify-content: flex-start; }

.note-card {
  border-style: dashed;
  border-color: rgba(139, 92, 246, 0.42);
  background: linear-gradient(180deg, rgba(44, 33, 72, 0.6), rgba(14, 19, 36, 0.92));
}

/* ------------------------------------------------------------- platforms */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.platform-card {
  background: #fff;
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: #cfe0f2;
  box-shadow: 0 22px 40px -26px rgba(16, 24, 40, 0.32);
}
.glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.18);
  background: linear-gradient(140deg, rgba(13, 148, 136, 0.12), rgba(124, 58, 237, 0.12));
  color: var(--teal-ink);
}
.glyph svg { width: 26px; height: 26px; }
.platform-card h3 { font-size: 1rem; line-height: 1.32; margin-bottom: 0.4rem; }
.platform-card p { font-size: 0.89rem; line-height: 1.6; color: var(--light-muted); }
.platform-sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--teal-ink);
  margin-bottom: 0.45rem;
}
.platform-card .platform-sub + p { margin-top: 0.35rem; }
.small-print {
  margin: 26px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #667085;
}

/* ------------------------------------------------------------------ work */

.project {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(22px, 3.2vw, 42px);
  margin-bottom: clamp(22px, 3vw, 34px);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 25, 43, 0.72), rgba(10, 16, 30, 0.72));
  transition: border-color 0.26s ease, box-shadow 0.26s ease;
}
.project:last-child { margin-bottom: 0; }
.project:hover {
  border-color: rgba(94, 234, 212, 0.28);
  box-shadow: 0 30px 60px -44px rgba(34, 211, 238, 0.5);
}

.project-media {
  display: grid;
  gap: 14px;
  align-content: center;
}
.project-media figure { margin: 0; }
.project-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: var(--ink-2);
}
.project-media figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8494ad;
}

.project-body h3 {
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  margin: 0.55rem 0 0.55rem;
}
.badge {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.09);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-soft);
}
.pitch {
  font-size: 0.99rem;
  line-height: 1.66;
  color: #c5d0e2;
  margin-bottom: 1rem;
}
.feature-list {
  display: grid;
  gap: 0.48rem;
  margin: 0 0 1.05rem;
  padding: 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--teal), var(--violet));
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.tech-tags li {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.1);
  font-family: var(--mono);
  font-size: 0.71rem;
  color: #b9c6da;
}
.demo-note {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.08);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd7e7;
}
.demo-note code {
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
  background: rgba(7, 11, 22, 0.65);
  font-family: var(--mono);
  font-size: 0.86em;
  color: #eafffb;
  overflow-wrap: anywhere;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.9rem;
}
.scope-note {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.6;
  color: #8b9ab3;
}

/* --------------------------------------------------------------- process */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process-list li {
  counter-increment: step;
  position: relative;
  padding-top: 3.3rem;
  border-top: 1px solid #dbe3ef;
}
.process-list li::before {
  content: "0" counter(step);
  position: absolute;
  top: 0.55rem;
  left: 0;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--teal-ink);
  opacity: 0.9;
}
.process-list h3 { font-size: 1.04rem; margin-bottom: 0.45rem; }
.process-list p { font-size: 0.93rem; line-height: 1.62; color: var(--light-muted); }

/* ----------------------------------------------------------------- about */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4.4vw, 56px);
  align-items: center;
}
.about-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  margin: 0.5rem 0 1rem;
}
.about-copy p {
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about-copy .btn { margin-top: 0.6rem; }
.about-art { margin: 0; }
.about-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 34px 70px -46px rgba(0, 0, 0, 0.95);
}

/* --------------------------------------------------------------- contact */

.contact-section {
  padding-block: clamp(68px, 9vw, 118px);
  background:
    radial-gradient(620px 320px at 50% 0%, rgba(34, 211, 238, 0.16), transparent 68%),
    radial-gradient(520px 300px at 82% 96%, rgba(139, 92, 246, 0.18), transparent 70%),
    var(--ink-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-inner {
  max-width: 66ch;
  text-align: center;
}
.contact-inner h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin: 0.7rem 0 0.9rem;
}
.contact-inner .lede { margin: 0 auto 1.6rem; }
.contact-address {
  margin: 1.15rem 0 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.contact-address a { color: var(--teal-soft); }
.contact-location { margin: 0.6rem 0 0; font-size: 0.9rem; color: #a9b6cc; }
.footer-desc + .footer-desc { margin-top: 0.25rem; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: #050810;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: clamp(34px, 4.6vw, 52px);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px 36px;
  padding-bottom: clamp(22px, 3vw, 34px);
}
.footer-name {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #f2f6fc;
}
.footer-desc { margin: 0; font-size: 0.87rem; color: #8b9ab3; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 0.92rem; }
.footer-nav a { display: inline-block; padding: 8px 2px; color: #b7c4d8; }
.footer-nav a:hover { color: var(--teal-soft); }
.footer-contact { margin: 0; font-family: var(--mono); font-size: 0.87rem; }
.footer-contact a { color: var(--teal-soft); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.81rem;
  color: #7d8ba3;
}
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------------- 404 */

.notfound { padding-block: clamp(76px, 12vw, 150px); }
.notfound .narrow { max-width: 62ch; }
.notfound h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  margin: 0.6rem 0 1rem;
}
.notfound .lede { margin-bottom: 1.6rem; }
.notfound .hero-note { margin-top: 1.1rem; }
.notfound .hero-note a { color: var(--teal-soft); }

/* --------------------------------------------------------------- reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1040px) {
  .project { grid-template-columns: 1fr; }
  .project-media { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: 2; max-width: 620px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { order: -1; max-width: 640px; margin-inline: auto; }
  .card-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 0;
    padding: 14px clamp(18px, 5vw, 28px) 22px;
    background: #080d19;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 40px -30px rgba(0, 0, 0, 0.95);
  }
  .js .site-nav {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 1rem;
  }
  .nav-list a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-cta { margin-top: 12px; align-self: flex-start; }

  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 12px; }
  html:not(.js) .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 720px) {
  .card-grid.three { grid-template-columns: 1fr; }
  .project-media { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 560px) {
  .process-list { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .contact-inner .btn-lg { width: 100%; }
  .footer-bottom { flex-direction: column; }
}

/* ------------------------------------------------------- reduced motion */

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

@media print {
  .site-header, .hero-art, .skip-link, .nav-toggle { display: none !important; }
  body { background: #fff; color: #111; }
}
