/* ELITE GENESIS - FZCO
   One ground, one ink, one accent. Five type sizes. No gradients, shadows or rules. */

:root {
  color-scheme: dark;

  --ground: #0e1433;
  --ground-2: #141b45;
  --field: #1b2457;
  --ink: #f1f3ff;
  --ink-soft: #aeb7e6;
  --accent: #2ab3c0;
  --accent-hover: #5ccdd8;
  --accent-ink: #0e1433;
  --edge: #7c87c9;
  --error: #ffb4a9;

  --margin: clamp(20px, 3.2vw, 48px);
  --gap: clamp(20px, 2.4vw, 40px);
  --section: clamp(88px, 11vw, 176px);

  --t-xs: 0.875rem;
  --t-s: 1.125rem;
  --t-m: clamp(1.25rem, 1.7vw, 1.5rem);
  --t-l: clamp(1.5rem, 2.6vw, 2.25rem);
  --t-xl: clamp(1.875rem, 4.8vw, 5rem);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { background: var(--ground); scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: var(--edge) var(--ground); }
::selection { background: var(--accent); color: var(--accent-ink); }
input, textarea { caret-color: var(--accent); accent-color: var(--accent); }
p { text-wrap: pretty; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-s);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, address { margin: 0; }
address { font-style: normal; }

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

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

.skip {
  position: absolute; left: var(--margin); top: -4rem; z-index: 10;
  padding: 0.75rem 1rem; background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip:focus { top: 0.75rem; }

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.brand img { height: 52px; width: auto; }
.bar-links { display: flex; gap: 32px; }
.bar-links a { color: var(--ink-soft); text-decoration: none; padding-block: 8px; text-underline-offset: 0.35em; transition: color 0.15s; }
.bar-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: start;
  padding-block: clamp(48px, 9vh, 112px) var(--section);
}
.hero h1 {
  grid-column: 1 / span 8;
  font-size: var(--t-xl);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero .lead { grid-column: 1 / span 6; margin-top: clamp(28px, 3.5vw, 48px); }
.hero p:last-of-type { grid-column: 1 / span 6; margin-top: clamp(28px, 3vw, 40px); }
.mark {
  grid-column: 9 / span 4;
  grid-row: 1 / span 3;
  justify-self: end;
  width: 100%;
  transform-origin: 60% 60%;
}

.lead { font-size: var(--t-m); line-height: 1.4; max-width: 34em; }

/* Buttons */
.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 0;
  padding: 16px 32px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
}
.button:hover { background: var(--accent-hover); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.6; cursor: progress; }

/* Section titles */
.section-title { font-size: var(--t-l); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.row-label { font-size: var(--t-l); font-weight: 400; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink-soft); }

/* What we do */
.what { padding-bottom: var(--section); }
.what .section-title { margin-bottom: clamp(32px, 5vw, 72px); }
.what-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding-block: clamp(20px, 3vw, 40px);
}
.what-row h3 { grid-column: 1 / span 4; font-size: var(--t-l); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.what-row p { grid-column: 5 / span 7; font-size: var(--t-l); line-height: 1.3; letter-spacing: -0.015em; }

/* Contact */
.contact { background: var(--ground-2); padding-block: var(--section); padding-inline: var(--margin); }
.contact-grid { padding-inline: 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 64px; align-items: start; }
.contact-intro { grid-column: 1 / span 6; }
.contact-intro .lead { margin-top: 20px; }
.contact-intro .row-label { margin-top: clamp(40px, 5vw, 72px); }
.address p { font-size: var(--t-l); line-height: 1.3; letter-spacing: -0.02em; }
.address .legal { font-weight: 600; }

.form { grid-column: 8 / span 5; }
.form-note { margin-bottom: 24px; color: var(--ink-soft); }
.field { display: grid; gap: 8px; margin-bottom: 24px; }
.field label { color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 0;
  border-bottom: 2px solid var(--edge);
  border-radius: 0;
  padding: 14px 16px;
  transition: border-color 0.15s, background-color 0.15s;
}
.field textarea { min-height: 9em; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); outline-offset: 0; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: hidden bot trap, not a rule */
#turnstile { margin: 8px 0 24px; min-height: 65px; }
#form-status { margin-top: 20px; min-height: 1.6em; }
#form-status[data-kind="success"] { color: var(--accent); }
#form-status[data-kind="error"] { color: var(--error); }

/* Footer */
.footer { padding-block: var(--section) 40px; }
.footer-name { font-size: min(6.6vw, 7rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.footer-row { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(40px, 6vw, 96px); font-size: var(--t-xs); color: var(--ink-soft); }
.footer-row a { padding-block: 12px; text-underline-offset: 0.35em; }
.footer-row a:hover { color: var(--ink); }

/* Privacy and 404 pages */
.prose { max-width: 46rem; padding-block: clamp(48px, 9vh, 112px) var(--section); }
.prose h1 { font-size: var(--t-xl); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.prose h2 { margin-top: 2.2em; font-size: var(--t-m); font-weight: 600; line-height: 1.3; }
.prose p { margin-top: 0.8em; max-width: 35em; }
.prose .updated { margin-top: 1.2em; color: var(--ink-soft); }
.prose .lead { margin-top: clamp(20px, 2.5vw, 32px); }
.prose .back { margin-top: clamp(40px, 5vw, 64px); }
.prose p a:not(.button) { text-underline-offset: 0.3em; text-decoration-thickness: 2px; }
.prose p a:not(.button):hover { color: var(--accent); }

/* Phones and narrow windows */
@media (max-width: 859px) {
  .brand img { height: 44px; }
  .bar-links { gap: 20px; }
  .hero h1, .hero .lead, .hero p:last-of-type, .contact-intro, .form,
  .what-row h3, .what-row p { grid-column: 1 / -1; }
  .mark { grid-column: 1 / -1; grid-row: auto; justify-self: start; width: min(72%, 320px); margin-top: 56px; }
  .what-row h3 { margin-bottom: 12px; }
  .what-row p { font-size: var(--t-m); line-height: 1.35; }
}

/* Motion: transform and opacity only, and none at all if the visitor asks for less */
/* The first screen only moves; it is never hidden, so the title is readable on the first frame. */
@keyframes arrive { from { transform: translateY(28px); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lift { from { transform: translateY(28px); } to { transform: none; } } /* never fades, so text keeps full contrast */
@keyframes settle { to { transform: scale(0.9) rotate(5deg); } }

@media (prefers-reduced-motion: no-preference) {
  .hero .rise { animation: arrive 0.8s var(--ease) both; }
  .hero h1.rise { animation-delay: 0.05s; }
  .hero .lead.rise { animation-delay: 0.15s; }
  .hero p.rise:last-of-type { animation-delay: 0.25s; }
  .mark { animation: fade-in 1s var(--ease) 0.2s both; }

  @supports (animation-timeline: view()) {
    .reveal { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .mark { animation: settle linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
