/* MIT — Microsystem Information Technologies
   Theme: soft blue neumorphism. One blue-tinted surface, raised and inset shapes,
   MIT blue as the single accent. The hero stays a dark dusk panel. */

:root {
  --surface: #dfe5f6;
  --blue: #3557f4;
  --blue-dark: #2442d6;
  --ink: #14204f;
  --muted: #47538a;
  --line: rgba(20, 32, 79, .14);
  --sh-d: rgba(130, 148, 204, .6);
  --sh-l: rgba(255, 255, 255, .95);

  /* hero only (dark panel over the illustration) */
  --midnight: #070d24;
  --cloud: #f6efe3;
  --sun: #ffb547;

  --raised: 10px 10px 22px var(--sh-d), -10px -10px 22px var(--sh-l);
  --raised-sm: 6px 6px 13px var(--sh-d), -6px -6px 13px var(--sh-l);
  --inset: inset 6px 6px 12px var(--sh-d), inset -6px -6px 12px var(--sh-l);
  --inset-sm: inset 3px 3px 6px var(--sh-d), inset -3px -3px 6px var(--sh-l);

  --font: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--cloud); }

.container { width: min(1200px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--surface); color: var(--ink); z-index: 9999; left: 12px; top: 12px; }

.section { padding: clamp(80px, 11vw, 160px) 0; }

/* Headings */
.h-section {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 720;
  font-stretch: 90%;
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.lede { max-width: 34em; color: var(--muted); font-size: 1.125rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(223, 229, 246, .84);
  border-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header:not(.scrolled) .site-nav a:not(.nav-cta) { color: var(--cloud); }
.site-header:not(.scrolled) .site-nav a:not(.nav-cta):hover { color: var(--sun); }
.site-header:not(.scrolled) .brand-name { color: rgba(246, 239, 227, .85); border-color: rgba(246, 239, 227, .28); }
.site-header:not(.scrolled) .nav-toggle span:not(.sr-only) { background: var(--cloud); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { width: 74px; height: auto; }
.brand-name { font-size: .8125rem; line-height: 1.25; color: var(--muted); max-width: 11em; padding-left: 14px; border-left: 1px solid var(--line); }

.site-nav { display: flex; align-items: center; gap: 30px; font-size: .9375rem; font-weight: 500; }
.site-nav a { color: var(--ink); transition: color .2s ease; }
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-cta { padding: 10px 18px; background: var(--blue); color: #fff; font-weight: 650; border-radius: 12px; box-shadow: var(--raised-sm); transition: box-shadow .2s ease, background .2s ease; }
.site-nav .nav-cta:hover { background: var(--blue-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 14px; cursor: pointer;
  font-size: 1rem; font-weight: 650;
  box-shadow: var(--raised-sm);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: none; box-shadow: var(--inset-sm); }
.button-sun, .button-blue { background: var(--blue); color: #fff; }
.button-sun:hover, .button-blue:hover { background: var(--blue-dark); }
.text-link { font-weight: 600; padding-bottom: 3px; border-bottom: 1.5px solid var(--blue); transition: color .2s ease; }
.text-link:hover { color: var(--blue); }

/* Hero (dark dusk panel, unchanged composition) */
.hero {
  position: relative;
  min-height: max(66.67vw, 640px);
  padding-top: clamp(104px, 9.5vw, 170px);
  background: var(--midnight);
  color: var(--cloud);
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
  box-shadow: 0 24px 48px var(--sh-d);
}
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; animation: settle 2.8s cubic-bezier(.2, .6, .2, 1) both; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,13,36,.7) 0%, rgba(7,13,36,0) 20%),
    linear-gradient(90deg, rgba(7,13,36,.62) 0%, rgba(7,13,36,.3) 38%, rgba(7,13,36,0) 62%),
    linear-gradient(180deg, rgba(7,13,36,0) 85%, rgba(7,13,36,.55) 100%);
}
.hero-copy { position: relative; }
.hero h1 {
  max-width: 9em;
  margin-bottom: clamp(20px, 2.4vw, 36px);
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 760;
  font-stretch: 88%;
  line-height: .95;
  letter-spacing: -.04em;
  text-shadow: 0 2px 30px rgba(7, 13, 36, .35);
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .line > span { display: block; transform: translateY(110%); animation: rise .95s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.2s + var(--i) * .13s); }
.hero-lead { max-width: 29em; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.5; color: rgba(246, 239, 227, .92); animation: fade .9s ease .85s both; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 30px; margin-top: 24px; animation: fade .9s ease 1s both; }
.hero .button { box-shadow: 0 10px 26px rgba(7, 13, 36, .5); }
.hero .text-link { color: var(--cloud); border-color: var(--sun); }
.hero .text-link:hover { color: var(--sun); }
.hero-note {
  position: absolute; right: max(var(--gutter), calc((100% - 1200px) / 2)); bottom: clamp(36px, 5vw, 80px);
  display: flex; align-items: center; gap: 14px;
  max-width: 22em; margin: 0; font-size: .9375rem; color: rgba(246, 239, 227, .86);
  animation: fade .9s ease 1.3s both;
}
.hero-note::before { content: ""; flex: none; width: 44px; height: 2px; background: var(--sun); }

@keyframes rise { to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.07); filter: brightness(.5); } to { transform: none; filter: none; } }

/* Statement */
.statement { padding: clamp(70px, 9vw, 130px) 0 clamp(80px, 10vw, 150px); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.statement h2 { margin: 0; font-size: clamp(2.6rem, 6.2vw, 6rem); font-weight: 740; font-stretch: 88%; line-height: .98; letter-spacing: -.04em; }
.statement h2 span { display: block; color: var(--blue); }
.statement p { margin: 0; color: var(--muted); font-size: 1.125rem; }

/* Services */
.section-heading { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.6vw, 36px); }
.service-card { display: flex; flex-direction: column; min-height: 290px; padding: clamp(24px, 3vw, 36px); background: var(--surface); border-radius: 26px; box-shadow: var(--raised); transition: box-shadow .25s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.service-card:hover { box-shadow: 14px 14px 30px var(--sh-d), -14px -14px 30px var(--sh-l); }
.service-icon { width: 64px; height: 64px; padding: 16px; margin-bottom: 40px; border-radius: 50%; box-shadow: var(--inset-sm); fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: auto 0 10px; font-size: 1.5rem; font-weight: 680; letter-spacing: -.02em; line-height: 1.15; }
.service-card p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 22em; }
.service-card-end { background: var(--blue); color: #fff; box-shadow: 10px 10px 22px rgba(53, 87, 244, .4), -10px -10px 22px var(--sh-l); }
.service-card-end:hover { box-shadow: 14px 14px 30px rgba(53, 87, 244, .45), -14px -14px 30px var(--sh-l); }
.service-card-end .service-icon { stroke: #fff; box-shadow: inset 3px 3px 6px rgba(20, 40, 150, .55), inset -3px -3px 6px rgba(120, 150, 255, .6); }
.service-card-end p { color: rgba(255, 255, 255, .88); }

/* Breaks between sections: a pressed-in groove, plus alternate tinted bands */
.services, .process, .domains, .about, .submit { position: relative; }
.services::before, .services::after, .process::before, .domains::before, .about::before, .submit::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: min(1200px, calc(100% - var(--gutter) * 2)); height: 8px; border-radius: 8px; box-shadow: var(--inset-sm);
}
.services::before, .process::before, .domains::before, .about::before, .submit::before { top: 0; }
.services::after { bottom: 0; }
.services, .domains { background: #d5ddf2; }

/* Idea interlude */
.interlude { width: min(1200px, calc(100% - var(--gutter) * 2)); margin: clamp(48px, 7vw, 96px) auto clamp(48px, 7vw, 96px); border-radius: clamp(24px, 3vw, 40px); overflow: hidden; box-shadow: var(--raised); }
.interlude img { width: 100%; aspect-ratio: 16 / 9; max-height: 680px; object-fit: cover; object-position: 50% 30%; }

/* Process */
.process { padding-top: clamp(80px, 11vw, 160px); }
.process-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.process-head { position: sticky; top: 120px; }
.process-list { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.process-list li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding-bottom: 48px; counter-increment: step; }
.process-list li:last-child { padding-bottom: 0; }
.process-list li::before {
  content: counter(step);
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--surface); box-shadow: var(--raised-sm);
  color: var(--blue); font-weight: 700; font-size: 1.125rem; position: relative; z-index: 1;
}
.process-list li:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 52px; bottom: 0; width: 4px; border-radius: 4px; box-shadow: var(--inset-sm); }
.process-list h3 { margin: 10px 0 8px; font-size: 1.625rem; font-weight: 680; letter-spacing: -.02em; line-height: 1.15; }
.process-list p { margin: 0; color: var(--muted); max-width: 30em; }

/* Domains */
.domains { padding: clamp(80px, 11vw, 160px) 0; }
.domains-head { padding-bottom: clamp(24px, 4vw, 48px); }
.domains-art { width: min(1200px, calc(100% - var(--gutter) * 2)); margin: 0 auto; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; box-shadow: var(--raised); }
.domains-art img { width: 100%; aspect-ratio: 1536 / 772; max-height: 640px; object-fit: cover; object-position: 50% 40%; }
.domain-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.2vw, 30px); margin: clamp(40px, 6vw, 72px) auto 0; padding: 0; list-style: none; }
.domain-list li { padding: 22px 20px 24px; background: var(--surface); border-radius: 20px; box-shadow: var(--raised-sm); }
.domain-list h3 { margin-bottom: 8px; font-size: 1.375rem; font-weight: 680; letter-spacing: -.02em; line-height: 1.15; }
.domain-list p { margin: 0; color: var(--muted); font-size: .9688rem; line-height: 1.5; }

/* About */
.about { background: radial-gradient(40% 60% at 12% 50%, rgba(53, 87, 244, .16), rgba(53, 87, 244, 0) 100%), var(--surface); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 8vw, 120px); align-items: center; }
.about-mark { padding: clamp(32px, 5vw, 64px); border-radius: 34px; background: var(--surface); box-shadow: var(--raised); }
.about-mark img { width: min(100%, 360px); height: auto; }
.about-mark p { margin: 22px 0 0; font-size: 1.25rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.about-copy p:not(.h-section) { max-width: 32em; color: var(--muted); }

/* Submit */
.submit { background: radial-gradient(60% 40% at 50% 100%, rgba(53, 87, 244, .16), rgba(53, 87, 244, 0) 100%), var(--surface); }
.submit-shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.submit-copy .lede { margin-bottom: 40px; }
.privacy-note { display: flex; align-items: flex-start; gap: 14px; max-width: 24em; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.privacy-note > span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: var(--inset-sm); color: var(--blue); font-size: .8125rem; font-weight: 700; }
.privacy-note p { margin: 0; }

.idea-form { padding: clamp(24px, 4vw, 44px); background: var(--blue); color: #fff; border-radius: 30px; box-shadow: 10px 10px 22px rgba(53, 87, 244, .45), -10px -10px 22px var(--sh-l); }
.idea-form label { display: block; margin-bottom: 20px; font-size: .9688rem; font-weight: 650; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.idea-form input, .idea-form select, .idea-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 14px 16px;
  border: 0; border-radius: 14px; background: var(--blue); color: #fff;
  box-shadow: inset 4px 4px 9px rgba(16, 36, 160, .6), inset -4px -4px 9px rgba(125, 152, 255, .6);
  font-weight: 450; resize: vertical;
}
.idea-form option { color: var(--ink); background: #fff; }
.idea-form input::placeholder, .idea-form textarea::placeholder { color: rgba(255, 255, 255, .78); }
.idea-form input:focus, .idea-form select:focus, .idea-form textarea:focus { outline: none; box-shadow: inset 4px 4px 9px rgba(16, 36, 160, .6), inset -4px -4px 9px rgba(125, 152, 255, .6), 0 0 0 2px #fff; }
.idea-form :focus-visible { outline-color: #fff; }
.idea-form .check-row { display: flex; gap: 12px; align-items: flex-start; font-weight: 450; font-size: .9375rem; }
.idea-form .check-row input { width: 20px; height: 20px; margin: 2px 0 0; padding: 0; flex: none; accent-color: #fff; box-shadow: none; }
.idea-form .button { width: 100%; background: var(--surface); color: var(--ink); box-shadow: 6px 6px 14px rgba(16, 36, 160, .55), -5px -5px 12px rgba(125, 152, 255, .55); }
.idea-form .button:hover { background: #fff; }
.idea-form .button:active { box-shadow: inset 3px 3px 6px var(--sh-d), inset -3px -3px 6px var(--sh-l); }
.form-status { min-height: 24px; margin: 14px 0 0; font-size: .9375rem; font-weight: 600; }
.form-status.success { color: #c9ffd9; }
.form-status.error { color: #ffd6d2; }
.form-disclaimer { margin: 8px 0 0; color: rgba(255, 255, 255, .88); font-size: .8125rem; }

/* Footer */
.site-footer { background: var(--surface); padding: 64px 0 28px; box-shadow: inset 0 10px 18px -10px var(--sh-d); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.footer-brand img { width: 84px; height: auto; }
.footer-note { margin: 18px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 12px 28px; font-size: .9688rem; }
.footer-links a { color: var(--ink); transition: color .2s ease; }
.footer-links a:hover { color: var(--blue); }
.copyright { grid-column: 1 / -1; margin: 20px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

/* Legal pages */
.legal { padding: clamp(130px, 14vw, 190px) 0 clamp(70px, 9vw, 120px); background: radial-gradient(70% 40% at 80% 0%, rgba(53,87,244,.16), rgba(53,87,244,0) 70%), var(--surface); }
.legal-body { max-width: 720px; }
.legal h1 { margin-bottom: 18px; font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 740; font-stretch: 88%; line-height: .98; letter-spacing: -.04em; }
.legal h2 { margin: 44px 0 10px; font-size: 1.5rem; font-weight: 680; letter-spacing: -.02em; }
.legal p { color: var(--muted); }
.legal .updated { color: var(--blue); font-weight: 600; margin-bottom: 36px; }

/* Responsive */
@media (max-width: 1000px) {
  .domain-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .brand-name { display: none; }
  .site-nav {
    position: absolute; left: var(--gutter); right: var(--gutter); top: 84px; padding: 22px;
    display: none; flex-direction: column; align-items: stretch; gap: 18px;
    background: var(--surface); border-radius: 20px; box-shadow: var(--raised);
  }
  .site-nav.open { display: flex; }
  .site-nav .nav-cta { text-align: center; }
  .site-header .site-nav a:not(.nav-cta), .site-header:not(.scrolled) .site-nav a:not(.nav-cta) { color: var(--ink); }
  .nav-toggle { display: block; }

  .statement-grid, .process-layout, .about-grid, .submit-shell { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .about-mark img { width: min(70%, 300px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .legal-row { flex-direction: column-reverse; align-items: flex-start; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; display: flex; flex-direction: column; padding-top: 108px; }
  .hero-copy { z-index: 1; }
  .hero h1 { font-size: clamp(2.9rem, 13.5vw, 4.4rem); max-width: none; }
  .hero-art { position: relative; inset: auto; z-index: 0; order: 2; height: 118vw; max-height: 620px; margin-top: -40px; }
  .hero-art img { object-position: 22% 100%; }
  .hero-art::after { background: linear-gradient(180deg, var(--midnight) 0%, rgba(7,13,36,0) 26%, rgba(7,13,36,0) 82%, var(--midnight) 100%); }
  .hero-note { position: static; order: 3; margin: 4px var(--gutter) 44px; }
  .hero-actions { margin-bottom: 8px; }
  .interlude img { aspect-ratio: 4 / 3; object-position: 30% 40%; }
}
@media (max-width: 600px) {
  .service-grid, .form-row { grid-template-columns: 1fr; }
  .contact-list { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-btn { width: 100%; }
  .service-card { min-height: 240px; }
  .service-icon { margin-bottom: 32px; }
  .domain-list { grid-template-columns: 1fr 1fr; }
  .domains-art img { aspect-ratio: 4 / 3; object-position: 55% 40%; }
  .process-list li { grid-template-columns: 52px 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero h1 .line > span { transform: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .scroll-progress, .sparks { display: none; }
}


/* ============ Footer: contact buttons + legal row ============ */
.contact-bar { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-title { margin: 0 0 18px; font-size: .875rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.contact-btn {
  --brand: var(--blue);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 24px 8px 10px;
  border-radius: 20px; background: var(--surface); color: var(--ink);
  font-weight: 650; font-size: 1rem;
  box-shadow: var(--raised-sm);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, color .25s ease;
}
.contact-btn .ico {
  position: relative; flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--brand); box-shadow: var(--inset-sm);
  transition: background .25s ease, color .25s ease, transform .35s cubic-bezier(.3, 1.6, .4, 1);
}
.contact-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-btn:hover { transform: translateY(-4px); box-shadow: 10px 12px 22px var(--sh-d), -8px -8px 18px var(--sh-l); }
.contact-btn:hover .ico { background: var(--brand); color: #fff; transform: rotate(-10deg) scale(1.08); }
.contact-btn:active { transform: translateY(0); box-shadow: var(--inset-sm); }
.contact-btn:focus-visible { outline-color: var(--brand); }
.ico.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 var(--brand); opacity: .55;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { to { box-shadow: 0 0 0 14px transparent; opacity: 0; } }

.legal-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-row .copyright { grid-column: auto; margin: 0; padding: 0; border: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9688rem; }
.legal-links a { padding: 8px 0; transition: color .2s ease; }
.legal-links a:hover { color: var(--blue); }

/* ============ Scroll animation ============ */
.scroll-progress {
  position: fixed; inset: 0 0 auto; z-index: 1100; height: 3px;
  background: linear-gradient(90deg, var(--blue), #7b93ff 55%, var(--sun));
  transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  pointer-events: none;
}

/* Elements start hidden only when JS is running, so the page never ends up blank. */
.js .reveal {
  opacity: 0; transform: translateY(44px) scale(.98);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js .reveal.from-left  { transform: translateX(-56px); }
.js .reveal.from-right { transform: translateX(56px); }
.js .reveal.zoom       { transform: scale(.92); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in { will-change: auto; }

/* Pictures: unveil with a soft clip, then drift slowly while scrolling */
.js .interlude.reveal, .js .domains-art.reveal { clip-path: inset(0 0 14% 0 round 40px); }
.js .interlude.reveal.in, .js .domains-art.reveal.in { clip-path: inset(0 0 0 0 round 40px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1), clip-path 1.2s cubic-bezier(.2,.8,.2,1); }
.interlude img, .domains-art img { transform: translateY(var(--drift, 0px)) scale(1.12); will-change: transform; }

/* Process: the connecting line fills in as you scroll, numbers light up when reached */
.process-list li:not(:last-child)::after {
  background: linear-gradient(180deg, var(--blue) calc(var(--fill, 0) * 100%), transparent 0);
}
.process-list li::before { transition: background .4s ease, color .4s ease, transform .5s cubic-bezier(.3, 1.6, .4, 1); }
.process-list li.active::before { background: var(--blue); color: #fff; transform: scale(1.12); }

/* ============ Creative animation ============ */
/* Rising embers in the hero: ideas drifting up into the sunrise */
.sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sparks i {
  position: absolute; bottom: -12px; left: var(--x); width: var(--s); height: var(--s);
  border-radius: 50%; background: var(--sun);
  box-shadow: 0 0 12px 3px rgba(255, 181, 71, .65);
  opacity: 0;
  animation: ember var(--t) linear var(--dl) infinite;
}
@keyframes ember {
  0%   { transform: translate(0, 0) scale(.6); opacity: 0; }
  12%  { opacity: .9; }
  100% { transform: translate(var(--dx), -78vh) scale(1); opacity: 0; }
}
.hero-copy, .hero-note { will-change: transform, opacity; }
.hero-art img { will-change: transform; }

/* Gradient shimmer across the highlighted statement line */
.statement h2 span {
  background: linear-gradient(100deg, var(--blue) 20%, #8aa0ff 45%, var(--blue) 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* Service icons bob gently, staggered */
.service-icon { animation: bob 4.5s ease-in-out infinite; }
.service-card:nth-child(2n) .service-icon { animation-delay: -1.2s; }
.service-card:nth-child(3n) .service-icon { animation-delay: -2.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Cards respond to the pointer with a light 3D tilt (set from script.js) */
.service-card, .domain-list li { transform-style: preserve-3d; }
.service-card.tilting, .domain-list li.tilting { transition: box-shadow .25s ease, transform .12s linear; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }

/* Sweeping shine on primary call-to-action buttons */
.button-sun, .nav-cta { position: relative; overflow: hidden; }
.button-sun::after, .nav-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out 2s infinite;
}
@keyframes shine { 0% { left: -60%; } 28%, 100% { left: 140%; } }

/* Domain cards lift on hover */
.domain-list li { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
.domain-list li:hover { box-shadow: var(--raised); }

@media (max-width: 600px) {
  .contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .contact-btn { width: 100%; padding-right: 14px; gap: 10px; }
  .legal-row { flex-direction: column-reverse; align-items: flex-start; }
}


/* ============ Team ============ */
.team { background: radial-gradient(45% 55% at 90% 10%, rgba(53, 87, 244, .12), rgba(53, 87, 244, 0) 100%), var(--surface); }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.team-card {
  flex: 1 1 200px; max-width: 232px; padding: 14px 14px 22px; text-align: center;
  border-radius: 28px; background: var(--surface); box-shadow: var(--raised-sm);
  transition: box-shadow .3s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.team-card:hover { box-shadow: var(--raised); }
.team-photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 20px;
  display: grid; place-items: center; box-shadow: var(--inset);
  background: linear-gradient(160deg, rgba(53, 87, 244, .16), rgba(255, 181, 71, .22));
}
.team-photo::before { /* initials placeholder, hidden once a photo loads on top */
  content: attr(data-initials); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 750; letter-spacing: .04em;
  color: rgba(53, 87, 244, .38);
}
.team-photo::after { /* "add photo" hint */
  content: "Photo"; position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: rgba(255, 255, 255, .55);
}
.team-photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.team-photo:has(img)::after { display: none; }
.team-photo:has(img)::before { display: none; }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-role {
  display: inline-block; margin: 18px 0 8px; padding: 5px 14px; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); box-shadow: var(--inset-sm);
}
.team-card h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.team-title { margin: 6px 0 0; font-size: .9375rem; color: var(--muted); }
@media (max-width: 600px) {
  .team-grid { gap: 20px; }
  .team-card { flex-basis: calc(50% - 10px); max-width: none; padding: 10px 10px 18px; border-radius: 22px; }
  .team-card h3 { font-size: 1.0625rem; }
  .team-role { font-size: .6875rem; padding: 4px 10px; }
}

/* ============ Custom cursor: "circuit node" (drawn on a canvas by script.js) ============ */
@media (pointer: fine) {
  html.has-custom-cursor body,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor input,
  html.has-custom-cursor textarea,
  html.has-custom-cursor select,
  html.has-custom-cursor label,
  html.has-custom-cursor summary,
  html.has-custom-cursor [role="button"] { cursor: none; }
  .mit-cursor-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 99999; pointer-events: none; }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .mit-cursor-canvas { display: none !important; }
}
