/* Poss Dev Studio website. Tokens from the brand pack (tokens/brand-tokens.css, v1.0.0). */

@font-face {
  font-family: Inter;
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-graphite: #0F1114;
  --color-slate: #1C2026;
  --color-steel: #2F3A46;
  --color-text: #E6EDF5;
  --color-muted: #9AA3AF;
  --color-button: #2563EB;
  --color-button-hover: #1D4ED8;
  --color-white: #FFFFFF;
  --color-link: #60A5FA;
  --color-accent: #3B82F6;
  --color-error: #FDA4AF;
  --font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-h1: 4rem;      /* 64px */
  --font-h2: 2.25rem;   /* 36px */
  --font-h3: 1.375rem;  /* 22px */
  --font-body: 1.125rem;/* 18px */
  --font-support: 1rem;
  --font-control: 1rem;
  --font-small: 0.875rem;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;

  --radius-button: 6px;
  --radius-field: 6px;
  --radius-card: 12px;
  --shadow-card: 0 12px 40px rgb(0 0 0 / 0.24);
  --container-max: 1200px;
  --gutter: 48px;
  --section-gap: var(--space-9);
  --target-min: 44px;
  --focus-width: 3px;
  --focus-offset: 3px;
  --transition: 120ms ease-out;
  --header-height: 96px;
}

@media (max-width: 767px) {
  :root {
    --font-h1: 2.5rem;    /* 40px */
    --font-h2: 1.75rem;   /* 28px */
    --font-h3: 1.25rem;   /* 20px */
    --font-body: 1rem;
    --font-small: 1rem;   /* nothing below 16px on mobile */
    --gutter: 24px;
    --section-gap: var(--space-8);
    --header-height: 80px;
  }
}

/* ---------- Base ---------- */

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

[hidden] { display: none !important; }

html {
  background: var(--color-graphite);
  color: var(--color-text);
  font-family: var(--font-family);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-graphite);
  font-size: var(--font-body);
  line-height: 1.5;
  overflow-wrap: break-word;
}

html.dialog-open { overflow: hidden; }

img, svg, picture { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol { margin: 0; }

h1 { font-size: var(--font-h1); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: var(--font-h2); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: var(--font-h3); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }

a { color: var(--color-link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-link); text-decoration-thickness: 2px; }
a:active { color: var(--color-link); }

:focus-visible {
  outline: var(--focus-width) solid var(--color-link);
  outline-offset: var(--focus-offset);
  box-shadow: 0 0 0 var(--focus-offset) var(--color-graphite);
}

.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-graphite);
  border-radius: var(--radius-button);
}
.skip-link:focus { top: var(--space-4); }

.text-blue { color: var(--color-link); }
.muted { color: var(--color-muted); }

/* Placeholder content the founder still has to supply. Visible on purpose. */
.placeholder { color: var(--color-error); font-weight: 500; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  padding: var(--space-2) var(--space-5);
  border: 0;
  border-radius: var(--radius-button);
  background: var(--color-button);
  color: var(--color-white);
  font: 500 var(--font-control)/1.5 var(--font-family);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition);
}
.button:hover, .button:active { background: var(--color-button-hover); color: var(--color-white); }
.button:disabled { cursor: not-allowed; }
.button--large { min-height: 52px; padding-inline: var(--space-6); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  font-weight: 500;
  font-size: var(--font-control);
}

.arrow { width: 1em; height: 1em; flex: none; transition: transform var(--transition); }
.button:hover .arrow, .arrow-link:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(15 17 20 / 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.site-header.is-scrolled { border-bottom-color: var(--color-steel); }

[id] { scroll-margin-top: calc(var(--header-height) + var(--space-5)); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-height);
}

.brand { display: inline-flex; flex: none; margin-left: -12px; }  /* logo viewBox has built-in padding */
.brand img { height: 64px; width: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--target-min);
  height: var(--target-min);
  padding: 0;
  border: 1px solid var(--color-link);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: 0;
  list-style: none;
}

.site-nav a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  color: var(--color-text);
  font-size: var(--font-support);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:not(.button):hover { text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav a[aria-current="page"] { color: var(--color-link); text-decoration: underline; }

@media (max-width: 767px) {
  .site-header .container { gap: var(--space-4); }
  .brand img { height: 62px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-4) var(--gutter) var(--space-5);
    background: var(--color-slate);
    border-block: 1px solid var(--color-steel);
    box-shadow: var(--shadow-card);
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .site-nav .button { width: 100%; margin-top: var(--space-2); }
  .site-header .container { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; padding-bottom: var(--space-4); }
}

/* Narrowest phones: keep the logo and menu button on one line. */
@media (max-width: 359px) {
  .brand img { height: 56px; }
}

/* ---------- Sections ---------- */

main > section, .page-intro { padding-block: 0 var(--section-gap); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
  color: var(--color-muted);
  font-size: var(--font-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* The rule starts with a short blue segment, echoing the connection line in the hero art. */
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-link) 0 40px, var(--color-steel) 40px);
}

.section-title { margin-bottom: var(--space-3); }
.section-lead { max-width: 40rem; color: var(--color-muted); margin-bottom: var(--space-7); }

/* ---------- Hero ----------
   Text sits on solid graphite in the left column. The artwork is a separate region that bleeds to
   the viewport's right edge; its edges are masked into graphite so it reads as part of the page
   rather than a picture in a box. The left mask also fades out the faint blue line near the
   artwork's left side, so nothing bright sits near the headline. */

.hero {
  position: relative;
  padding-top: var(--space-7);
  overflow: hidden;
}

/* Not positioned: the art must be placed relative to .hero so it can reach the viewport edge. */
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
  min-height: 560px;
}

.hero-copy { position: relative; z-index: 1; padding-block: var(--space-8); }

.hero h1 { margin-bottom: var(--space-5); }

.hero-lead { max-width: 30rem; font-size: 1.25rem; margin-bottom: var(--space-6); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }

.hero-art {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% + var(--space-5));
  right: 0;
}

/* Soft accent glow behind the art, spilling a little into the page. Decorative only. */
.hero-art::before {
  content: "";
  position: absolute;
  inset: -20% -10% -15% -30%;
  background: radial-gradient(45% 55% at 58% 62%, rgb(59 130 246 / 0.24), transparent 70%);
  pointer-events: none;
}

.hero-art img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 28%, #000 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 28%, #000 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 72%, transparent 100%);
  mask-composite: intersect;
}

/* On very wide screens, cap the art's width and fade its right edge too, so it is not stretched
   across half the viewport and does not end in a hard line. */
@media (min-width: 1600px) {
  .hero-art { left: auto; width: 960px; right: calc(50% - 800px); }
  .hero-art img {
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 28%, #000 82%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 10%, #000 72%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0, #000 28%, #000 82%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 10%, #000 72%, transparent 100%);
  }
}

@media (max-width: 1023px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding-block: var(--space-6) var(--space-5); }
  .hero-art {
    position: relative;
    inset: auto;
    margin-inline: calc(-1 * var(--gutter));
  }
  .hero-art::before { inset: 0 -10% -30%; background: radial-gradient(60% 50% at 50% 75%, rgb(59 130 246 / 0.22), transparent 70%); }
  .hero-art img {
    aspect-ratio: 16 / 9;
    height: auto;
    object-position: 68% 50%;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 12%, #000 78%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 12%, #000 78%, transparent 100%);
  }
}

@media (max-width: 767px) {
  .hero { padding-top: var(--space-5); }
  .hero-lead { font-size: 1.125rem; }
  .hero-art img { aspect-ratio: 4 / 3; }
}

/* ---------- Service overview (Home) ---------- */

.service-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}

.service-columns li { padding-inline: var(--space-6); border-left: 1px solid var(--color-steel); }
.service-columns li:first-child { padding-left: 0; border-left: 0; }

/* Icons sit in a bordered tile so they have some presence. The border lifts to blue on hover. */
.icon-tile {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-5);
  background: var(--tile-bg, var(--color-slate));
  border: 1px solid var(--color-steel);
  border-radius: var(--radius-card);
  transition: border-color var(--transition), transform var(--transition);
}
.icon-tile img { width: 32px; height: 32px; }
li:hover > .icon-tile, .card:hover .icon-tile { border-color: var(--color-link); }

.service-columns h3 { margin-bottom: var(--space-3); }
.service-columns p { color: var(--color-muted); font-size: var(--font-support); }

.section-more { margin-top: var(--space-6); }

@media (max-width: 1023px) {
  .service-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-7); }
  .service-columns li:nth-child(odd) { padding-left: 0; border-left: 0; }
}

@media (max-width: 767px) {
  .service-columns { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .service-columns li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: var(--space-4);
    padding: var(--space-5) 0;
    border-left: 0;
    border-top: 1px solid var(--color-steel);
  }
  .service-columns li:first-child { border-top: 0; padding-top: 0; }
  .service-columns li { grid-template-columns: 48px minmax(0, 1fr); }
  .service-columns .icon-tile { grid-row: span 2; width: 48px; height: 48px; margin: 0; border-radius: var(--radius-button); }
  .service-columns .icon-tile img { width: 26px; height: 26px; }
  .service-columns h3 { margin-bottom: var(--space-1); }
}

/* ---------- How we work ----------
   A full-width slate band, so the page has some rhythm between the graphite sections. */

.band {
  --tile-bg: var(--color-graphite);
  padding-block: var(--section-gap);
  background: var(--color-slate);
  border-block: 1px solid var(--color-steel);
}
main > section.band { padding-block: var(--section-gap); margin-bottom: var(--section-gap); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: var(--space-5);
  align-items: start;
  padding-inline: var(--space-6);
  border-left: 1px solid var(--color-steel);
}
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps .icon-tile { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
.steps h3 { margin-bottom: var(--space-2); }
.steps h3::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-link);
  font-size: var(--font-small);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.steps p { color: var(--color-muted); font-size: var(--font-support); }

@media (max-width: 1023px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-6); }
  .steps li { padding-inline: 0; border-left: 0; }
}

/* ---------- Why us ---------- */

.why {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}

/* Each sentence stays on its own line; below 1280px the statement takes a full row instead. */
.why-statement { font-size: 1.75rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; }
.why-statement span { display: inline-block; }

.why-points { display: contents; list-style: none; }
.why-points li {
  padding-left: var(--space-5);
  border-left: 1px solid var(--color-steel);
  transition: border-color var(--transition);
}
.why-points li:hover { border-left-color: var(--color-link); }
.why-points h3 { font-size: var(--font-control); letter-spacing: 0; margin-bottom: var(--space-2); }
.why-points p { color: var(--color-muted); font-size: var(--font-support); }

@media (max-width: 1279px) {
  .why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-statement { grid-column: 1 / -1; font-size: 2rem; }
  .why-points li:first-child { padding-left: 0; border-left: 0; }
}

@media (max-width: 767px) {
  .why { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .why-statement { font-size: 1.5rem; }
  .why-points li { padding-left: 0; border-left: 0; }
}

/* ---------- Services page ---------- */

.page-intro { padding-top: var(--space-8); }
.page-intro h1 { margin-bottom: var(--space-4); }
.page-intro .container:not(.prose) > p, .prose .lead { font-size: 1.25rem; color: var(--color-text); max-width: 40rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  padding: 0;
  list-style: none;
}

.card {
  --tile-bg: var(--color-graphite);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-slate);
  border: 1px solid var(--color-steel);
  border-radius: var(--radius-card);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--color-link); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.card .icon-tile { margin: 0; }
.card h2 { font-size: var(--font-h3); letter-spacing: -0.015em; margin-bottom: var(--space-3); }
.card p { color: var(--color-muted); font-size: var(--font-support); }
.card p + p { margin-top: var(--space-3); }
.card .card-lead { color: var(--color-text); font-size: var(--font-body); }

@media (max-width: 1023px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .card { grid-template-columns: minmax(0, 1fr); padding: var(--space-5); }
  .card .icon-tile { margin-bottom: var(--space-4); }
}

/* "What we can build": six illustrative project types as a grid of small numbered cards. */
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  padding: 0;
  list-style: none;
  counter-reset: build;
}
.build-grid li {
  position: relative;
  padding: var(--space-5);
  background: var(--color-slate);
  border: 1px solid var(--color-steel);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.build-grid li::before {
  counter-increment: build;
  content: "0" counter(build);
  display: block;
  margin-bottom: var(--space-4);
  color: var(--color-link);
  font-size: var(--font-small);
  font-weight: 500;
  letter-spacing: 0.08em;
}
/* Short blue line along the top edge, revealed on hover. */
.build-grid li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--color-link);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.build-grid li:hover { border-color: var(--color-link); transform: translateY(-2px); }
.build-grid li:hover::after { transform: scaleX(1); }
.build-grid h3 { font-size: var(--font-h3); margin-bottom: var(--space-2); }
.build-grid p { color: var(--color-muted); font-size: var(--font-support); }

@media (max-width: 1023px) {
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .build-grid { grid-template-columns: minmax(0, 1fr); }
}

.cta-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-7);
  background:
    radial-gradient(60% 120% at 100% 50%, rgb(59 130 246 / 0.18), transparent 70%),
    var(--color-slate);
  border: 1px solid var(--color-steel);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.cta-band h2 { font-size: 1.75rem; margin-bottom: var(--space-2); }
.cta-band p { color: var(--color-muted); }

@media (max-width: 767px) {
  .cta-band { padding: var(--space-5); }
  .cta-band h2 { font-size: 1.5rem; }
}

/* ---------- Prose pages (Privacy, Thanks) ---------- */

/* Long-form legal text: smaller, muted body with clear headings, as on the product sites. */
.prose { max-width: 46rem; }
.prose h1 { margin-bottom: var(--space-5); }
.prose h2 { font-size: 1.75rem; margin: var(--space-8) 0 var(--space-3); }
.prose p, .prose li { font-size: var(--font-support); line-height: 1.6; color: var(--color-muted); }
.prose p, .prose ul { margin-bottom: var(--space-4); }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: var(--space-2); }
.prose strong { color: var(--color-text); font-weight: 600; }
.prose .lead { margin-bottom: var(--space-3); }
.prose .fine-print { font-size: var(--font-small); margin-bottom: var(--space-2); }

.notice {
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-card);
  background: var(--color-slate);
}
.notice strong { color: var(--color-error); }

/* ---------- Contact form ---------- */

.contact-form { display: grid; gap: var(--space-5); }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 599px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--font-support); font-weight: 500; }

.field input, .field textarea {
  width: 100%;
  min-height: var(--target-min);
  padding: var(--space-2) var(--space-3);
  background: var(--color-graphite);
  color: var(--color-text);
  border: 1px solid var(--color-link);
  border-radius: var(--radius-field);
  font: 400 1rem/1.5 var(--font-family);
}
.field textarea { min-height: 140px; resize: vertical; }

/* Fields already have a blue border, so focus thickens that border to 2px (via an inset shadow,
   so nothing shifts) instead of adding the outer ring used on buttons and links. */
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--color-link);
}
.field [aria-invalid="true"]:focus-visible { box-shadow: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted); opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--color-error); border-width: 2px; }

.field-error { color: var(--color-error); font-size: 1rem; }
.field-error:empty { display: none; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); }
.form-footer .button { min-width: 160px; }
.form-privacy { color: var(--color-muted); font-size: var(--font-support); }

.form-status:empty { display: none; }
.form-status {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-field);
  color: var(--color-error);
}

.form-success { display: grid; gap: var(--space-3); }
.form-success h2, .form-success h3 { font-size: var(--font-h3); }
.form-success p { color: var(--color-muted); }

.honeypot { display: none !important; }

.contact-page { max-width: 46rem; }
.contact-page h1 { margin-bottom: var(--space-3); }
.contact-page > p { color: var(--color-muted); margin-bottom: var(--space-6); }
.contact-panel {
  padding: var(--space-6);
  background: var(--color-slate);
  border: 1px solid var(--color-steel);
  border-radius: var(--radius-card);
}
@media (max-width: 767px) { .contact-panel { padding: var(--space-5); } }

/* ---------- Contact dialog ---------- */

/* Opened with show() plus `inert` on the page, not showModal(), so anything a third party
   appends to <body> stays usable. See README.md. */
.contact-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--space-5);
  border: 0;
  background: rgb(15 17 20 / 0.85);
  color: var(--color-text);
  overflow-y: auto;
}
.contact-dialog[open] { display: grid; place-items: center; }

.dialog-panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  padding: var(--space-6);
  background: var(--color-slate);
  border: 1px solid var(--color-steel);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.dialog-panel > h2 { font-size: 1.75rem; margin: 0 var(--space-8) var(--space-5) 0; }

.dialog-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target-min);
  height: var(--target-min);
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}
.dialog-close:hover { border-color: var(--color-link); }
.dialog-close svg { width: 24px; height: 24px; }

@media (max-width: 599px) {
  .contact-dialog { padding: var(--space-3); place-items: start center; }
  .dialog-panel { padding: var(--space-5); }
  .dialog-panel > h2 { font-size: 1.5rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-steel);
  padding-block: var(--space-7);
  background: linear-gradient(to bottom, var(--color-graphite), var(--color-slate));
}

.site-footer .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6) var(--space-7);
  align-items: end;
}

.footer-brand { grid-column: 1 / -1; margin-left: -12px; }
.footer-brand img { height: 56px; width: auto; }

.legal { font-size: var(--font-small); color: var(--color-muted); font-style: normal; }
.legal strong { display: block; color: var(--color-text); font-weight: 500; font-size: var(--font-support); margin-bottom: var(--space-1); }

.footer-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: var(--target-min); font-size: var(--font-support); }

/* ---------- Motion ----------
   Sections fade up as they enter the viewport. The script adds .reveal, so nothing is hidden
   without JavaScript, and the rule only applies when the visitor allows motion. */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

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