/* ==========================================================================
   Groovy Media — groovymedia.com
   One-page static site. No build step, no dependencies.
   Fonts: Young Serif (display) + Space Grotesk (everything else).
   ========================================================================== */

:root {
  --paper: #faf6f0;
  --ink: #1c1713;
  --ink-soft: #5c534b;
  --orange: hsl(18, 100%, 52%);
  --orange-deep: hsl(15, 95%, 44%);
  --hairline: rgba(28, 23, 19, 0.16);

  --font-display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 2.75rem);
}

/* --- Base ----------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0 0 1.1rem; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Small all-caps section tag, e.g. "01 — About" */
.tag {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.75rem;
}

/* --- Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--orange);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --- Buttons / links ----------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--orange); color: #fff; }
.btn:active { transform: scale(0.98); }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--ink); color: var(--paper); }

.arrow-link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.arrow-link::after { content: " \2197"; }
.arrow-link:hover { color: var(--orange); border-color: var(--orange); }

/* --- Hero ------------------------------------------------------------------------ */

.hero { position: relative; overflow: hidden; }

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(5rem, 13vh, 9rem);
  padding-bottom: clamp(5rem, 13vh, 9rem);
}

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.4rem);
  max-width: 16ch;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--orange);
}

.hero .hero-sub {
  max-width: 44ch;
  margin-top: 2.25rem;
  margin-bottom: 2.5rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

/* The one graphic on the page: a slowly morphing orange blob */
.hero-blob {
  position: absolute;
  z-index: 1;
  right: -8vw;
  top: 8%;
  width: clamp(220px, 30vw, 460px);
  height: clamp(220px, 30vw, 460px);
  background: var(--orange);
  border-radius: 58% 42% 45% 55% / 48% 60% 40% 52%;
  animation: blob-morph 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes blob-morph {
  0%   { border-radius: 58% 42% 45% 55% / 48% 60% 40% 52%; transform: rotate(0deg) scale(1); }
  50%  { border-radius: 42% 58% 60% 40% / 55% 42% 58% 45%; transform: rotate(9deg) scale(1.05); }
  100% { border-radius: 50% 50% 38% 62% / 42% 55% 45% 58%; transform: rotate(-7deg) scale(0.97); }
}

/* --- Stats row --------------------------------------------------------------------- */

.stats {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 2.5vw, 2.5rem);
}
.stat + .stat { border-left: 1px solid var(--hairline); }

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* --- Generic section spacing --------------------------------------------------------- */

.section {
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.section h2 {
  font-size: clamp(2.1rem, 4.3vw, 3.5rem);
  max-width: 24ch;
  margin-bottom: 1.75rem;
}

.section .lede {
  max-width: 62ch;
  font-size: 1.05rem;
}

/* --- About / what we do ----------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
}

.about-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.about-item p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
}

/* --- GAPM (the orange moment) -------------------------------------------------------------- */

.gapm {
  background: var(--orange);
  color: #fff;
}

.gapm .tag { color: #fff; opacity: 0.85; }

.gapm .lede { color: rgba(255, 255, 255, 0.94); }

.gapm-steps {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  counter-reset: step;
}

.gapm-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 16rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.gapm-steps li::before {
  content: "0" counter(step);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.gapm-steps h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.gapm-steps p {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

/* --- Careers --------------------------------------------------------------------------------- */

.careers { border-bottom: 1px solid var(--hairline); }
.careers .body-copy { max-width: 62ch; color: var(--ink-soft); }
.careers .arrow-link { color: var(--ink); }

/* --- Contact ----------------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.contact-aside p { color: var(--ink-soft); max-width: 34ch; }
.contact-aside a { color: var(--ink); }
.contact-aside a:hover { color: var(--orange); }

.field { margin-bottom: 1.75rem; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field textarea:focus { border-bottom: 2px solid var(--orange); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* honeypot — hidden from humans, tempting for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.5rem;
}
.form-status.is-error { color: var(--orange-deep); }

/* --- Footer -------------------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--hairline); }

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--orange);
  margin-bottom: 1rem;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 0.3rem;
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

/* --- Responsive ------------------------------------------------------------------------------------ */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gapm-steps li { grid-template-columns: 3rem minmax(0, 1fr); }
  .gapm-steps p { grid-column: 2; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
  }
  .site-nav li { width: 100%; }
  .site-nav a {
    display: block;
    padding: 0.9rem var(--pad-x);
    font-size: 1.05rem;
  }

  .nav-open .site-nav { display: block; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .stats__inner { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--hairline); }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .site-footer__inner { grid-template-columns: 1fr; }

  .hero-blob { right: -32vw; top: -70px; opacity: 0.9; }
}

/* --- Reduced motion ---------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-blob { animation: none; }
  .btn { transition: none; }
}
