/* Argos · AI COS for Humans. Greek blue and white, with a touch of gold. */

:root {
  --aegean: #0F3B8C;
  --cobalt: #1D4FB5;
  --whitewash: #F4F1EA;
  --sky: #CFE2F6;
  --ink: #1B2A4A;
  --ink-soft: #33415F;
  --muted: #4A5878;
  --navy: #0A1F4D;
  --gold: #F2C86B;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-caps: Cinzel, Georgia, serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font: 400 17px/1.6 var(--font-body); }
img { max-width: 100%; display: block; }
h1, h2, p, figure { margin: 0; }
[data-text] { white-space: pre-line; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: #FFFFFF; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); border: 0; }
.btn-gold:hover { background: #F6D58A; }
.btn-outline { min-height: 44px; padding: 0 20px; font-size: 15px; color: var(--aegean); border: 1.5px solid var(--aegean); }
.btn-outline:hover { background: var(--aegean); color: #FFFFFF; }
.btn-block { width: 100%; min-height: 52px; }

.kicker { font: 400 14px/1.4 var(--font-caps); letter-spacing: .24em; text-transform: uppercase; color: var(--cobalt); }
.kicker--gold { color: var(--gold); }

/* ---------- header ---------- */

.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.brand { font: 600 22px/1 var(--font-caps); letter-spacing: .28em; color: var(--aegean); text-decoration: none; padding: 8px 0; }
.meander svg { display: block; }
.meander--draw { clip-path: inset(0 100% 0 0); animation: meander-draw 1.4s cubic-bezier(.22, 1, .36, 1) .15s forwards; }
@keyframes meander-draw { to { clip-path: inset(0 0 0 0); } }

/* ---------- hero ---------- */

/* the hero fills the rest of the first screen, so the white sections start below the fold;
   --header-h is measured by js/site.js */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: calc(100vh - var(--header-h, 100px)); min-height: calc(100svh - var(--header-h, 100px)); background: var(--aegean); color: var(--whitewash); }
.hero-row { position: relative; z-index: 1; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; padding-block: clamp(56px, 6vw, 80px); }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font: 600 clamp(42px, 5.2vw, 72px)/1.04 var(--font-display); color: #FFFFFF; }
.lede { font-size: 19px; color: var(--sky); max-width: 34em; }
.hero-actions { padding-top: 6px; }
.hero-figure { flex: 1 1 520px; min-width: 0; }
.hero-image { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(5, 18, 50, .45); }
.hero-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: scale(1.06) translate(-0.7%, -0.4%); }
  to { transform: scale(1.06) translate(0.7%, 0.4%); }
}
.hero-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--sky); }

/* a small flock crosses the picture, again and again */
.flock { position: absolute; inset: 0; pointer-events: none; }
.flock-bird { position: absolute; left: -14%; width: 7%; aspect-ratio: 52 / 34; opacity: .92; animation: flock-cross 15s linear infinite both; }
.flock-bird svg { display: block; width: 100%; height: 100%; }
@keyframes flock-cross {
  0% { left: -14%; transform: translateY(0); }
  30% { transform: translateY(-10px); }
  62% { left: 108%; transform: translateY(6px); }
  100% { left: 108%; transform: translateY(6px); }
}
.flock-bird .wing { transform-box: fill-box; transform-origin: 100% 100%; animation: flap .32s ease-in-out infinite alternate; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.6); } }

/* the sky over the whole page, where Argos flies; only the bird itself catches the pointer */
body { position: relative; }
.sky { position: absolute; inset: 0; pointer-events: none; z-index: 30; }

/* ---------- about and the first flock ---------- */

.about-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; padding-block: clamp(56px, 6vw, 88px); }
.about-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about h2 { font: 600 clamp(40px, 4.6vw, 60px)/1.04 var(--font-display); color: var(--aegean); }
.about-body { font-size: 17px; color: var(--ink-soft); max-width: 34em; }

.first-flock { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.first-flock h2 { margin-top: 8px; font-size: clamp(34px, 3.4vw, 44px); }
.flock-message { font-size: 16px; color: var(--ink-soft); }
.flock-contact { font-size: 16px; color: var(--ink-soft); }
.flock-email { color: var(--cobalt); font-weight: 600; text-underline-offset: 3px; }
.flock-email:hover { color: var(--aegean); }
.nest-figure { position: relative; margin: 0; }
.nest-figure > img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 50px rgba(15, 59, 140, .25); }

/* the thank-you moment: a bubble over the nest, and the nazars Argos has dropped into it */
.thanks-bubble { position: absolute; left: 50%; top: 8%; transform: translate(-50%, 8px); max-width: min(86%, 380px); margin: 0; padding: 10px 18px; border-radius: 16px; background: #FFFFFF; color: var(--navy); font-size: 15px; font-weight: 500; line-height: 1.45; text-align: center; box-shadow: 0 12px 30px rgba(5, 18, 50, .3); opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.thanks-bubble.is-shown { opacity: 1; transform: translate(-50%, 0); }
.thanks-bubble:empty { display: none; }
.dropped-nazar { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; z-index: 2; }
.dropped-nazar svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }

/* ---------- footer ---------- */

.footer-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding-block: 20px 26px; }
.footer-line { font: italic 500 22px/1.3 var(--font-display); color: var(--aegean); }
.footer-contact { font-size: 13px; color: var(--muted); }

/* ---------- edit mode (index.html?edit) ---------- */

.is-editing [data-text] { cursor: text; outline: 1.5px dashed rgba(242, 200, 107, .0); outline-offset: 4px; border-radius: 4px; transition: outline-color .15s ease; }
.is-editing [data-text]:hover { outline-color: rgba(242, 200, 107, .9); }
.is-editing [data-text]:focus { outline: 2px solid var(--gold); }
body.is-editing { padding-bottom: 96px; }
.edit-bar { position: fixed; left: 50%; bottom: 16px; z-index: 100; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px 12px 20px; border-radius: 14px; background: var(--navy); color: #FFFFFF; box-shadow: 0 16px 40px rgba(5, 18, 50, .4); font-size: 14px; }
.edit-bar[hidden] { display: none; }
.edit-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.edit-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .5); background: transparent; color: #FFFFFF; font: 600 14px var(--font-body); cursor: pointer; }
.edit-btn--primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .meander--draw { clip-path: none; animation: none; }
  .hero-image img { animation: none; transform: none; }
  .flock { display: none; }
  .thanks-bubble { transition: none; }
}
