/* TwentieFour — base styles */

/* Only Effra Regular and Bold are used. */
@font-face {
  font-family: "Effra";
  src: url("../fonts/Effra_Std_Rg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Effra";
  src: url("../fonts/Effra_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1a1a1a;
  --bg-soft: #222;
  --text: #ffffff;
  --text-muted: #c9c9c9;
  --text-dim: #8a8a8a;
  --accent: #f6de8e;          /* warm cream/yellow used for labels & accents */
  --accent-strong: #f6de8e;
  --rule: rgba(255,255,255,0.12);

  --container: 1280px;
  --container-narrow: 760px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  font-family: "Effra", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-4); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 64px; height: auto; fill: var(--text); }
.brand-mark { width: 56px; height: 56px; border-radius: 50%; background: #000; display: grid; place-items: center; }
.brand-mark svg { width: 38px; height: auto; }

.nav { display: flex; align-items: center; gap: var(--space-4); font-size: 18px; letter-spacing: 0.02em; }
.nav a { color: var(--text); opacity: 0.92; transition: opacity 0.2s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--accent); opacity: 1; }
.nav .menu-toggle {
  background: none; border: none; color: var(--text);
  font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 6px;
  position: relative;
  z-index: 110;                /* stay clickable above the menu overlay */
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 40%, rgba(26,26,26,0.95) 100%);
  pointer-events: none;
}

/* Scroll-down indicator at the bottom of the hero — gentle bounce */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  width: 108px; height: 108px;
  display: grid; place-items: center;
  z-index: 2;
  opacity: 0.85;
  animation: heroBounce 2.4s var(--ease) infinite;
  transition: opacity 0.45s ease;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.hero-scroll img {
  width: 66px; height: auto;
}

@keyframes heroBounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40%                     { transform: translate(-50%, -8px); }
  60%                     { transform: translate(-50%, -4px); }
}

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

.hero-block {
  padding: 190px var(--space-4) var(--space-6);  /* +50px above the lede */
  text-align: center;
}
.hero-block .lede {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 400;
  margin: 0 0 6px;             /* −10px gap before the headline */
  color: var(--text);
}
.hero-block .headline {
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 700;
  color: var(--accent);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.25;
}
.hero-block .byline {
  margin-top: 79px;            /* +15px gap between headline and "Erik Loots" */
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* ---------- Section label (yellow "About", "Information", etc) ---------- */
.eyebrow {
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  display: block;
}

/* ---------- About-like text block ---------- */
.text-block {
  padding: var(--space-7) var(--space-4);
  text-align: center;
}
.text-block .eyebrow { margin-bottom: var(--space-5); }
.text-block p {
  max-width: 700px;
  margin: 0 auto var(--space-3);
  font-size: 25px;       /* eyebrow 18px × ratio 1.4 (70 ÷ 50 from Keynote) */
  line-height: 1.4;
  color: var(--text);
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  font-size: 18px;
  letter-spacing: 0.02em;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--accent); color: #1a1a1a; }

/* SVG-based CTA — crossfades between a default and hover SVG on mouseover */
.btn-svg {
  display: inline-block;
  position: relative;
  line-height: 0;
}
.btn-svg img {
  height: 45px;                    /* shared site-wide button height */
  width: auto;
  display: block;
  transition: opacity 0.2s var(--ease);
}
.btn-svg img.hover {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
}
.btn-svg:hover img.default { opacity: 0; }
.btn-svg:hover img.hover   { opacity: 1; }

/* ---------- Work / Projects grid ---------- */
.work-section { padding: var(--space-7) 0 var(--space-6); }
.work-section h1 {
  text-align: center;
  font-size: clamp(44px, 5.2vw, 64px);
  font-weight: 700;
  margin: 0 0 var(--space-2);
}
.work-section .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 var(--space-6);
  font-size: 22px;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* Homepage carousel: horizontal sliding strip of project "pages",
   four projects per page (2×2 on desktop, single column on mobile).
   Reuses the same .carousel-arrow style as the project photo carousel. */
.work-carousel { position: relative; }
.work-viewport { overflow: hidden; }
.work-pages {
  display: flex;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.work-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (max-width: 720px) {
  .work-page { grid-template-columns: 1fr; gap: var(--space-3); }
}
/* Arrows sit just outside the grid on wide screens. On narrower viewports
   pull them back inside the container so they don't fall off the page. */
.work-carousel > .carousel-arrow { top: 40%; }
.work-carousel > .carousel-arrow.prev { left: -44px; transform: translateY(-50%) scaleX(-1); }
.work-carousel > .carousel-arrow.next { right: -44px; }
@media (max-width: 1080px) {
  .work-carousel > .carousel-arrow.prev { left: 4px; }
  .work-carousel > .carousel-arrow.next { right: 4px; }
}
.work-card {
  display: block;
  position: relative;
  background: transparent;
}
.work-card .thumb {
  width: 85%;                          /* 15% smaller than its grid cell, more breathing room */
  margin: 0 auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .thumb { transform: scale(1.02); }
.work-card .meta {
  padding: var(--space-3) var(--space-2) 0;
  text-align: center;
}
.work-card .date { color: var(--accent); font-size: 15px; letter-spacing: 0.04em; }
.work-card .title { font-size: 28px; font-weight: 700; margin: 6px 0 0; }

/* ---------- Project detail ---------- */
/* Outer page already pads 120px to clear the fixed header — small inner
   padding here brings the title to a similar height as the Work page (~160px). */
.project-header { padding: var(--space-3) 0 var(--space-4); text-align: center; }
.project-header .date { color: var(--accent); font-size: 18px; letter-spacing: 0.04em; }
.project-header h1 { font-size: clamp(44px, 5vw, 60px); font-weight: 700; margin: var(--space-2) 0 0; }

/* ---------- Project video (top) ---------- */
.project-video {
  position: relative;
  margin: var(--space-4) auto var(--space-5);
  max-width: 1100px;
  padding: 0 var(--space-4);
}
.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  border-radius: 4px;
}
.video-stage iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Project photos (bottom) — preserves aspect ratio ---------- *
 * Container height adapts to the active image's natural ratio, so portrait
 * photos display fully (no cropping) while landscape photos still fill the
 * frame. object-fit: contain keeps the whole image visible inside the stage.
 */
.project-photos {
  position: relative;
  margin: var(--space-5) auto var(--space-5);
  max-width: 1100px;
  padding: 0 var(--space-4);
}
.photo-stage {
  position: relative;
  width: 100%;
  height: min(80vh, 700px);    /* roomy, but never taller than viewport */
  min-height: 360px;
  background: var(--bg);        /* matches page bg → letterboxing invisible */
  overflow: hidden;
  border-radius: 4px;
}
/* Only direct-child <img> — keeps the arrow SVGs (which live inside button
   children) from being treated as slides.

   Transition: each new image enters from +100px on the right and slides to 0
   while fading in. The outgoing image slides to -100px on the left while
   fading out. Each click of an arrow or the photo itself nudges things one
   step further to the left. */
.photo-stage > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;          /* show the full image, no cropping */
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: translateX(100px);
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
}
.photo-stage > img.is-active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
  transform: translateX(0);
}
.photo-stage > img.is-leaving {
  opacity: 0;
  transform: translateX(-100px);
  z-index: 1;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 3;                          /* above the photo */
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}
.carousel-arrow:hover { opacity: 1; }
.carousel-arrow img { width: 24px; height: auto; }
/* Arrows live inside .photo-stage, so left/right are relative to the stage itself.
   The values pull them inward — slightly over the photo on landscape images,
   sitting in the empty letterbox area for portrait ones. */
.carousel-arrow.prev { left: 18px;  transform: translateY(-50%) scaleX(-1); }
.carousel-arrow.next { right: 18px; }
.photo-stage .carousel-arrow.prev { left: 18px; }
.photo-stage .carousel-arrow.next { right: 18px; }

.project-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  text-align: center;
}
.project-body p {
  font-size: 25px;       /* matches About: 1.4× eyebrow */
  line-height: 1.4;
  color: var(--text);
  font-weight: 400;
  margin: 0 0 var(--space-3);
}

.project-info {
  margin: var(--space-7) auto var(--space-6);
  max-width: 1000px;
  padding: 0 var(--space-4);
}
.project-info .eyebrow { margin-bottom: var(--space-4); }
.project-info .columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  text-align: center;
}
@media (max-width: 720px) {
  .project-info .columns { grid-template-columns: 1fr; gap: var(--space-3); }
}
.project-info .num { color: var(--accent); font-size: 15px; letter-spacing: 0.04em; }
.project-info .label { font-size: 28px; font-weight: 700; margin: 6px 0 8px; }
.project-info .value { color: var(--text-muted); font-size: 18px; line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer {
  background: #111;
  padding: 68px 0 var(--space-5);     /* top padding reduced ~30% (was 96px) */
  margin-top: var(--space-6);
}
.site-footer .columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  text-align: center;
}
@media (max-width: 720px) {
  .site-footer .columns { grid-template-columns: 1fr; gap: var(--space-4); }
}
.site-footer h4 {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 48px;          /* generous gap between heading and first item (matches original) */
  letter-spacing: 0.02em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li {
  color: var(--text);         /* pure white */
  font-size: 18px;
  padding: 1px 0;             /* tighter line spacing between items */
  line-height: 1.4;
}
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }

/* Social row sits below the three columns, centered.
   Each icon is a CSS mask so we can recolor it to the accent on hover
   regardless of the SVG's original fill. */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: var(--accent);
  transition: opacity 0.2s var(--ease);
  opacity: 0.95;
}
.footer-social a:hover { opacity: 1; }
.footer-social a > span {
  display: block;
  width: 29px; height: 29px;
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}
.footer-social a.is-instagram > span {
  -webkit-mask-image: url("/assets/graphics/instagram.svg");
          mask-image: url("/assets/graphics/instagram.svg");
}
.footer-social a.is-youtube > span {
  -webkit-mask-image: url("/assets/graphics/youtube.svg");
          mask-image: url("/assets/graphics/youtube.svg");
  width: 35px; height: 35px;   /* YouTube glyph is wider than tall — boost ~20% to match the optical weight */
}
.footer-social a.is-linkedin > span {
  -webkit-mask-image: url("/assets/graphics/linkedin.svg");
          mask-image: url("/assets/graphics/linkedin.svg");
}

/* Copyright line — sits below the social row, small accent-coloured text */
.footer-copy {
  margin: 22px 0 0;
  text-align: center;
  color: var(--accent);
  font-size: 16px;           /* matches the "Erik Loots" byline on the homepage */
  letter-spacing: 0.01em;
}
/* KvK / BTW business registration line — sits just below the copyright line.
   Same size as the copyright, but a dim gray so it stays low-key. */
.footer-legal {
  margin: 10px 0 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 16px;
  letter-spacing: 0.01em;
}

/* ---------- Hamburger / full-screen menu ---------- *
 * 1. The overlay slides in from the right (~550ms).
 * 2. After the slide settles, the menu grid fades in (~500ms, delayed).
 * 3. Clicking a menu link triggers the standard page transition: the
 *    grid fades out alongside the rest of the page content.
 */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 550ms cubic-bezier(0.7, 0, 0.25, 1);
  visibility: hidden;
}
.menu-overlay.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* Persistent X in the top-right of the menu overlay */
.menu-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: transparent;
  color: var(--text);
  border: none;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 300ms ease, color 0.2s var(--ease);
}
.menu-overlay.is-open .menu-close {
  opacity: 1;
  transition: opacity 400ms ease 500ms;     /* fades in after the slide settles */
}
.menu-close:hover { color: var(--accent); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(48px, 8vh, 100px) clamp(40px, 8vw, 120px);
  width: min(1100px, 86vw);
  padding: 40px 20px;
  opacity: 0;
  transform: translateX(100px);                     /* enters from ~100px right of final */
  transition: opacity 500ms ease, transform 500ms var(--ease);
}
.menu-overlay.is-open .menu-grid {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity   500ms ease 450ms,                     /* wait for the slide to finish */
    transform 600ms var(--ease) 450ms;              /* drift left as it fades in */
}
.menu-grid.is-leaving {
  opacity: 0 !important;
  transition: opacity 600ms var(--ease);
}

/* Fade while the language is being swapped — menu stays open.
   Selector needs the same .menu-overlay.is-open prefix to outrank the
   "open" rule above, otherwise the opacity:1 from .is-open wins. */
.menu-overlay.is-open .menu-grid.is-swapping {
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

.menu-grid a {
  text-align: center;
  display: block;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.menu-grid a:hover { color: var(--accent); }

.menu-grid .num {
  display: block;
  color: var(--accent);
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.menu-grid .label {
  display: block;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1;
}

/* Item 07 — centered on its own bottom row */
.menu-grid .span-3 { grid-column: 1 / -1; }

/* Language switcher at the bottom of the menu overlay */
.menu-lang {
  position: absolute;
  bottom: 36px;
  left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 400ms ease;
}
.menu-overlay.is-open .menu-lang {
  opacity: 1;
  transition: opacity 400ms ease 600ms;
}
.menu-lang button {
  background: transparent;
  border: none;
  color: var(--text);
  opacity: 0.55;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 4px 6px;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.menu-lang button:hover { opacity: 0.85; color: var(--accent); }
.menu-lang button.is-active {
  opacity: 1;
  color: var(--accent);
}
.menu-lang-sep { color: var(--text); opacity: 0.4; }

@media (max-width: 720px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .menu-grid .span-3 { grid-column: auto; }
}

/* ---------- Studio page extras ---------- */
/* The page title on /studio.html is rendered as a yellow accent, matching
   the rest of the site's accent typography. Project pages keep their white
   <h1> via the more general .project-header h1 rule above. */
#studio-root .project-header h1 { color: var(--accent); }

.studio-sub {
  color: var(--text-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  text-align: center;
  margin: 14px auto 0;
  max-width: 640px;
}
.studio-cta {
  margin: var(--space-7) auto var(--space-6);
  max-width: 520px;
  padding: 0 var(--space-4);
  text-align: center;
}
.studio-cta-title {
  color: var(--accent);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}
.studio-cta-help {
  color: var(--text);
  font-size: clamp(15px, 1.3vw, 18px);
  margin: 0 0 36px;
  line-height: 1.45;
}
.studio-cta .contact-field { margin-bottom: 14px; }
.studio-cta .contact-btn { margin-top: 18px; }
/* Studio pricing form: keep the input rule the same, but halve the visible
   yellow underline so the field reads more like a short label than a long row. */
.studio-cta .contact-field::after { width: 39%; }

/* Send-me image button (replaces the old text "Send me the flyer" button).
   Base + hover are stacked; the base fades to the hover on :hover. */
.send-me-btn {
  display: inline-block;
  background: transparent;
  border: none;
  padding: 0;
  margin: 28px auto 0;
  cursor: pointer;
  position: relative;
  line-height: 0;
  height: 45px;                    /* shared site-wide button height */
}
.send-me-btn img {
  height: 100%;
  width: auto;
  display: block;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.send-me-btn .hover {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
}
.send-me-btn:hover .hover,
.send-me-btn:focus-visible .hover { opacity: 1; }
.send-me-btn:hover .base,
.send-me-btn:focus-visible .base { opacity: 0; }

/* ---------- Terms page ---------- */
.terms-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px var(--space-4) var(--space-6);
}
.terms-h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}
.terms-meta {
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0 0 56px;
}
.terms-body { color: var(--text); }
.terms-body p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.terms-body h2 {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: 0.01em;
}

/* ---------- Contact page ---------- */
.contact-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 140px 24px 80px;
}
.contact-form-wrap {
  width: min(520px, 92vw);
  text-align: center;
}
.contact-h1 {
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  margin: 0 0 14px;
  line-height: 1;
}
.contact-sub {
  color: var(--text);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 19px);
  margin: 0 0 56px;
  line-height: 1.35;
}

.contact-field {
  position: relative;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Honeypot anti-spam field — kept out of view and out of the tab order.
   Real visitors never see or fill it; bots that do are rejected server-side. */
.cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-field input,
.contact-field textarea {
  width: 78%;
  background: transparent;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-weight: 400;
  font-size: 17px;
  padding: 8px 4px 6px;
  text-align: center;
  outline: none;
  caret-color: var(--accent);
  resize: vertical;
}
.contact-field textarea {
  min-height: 110px;
  line-height: 1.45;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--accent);
  opacity: 1;
}
.contact-field::after {
  content: "";
  display: block;
  width: 78%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.contact-field:focus-within::after { background: var(--text); }

.contact-btn {
  margin-top: 28px;
  padding: 10px 36px;
  font-size: 17px;
}

.contact-status {
  margin-top: 18px;
  min-height: 22px;
  font-size: 15px;
  color: var(--accent);
}
.contact-status.error { color: #ff8b8b; }

.contact-direct {
  margin-top: 80px;
}
.contact-or {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}
.contact-direct p { margin: 6px 0; font-size: 18px; }
.contact-direct a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-direct a:hover { color: var(--accent); }

/* ---------- Page transition (content crossfade — matches reference GIF) ---------- *
 * Both pages share the dark background, so we just fade the content layer.
 * Default: when html has .js but not .is-loaded, content is hidden.
 * JS adds .is-loaded after a frame → content fades up over 600ms.
 * Clicking an internal link adds .is-leaving → content fades out before nav.
 */
html.js .page-content,
html.js .site-header,
html.js .site-footer {
  opacity: 0;
  transition: opacity 600ms var(--ease);
}

html.js.is-loaded .page-content,
html.js.is-loaded .site-header,
html.js.is-loaded .site-footer {
  opacity: 1;
}

.page-content.is-leaving,
.site-header.is-leaving,
.site-footer.is-leaving {
  opacity: 0 !important;
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
