/* Northlight Studio — Studio Product Photos
   Design tokens taken 1:1 from the source design. */

:root {
  --bg: #EFEFEC;
  --bg-tint: #E7E6E2;
  --ink: #16181B;
  --ink-2: #4B4E52;
  --ink-3: #6C6F73;
  --ink-4: #8B8E90;
  --rule: #DAD9D5;
  --rule-2: #C9C8C3;
  --frame: #E2E1DD;
  --plate-before: #DFDEDA;
  --plate-after: #16181B;
  --plate-after-ink: #7C8085;
  --pink: #FF3BA7;
  --magenta: #D0179B;
  --violet: #8A1BE0;
  --link: #C4128C;

  --brand-grad: linear-gradient(135deg, #FF3BA7 0%, #D0179B 48%, #8A1BE0 100%);
  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Spline Sans', system-ui, sans-serif;

  --gut: clamp(18px, 5vw, 64px);
  --maxw: 1320px;
  /* Full-bleed rules and gradients still span the viewport; only the content
     inside them is centred once the screen outgrows the measure. */
  --pad-x: max(var(--gut), (100% - var(--maxw)) / 2);
  --card-h: clamp(340px, 34vw, 520px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

.page { overflow-x: hidden; }

a { color: var(--link); }
a:hover { color: var(--violet); }

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

::selection {
  background: var(--magenta);
  color: #fff;
}

/* ── Header ─────────────────────────────────────────────── */

.header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--pad-x);
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.link {
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  padding: clamp(24px, 5vw, 48px) var(--pad-x) clamp(40px, 7vw, 88px);
  background: radial-gradient(120% 90% at 88% 0%,
    rgba(255, 59, 167, 0.16) 0%,
    rgba(138, 27, 224, 0.09) 38%,
    rgba(239, 239, 236, 0) 72%);
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 7.4vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  max-width: 15ch;
  text-wrap: balance;
}

.hero__sub {
  margin: 0 0 clamp(26px, 4vw, 44px);
  font-size: clamp(16px, 1.9vw, 21px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 44ch;
}

/* ── Before / after comparator ──────────────────────────── */

.ba {
  position: relative;
  width: 100%;
  background: var(--frame);
  overflow: hidden;
  touch-action: none;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

.ba--hero {
  aspect-ratio: 3 / 2;
  /* 3:2 holds on phones and tablets; on a laptop the frame would be ~875px
     tall and run off the screen, so cap it and let object-fit widen the crop. */
  max-height: min(66vh, 620px);
  max-height: min(66svh, 620px);
}

.ba__plate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.ba__plate--before {
  justify-content: flex-start;
  padding-left: 6%;
  background: var(--plate-before);
}

.ba__plate--after {
  justify-content: flex-end;
  padding-right: 6%;
  background: var(--plate-after);
}

.ba__label {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.ba__label--sm {
  font-size: 11px;
  max-width: 44%;
}

.ba__label--after {
  color: var(--plate-after-ink);
  text-align: right;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Missing source images fall back to the labelled plate underneath. */
.ba__img[hidden] { display: none; }

.ba__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--pink), var(--violet));
  pointer-events: none;
}

.ba__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
  box-shadow: 0 6px 26px rgba(196, 18, 140, 0.45);
  transition: transform 120ms ease;
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.ba:active .ba__handle { transform: translate(-50%, -50%) scale(0.94); }

.ba__handle--sm {
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 20px rgba(196, 18, 140, 0.4);
}

.ba__hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

/* ── Sections ───────────────────────────────────────────── */

.section {
  padding: clamp(36px, 6vw, 72px) var(--pad-x);
  border-top: 1px solid var(--rule);
}

.section--flush {
  padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 80px);
}

.section--tint { background: var(--bg-tint); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad-x);
}

.section__head .h2 { margin-bottom: 0; }

.section__lede {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--ink-3);
  max-width: 52ch;
}

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.h2--spaced { margin-bottom: 26px; }
.h2--spaced-lg { margin-bottom: 30px; }

.meta {
  font-size: 13px;
  color: var(--ink-3);
}

/* ── Category tabs ──────────────────────────────────────── */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px var(--pad-x) 0;
}

.tab {
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--rule-2);
}

.tab:hover[aria-selected="false"] {
  border-color: var(--ink-3);
  color: var(--ink);
}

.tab[aria-selected="true"] {
  background: var(--brand-grad);
  color: #fff;
  border-color: var(--link);
}

/* ── Gallery ────────────────────────────────────────────── */

.gal-wrap {
  position: relative;
  margin-top: 26px;
}

.gal {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--pad-x);
  scrollbar-width: none;
  padding: 0 var(--pad-x) 6px;
}

.gal::-webkit-scrollbar { height: 0; }

.gal__figure {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}

/* Every card shares a height and takes its width from its own aspect ratio,
   so a row of 4:5, 1:1 and 3:2 frames still lines up top and bottom. */
.gal__figure .ba {
  width: auto;
  height: var(--card-h);
}

.gal__caption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

@media (max-width: 720px) {
  .gal__figure { width: 78vw; }
  .gal__figure .ba { width: 100%; height: auto; }
}

.gal__nav {
  display: flex;
  gap: 10px;
  padding: 18px var(--pad-x) 0;
}

.navbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.navbtn:hover:not(:disabled) {
  border-color: var(--ink);
  background: rgba(22, 24, 27, 0.04);
}

.navbtn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ── What we make ───────────────────────────────────────── */

.outputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.output__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--frame);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.output__tag {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.output__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.output__img[hidden] { display: none; }

.output__name {
  margin-top: 10px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* ── How it works ───────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

.step {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}

.step__num {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.14em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step__text {
  margin-top: 8px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

/* ── What we don't do ───────────────────────────────────── */

.limits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.6vw, 36px);
}

.limit {
  border-top: 1px solid var(--rule-2);
  padding-top: 14px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 38ch;
}

/* ── CTA ────────────────────────────────────────────────── */

.cta {
  padding: clamp(56px, 9vw, 120px) var(--pad-x);
  border-top: 1px solid var(--rule);
  background: radial-gradient(90% 120% at 0% 100%,
    rgba(255, 59, 167, 0.18) 0%,
    rgba(138, 27, 224, 0.10) 42%,
    rgba(239, 239, 236, 0) 78%);
}

.cta__text {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-wrap: pretty;
}

.cta__link {
  display: inline-block;
  margin-top: 26px;
  font-size: clamp(17px, 2.2vw, 24px);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 22px var(--pad-x) 40px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-4);
}

/* ══════════════════════════════════════════════════════════════════════
   Multi-page shell — navigation, transitions, and the pages the landing
   page grew into. The tokens above are unchanged.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Cross-document view transitions ────────────────────────────────────
   Chrome and Safari animate between pages natively; everywhere else this
   block is inert and navigation is an ordinary load. */

@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-out 180ms cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: vt-in 320ms cubic-bezier(0, 0, 0.2, 1) both;
}

@keyframes vt-out {
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes vt-in {
  from { opacity: 0; transform: translateY(10px); }
}

/* The header is the one element that must not slide: it is in the same place
   on every page, so giving it its own name holds it still across the swap. */
.header { view-transition-name: site-header; }
.footer { view-transition-name: site-footer; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ── Reveal on scroll ───────────────────────────────────────────────── */

/* Scoped to .js — set by an inline script in <head>. Without it the starting
   opacity:0 would hide these sections permanently when scripting is blocked. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms cubic-bezier(0, 0, 0.2, 1), transform 620ms cubic-bezier(0, 0, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Skip link ──────────────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.skip:focus {
  left: 8px;
  top: 8px;
  color: #fff;
}

/* ── Header navigation ──────────────────────────────────────────────── */

.header {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  /* Positioned so the language panel can win against the hero comparator,
     which is position:relative and would otherwise paint over it. */
  position: relative;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  display: block;
  height: clamp(20px, 2.4vw, 26px);
  width: auto;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__mark {
  height: 16px;
  width: auto;
  opacity: 0.75;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-inline-end: auto;
}

.nav__link {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.nav__link:hover { color: var(--ink); background: rgba(22, 24, 27, 0.05); }

.nav__link.is-current {
  color: var(--ink);
  background: rgba(22, 24, 27, 0.06);
}

/* ── Language switcher ──────────────────────────────────────────────── */

.langs { position: relative; }

.langs__summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  transition: border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.langs__summary::-webkit-details-marker { display: none; }
.langs__summary:hover { border-color: var(--ink-3); color: var(--ink); }

.langs__globe {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 13px;
}

.langs[open] .langs__summary { border-color: var(--ink); color: var(--ink); }

.langs__panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  z-index: 15;
  width: min(92vw, 480px);
  /* Bounded by what is actually left below the header, so the list never runs
     off the bottom of the window on a short screen. */
  max-height: min(72vh, 540px);
  overscroll-behavior: contain;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--rule-2);
  box-shadow: 0 18px 50px rgba(22, 24, 27, 0.14);
  animation: langs-in 180ms cubic-bezier(0, 0, 0.2, 1);
}

@keyframes langs-in {
  from { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .langs__panel { animation: none; }
}

.langs__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.langs__search {
  position: sticky;
  top: 0;
  z-index: 1;
  /* Sticky over a scrolling list, so it needs its own ground. */
  background: #fff;
  padding-bottom: 10px;
  margin-bottom: 2px;
}

.langs__input {
  width: 100%;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: 0;
  padding: 9px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.langs__input::placeholder { color: var(--ink-4); }

.langs__input:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(208, 23, 155, 0.14);
}

/* Safari draws its own clear button; ours would be a second one. */
.langs__input::-webkit-search-decoration,
.langs__input::-webkit-search-results-button { display: none; }

.langs__empty {
  margin: 12px 2px 2px;
  font-size: 14px;
  color: var(--ink-3);
}

.langs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 2px;
}

.langs__link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 9px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 4px;
  transition: background 140ms ease;
}

.langs__link:hover { background: rgba(22, 24, 27, 0.05); color: var(--ink); }

.langs__link.is-current {
  background: var(--brand-grad);
  color: #fff;
}

.langs__native { font-size: 14px; letter-spacing: -0.01em; }

.langs__english { font-size: 11px; color: var(--ink-4); }

.langs__link.is-current .langs__english { color: rgba(255, 255, 255, 0.75); }

/* ── Page headers shared by about / blog / contact ──────────────────── */

.lede-block {
  padding: clamp(28px, 5vw, 64px) var(--pad-x) clamp(20px, 3vw, 36px);
  background: radial-gradient(120% 90% at 88% 0%,
    rgba(255, 59, 167, 0.14) 0%,
    rgba(138, 27, 224, 0.08) 38%,
    rgba(239, 239, 236, 0) 72%);
}

.page-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  max-width: 18ch;
  text-wrap: balance;
}

.page-lede {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 52ch;
}

.prose {
  max-width: 66ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--ink-2);
}

.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }

.limit__lead {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ── About: facts ───────────────────────────────────────────────────── */

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2.6vw, 36px);
}

.fact { border-top: 1px solid var(--rule-2); padding-top: 14px; }

.fact__key {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.fact__value {
  margin: 8px 0 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

/* ── Blog ───────────────────────────────────────────────────────────── */

.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.post-card__link {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--rule-2);
  padding-top: clamp(16px, 2vw, 24px);
}

@media (max-width: 720px) {
  .post-card__link { grid-template-columns: 1fr; }
}

.post-card__frame {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--frame);
  overflow: hidden;
}

.post-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0, 0, 0.2, 1);
}

.post-card__img[hidden] { display: none; }

.post-card__link:hover .post-card__img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .post-card__img { transition: none; }
  .post-card__link:hover .post-card__img { transform: none; }
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-4);
}

.badge {
  padding: 2px 8px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.post-card__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(21px, 2.6vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 10px 0 8px;
  text-wrap: balance;
}

.post-card__excerpt {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.post-card__more {
  font-size: 14px;
  color: var(--link);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.post-card__link:hover .post-card__more { color: var(--violet); }

/* ── Article ────────────────────────────────────────────────────────── */

.article { padding: clamp(28px, 5vw, 56px) var(--pad-x) clamp(36px, 6vw, 72px); }

.article__back { margin-bottom: clamp(20px, 3vw, 34px); font-size: 14px; }

.article__head { margin-bottom: clamp(22px, 3vw, 36px); }

.article__head .page-title { margin-top: 12px; }

.article__cover {
  position: relative;
  aspect-ratio: 3 / 2;
  max-height: min(52vh, 460px);
  background: var(--frame);
  overflow: hidden;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.article__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__img[hidden] { display: none; }

.notice {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-inline-start: 3px solid var(--rule-2);
  font-size: 14px;
  color: var(--ink-3);
  max-width: 60ch;
}

/* ── Contact ────────────────────────────────────────────────────────── */

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

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

.form { display: grid; gap: clamp(16px, 2vw, 22px); max-width: 40rem; }

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

.field__label {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field__opt { text-transform: none; letter-spacing: 0; color: var(--ink-4); }

.field__input {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field__input:hover { border-color: var(--ink-3); }

.field__input:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(208, 23, 155, 0.14);
}

.field__input--area { resize: vertical; min-height: 9rem; }

.field__input[aria-invalid="true"] { border-color: #C4128C; }

.field__error { margin: 0; font-size: 13px; color: #A8106F; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.btn {
  justify-self: start;
  font-family: var(--body);
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--brand-grad);
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 160ms ease, opacity 160ms ease;
  box-shadow: 0 6px 22px rgba(196, 18, 140, 0.28);
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 9px 28px rgba(196, 18, 140, 0.34); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transform: none; transition: none; }
}

.form__note { margin: 0; font-size: 13px; color: var(--ink-4); max-width: 46ch; }

.alert {
  margin-bottom: clamp(20px, 3vw, 28px);
  padding: 16px 18px;
  display: grid;
  gap: 4px;
  border-inline-start: 3px solid var(--magenta);
  background: rgba(208, 23, 155, 0.06);
  animation: alert-in 260ms cubic-bezier(0, 0, 0.2, 1);
}

.alert strong { font-family: var(--display); font-size: 16px; letter-spacing: -0.01em; }
.alert span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

@keyframes alert-in {
  from { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .alert { animation: none; }
}

.contact__aside { display: grid; gap: clamp(20px, 3vw, 30px); }

.aside-block { border-top: 1px solid var(--rule-2); padding-top: 14px; }

.aside-block__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 700;
}

.aside-block__mail { font-size: clamp(16px, 1.8vw, 19px); }

.aside-block__note {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38ch;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.footer { align-items: center; }
.footer .link { color: var(--ink-4); }
.footer .link:hover { color: var(--link); }
