/* HANI Consulting — dark "platform blueprint" system.
   Layout: one centred 1200px column; bands span full width with their own inner wrapper. */
:root {
  --ink: #0B0D12;
  --ink-2: #0E1117;
  --panel: #12151C;
  --panel-2: #171B24;
  --line: #252B39;
  --line-2: #353C4D;
  --text: #ECEEF3;
  --muted: #A3ABBB;
  --blue: #6E9BFF;
  --blue-soft: rgba(110, 155, 255, 0.12);
  --blue-text: #9DBBFF;
  --coral: #FF8A7A;
  --coral-soft: rgba(255, 138, 122, 0.12);
  --coral-text: #FFB0A4;
  --green: #5ED39A;
  --green-soft: rgba(94, 211, 154, 0.12);
  --green-text: #8FE3B9;
  --on-accent: #0B0D12;
  --on-accent-muted: #1A2340;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter Tight', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.103 27.8%, 1.077 31.6%, 1.008 39.7%, 0.984 43.9%, 0.976 48.2%, 0.981 53.6%, 1.001 66.1%, 1.002 75.3%, 1);

  --radius: 20px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --spring: cubic-bezier(0.34, 1.56, 0.64, 1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--text); }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
@media (min-width: 720px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: clamp(72px, 10vw, 120px); }
.band { background: var(--ink-2); border-block: 1px solid #1C212C; }
.grid-bg {
  background-image: linear-gradient(#ffffff07 1px, transparent 1px), linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- Type ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); }
.eyebrow--green { color: var(--green); }
.h1 { font-weight: 800; font-size: clamp(40px, 7vw, 80px); line-height: 0.98; letter-spacing: -0.035em; }
.h2 { font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.03em; }
.h3 { font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.hl { color: var(--blue); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: translate 560ms var(--spring), scale 560ms var(--spring), background-color 260ms var(--ease-out), border-color 260ms var(--ease-out), color 260ms var(--ease-out);
}
.btn:hover { translate: 0 -3px; scale: 1.03; }
.btn:active { scale: 0.96; transition-duration: 120ms; }
.btn--primary { background: var(--blue); color: var(--on-accent); }
.btn--primary:hover { color: var(--on-accent); background: #86ADFF; }
.btn--light { background: var(--text); color: var(--ink); }
.btn--light:hover { color: var(--ink); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); color: var(--text); }
.btn--dark { background: var(--ink); color: var(--text); }
.btn--dark:hover { color: var(--text); }
.btn--outline-dark { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--outline-dark:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(11, 13, 18, 0.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #1C212C;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--blue); color: var(--on-accent); display: grid; place-items: center; font-size: 15px; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--muted); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; place-items: center; }
.menu-btn__bars { position: relative; width: 18px; height: 12px; }
.menu-btn__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform 560ms var(--spring), opacity 200ms var(--ease-out); }
.menu-btn__bars span:nth-child(1) { top: 0; }
.menu-btn__bars span:nth-child(2) { top: 5px; }
.menu-btn__bars span:nth-child(3) { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  display: none; border-top: 1px solid #1C212C;
  padding: 12px var(--gutter-r) 24px var(--gutter-l);
  flex-direction: column; gap: 4px;
}
.mobile-menu a { text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 26px; padding: 10px 0; opacity: 0; translate: 0 -10px; transition: opacity 400ms var(--ease-out), translate 600ms var(--spring); }
.mobile-menu .btn { margin-top: 12px; font-family: var(--font-body); font-size: 16px; padding: 0 24px; }
.mobile-menu.is-open a { opacity: 1; translate: 0 0; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 40ms; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 80ms; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 120ms; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 160ms; }
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu.is-open { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 104px) clamp(56px, 8vw, 88px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(48px, 6vw, 72px); }
.hero__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

.hero__visual { flex: 1 1 360px; min-width: 0; max-width: 480px; position: relative; margin-inline: auto; }
.board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.board__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.board__stage { position: relative; }
.board__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.board__col { display: flex; flex-direction: column; gap: 10px; }
.board__label { height: 24px; line-height: 24px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board__card, .board__slot { height: 64px; border-radius: 10px; }
.board__slot { border: 1px dashed #2A3040; }
.board__card { background: var(--panel-2); border: 1px solid var(--line); padding: 10px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.board__mover {
  position: absolute; top: 34px; left: 0; width: calc((100% - 24px) / 3); height: 64px;
  border-radius: 10px; background: #1E2433; border: 1px solid var(--blue); padding: 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 14px 30px -10px rgba(110, 155, 255, 0.45);
  animation: travel 7s infinite;
}
.board__mover strong { font-size: 12px; color: var(--text); }
.board__mover span { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.board__status { width: 7px; height: 7px; border-radius: 50%; animation: dot 7s infinite; }
@keyframes travel {
  0% { transform: translateX(0); opacity: 0; animation-timing-function: var(--ease-out); }
  6% { transform: translateX(0); opacity: 1; }
  22% { transform: translateX(0); animation-timing-function: var(--spring); }
  38% { transform: translateX(calc(100% + 12px)); }
  56% { transform: translateX(calc(100% + 12px)); animation-timing-function: var(--spring); }
  72% { transform: translateX(calc(200% + 24px)); }
  92% { transform: translateX(calc(200% + 24px)); opacity: 1; animation-timing-function: var(--ease-out); }
  100% { transform: translateX(calc(200% + 24px)); opacity: 0; }
}
@keyframes dot { 0%, 30% { background: var(--muted); } 38%, 64% { background: var(--blue); } 72%, 100% { background: var(--green); } }
.toast { position: absolute; right: -8px; bottom: -24px; background: var(--text); color: var(--ink); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6); }
@media (max-width: 480px) { .toast { right: 8px; } }

/* ---------- Team strip (marquee) ---------- */
.strip { border-block: 1px solid #1C212C; padding-block: 28px; overflow: hidden; }
.strip__label { text-align: center; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; padding-inline: 16px; }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee__set { display: flex; gap: 48px; padding-right: 48px; }
.marquee__item { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #C9CEDA; white-space: nowrap; }
.marquee__item i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problem ---------- */
.problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 48px; }
.problem { padding-top: 24px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.problem__q { font-family: var(--font-mono); font-size: 13px; color: var(--coral-text); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #0F1218; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.stat__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat__l { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Cards (shared) ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; min-width: 0;
  transition: translate 650ms var(--spring), border-color 320ms var(--ease-out), background-color 320ms var(--ease-out);
}
.card--hover:hover { translate: 0 -8px; border-color: #3B4459; background-color: var(--panel-2); }
.tag { align-self: flex-start; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; padding: 5px 10px; border-radius: 6px; }
.tag--blue { background: var(--blue-soft); color: var(--blue-text); }
.tag--coral { background: var(--coral-soft); color: var(--coral-text); }
.tag--green { background: var(--green-soft); color: var(--green-text); }
.tag--muted { background: #1B2030; color: var(--muted); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.services > .card { grid-column: span 2; }
.services > .card--wide { grid-column: span 3; }
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services > .card, .services > .card--wide { grid-column: span 1; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: minmax(0, 1fr); }
}
.svc-vis { border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; min-height: 152px; justify-content: center; }
.svc-link { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.svc-link .arrow { display: inline-block; transition: translate 600ms var(--spring); }
.svc-link:hover .arrow { translate: 6px 0; }

/* access flow visual */
.flow { display: flex; flex-direction: column; gap: 8px; }
.flow__step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; animation: flowstep 6s infinite; }
.flow__step small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 500; }
.flow__step:nth-child(2) { animation-delay: 1.5s; }
.flow__step:nth-child(3) { animation-delay: 3s; }
.flow__step:nth-child(4) { animation-delay: 4.5s; }
@keyframes flowstep {
  0% { transform: none; border-color: var(--line); background-color: var(--panel-2); animation-timing-function: var(--spring); }
  8% { transform: translateX(8px); border-color: var(--green); background-color: #16241E; animation-timing-function: var(--ease-out); }
  25% { transform: translateX(8px); border-color: var(--green); background-color: #16241E; animation-timing-function: var(--ease-out); }
  35%, 100% { transform: none; border-color: var(--line); background-color: var(--panel-2); }
}
.idp { display: flex; flex-wrap: wrap; gap: 6px; }
.idp span { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text); }

/* automation chips visual */
.usecases { display: flex; flex-wrap: wrap; gap: 8px; }
.usecase { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13.5px; }
.usecase b { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* jql visual */
.code { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--muted); overflow-x: auto; white-space: pre; }
.code .k { color: var(--blue-text); }
.code .f { color: var(--green-text); }
.code .s { color: var(--coral-text); }

/* bar visual */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.bar__track { height: 10px; border-radius: 5px; background: #1B2030; position: relative; }
.bar__fill { position: absolute; top: 0; bottom: 0; border-radius: 5px; }

/* ---------- Work ---------- */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 48px; }
@media (max-width: 400px) { .work { grid-template-columns: minmax(0, 1fr); } }
.work .h3 { font-size: 24px; line-height: 1.18; }
.work__meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.placeholder { border-style: dashed; background: transparent; }
.placeholder .h3, .placeholder p { color: var(--muted); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .why { grid-template-columns: minmax(0, 1fr); } }
.why__item { background: var(--ink); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.why__item h3 { font-size: 20px; font-weight: 700; }
.why__item p { font-size: 16px; color: var(--muted); }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about__photo { flex: 1 1 280px; max-width: 380px; aspect-ratio: 4 / 5; border-radius: 24px; background: linear-gradient(160deg, #1A2030, #12151C); border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }
.about__photo span { font-family: var(--font-display); font-weight: 800; font-size: 120px; color: #252C3D; letter-spacing: -0.05em; }
.about__photo small { position: absolute; bottom: 16px; left: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.about__copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about__copy p { color: var(--muted); max-width: 62ch; }
.about__facts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Testimonials ---------- */
.quotes { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.quote { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.2; letter-spacing: -0.02em; max-width: 30ch; }
.quote-by { font-size: 15px; color: var(--muted); }
.quotes__nav { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: scale 500ms var(--spring), border-color 250ms var(--ease-out); }
.icon-btn:hover { scale: 1.08; border-color: var(--muted); }
.icon-btn:active { scale: 0.92; }
.counter { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quote-slide { animation: quoteIn 520ms var(--ease-out); }
@keyframes quoteIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 48px; }
@media (max-width: 400px) { .posts { grid-template-columns: minmax(0, 1fr); } }
.post { padding: 0; overflow: hidden; gap: 0; text-decoration: none; }
.post:hover { color: var(--text); }
.post__cover { aspect-ratio: 16 / 9; max-width: 100%; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ink-2); }
.post__cover--blue { background: radial-gradient(circle at 80% 20%, rgba(110,155,255,0.35), transparent 55%), var(--ink-2); }
.post__cover--green { background: radial-gradient(circle at 20% 80%, rgba(94,211,154,0.3), transparent 55%), var(--ink-2); }
.post__cover--coral { background: radial-gradient(circle at 70% 70%, rgba(255,138,122,0.3), transparent 55%), var(--ink-2); }
.post__glyph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: clamp(15px, 2vw, 18px); color: var(--text); opacity: 0.9; padding: 16px; text-align: center; }
.post__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.post__excerpt { font-size: 15.5px; color: var(--muted); }
.post__meta { margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.post--soon { cursor: default; }
.post--soon:hover { translate: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 40px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; min-height: 72px; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-family: var(--font-display); font-size: clamp(18px, 2vw, 21px); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: rotate 650ms var(--spring); }
.faq details[open] .faq__icon { rotate: 45deg; }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); max-width: 70ch; }
.faq details[open] p { animation: faqIn 520ms var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- CTA + footer ---------- */
.cta { border-radius: 28px; background: var(--blue); color: var(--on-accent); padding: clamp(36px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 36px; }
.cta h2 { font-weight: 800; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -0.035em; color: var(--on-accent); }
.cta p { color: var(--on-accent-muted); max-width: 52ch; font-size: 18px; }
.cta__copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cta__actions { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.cta__actions .btn { justify-content: space-between; min-height: 56px; }

.site-footer { border-top: 1px solid #1C212C; padding-block: 56px 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__about { grid-column: 1 / -1; } }
.footer__about p { color: var(--muted); font-size: 15px; max-width: 36ch; margin-top: 14px; }
.footer__col h4 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col a { text-decoration: none; color: var(--text); }
.footer__col a:hover { color: var(--blue); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #1C212C; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }

/* ---------- Blog pages ---------- */
.blog-hero { padding-block: clamp(56px, 8vw, 96px) 32px; display: flex; flex-direction: column; gap: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.filter { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 260ms var(--ease-out), color 260ms var(--ease-out), border-color 260ms var(--ease-out), scale 500ms var(--spring); }
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter:active { scale: 0.95; }
.filter[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }

.article { max-width: 760px; margin: 0 auto; padding-block: clamp(48px, 7vw, 88px) 24px; }
.article__back { font-size: 15px; text-decoration: none; color: var(--muted); display: inline-flex; gap: 8px; }
.article__head { display: flex; flex-direction: column; gap: 20px; margin: 28px 0 40px; }
.article__head h1 { font-weight: 800; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.04; letter-spacing: -0.03em; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.prose { font-size: 18px; line-height: 1.75; color: #D5D9E2; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(25px, 3vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--text); margin-top: 2em; }
.prose h3 { font-size: 21px; font-weight: 700; color: var(--text); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose code { font-family: var(--font-mono); font-size: 0.86em; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.65; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose strong { color: var(--text); }
.callout { border: 1px solid #2C4A3D; background: #101A16; border-radius: 16px; padding: 20px 22px; font-size: 16.5px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--panel); }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- Scroll motion ----------
   Content is visible by default. main.js marks only below-the-fold elements as pending,
   then reveals them as they enter the viewport. Looping animations stay paused until on screen. */
.js .reveal.is-pending { opacity: 0; transform: translateY(28px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-out), transform 900ms var(--spring);
  transition-delay: var(--d, 0ms);
}
.js .loop, .js .loop * { animation-play-state: paused; }
.js .loop.is-playing, .js .loop.is-playing * { animation-play-state: running; }
.js .loop.is-playing .marquee:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal.is-pending { opacity: 1; transform: none; }
  .board__mover { left: calc((100% - 24px) / 3 * 2 + 24px); }
  .board__status { background: var(--green); }
}

/* ---------- Contact form ---------- */
.contact { margin-top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); }
.contact__intro { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.contact__form { flex: 999 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .contact__form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: var(--ink); color: var(--text); border: 1px solid var(--line-2);
  font: 16px/1.5 var(--font-body);
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.hp { position: absolute; left: -9999px; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 15px; }
.form-status[data-state="ok"] { color: var(--green-text); }
.form-status[data-state="error"] { color: var(--coral-text); }

/* ---------- Migrated article parts ---------- */
.callout__title { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 18px; }
.callout p { margin: 0; }
.prose a { color: var(--blue-text); }
.prose a:hover { color: var(--text); }
.patterns { display: flex; flex-direction: column; gap: 16px; }
.pattern { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 28px); }
.pattern__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pattern__head h2 { margin: 0; font-size: 22px; }
.pattern__num { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--green-soft); color: var(--green-text); display: grid; place-items: center; font-family: var(--font-mono); font-size: 15px; }
.pattern__grid { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 18px; margin: 0; font-size: 16px; line-height: 1.6; }
.pattern__grid dt { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-top: 4px; }
.pattern__grid dt.watch { color: var(--coral-text); }
.pattern__grid dd { margin: 0; min-width: 0; }
.pattern__grid code { white-space: normal; }
@media (max-width: 560px) { .pattern__grid { grid-template-columns: minmax(0, 1fr); gap: 4px; } .pattern__grid dd { margin-bottom: 10px; } }

@media print {
  .site-header, .site-footer, .skip, .print-btn, .article__back, .callout:last-child { display: none !important; }
  body { background: #fff; color: #111; }
  .prose, .prose strong, .pattern__head h2, .article__head h1 { color: #111; }
  .pattern, .callout { background: #fff; border-color: #ccc; break-inside: avoid; }
}

/* ---------- Project cards as links ---------- */
.work-card { text-decoration: none; color: var(--text); }
.work-card:hover { color: var(--text); }
.work-card:hover .arrow { translate: 6px 0; }
.article .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .article .stats { grid-template-columns: minmax(0, 1fr); } }
.work--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .work--two { grid-template-columns: minmax(0, 1fr); } }
