/* ============================================================
   Giuntura — landing page
   Committed dark theme. No external dependencies.
   ============================================================ */

:root {
  --bg:          #0A0B0D;
  --bg-alt:      #0E1013;
  --surface:     #121418;
  --surface-hi:  #171A1F;
  --line:        rgba(255, 255, 255, .08);
  --line-hi:     rgba(255, 255, 255, .16);

  --text:        #ECEEF1;
  --text-soft:   #A8AEB8;
  --text-mute:   #6E757F;

  --accent:      #E5A94E;
  --accent-soft: rgba(229, 169, 78, .12);
  --accent-line: rgba(229, 169, 78, .32);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --wrap: 1120px;
  --r:    14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.022em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 16px;
  background: var(--accent);
  color: #14100A;
  border-radius: 8px;
  font-weight: 600;
  z-index: 200;
}
.skip:focus { left: 12px; }

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

/* ── Navigation ─────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 13, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(10, 11, 13, .9);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-size: 1.0625rem;
}
.brand__mark { width: 26px; height: 26px; fill: var(--accent); flex: none; }
.brand__word { color: var(--text); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: .9375rem;
}
.nav__links > a:not(.btn) {
  color: var(--text-soft);
  transition: color .2s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--text); }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--accent); color: #14100A; }
.btn--primary:hover { transform: translateY(-2px); background: #F0B75F; }
.btn--ghost { border-color: var(--line-hi); color: var(--text); }
.btn--ghost:hover { border-color: var(--text-mute); background: rgba(255,255,255,.04); }
.btn--sm { padding: 9px 17px; font-size: .875rem; background: var(--accent); color: #14100A; }
.btn--sm:hover { background: #F0B75F; }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(72px, 12vw, 132px) 0 clamp(64px, 9vw, 104px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__glow {
  position: absolute;
  top: -340px; left: 50%;
  width: 940px; height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(229,169,78,.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; }

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  font-family: var(--mono);
  font-size: .78125rem;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 30px;
}
.eyebrow__word  { color: var(--accent); letter-spacing: .02em; }
.eyebrow__sep   { color: var(--text-mute); }
.eyebrow__gloss { color: var(--text-soft); }

.hero__title {
  font-size: clamp(2.5rem, 6.6vw, 4.5rem);
  max-width: 15ch;
  margin-bottom: 26px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .08em;
  height: 2px;
  background: var(--accent-line);
}

.hero__lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.25rem);
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: 38px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 64px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.hero__facts li {
  background: var(--bg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero__facts strong { font-size: .9375rem; font-weight: 600; }
.hero__facts span   { font-size: .875rem; color: var(--text-mute); }

/* ── Sections ───────────────────────────────────────────── */

.section { padding: clamp(64px, 9vw, 108px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section__head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 56px); }

.kicker {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section__title { font-size: clamp(1.875rem, 4vw, 2.75rem); margin-bottom: 18px; }
.section__lede  { font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--text-soft); }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ── Cards ──────────────────────────────────────────────── */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 30px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-hi);
  background: var(--surface-hi);
}
.card__num {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p  { color: var(--text-soft); font-size: .9375rem; }

/* ── Steps ──────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.step {
  background: var(--bg-alt);
  padding: 32px 30px;
  display: flex;
  gap: 20px;
  transition: background .3s var(--ease);
}
.step:hover { background: var(--surface); }
.step__n {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--accent);
  padding-top: 5px;
  flex: none;
}
.step h3 { font-size: 1.125rem; margin-bottom: 9px; }
.step p  { color: var(--text-soft); font-size: .9375rem; }

/* ── Work ───────────────────────────────────────────────── */

.work {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .3s var(--ease);
}
.work:hover { border-color: var(--line-hi); }
.work__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.work__top h3 { font-size: 1.25rem; }
.tag {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 3px 10px;
}
.work p { color: var(--text-soft); font-size: .9375rem; flex: 1; }
.work__links { display: flex; gap: 10px; flex-wrap: wrap; }
.work__links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  padding: 7px 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.work__links a:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

.disclaimer {
  margin-top: 26px;
  font-size: .875rem;
  color: var(--text-mute);
  border-left: 2px solid var(--line-hi);
  padding-left: 16px;
  max-width: 72ch;
}
.disclaimer strong { color: var(--text-soft); font-weight: 600; }

/* ── Stack ──────────────────────────────────────────────── */

.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stack__group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
}
.stack__group h3 {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
  margin-bottom: 18px;
}
.stack__group ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__group li {
  font-size: .875rem;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 12px;
  background: var(--bg-alt);
}

/* ── Contact ────────────────────────────────────────────── */

/* `.contact__inner` is also the `.wrap`, so constrain the children instead —
   setting max-width on the wrap itself would re-centre the whole block and
   break alignment with every other section. */
.contact__inner > .kicker,
.contact__inner > .section__title,
.contact__inner > .section__lede { max-width: 62ch; }
.mailto {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  font-size: clamp(1.25rem, 3.2vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 5px;
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.mailto:hover { gap: 18px; border-bottom-color: var(--accent); }
.mailto svg { width: .8em; height: .8em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Footer ─────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-alt); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand div { display: flex; flex-direction: column; line-height: 1.4; }
.footer__brand strong { font-size: .9375rem; }
.footer__brand span   { font-size: .8125rem; color: var(--text-mute); }
.footer__meta { display: flex; align-items: center; gap: 24px; font-size: .875rem; color: var(--text-mute); }
.footer__meta a { color: var(--text-soft); transition: color .2s var(--ease); }
.footer__meta a:hover { color: var(--accent); }

/* ── Reveal animation ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 860px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 22px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__links > .btn { margin-top: 16px; justify-content: center; }

  .grid--2, .steps, .stack, .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li { padding: 18px 20px; }
}

@media (max-width: 520px) {
  .wrap { padding-inline: 20px; }
  .card, .step, .work, .stack__group { padding: 26px 22px; }
  /* The pill wraps onto multiple lines here, which leaves the "/" dangling
     at the end of a line. Drop it and let the two parts stack. */
  .eyebrow { font-size: .71875rem; }
  .eyebrow__sep { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
