/* iDream Technologies — site styles */

:root {
  /* Single black theme, accented with the logo's orange */
  --bg: #000000;
  --surface: #0E0E0E;
  --ink: #F2F2F2;
  --muted: #A6A6A6;
  --line: #242424;
  --accent: #EF9234;
  --accent-ink: #160C02;
  --accent-soft: #1A1A1A;
  --night: #000000;
  --night-2: #0E0E0E;
  --night-line: #262626;
  --night-ink: #F2F2F2;
  --night-muted: #A6A6A6;
  --glow: #7DB9F2;
  --amber: #F2A93B;
  --cta: #EF9234;
  --cta-hover: #F5A957;
  --cta-ink: #160C02;
  --header-bg: #000000;
  --header-ink: #FFFFFF;
  --header-muted: #B3B3B3;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font: 500 0.78rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font: 600 0.98rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--cta-hover); }
.btn-ghost { background: transparent; color: var(--night-ink); border-color: var(--night-line); }
.btn-ghost:hover { background: var(--night-2); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--night-line);
  color: var(--header-ink);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { display: block; height: 60px; width: auto; }
@media (max-width: 420px) { .brand img { height: 50px; } }
.brand-text { font: 700 1.12rem/1 var(--font); letter-spacing: -0.01em; color: var(--night-ink); margin: 0; }
.brand-text span { font-weight: 400; color: var(--night-muted); margin-left: 4px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--header-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover, .site-nav a.active { color: var(--header-ink); }
.site-nav a.active:not(.btn) { box-shadow: inset 0 -2px 0 var(--cta); }
.site-nav a.btn { color: var(--cta-ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--header-ink); }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease; }
.bars { margin: auto; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--night-line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--night-line); font-size: 1rem; }
  .site-nav a.active:not(.btn) { box-shadow: none; }
  .site-nav a.btn { margin-top: 14px; border-bottom: 0; }
}

/* Hero */
.hero {
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(125, 185, 242, 0.10), transparent 60%),
    radial-gradient(600px 360px at 0% 100%, rgba(239, 146, 52, 0.10), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--night-ink);
  padding-block: clamp(56px, 9vw, 104px) 40px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { min-width: 0; }
.hero .eyebrow { color: var(--cta); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.025em; }
.lede { margin-top: 22px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--night-muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.topology {
  margin: 0; min-width: 0;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--night-line);
  border-radius: 18px;
  padding: 16px 16px 10px;
}
.topology figcaption { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 6px; }
.topology svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.topology .links path { fill: none; stroke: var(--glow); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: .75; animation: flow 1.6s linear infinite; }
.topology .tele path { fill: none; stroke: var(--amber); stroke-width: 1.2; stroke-dasharray: 2 5; opacity: .55; }
.topology .node rect { fill: var(--night-2); stroke: var(--night-line); stroke-width: 1.2; }
.topology .node.core rect { stroke: var(--glow); stroke-width: 1.4; fill: rgba(125, 185, 242, 0.08); }
.topology text { fill: var(--night-ink); font-size: 13px; font-weight: 600; text-anchor: middle; }
.topology text.sub { fill: var(--night-muted); font-size: 10.5px; font-weight: 400; font-family: var(--mono); }
.topology text.pill-t { fill: var(--amber); }
.topology .aiops rect { fill: rgba(242, 169, 59, 0.07); stroke: rgba(242, 169, 59, 0.45); stroke-width: 1.2; }
.topology .aiops text { text-anchor: start; }
.topology .aiops .lbl { fill: var(--amber); font-size: 12.5px; }
.topology .aiops .sub2 { fill: var(--night-muted); font-size: 10.5px; font-weight: 400; font-family: var(--mono); }
.topology .aiops polyline { fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linejoin: round; }
.topology .pulse { fill: var(--amber); animation: pulse 2s ease-in-out infinite; transform-origin: 38px 406px; }
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .topology .links path, .topology .pulse { animation: none; } }

.platform-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .topology { max-width: 640px; }
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section { border-top: 1px solid var(--line); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2, .about-copy h2, .contact-copy h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
.section-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.08rem; max-width: 62ch; }

.band { background: var(--night); color: var(--night-ink); }
.band .eyebrow { color: var(--cta); }
.band .section-head p:not(.eyebrow), .band .contact-copy > p:not(.eyebrow) { color: var(--night-muted); }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  min-width: 0;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-ix { font-size: 0.8rem; color: var(--accent); }
.card h3 { font-size: 1.12rem; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font: 500 0.78rem/1 var(--mono);
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
}

/* AI list */
.ai-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--night-line); }
.ai-list li { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--night-line); min-width: 0; }
.ai-list li > span { color: var(--cta); font-size: 0.9rem; padding-top: 3px; flex: none; }
.ai-list h3 { font-size: 1.15rem; font-weight: 600; }
.ai-list p { color: var(--night-muted); margin-top: 8px; }
.ai-list li:last-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .ai-list { grid-template-columns: 1fr; } }

.guardrails {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  padding: 20px 24px;
  border: 1px solid rgba(242, 169, 59, 0.4);
  background: rgba(242, 169, 59, 0.06);
  border-radius: var(--radius);
}
.guardrails > p { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); }
.guardrails ul { display: flex; flex-wrap: wrap; gap: 8px; }
.guardrails li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--night-line); font-size: 0.92rem; }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 2px solid var(--line); min-width: 0; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 42px; height: 2px; background: var(--accent); }
.step-n { font-size: 0.8rem; color: var(--accent); }
.steps h3 { font-size: 1.08rem; font-weight: 600; margin-top: 6px; }
.steps p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.paths {
  margin-top: clamp(48px, 6vw, 72px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.paths-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 14px; }
.paths ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.paths li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
  font-size: 0.97rem;
}
.paths li span:first-child { color: var(--muted); }
.paths li span:last-child { font-weight: 600; }
.paths .arrow { color: var(--accent); font-family: var(--mono); }
@media (max-width: 820px) { .paths ul { grid-template-columns: 1fr; } }

/* Stack */
/* Technology: layered stack */
.tech {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(239, 146, 52, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(125, 185, 242, 0.06), transparent 70%),
    var(--bg);
  border-block: 1px solid var(--line);
}
.tech::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.tech .wrap { position: relative; }
.tech-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-bottom: clamp(36px, 5vw, 56px); }
.tech-head .section-head { margin-bottom: 0; flex: 1 1 520px; min-width: 0; }
.tech-stats { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.tech-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: rgba(14, 14, 14, 0.8); min-width: 120px; }
.tech-stats dt { font: 500 0.7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tech-stats dd { margin: 6px 0 0; font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }

.layer-ico {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 12px; border: 1px solid rgba(239, 146, 52, 0.35);
  background: linear-gradient(160deg, rgba(239, 146, 52, 0.18), rgba(239, 146, 52, 0.03));
  box-shadow: 0 0 24px rgba(239, 146, 52, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--cta);
}
.layer-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.tech-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 18px; }
.layers { display: grid; gap: 14px; position: relative; }
.layers::before {
  content: ""; position: absolute; left: 47px; top: 40px; bottom: 40px; width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(239, 146, 52, 0.55) 0 6px, transparent 6px 12px);
  background-size: 2px 24px; animation: rail 1.6s linear infinite;
}
@keyframes rail { to { background-position: 0 24px; } }
.layer {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px;
  padding: 22px 24px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #121212, #0A0A0A);
  transition: border-color .25s ease, transform .25s ease;
}
.layer:hover { border-color: rgba(239, 146, 52, 0.55); transform: translateX(3px); }
.layer-id { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.layer-no { font: 500 0.72rem/1 var(--mono); color: var(--muted); letter-spacing: 0.08em; background: var(--bg); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); }
.layer-body { min-width: 0; display: grid; gap: 14px; }
.layer-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.layer h3, .across h3, .delivery h3 { font-size: 1.12rem; font-weight: 600; }
.layer-top p, .across > p:not(.across-tag), .delivery-head p { color: var(--muted); font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 0.8rem/1 var(--mono); color: #DADADA;
  padding: 8px 11px; border-radius: 999px;
  border: 1px solid #2C2C2C; background: rgba(255, 255, 255, 0.03);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 8px rgba(239, 146, 52, 0.7); }
.chips li:hover { border-color: rgba(239, 146, 52, 0.6); color: #fff; background: rgba(239, 146, 52, 0.08); }

.across {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(239, 146, 52, 0.35);
  background: linear-gradient(170deg, rgba(239, 146, 52, 0.12), rgba(14, 14, 14, 0.95) 45%);
}
.across::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--cta), rgba(239, 146, 52, 0)); }
.across-tag { font: 500 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--cta); }
.across .chips li::before { background: var(--glow); box-shadow: 0 0 8px rgba(125, 185, 242, 0.7); }
.spark { margin-top: auto; width: 100%; height: 48px; }
.spark path { fill: none; stroke: var(--cta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: spark 3.2s ease-out .4s forwards; }
@keyframes spark { to { stroke-dashoffset: 0; } }

.delivery {
  margin-top: 18px; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, #121212, #0A0A0A);
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px 40px; align-items: start;
}
.delivery-head { display: flex; gap: 16px; align-items: flex-start; }
.delivery-head > div { display: grid; gap: 6px; min-width: 0; }
.delivery-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.delivery-list li { position: relative; padding-left: 26px; font-size: 0.95rem; color: #DADADA; line-height: 1.4; }
.delivery-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 5px;
  border: 1px solid rgba(239, 146, 52, 0.5); background: rgba(239, 146, 52, 0.12);
}
.delivery-list li::after {
  content: ""; position: absolute; left: 5px; top: 5px; width: 6px; height: 8px;
  border: solid var(--cta); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

@media (max-width: 1000px) {
  .tech-grid { grid-template-columns: 1fr; }
  .delivery { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .delivery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .layer { grid-template-columns: 1fr; padding: 20px; }
  .layer-id { flex-direction: row; }
  .layers::before { display: none; }
  .delivery-list { grid-template-columns: 1fr; }
  .tech-stats div { flex: 1 1 0; min-width: 0; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .layers::before, .spark path { animation: none; }
  .spark path { stroke-dashoffset: 0; }
}

/* About */
.about-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.founder {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 26px; text-align: center;
  position: sticky; top: 96px;
}
.monogram {
  width: 112px; height: 112px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2A2A2A, #000000);
  border: 1px solid var(--line);
  color: var(--cta);
  font: 600 2.2rem/1 var(--mono);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.founder-name { font-weight: 700; font-size: 1.15rem; }
.founder-role { color: var(--muted); margin-top: 4px; font-size: 0.95rem; }
.founder-loc { margin-top: 12px; font-size: 0.8rem; color: var(--accent); }
.about-copy > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); max-width: 64ch; }
.expertise { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.expertise li { position: relative; padding-left: 22px; font-weight: 500; font-size: 0.98rem; }
.expertise li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .founder { position: static; }
}
@media (max-width: 520px) { .expertise { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-copy > p:not(.eyebrow) { margin-top: 18px; }
.contact-list { margin: 32px 0 0; display: grid; gap: 16px; }
.contact-list div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.contact-list dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--night-muted); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { color: var(--night-ink); text-decoration-color: var(--glow); }

.contact-form {
  display: grid; gap: 16px;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 32px);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: 0.88rem; font-weight: 500; color: var(--night-muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font);
  color: var(--night-ink);
  background: var(--night);
  border: 1px solid var(--night-line);
  border-radius: 10px;
  padding: 12px 14px;
  color-scheme: dark;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 3px rgba(239, 146, 52, 0.22); }
.contact-form [aria-invalid="true"] { border-color: #F07C6C; }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 0.95rem; color: var(--night-muted); }
.form-status.ok { color: var(--glow); }
.form-status.err { color: #F7A193; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); padding-block: 40px 28px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot-tag { font: 400 0.78rem/1.6 var(--mono); margin-top: 10px; max-width: 46ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer nav a { color: var(--night-muted); text-decoration: none; font-size: 0.92rem; }
.site-footer nav a:hover { color: var(--night-ink); }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: 0.82rem; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
