/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --abyss: #060B14;
  --deep: #0C1626;
  --line: #1C2A40;
  --text: #E4EAF3;
  --muted: #8A97AD;
  --signal: #5CE1E6;
  --stone: #D9B77E;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 5vw, 3.5rem);
  --mega: clamp(5.5rem, 19vw, 17rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
  --radius: 4px;
  --danger: #F08A7E;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--signal); color: var(--abyss); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: .75rem 1rem;
  background: var(--signal);
  color: var(--abyss);
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 11, 20, .82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--text);
}
.nav__links {
  display: flex;
  gap: clamp(.75rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 500;
  transition: color .2s;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); }
.nav__links .nav__cta { color: var(--stone); }

@media (max-width: 760px) {
  .nav__links li:not(:last-child) { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  /* fade graph into the next section */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30vh;
  background: linear-gradient(to bottom, transparent, var(--abyss));
  z-index: -1;
  pointer-events: none;
}
.hero__graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero__copy {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 7rem var(--gutter) 5rem;
  pointer-events: none;
}
.hero__copy a { pointer-events: auto; }
.hero__where {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--stone);
  margin-bottom: 1.25rem;
}
.hero__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 8.25rem);
  line-height: .86;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
}
.hero__name .line { display: block; }
.hero__name .line--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.hero__role {
  font-size: var(--step-1);
  font-weight: 500;
  max-width: 34ch;
  margin-bottom: .75rem;
}
.hero__intro {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__caption {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  max-width: 22ch;
  margin: 0;
  font-size: var(--step--1);
  color: var(--muted);
  text-align: right;
}
@media (max-width: 760px) {
  .hero__caption { display: none; }
  .hero__graph { opacity: .35; }
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: .85rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 22, 38, .6);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.btn:hover { border-color: var(--signal); }
.btn--solid {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--abyss);
}
.btn--solid:hover { background: var(--text); border-color: var(--text); }

.link {
  color: var(--signal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}
.link:hover { color: var(--text); }

/* ==========================================================================
   Sections & the moving mega headings
   ========================================================================== */
.section {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.section__bg {
  /* blueprint grid that drifts at its own speed (parallax) */
  position: absolute;
  inset: -25% 0;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(92, 225, 230, .09), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  opacity: .45;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}
.section__bg--alt {
  background-image:
    radial-gradient(ellipse 45% 35% at 15% 60%, rgba(217, 183, 126, .08), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
}

.mega {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--mega);
  line-height: .8;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  padding-left: var(--gutter);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(228, 234, 243, .35);
  user-select: none;
}
.mega span { display: inline-block; will-change: transform; }

.section__intro {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 3rem;
}
.lead {
  font-size: var(--step-2);
  line-height: 1.3;
  font-weight: 500;
  max-width: 28ch;
}
.sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  letter-spacing: .02em;
  margin: 0 0 1.25rem;
  color: var(--stone);
}

/* ==========================================================================
   Services
   ========================================================================== */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  border-top: 1px solid var(--line);
}
.service {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.75rem 2rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.service__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  letter-spacing: .01em;
  line-height: 1.1;
  margin: 0;
}
.service__name a { color: var(--text); text-decoration: none; transition: color .2s; }
.service__name a:hover { color: var(--signal); }
.service p { color: var(--muted); max-width: 46ch; margin: 0 0 .5rem; }
.service .link { margin-top: auto; font-size: var(--step--1); }

/* ==========================================================================
   Service pages
   ========================================================================== */
.page-hero {
  position: relative;
  padding: clamp(8rem, 16vw, 11rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .9;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  max-width: 14ch;
}
.page-hero .lead { max-width: 38ch; margin-bottom: 2rem; }
.page-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.page-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1;
  margin: 0 0 1.75rem;
}
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem 3rem; }
.offer-list strong { display: block; font-weight: 600; margin-bottom: .3rem; }
.offer-list span { color: var(--muted); }
.proof { margin: 0; padding-left: 1.1rem; max-width: 68ch; }
.proof li { margin-bottom: .75rem; color: var(--muted); }
.proof li strong { color: var(--text); font-weight: 600; }
.proof li::marker { color: var(--signal); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-mono);
  color: var(--stone);
  margin-bottom: .5rem;
}
.steps strong { display: block; margin-bottom: .3rem; }
.steps span { color: var(--muted); font-size: var(--step--1); }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; max-width: 70ch; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: .75rem 0 0; }
.page-cta { padding-block: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.page-cta .lead { margin-bottom: 1.5rem; }
.page-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.other-services { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ==========================================================================
   About
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about__text p:not(.lead) { color: var(--muted); max-width: 62ch; }
.about__text .lead { margin-bottom: 1.5rem; }

.facts { margin: 0; display: grid; gap: 0; }
.fact {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--text);
  margin-bottom: .4rem;
}
.fact dd { margin: 0; color: var(--muted); font-size: var(--step--1); max-width: 34ch; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Experience timeline
   ========================================================================== */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline::before,
.timeline__progress {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 13rem;
  width: 1px;
  background: var(--line);
}
.timeline__progress {
  background: linear-gradient(to bottom, var(--signal), var(--stone));
  transform-origin: top;
  transform: scaleY(0);
}

.role {
  position: relative;
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0 3rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.role::before {
  /* node on the line */
  content: "";
  position: absolute;
  left: calc(13rem - 5px);
  top: .55rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--abyss);
  border: 2px solid var(--signal);
}
.role__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding-right: 1.5rem;
}
.role__dates {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text);
}
.role__place { font-size: var(--step--1); color: var(--muted); }

.badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge--now { border-color: var(--signal); color: var(--signal); }

.role__body { max-width: 62ch; }
.role__title {
  font-size: var(--step-1);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 .6rem;
}
.role__at { display: block; color: var(--stone); font-weight: 500; }
.role__body > p { color: var(--muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.tags li {
  font-size: .8rem;
  padding: .2rem .65rem;
  border-radius: var(--radius);
  background: var(--deep);
  border: 1px solid var(--line);
  color: var(--muted);
}
.tags .tag--industry {
  color: var(--stone);
  border-color: rgba(217, 183, 126, .35);
}

.role__more summary {
  cursor: pointer;
  color: var(--signal);
  font-size: var(--step--1);
  font-weight: 600;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.role__more summary::-webkit-details-marker { display: none; }
.role__more summary::before {
  content: "+";
  font-family: var(--font-mono);
  transition: transform .25s;
}
.role__more[open] summary::before { transform: rotate(45deg); }
.role__more[open] summary { margin-bottom: .75rem; }
.role__more ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .975rem;
}
.role__more li { margin-bottom: .45rem; }
.role__more li::marker { color: var(--signal); }

@media (max-width: 760px) {
  .timeline::before, .timeline__progress { left: 5px; }
  .role { grid-template-columns: 1fr; padding-left: 2rem; }
  .role::before { left: 0; }
  .role__meta { flex-direction: row; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
}

/* ==========================================================================
   Clients marquee
   ========================================================================== */
.marquee {
  display: grid;
  gap: .5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  transform: rotate(-2deg);
}
.marquee__row {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1.05;
  text-transform: uppercase;
  animation: marquee 40s linear infinite;
}
/* padding (not gap) keeps the -50% loop seamless */
.marquee__row span { padding-right: 3rem; }
.marquee__row span::after {
  content: "/";
  margin-left: 3rem;
  color: var(--signal);
  -webkit-text-stroke: 0;
}
.marquee__row--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--stone);
  animation-duration: 50s;
  animation-direction: reverse;
}
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.industry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  border-top: 1px solid var(--line);
}
.industry-list li {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.25rem 1.5rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.industry-list strong { font-weight: 600; }
.industry-list span { color: var(--muted); font-size: var(--step--1); }

/* ==========================================================================
   Ventures
   ========================================================================== */
.ventures__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.venture {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(160deg, rgba(12, 22, 38, .92), rgba(6, 11, 20, .92));
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.venture__kind { font-family: var(--font-mono); font-size: .8rem; color: var(--stone); margin-bottom: .5rem; }
.venture__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-3);
  line-height: 1;
  margin: 0 0 1rem;
}
.venture > p:not(.venture__kind) { color: var(--muted); }
.venture__points {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: .975rem;
}
.venture__points li { margin-bottom: .35rem; }
.venture__points li::marker { color: var(--signal); }

.oss-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--line);
}
.oss-list li {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.oss-list a { text-decoration: none; }
.oss-list a:hover strong { color: var(--signal); }
.oss-list strong { font-weight: 600; transition: color .2s; }
.oss-list span { color: var(--muted); font-size: var(--step--1); }
.oss-list em { font-style: normal; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }

@media (max-width: 760px) {
  .oss-list li { grid-template-columns: 1fr; gap: .2rem; }
}

/* ==========================================================================
   Skills
   ========================================================================== */
.skill-groups {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  display: grid;
  border-top: 1px solid var(--line);
}
.skill-groups > div {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1rem 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.skill-groups dt { font-weight: 600; color: var(--text); }
.skill-groups dd { margin: 0; color: var(--muted); max-width: 70ch; }

.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.cred-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.cred-list li {
  display: flex;
  flex-direction: column;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.cred-list strong { font-weight: 600; }
.cred-list span { color: var(--muted); font-size: var(--step--1); }
.langs { color: var(--muted); }

@media (max-width: 760px) {
  .skill-groups > div { grid-template-columns: 1fr; gap: .3rem; }
}

/* ==========================================================================
   Contact & footer
   ========================================================================== */
.contact { padding-bottom: clamp(5rem, 12vw, 10rem); }
.contact .mega { -webkit-text-stroke-color: rgba(92, 225, 230, .5); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__intro .lead { margin-bottom: 2rem; }
.contact__alt { color: var(--muted); margin-bottom: .5rem; }
.contact__email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-bottom: 2rem;
}
.contact__email {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
  overflow-wrap: anywhere;
  transition: color .2s;
}
.copy-btn {
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .4rem .8rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.copy-btn:hover { border-color: var(--signal); }
.copy-btn.is-done { color: var(--signal); border-color: var(--signal); }

/* ---- form ---- */
.contact-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(12, 22, 38, .88);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}
.topics { border: 0; margin: 0 0 1.5rem; padding: 0; }
.topics legend { font-weight: 600; margin-bottom: .75rem; padding: 0; }
.topics__options { display: flex; flex-wrap: wrap; gap: .5rem; }
.topics label { position: relative; cursor: pointer; }
.topics input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.topics span {
  display: inline-block;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--muted);
  transition: border-color .2s, color .2s, background-color .2s;
}
.topics label:hover span { border-color: var(--muted); color: var(--text); }
.topics input:checked + span {
  border-color: var(--signal);
  background: rgba(92, 225, 230, .1);
  color: var(--signal);
}
.topics input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: var(--step--1); font-weight: 600; margin-bottom: .4rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--abyss);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover,
.field textarea:hover { border-color: #2c3f5c; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--signal); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__hint { font-size: .85rem; color: var(--muted); margin: -.15rem 0 .5rem; }
.field__error { font-size: .85rem; color: var(--danger); margin: .35rem 0 0; min-height: 0; }
.field__error:empty { display: none; }

.cf-turnstile { margin: .25rem 0 1rem; min-height: 65px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .5rem; }
.form__submit { border: 0; cursor: pointer; font-family: inherit; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__status { margin: 0; font-size: var(--step--1); color: var(--muted); }
.form__status.is-ok { color: var(--signal); }
.form__status.is-error { color: var(--danger); }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}
.contact__email:hover { color: var(--signal); }
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}
.footer p { margin: 0; }
.footer a { color: var(--muted); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
