/* =========================================================
   DIGITGEN Technologies — site stylesheet
   Layout concept: a deep-space navy canvas where the logo's orbit
   ring is the recurring motif; content sits on quiet panels,
   colour is spent on the orbit and the primary call to action.
   ========================================================= */

:root {
  /* Colour — taken from the logo kit */
  --space:      #060B1A;   /* page background */
  --space-2:    #0A1228;   /* raised band */
  --panel:      #0E1833;   /* cards */
  --panel-2:    #13204A;   /* card hover / inputs */
  --line:       rgba(140, 170, 230, 0.14);
  --line-2:     rgba(140, 170, 230, 0.26);
  --fg:         #EAF0FC;
  --fg-2:       #A9B6D6;
  --fg-3:       #7483A8;
  --blue:       #355CAA;   /* logo orbit, deep end */
  --cyan:       #70CDDD;   /* logo orbit, light end */
  --red:        #F74040;   /* logo continents — used sparingly */
  --green:      #1DBF73;   /* logo wordmark */
  --on-cyan:    #04121A;

  /* Type */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.18rem, 1.1rem + 0.35vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-4:  clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem);

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--space);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 60;
  height: env(safe-area-inset-top, 0px); background: var(--space);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: var(--on-cyan); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 40px); margin-inline: auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section--band { background: var(--space-2); border-block: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cyan); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(247,64,64,.16); }

.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--fg-2); font-size: var(--step-1); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 600 var(--step-0)/1 var(--font-body); padding: 15px 22px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--cyan); color: var(--on-cyan); }
.btn--primary:hover { background: #8BDDEA; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(6, 11, 26, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(6, 11, 26, 0.9); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: auto; flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; letter-spacing: 0.01em; }
.brand-name b { color: var(--green); font-weight: 800; }
.brand-tag { font-size: .7rem; color: var(--fg-3); letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--fg-2); font-weight: 500; padding: 10px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.nav .btn { margin-left: 10px; padding: 12px 18px; color: var(--on-cyan); }
.nav .btn:hover { color: var(--on-cyan); background: #8BDDEA; }

.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--fg); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: calc(74px + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px var(--gutter-r) 28px var(--gutter-l);
    background: var(--space); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 1.1rem; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 7vw, 96px) 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(53,92,170,.35), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .orbit-word {
  background: linear-gradient(90deg, var(--cyan), #5E8FD6 60%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { font-size: var(--step-1); color: var(--fg-2); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--font-mono); font-size: var(--step--1); color: var(--fg-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 100%; min-width: 0; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual .core { position: absolute; left: 50%; top: 50%; width: 46%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 20px 60px rgba(53,92,170,.55)); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
}

/* ---------- Ticker ---------- */
.ticker { margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); padding-block: 18px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { font-family: var(--font-mono); color: var(--fg-2); white-space: nowrap; font-size: .95rem; display: inline-flex; align-items: center; gap: 48px; }
.ticker-track span::after { content: "✦"; color: var(--blue); font-size: .8rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Problem ---------- */
.seams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.seam { background: var(--space); padding: 30px 26px 34px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.seam-tag { font-family: var(--font-mono); font-size: var(--step--1); color: var(--red); }
.seam h3 { font-size: var(--step-1); }
.seam p { color: var(--fg-2); }
@media (max-width: 960px) { .seams { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .seams { grid-template-columns: 1fr; } }

/* ---------- Practices ---------- */
.practices { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.practice {
  grid-column: span 2; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.practice:hover { border-color: rgba(112,205,221,.45); transform: translateY(-3px); }
.practice--wide { grid-column: span 3; }
.practice-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(112,205,221,.1); color: var(--cyan); }
.practice-icon svg { width: 24px; height: 24px; }
.practice h3 { font-size: var(--step-2); }
.practice > p { color: var(--fg-2); }
.practice ul.deliver { display: grid; gap: 8px; color: var(--fg-2); font-size: .96rem; }
.practice ul.deliver li { display: flex; gap: 10px; }
.practice ul.deliver li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--cyan); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tag { font-family: var(--font-mono); font-size: .76rem; color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; }
@media (max-width: 1000px) { .practice, .practice--wide { grid-column: span 3; } }
@media (max-width: 680px)  { .practices { grid-template-columns: 1fr; } .practice, .practice--wide { grid-column: auto; } }

/* ---------- ServiceNow spotlight ---------- */
.spotlight { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.spotlight-copy { display: grid; gap: 22px; min-width: 0; }
.spotlight-copy h2 { font-size: var(--step-3); }
.spotlight-copy > p { color: var(--fg-2); font-size: var(--step-1); }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--fg-2); }
.checks li svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.checks strong { color: var(--fg); font-weight: 600; }

.flow-card { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .8rem; color: var(--fg-3); flex-wrap: wrap; }
.flow-top .ritm { color: var(--fg); }
.sla { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.sla i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(29,191,115,.5); } 50% { box-shadow: 0 0 0 6px rgba(29,191,115,0); } }
.flow-body { padding: 22px 20px; display: grid; gap: 4px; }
.flow-item { font-weight: 600; font-size: 1.05rem; margin-bottom: 14px; }
.flow-item small { display: block; color: var(--fg-3); font-weight: 400; font-size: .85rem; font-family: var(--font-mono); margin-top: 4px; }
.step { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start; position: relative; padding-bottom: 18px; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; background: var(--panel); position: relative; z-index: 1; transition: all .4s ease; }
.step-dot svg { width: 14px; height: 14px; opacity: 0; transition: opacity .3s; }
.step.is-done .step-dot { background: var(--green); border-color: var(--green); color: #04150C; }
.step.is-done .step-dot svg { opacity: 1; }
.step.is-active .step-dot { border-color: var(--cyan); box-shadow: 0 0 0 5px rgba(112,205,221,.15); }
.step-text { min-width: 0; }
.step-text b { display: block; font-weight: 600; }
.step-text span { color: var(--fg-3); font-size: .9rem; }
.step-time { font-family: var(--font-mono); font-size: .78rem; color: var(--fg-3); padding-top: 4px; white-space: nowrap; }
.flow-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.flow-foot div { padding: 14px 20px; display: grid; gap: 2px; min-width: 0; }
.flow-foot div + div { border-left: 1px solid var(--line); }
.flow-foot small { font-family: var(--font-mono); font-size: .72rem; color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; }
.flow-foot b { font-family: var(--font-display); font-size: 1.05rem; }
@media (max-width: 920px) { .spotlight { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .flow-foot { grid-template-columns: 1fr; } .flow-foot div + div { border-left: 0; border-top: 1px solid var(--line); } .step { grid-template-columns: 28px 1fr; } .step-time { grid-column: 2; padding-top: 0; } }

/* ---------- Approach ---------- */
.phases { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.phases::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); opacity: .5; }
.phase { display: grid; gap: 12px; padding-right: 18px; position: relative; min-width: 0; }
.phase-num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--space); border: 2px solid var(--blue); font-family: var(--font-mono); font-weight: 600; color: var(--cyan); position: relative; z-index: 1; }
.phase:last-child .phase-num { border-color: var(--green); color: var(--green); }
.phase h3 { font-size: var(--step-1); margin-top: 6px; }
.phase p { color: var(--fg-2); font-size: .95rem; }
.phase .gate { font-family: var(--font-mono); font-size: .76rem; color: var(--fg-3); border-top: 1px dashed var(--line-2); padding-top: 10px; }
@media (max-width: 1000px) {
  .phases { grid-template-columns: 1fr; gap: 26px; }
  .phases::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
  .phase { grid-template-columns: 48px 1fr; column-gap: 20px; padding-right: 0; }
  .phase > :not(.phase-num) { grid-column: 2; }
  .phase-num { grid-row: span 4; }
  .phase h3 { margin-top: 10px; }
}

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-item { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; background: linear-gradient(180deg, rgba(19,32,74,.55), rgba(14,24,51,0)); min-width: 0; }
.why-item .big { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); color: var(--cyan); line-height: 1; }
.why-item h3 { font-size: var(--step-1); }
.why-item p { color: var(--fg-2); }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.industry { padding: 28px 24px 30px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.industry:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.industry h3 { font-size: var(--step-1); }
.industry p { color: var(--fg-2); font-size: .96rem; }
@media (max-width: 900px) {
  .industries { grid-template-columns: repeat(2, 1fr); }
  .industry:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .industry:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .industries { grid-template-columns: 1fr; }
  .industry:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.model--featured { border-color: rgba(112,205,221,.5); background: linear-gradient(180deg, rgba(53,92,170,.28), var(--panel) 60%); }
.model-dur { font-family: var(--font-mono); font-size: var(--step--1); color: var(--cyan); }
.model h3 { font-size: var(--step-2); }
.model > p { color: var(--fg-2); }
.model ul { display: grid; gap: 8px; color: var(--fg-2); font-size: .96rem; }
.model ul li { display: flex; gap: 10px; }
.model ul li::before { content: "→"; color: var(--cyan); }
.model .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } }

/* ---------- Careers ---------- */
.careers { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.careers-copy { display: grid; gap: 18px; min-width: 0; }
.careers-copy h2 { font-size: var(--step-3); }
.careers-copy p { color: var(--fg-2); font-size: var(--step-1); }
.roles { display: grid; gap: 10px; }
.role { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; transition: border-color .2s; }
.role:hover { border-color: var(--cyan); }
.role b { font-weight: 600; display: block; }
.role span { color: var(--fg-3); font-size: .88rem; font-family: var(--font-mono); }
.role svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }
@media (max-width: 860px) { .careers { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; top: -30%; width: 900px; height: 900px; max-width: 140vw; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(53,92,170,.3), transparent 70%); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); position: relative; }
.contact-copy { display: grid; gap: 22px; align-content: start; min-width: 0; }
.contact-copy h2 { font-size: var(--step-4); letter-spacing: -0.035em; }
.contact-copy > p { color: var(--fg-2); font-size: var(--step-1); }
.contact-lines { display: grid; gap: 14px; margin-top: 8px; }
.contact-lines div { display: grid; gap: 2px; }
.contact-lines small { font-family: var(--font-mono); font-size: .74rem; color: var(--fg-3); text-transform: uppercase; letter-spacing: .08em; }
.contact-lines a, .contact-lines span { font-size: 1.1rem; text-decoration: none; user-select: all; }
.contact-lines a:hover { color: var(--cyan); }

.form { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; color: var(--fg-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--space); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(112,205,221,.14); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { cursor: pointer; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: .9rem; color: var(--fg-2); transition: all .2s; font-weight: 500; }
.chips input:checked + label { background: rgba(112,205,221,.14); border-color: var(--cyan); color: var(--fg); }
.chips input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form-note { font-size: .86rem; color: var(--fg-3); }
.form-status { font-size: .95rem; padding: 12px 14px; border-radius: 12px; background: rgba(29,191,115,.12); border: 1px solid rgba(29,191,115,.4); color: var(--fg); }
.form-status.is-error { background: rgba(247,64,64,.1); border-color: rgba(247,64,64,.45); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 56px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand { display: grid; gap: 16px; align-content: start; max-width: 340px; }
.footer-brand p { color: var(--fg-3); font-size: .95rem; }
.footer h4 { font-family: var(--font-mono); font-size: .76rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { text-decoration: none; color: var(--fg-2); }
.footer ul a:hover { color: var(--cyan); }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--fg-3); font-size: .88rem; }
.footer-base a { color: var(--fg-3); text-decoration: none; }
.footer-base a:hover { color: var(--fg); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--fg-2); transition: all .2s; }
.socials a:hover { color: var(--cyan); border-color: var(--cyan); }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding-block: clamp(56px, 8vw, 110px); }
.prose { max-width: 70ch; display: grid; gap: 18px; color: var(--fg-2); }
.prose h1 { font-size: var(--step-3); color: var(--fg); margin-bottom: 8px; }
.prose h2 { font-size: var(--step-1); color: var(--fg); margin-top: 18px; }
.prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--cyan); }
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 22px; justify-items: center; }
.notfound .code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 18vw, 11rem); line-height: .9; background: linear-gradient(90deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--fg-2); max-width: 44ch; }

/* ---------- Motion ---------- */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.pre { opacity: .001; transform: translateY(18px); }

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