/* ==========================================================================
   ArdaVentures — design system
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  color-scheme: light;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Fluid type scale (1.25 ratio, 360px -> 1440px viewport) */
  --text-xs:   clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --text-sm:   clamp(0.83rem, 0.80rem + 0.14vw, 0.92rem);
  --text-base: clamp(0.97rem, 0.93rem + 0.20vw, 1.09rem);
  --text-lg:   clamp(1.12rem, 1.05rem + 0.34vw, 1.36rem);
  --text-xl:   clamp(1.32rem, 1.18rem + 0.62vw, 1.80rem);
  --text-2xl:  clamp(1.60rem, 1.32rem + 1.22vw, 2.55rem);
  --text-3xl:  clamp(2.05rem, 1.50rem + 2.40vw, 3.80rem);
  --text-4xl:  clamp(2.15rem, 1.35rem + 3.45vw, 3.75rem);

  /* Spacing */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --measure: 62ch;
  --max-w: 1180px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.32s;

  /* Light palette — warm neutrals */
  --bg:        #faf8f5;
  --bg-sunk:   #f2efea;
  --surface:   #ffffff;
  --surface-2: #f7f4f0;
  --text:      #16130f;
  --text-2:    #55504a;
  --text-3:    #8a837b;
  --line:      rgba(22, 19, 15, 0.11);
  --line-2:    rgba(22, 19, 15, 0.055);
  --accent:    #c4451f;
  --accent-2:  #8a3a12;
  --accent-bg: rgba(196, 69, 31, 0.09);
  --live:      #1a7f52;
  --live-bg:   rgba(26, 127, 82, 0.11);

  --shadow-sm: 0 1px 2px rgba(22, 19, 15, 0.05),
               0 2px 8px rgba(22, 19, 15, 0.04);
  --shadow:    0 2px 4px rgba(22, 19, 15, 0.04),
               0 12px 32px -8px rgba(22, 19, 15, 0.14);
  --shadow-lg: 0 4px 8px rgba(22, 19, 15, 0.05),
               0 28px 60px -16px rgba(22, 19, 15, 0.22);
  --nav-bg: rgba(250, 248, 245, 0.78);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #0d0c0b;
  --bg-sunk:   #090908;
  --surface:   #171513;
  --surface-2: #1f1d1a;
  --text:      #f6f3ef;
  --text-2:    #b0a89f;
  --text-3:    #7d766e;
  --line:      rgba(246, 243, 239, 0.13);
  --line-2:    rgba(246, 243, 239, 0.07);
  --accent:    #ff7a4d;
  --accent-2:  #ffa383;
  --accent-bg: rgba(255, 122, 77, 0.13);
  --live:      #4ade9b;
  --live-bg:   rgba(74, 222, 155, 0.13);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:    0 2px 4px rgba(0, 0, 0, 0.3),
               0 12px 32px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3),
               0 28px 60px -16px rgba(0, 0, 0, 0.7);
  --nav-bg: rgba(13, 12, 11, 0.76);
}

/* --- Reset -------------------------------------------------------------- */

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

* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "cv11" 1, "ss01" 1;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

ul { list-style: none; padding: 0; }

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Primitives --------------------------------------------------------- */

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

.section { padding-block: var(--section-y); }
.section--sunk { background: var(--bg-sunk); }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

/* Eyebrow / section headers */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}
.section-head h2 {
  font-size: var(--text-2xl);
  margin-top: var(--sp-3);
  max-width: 18ch;
}
.section-head p {
  color: var(--text-2);
  max-width: 38ch;
  font-size: var(--text-base);
}
.section-head em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.82em 1.5em;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent); box-shadow: var(--shadow); }

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}
.btn--ghost:hover { border-color: var(--text-3); background: var(--surface-2); }

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line-2); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.02em;
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.045em;
}
.brand span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.4vw, 1rem);
}
.nav__links a {
  position: relative;
  padding: 0.45rem 0.7rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.1rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="true"] { color: var(--text); }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: var(--sp-2); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 1.05rem;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--text-3);
  background: var(--surface);
}

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav__burger { display: none; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 4.25rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) var(--gutter) var(--sp-6);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility var(--dur);
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a {
    padding: var(--sp-4) var(--sp-1);
    font-size: var(--text-lg);
    font-weight: 500;
    border-bottom: 1px solid var(--line-2);
  }
  .nav__links a::after { display: none; }
  .nav__burger { display: grid; }
}

.nav__burger .icon-close { display: none; }
.nav__burger[aria-expanded="true"] .icon-menu { display: none; }
.nav__burger[aria-expanded="true"] .icon-close { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 8vw, 8rem) clamp(4rem, 2rem + 8vw, 8rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 70vh;
  background:
    radial-gradient(45% 55% at 22% 30%, var(--accent-bg), transparent 70%),
    radial-gradient(40% 50% at 78% 15%, rgba(120, 140, 255, 0.10), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em;
  padding: 0.42em 0.5em 0.42em 0.8em;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.hero__status:hover {
  transform: translateY(-1px);
  border-color: var(--text-3);
  box-shadow: var(--shadow);
}
.hero__status strong { font-weight: 600; color: var(--text); }

.hero__status-next {
  padding-left: 0.65em;
  border-left: 1px solid var(--line);
  color: var(--text-3);
}

/* Reads as a source credit, not a button — it is Flok's data, after all. */
.hero__status-src {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.25em 0.7em;
  border-radius: var(--radius-full);
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero__status-src .icon { font-size: 0.85em; }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 var(--live);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.045em;
  margin-block: var(--sp-5) 0;
  /* The explicit <br>s are the intended breaks; balancing re-wraps around them. */
  text-wrap: pretty;
}

/* Below the two-column hero the line breaks would strand single words. */
@media (max-width: 760px) {
  .hero h1 br { display: none; }
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--accent);
}

.hero__lede {
  margin-top: var(--sp-5);
  max-width: 46ch;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.hero__portrait {
  position: relative;
  width: clamp(9rem, 20vw, 15rem);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  rotate: 2deg;
  transition: rotate 0.5s var(--ease-out), scale 0.5s var(--ease-out);
}
.hero__portrait:hover { rotate: 0deg; scale: 1.02; }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; rotate: -2deg; }
}

/* ==========================================================================
   Projects
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.project { grid-column: span 2; }
.project--lg { grid-column: span 3; }
.project--hero { grid-column: 1 / -1; }

@media (max-width: 960px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project, .project--lg { grid-column: span 1; }
  .project--hero { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out),
              box-shadow 0.45s var(--ease-out),
              border-color 0.45s var(--ease-out);
}
.project:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.project__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-2);
}
.project__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: scale 0.6s var(--ease-out);
}
.project:hover .project__shot img { scale: 1.035; }

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-3);
  padding: clamp(1.15rem, 2.2vw, 1.75rem);
}

.project__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.project__top h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.7em;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tag--live { background: var(--live-bg); color: var(--live); }
.tag--wip  { background: var(--accent-bg); color: var(--accent); }
.tag--shop { background: var(--surface-2); color: var(--text-2); }
.tag .dot { width: 6px; height: 6px; background: currentColor; animation: none; }

.project__desc {
  font-size: var(--text-sm);
  line-height: 1.62;
  color: var(--text-2);
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--text-3);
}
.project__meta span {
  padding: 0.22em 0.6em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.project__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-3);
}

/* The flagship: screenshot and copy side by side, at a larger scale. */
@media (min-width: 900px) {
  .project--hero { flex-direction: row; min-height: 25rem; }
  .project--hero .project__shot {
    flex: 0 0 60%;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line-2);
  }
  .project--hero .project__body {
    flex: 1 1 40%;
    justify-content: center;
    gap: var(--sp-4);
    padding: clamp(1.75rem, 3.2vw, 3rem);
  }
  .project--hero .project__top h3 { font-size: var(--text-2xl); }
  .project--hero .project__desc { font-size: var(--text-base); }
  .project--hero .project__links { margin-top: 0; }
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.link-chip:hover {
  color: var(--text);
  border-color: var(--text-3);
  background: var(--surface-2);
}
.link-chip--primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.link-chip--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ==========================================================================
   Media
   ========================================================================== */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.channel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out),
              box-shadow 0.45s var(--ease-out);
}
.channel:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.channel__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.channel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.6s var(--ease-out);
}
.channel:hover .channel__thumb img { scale: 1.04; }

.channel__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
}
.channel__body h3 { font-size: var(--text-base); letter-spacing: -0.025em; }
.channel__body p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-2);
}

.socials {
  display: flex;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-4);
}
.social {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.95rem;
  transition: color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.social:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.social--yt:hover { background: #ff0000; }
.social--ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.social--tt:hover { background: #111; }
.social--book:hover { background: var(--accent); }

/* ==========================================================================
   About / credentials
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.about__copy h2 { font-size: var(--text-2xl); margin-block: var(--sp-3) var(--sp-5); }
.about__copy p {
  color: var(--text-2);
  max-width: var(--measure);
}
.about__copy p + p { margin-top: var(--sp-4); }
.about__copy em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text);
}

/* 5 photos on a 6-column grid: three portraits, then two wider ones,
   so both rows fill edge to edge instead of leaving a hole. */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.facts > :last-child { grid-column: span 2; aspect-ratio: 16 / 10; }

@media (min-width: 560px) {
  .facts { grid-template-columns: repeat(6, 1fr); }
  .facts > * { grid-column: span 2; }
  .facts > :nth-child(n + 4) { grid-column: span 3; aspect-ratio: 16 / 10; }
}

.fact {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  isolation: isolate;
}
.fact img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: scale 0.7s var(--ease-out);
}
.fact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(10, 8, 7, 0.88) 0%,
    rgba(10, 8, 7, 0.45) 42%,
    rgba(10, 8, 7, 0.05) 100%
  );
}
.fact:hover img { scale: 1.06; }
.fact__label {
  position: absolute;
  inset: auto 0 0;
  padding: var(--sp-4);
  color: #fff;
}
.fact__label strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.fact__label span {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.74);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.contact__copy h2 { font-size: var(--text-2xl); margin-block: var(--sp-3) var(--sp-5); }
.contact__copy p { color: var(--text-2); max-width: 40ch; }

.contact__alt {
  margin-top: var(--sp-6);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact__copy .socials { margin-top: var(--sp-3); padding-top: 0; }

.contact__direct {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: var(--sp-5);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease);
}
.contact__direct:hover { color: var(--accent); }

.form {
  display: grid;
  gap: var(--sp-4);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: var(--sp-2); }
.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

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

.form button[type="submit"] { width: 100%; }
.form button[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.form__status {
  font-size: var(--text-sm);
  line-height: 1.5;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.form__status[hidden] { display: none; }
.form__status.is-ok {
  color: var(--live);
  background: var(--live-bg);
  border-color: color-mix(in srgb, var(--live) 28%, transparent);
}
.form__status.is-err {
  color: var(--accent);
  background: var(--accent-bg);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-7);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--text-3);
}
.footer nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer nav a { transition: color var(--dur) var(--ease); }
.footer nav a:hover { color: var(--text); }
