/* ─────────────────────────────────────────────────────────────
   Cygnian · cygnian.com
   Hand-written CSS. No framework, no build step, no external
   requests. Self-hosted variable fonts only.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-400.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0f;
  --ink-soft: #14141c;
  --paper: #f7f1e3;
  --paper-bright: #fffdf7;
  --lime: #c6ff3d;
  --pink: #ff3d8b;
  --blue: #4d5cff;

  --muted-ink: #5c5c6a;
  --muted-paper: #a6a6b8;

  --display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: 20px;
  --radius: 18px;
  --border: 2px solid var(--ink);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--lime); color: var(--ink); }

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

.wrap {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .85rem;
  border: var(--border);
}
.skip:focus { left: 12px; top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── type helpers ─────────────────────────────────────────── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow--dark { color: var(--blue); }

.eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(198, 255, 61, .18);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(198, 255, 61, .18); }
  50% { box-shadow: 0 0 0 8px rgba(198, 255, 61, .04); }
}

/* ── buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: var(--border);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

.btn--lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--pink);
}
.btn--lime:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--pink);
}
.btn--lime:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--pink); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn--ghost:hover { background: var(--paper); color: var(--ink); }

.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--full { width: 100%; }

/* ── nav ──────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(247, 241, 227, .14);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .14em;
}
.brand__dot { color: var(--lime); }

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  padding-block: 4px;
  color: var(--muted-paper);
  transition: color .15s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ── hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(77, 92, 255, .38), transparent 62%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.55rem, 7.2vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 16ch;
}

.mark {
  display: inline-block;
  padding: 0 .1em .04em;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-1.4deg);
  box-shadow: 6px 6px 0 var(--pink);
}

.hero__lede {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: var(--muted-paper);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* hero side panel */

.hero__panel {
  position: relative;
  padding: 30px 26px 24px;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--blue);
  transform: rotate(1.2deg);
}

.badge {
  position: absolute;
  top: -20px;
  right: -14px;
  padding: 8px 12px;
  background: var(--pink);
  color: var(--ink);
  border: var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(7deg);
}

.stats { display: grid; gap: 18px; }
.stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(10, 10, 15, .22);
}
.stats > div:last-child { padding-bottom: 0; border-bottom: 0; }

.stats dt {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-ink);
}
.stats dd {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stats dd span { color: var(--blue); }

.hero__panel-note {
  margin-top: 22px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--muted-ink);
}

/* ── marquee ──────────────────────────────────────────────── */

.marquee {
  overflow: hidden;
  border-block: var(--border);
  background: var(--lime);
  color: var(--ink);
  padding-block: 14px;
}

.marquee__track {
  display: flex;
  gap: 26px;
  width: max-content;
  font-family: var(--mono);
  font-size: clamp(.85rem, 1.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  animation: scroll 38s linear infinite;
}

.marquee__track span:nth-child(even) { opacity: .45; }

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ── section headers ──────────────────────────────────────── */

.section-head { max-width: 62ch; }

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}

.section-head__lede {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 1.05rem;
  color: var(--muted-ink);
}

.section-head--invert .section-head__lede { color: var(--muted-paper); }

/* ── work ─────────────────────────────────────────────────── */

.work {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 108px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(36px, 5vw, 56px);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper-bright);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.card--span4 { grid-column: span 4; }
.card--span3 { grid-column: span 3; }
.card--span2 { grid-column: span 2; }

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.thumb {
  aspect-ratio: 2 / 1;
  max-height: 380px;
  padding: 16px;
  border-bottom: var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.thumb svg { width: 100%; height: 100%; }

.card--span2 .thumb { aspect-ratio: 3 / 2; padding: 12px; }

/* ── real media (screenshots + one video) ───────────────────
   Replaces the SVG illustrations where real captures exist.
   Absolute-filled so the card aspect-ratio always wins and
   object-fit: cover does the cropping. */
.thumb.thumb--media {
  padding: 0;
  position: relative;
  display: block;
  background: var(--ink-soft);
}
.thumb--media img,
.thumb--media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.thumb--media img { transition: transform .45s var(--ease); }
.card:hover .thumb--media img { transform: scale(1.035); }

/* centre-of-interest overrides */
.thumb--punters img { object-position: center top; }
.thumb--street  img { object-position: center top; }
.thumb--life    img { object-position: center top; }

.thumb--video video { background: #0a0a0f; }

.thumb__play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: var(--border);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.thumb__play:hover { transform: scale(1.08); }
.thumb__play svg { width: 22px; height: 22px; fill: currentColor; }
.thumb__play .ico-pause { display: none; }
.thumb__play[aria-pressed="true"] { background: var(--paper-bright); }
.thumb__play[aria-pressed="true"] .ico-play { display: none; }
.thumb__play[aria-pressed="true"] .ico-pause { display: block; }

/* ── showcase (auto-sweeping project carousel) ───────────────
   main.js builds the slides from the project cards below, so
   adding a card adds a slide with no other edits. The track is
   a native scroll-snap scroller, so swipe, arrows and dots all
   drive the same thing. The block stays hidden until the slides
   exist, which leaves the card grid as the no-JS experience. */
.showcase {
  position: relative;
  margin-top: clamp(32px, 4.5vw, 52px);
  aspect-ratio: 21 / 9;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--ink-soft);
  overflow: hidden;
}
.showcase[hidden] { display: none; }

.showcase__track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.showcase__track::-webkit-scrollbar { display: none; }

.showcase__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.showcase__slide img,
.showcase__slide svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.showcase__slide svg { padding: clamp(16px, 3vw, 40px); }

.showcase__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: clamp(16px, 2.4vw, 30px);
  background: linear-gradient(to top, rgba(10, 10, 15, .95) 16%, rgba(10, 10, 15, 0));
  color: var(--paper);
}

.showcase__num {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--lime);
}

.showcase__title {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.08;
  font-weight: 700;
}
.showcase__title a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.showcase__lede {
  max-width: 46ch;
  font-size: clamp(.88rem, 1.1vw, 1rem);
  color: var(--muted-paper);
}

.showcase__ui {
  position: absolute;
  top: clamp(10px, 1.4vw, 16px);
  right: clamp(10px, 1.4vw, 16px);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(10, 10, 15, .62);
}

.showcase__dots { display: flex; align-items: center; gap: 2px; }
.showcase__nav { display: flex; align-items: center; gap: 6px; }

.showcase__dot {
  position: relative;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.showcase__dot::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(247, 241, 227, .42);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.showcase__dot[aria-current="true"]::before {
  background: var(--lime);
  transform: translate(-50%, -50%) scale(1.25);
}

.showcase__btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: var(--border);
  border-radius: 50%;
  background: var(--paper-bright);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease);
}
.showcase__btn:hover { background: var(--lime); }
.showcase__btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.showcase__btn .ico-play,
.showcase__btn .ico-pause { fill: currentColor; stroke: none; }
.showcase__btn .ico-play { display: none; }
.showcase__btn[aria-pressed="true"] .ico-play { display: block; }
.showcase__btn[aria-pressed="true"] .ico-pause { display: none; }

@media (max-width: 620px) {
  .showcase { aspect-ratio: 16 / 10; }
  .showcase__lede { display: none; }
  .showcase__dot { width: 14px; }
  .showcase__btn { width: 30px; height: 30px; }
  .showcase__btn svg { width: 15px; height: 15px; }
}

.thumb--punters  { background: #ece9ff; }
.thumb--street   { background: #ffe7f0; }
.thumb--star     { background: #eef8d8; }
.thumb--life     { background: #e7eaff; }
.thumb--kinect   { background: #fff0e6; }
.thumb--wickshore{ background: #e4f1ff; }
.thumb--tent     { background: #eaf8e4; }
.thumb--gnomes   { background: #eaf6e2; }
.thumb--spaghetti{ background: #ffeede; }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  flex: 1;
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.card__num {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted-ink);
}

.pill {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  white-space: nowrap;
}
.pill--live { background: var(--lime); }
.pill--steam { background: var(--blue); color: var(--paper-bright); border-color: var(--ink); }

.card__title {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.card--span4 .card__title { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }

.card__title a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: text-decoration-color .18s ease;
}
.card__title a:hover { text-decoration-color: var(--pink); }

.card__lede {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}

.card__desc {
  font-size: .93rem;
  line-height: 1.6;
  color: var(--muted-ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.tags li {
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid rgba(10, 10, 15, .28);
  border-radius: 6px;
  background: var(--paper);
  color: #33333f;
}

/* ── consulting ───────────────────────────────────────────── */

.consulting {
  padding: clamp(56px, 7vw, 104px) 0;
  background: var(--ink);
}

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(34px, 4.5vw, 52px);
}

.service {
  position: relative;
  padding: 26px 22px 24px;
  background: var(--ink-soft);
  border: 2px solid rgba(247, 241, 227, .16);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s var(--ease), background .2s ease;
}
.service:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
  background: #191924;
}

.service__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--lime);
}

.service h3 {
  font-size: 1.2rem;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.service p {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--muted-paper);
}

.consulting__foot {
  margin-top: 34px;
  font-size: .98rem;
  color: var(--muted-paper);
}
.consulting__foot a {
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── about ────────────────────────────────────────────────── */

.about {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 7vw, 100px) 0;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about h2 {
  margin: 16px 0 22px;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.about p {
  max-width: 54ch;
  color: var(--muted-ink);
  font-size: 1.02rem;
}
.about p + p { margin-top: 16px; }

.about__sign {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--ink) !important;
  line-height: 1.7;
}
.about__sign span { color: var(--muted-ink); font-size: .82rem; }

.about__cards {
  display: grid;
  gap: 14px;
}

.fact {
  padding: 20px 22px;
  border: var(--border);
  border-radius: 14px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fact:hover { transform: rotate(-.8deg) translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }

.fact--lime { background: var(--lime); }
.fact--pink { background: #ffd9e7; }
.fact--blue { background: #dfe3ff; }

.fact h3 {
  font-size: .82rem;
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.fact p { font-size: .92rem; color: #2a2a35 !important; max-width: none; }

/* ── contact ──────────────────────────────────────────────── */

.contact {
  background: var(--blue);
  color: var(--paper-bright);
  padding: clamp(56px, 7vw, 104px) 0;
}

.contact .eyebrow { color: var(--lime); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.contact h2 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.03;
  letter-spacing: -.03em;
  max-width: 18ch;
}

.contact__lede {
  margin-top: 18px;
  max-width: 38ch;
  color: #e2e5ff;
}

.contact__list {
  margin-top: 34px;
  display: grid;
  gap: 16px;
  max-width: 34ch;
}
.contact__list li {
  display: grid;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 253, 247, .28);
}
.contact__list span {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c8ccff;
}
.contact__list a,
.contact__list p { font-size: 1.06rem; font-weight: 500; }
.contact__list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.contact__list a:hover { color: var(--lime); }

/* form */

.form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
}

.field { display: grid; gap: 7px; }

.field label {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #3d3d4a;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-bright);
  border: var(--border);
  border-radius: 10px;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--lime);
}

.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--pink); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  min-height: 1.3em;
  font-size: .9rem;
  font-weight: 500;
}
.form__status.is-ok { color: #1c7a3c; }
.form__status.is-err { color: #b31047; }

.form__note {
  font-size: .78rem;
  color: var(--muted-ink);
  line-height: 1.5;
}

/* ── footer ───────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  padding: 44px 0 40px;
  border-top: 2px solid var(--lime);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand p {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--muted-paper);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-paper);
}
.footer__links a:hover { color: var(--lime); }

.footer__fine {
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.7;
  color: var(--muted-paper);
  text-align: right;
}

/* ── reveal on scroll ─────────────────────────────────────── */

/* Reveal on scroll. Hidden state only applies once JS has confirmed it is
   running (.js on <html>), so the page is fully readable without JS. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ── responsive ───────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--span4,
  .card--span3,
  .card--span2 { grid-column: span 1; }
  .card--span4 { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__panel { transform: none; max-width: 420px; }
  .about__grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact h2 { max-width: 24ch; }
  .footer__inner { flex-direction: column; }
  .footer__fine { text-align: left; }
}

@media (max-width: 620px) {
  :root { --pad: 18px; }
  body { font-size: 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card--span4 { grid-column: span 1; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.4rem); }
  .mark { box-shadow: 4px 4px 0 var(--pink); }
  .btn { padding: 13px 20px; }
  .form { box-shadow: 6px 6px 0 var(--ink); }
  .badge { right: 6px; }
}

/* ── motion preferences ───────────────────────────────────── */

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