/* Ignitsy — "golden hour over the dunes, the city in the haze" */
@font-face {
  font-family: "Anybody";
  src: url(../fonts/anybody.woff2) format("woff2-variations"), url(../fonts/anybody.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 50% 150%; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(../fonts/instrument-sans.woff2) format("woff2-variations"), url(../fonts/instrument-sans.woff2) format("woff2");
  font-weight: 400 700; font-display: swap;
}

:root {
  --ivory: #F4ECDE;   /* page, sky near the zenith */
  --haze: #EEDFC6;    /* horizon haze, panels */
  --dune: #E3C89C;    /* sunlit sand */
  --ochre: #B98A55;   /* dune shadow, rules */
  --gold: #7C5A1C;    /* text accents (AA on ivory) */
  --glint: #C9A24A;   /* decorative gold */
  --ink: #2A2019;     /* espresso text */
  --brand-gold: #A9802A; /* logo gold (slightly deepened for contrast) */
  --brand-blue: #045593; /* logo blue */

  --display: "Anybody", "Arial", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  /* Sky: pale ivory overhead, warm haze at the horizon, low sun to the left */
  background:
    radial-gradient(45% 32% at 30% 50%, rgba(255, 214, 150, .85) 0%, rgba(255, 200, 140, .35) 45%, rgba(255, 200, 140, 0) 75%),
    linear-gradient(180deg, #8DB8E2 0%, #A9C8E6 16%, #CBD6E6 29%, #E9D2CF 40%, #F4CDA6 49%, #F2D6B6 55%, #F2D6B6 100%) fixed;
  background-color: var(--ivory);
}

#field {
  position: fixed; inset: 0;
  width: 100vw; height: 100lvh;
  display: block; z-index: 0;
}
/* Cream veil that rises over the desert as you scroll into the content */
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: var(--ivory);
  opacity: 0;
}
.no-webgl .veil { opacity: .35; }

header.top, main, footer.bottom { position: relative; z-index: 2; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- header ---------- */
header.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background-color .3s, padding .3s, box-shadow .3s;
}
header.top.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(244, 236, 222, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(124, 90, 28, .18);
}
.mark {
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.mark-icon { height: 40px; width: auto; display: block; }
/* Matches the Canva logo: condensed bold capitals, gold + brand blue */
.mark-word {
  font: 700 1.45rem/1 var(--display);
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.mark-a { color: var(--brand-gold); }
.mark-b { color: var(--brand-blue); }
@media (max-width: 420px) { .mark-word { font-size: 1.1rem; } }
/* legacy */ .mark-dot {
  width: .3em; height: .3em; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF4D2, var(--glint) 60%, #9A7426);
  box-shadow: 0 0 10px 1px rgba(201, 162, 74, .55);
  margin-top: -.1em;
}
nav { display: flex; gap: clamp(16px, 3vw, 36px); align-items: center; }
nav a { text-decoration: none; font-size: .95rem; color: var(--ink); opacity: .75; transition: opacity .2s; }
nav a:hover { opacity: 1; }
nav .nav-cta { opacity: 1; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
@media (max-width: 520px) { nav a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 108px var(--gutter) 44px;
}
.hero-title {
  align-self: start;
  margin: clamp(8px, 3vh, 40px) 0 0;
  max-width: 11ch;
  font-family: var(--display);
  font-weight: 300;
  font-stretch: 150%;
  font-size: clamp(2.3rem, 6.6vw, 6.6rem);
  line-height: .95;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.js .hero-title { animation: unfold 2.4s cubic-bezier(.2,.7,.1,1) .2s both; }
@keyframes unfold {
  from { font-stretch: 62%; opacity: 0; letter-spacing: .02em; }
  35%  { opacity: 1; }
  to   { font-stretch: 150%; opacity: 1; letter-spacing: -0.015em; }
}
@media (prefers-reduced-motion: reduce) { .js .hero-title { animation: none; } }

.hero-foot {
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  align-items: end; justify-content: space-between;
  padding: 22px 26px;
  background: rgba(244, 236, 222, .72);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-radius: 2px;
  border-top: 1px solid rgba(124, 90, 28, .35);
}
.hero-lede { max-width: var(--measure); margin: 0; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-hint { margin: 22px 0 0; font-size: .85rem; opacity: .65; }

/* Phones: no panel; the intro sits on a soft cream fade over the sand */
@media (max-width: 700px) {
  .hero { padding-bottom: 28px; }
  .hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
    background: linear-gradient(to top, rgba(244, 236, 222, .96) 0%, rgba(244, 236, 222, .8) 45%, rgba(244, 236, 222, 0) 100%);
    pointer-events: none; z-index: -1;
  }
  .hero-foot { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; padding: 0; gap: 18px; }
  .hero-lede { font-size: 1rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 13px 18px; font-size: .92rem; }
}
@media (hover: none) { .hero-hint { display: none; } }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 600 .98rem/1 var(--body);
  padding: 15px 24px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--brand-blue); color: #fff; }
.btn-solid:hover { background: #03437A; }
.btn-quiet { border-color: rgba(42, 32, 25, .4); color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink); }

/* ---------- content blocks ---------- */
.block {
  padding: clamp(96px, 14vw, 180px) var(--gutter) 0;
  max-width: 1240px; margin: 0 auto;
}
.block-title {
  font-family: var(--display);
  font-weight: 300;
  font-stretch: 130%;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 16ch;
}
.block-intro { max-width: var(--measure); margin: 0 0 56px; opacity: .85; }

.services { list-style: none; margin: 0; padding: 0; }
.services li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8px 48px;
  padding: 30px 0;
  border-top: 1px solid rgba(124, 90, 28, .28);
}
.services li:last-child { border-bottom: 1px solid rgba(124, 90, 28, .28); }
.services h3 {
  margin: 0;
  font: 400 clamp(1.3rem, 2.3vw, 1.8rem)/1.15 var(--display);
  font-stretch: 120%;
}
.services p { margin: 0; max-width: var(--measure); opacity: .85; }
@media (max-width: 760px) { .services li { grid-template-columns: 1fr; } }

.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px;
}
.steps li { display: grid; gap: 18px; align-content: start; }
.step-n {
  font: 200 4.4rem/.8 var(--display);
  font-stretch: 150%;
  color: var(--gold);
}
.steps h3 { margin: 0 0 8px; font: 500 1.25rem/1.2 var(--display); font-stretch: 115%; }
.steps p { margin: 0; opacity: .85; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

.note blockquote { margin: 0 auto; max-width: 42rem; }
.note p {
  margin: 0;
  font: 300 clamp(1.35rem, 2.5vw, 1.95rem)/1.45 var(--display);
  font-stretch: 105%;
  text-wrap: pretty;
}
.note footer { margin-top: 26px; opacity: .8; }
.note footer::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--gold); margin-right: 12px; vertical-align: middle;
}

/* ---------- contact ---------- */
.contact { padding-bottom: 120px; }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 56px;
  margin-top: 16px;
}
.contact-info p { max-width: 26rem; margin: 0 0 20px; opacity: .85; }
.contact-form { display: grid; gap: 22px; }
.contact-form label { display: grid; gap: 6px; font-size: .9rem; opacity: .9; }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(42, 32, 25, .35);
  border-radius: 0;
  padding: 10px 2px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); }
.contact-form [aria-invalid="true"] { border-bottom-color: #A1402A; }
.contact-form button { justify-self: start; margin-top: 8px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; min-height: 1.6em; }
.form-status.is-ok { color: var(--gold); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

footer.bottom {
  padding: 28px var(--gutter);
  border-top: 1px solid rgba(124, 90, 28, .25);
  font-size: .9rem; opacity: .85;
}
footer.bottom p { margin: 0; }
