/* ==========================================================================
   GPNM Creative Design — styles
   Palette: warm cream stage, vermillion signal color, oxblood + gold depth
   Type: Bricolage Grotesque (variable, 300–800)
   ========================================================================== */

:root {
  --bg: oklch(0.955 0.022 83);            /* warm cream */
  --surface: oklch(0.915 0.035 75);       /* peach-tinted panels */
  --ink: oklch(0.23 0.035 45);            /* espresso */
  --muted: oklch(0.45 0.035 50);          /* warm gray-brown */
  --line: oklch(0.84 0.035 75);           /* warm hairline */

  --primary: oklch(0.55 0.2 33);          /* vermillion: fills, white text on it */
  --primary-bright: oklch(0.66 0.21 38);  /* brighter orange: strokes, arrows */
  --deep: oklch(0.33 0.12 30);            /* oxblood: pricing band */
  --gold: oklch(0.83 0.14 85);            /* golden pop on oxblood */
  --cream-text: oklch(0.97 0.018 83);     /* light text on saturated fills */

  --font: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;

  --space-section: clamp(5rem, 12vw, 10rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);

  --z-strip: 1;
  --z-content: 2;
  --z-grain: 5;
  --z-nav: 10;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-soft: 0 0.75rem 2rem oklch(0.3 0.06 40 / 0.14);

  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Proportional zoom for big screens: below ~1600px wide the root stays
     16px (the 13-inch composition). Above that, everything rem-based
     scales with the viewport — width-driven on normal screens,
     height-driven on ultrawides so the hero never outgrows the fold.
     16px/1600px = 1vw; 16px/900px = 1.7778vh. */
  font-size: max(16px, min(1vw, 1.7778vh));
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  /* hidden, not clip: overflow-x clip on body blacks out scrolled content
     in some Chromium builds (viewport treats it as a hard canvas clip) */
  overflow-x: hidden;
}

/* film grain: kills the flat digital look without hurting readability */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

h1, h2, h3 { text-wrap: balance; line-height: 1.05; }

::selection { background: var(--primary); color: var(--cream-text); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
  background: color-mix(in oklch, var(--bg) 97%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo-dot { color: var(--primary); font-size: 0.7em; vertical-align: super; }

.nav-links { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover, .nav-links a:focus-visible,
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-links a:hover::after, .nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ============ BUTTONS ============ */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out),
              color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-accent { background: var(--primary); color: var(--cream-text); }
.btn-accent:hover {
  background: oklch(0.59 0.21 35);
  box-shadow: 0 6px 28px oklch(0.55 0.2 33 / 0.35);
}

.btn-ghost { color: var(--ink); border: 1px solid oklch(0.72 0.05 60); background: transparent; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-dark { background: var(--ink); color: var(--cream-text); }
.btn-dark:hover { background: oklch(0.3 0.04 45); }

.btn-outline-dark { color: var(--cream-text); border: 1.5px solid var(--cream-text); background: transparent; }
.btn-outline-dark:hover { background: oklch(1 0 0 / 0.14); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover {
  background: oklch(0.87 0.14 87);
  box-shadow: 0 6px 28px oklch(0.83 0.14 85 / 0.3);
}

.nav-cta { padding: 0.6em 1.3em; font-size: 0.92rem; }

/* ============ HERO ============ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem var(--gutter) 0;
  position: relative;
}

.hero-title {
  font-size: clamp(2.6rem, 9.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: inline-block; }

.hero-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 0.028em var(--primary-bright);
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero-sub {
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* image strip along the bottom of the hero */
.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1rem);
  z-index: var(--z-strip);
  padding-top: 0.5rem;
}

.hero-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
  box-shadow: var(--shadow-soft);
  transform: translateY(var(--py, 0px)) rotate(var(--tilt, 0deg));
}

.hero-strip img:nth-child(1) { --tilt: -1.1deg; }
.hero-strip img:nth-child(2) { --tilt: 0.8deg; translate: 0 clamp(0.8rem, 2.5vw, 2rem); }
.hero-strip img:nth-child(3) { --tilt: -0.6deg; }
.hero-strip img:nth-child(4) { --tilt: 1.2deg; translate: 0 clamp(0.8rem, 2.5vw, 2rem); }

/* ============ MARQUEE ============ */

.marquee {
  background: var(--primary);
  color: var(--cream-text);
  overflow: clip;
  padding: clamp(0.8rem, 2vw, 1.4rem) 0;
  position: relative;
  z-index: var(--z-content);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.marquee-track i { font-style: normal; font-size: 0.6em; opacity: 0.7; }

@keyframes marquee {
  to { transform: translateX(calc(-100% / 3)); }
}

/* ============ SECTIONS SHARED ============ */

/* anchored sections stop below the fixed nav instead of underneath it */
[id] { scroll-margin-top: 5.5rem; }

.section-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

/* ============ SERVICES ============ */

.services {
  padding: var(--space-section) var(--gutter);
  display: grid;
  gap: clamp(4rem, 9vw, 7rem);
}

.service {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}

.service-flip .service-media { order: 2; }

.service-media {
  overflow: clip;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.service-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.service:hover .service-media img { transform: scale(1.03); }

.service-body h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.service-body p {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

.service-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-list li {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4em 1em;
  border: 1px solid oklch(0.76 0.05 60);
  border-radius: 999px;
  color: var(--ink);
  transition: border-color 0.25s var(--ease-out);
}

.service:hover .service-list li { border-color: var(--primary-bright); }

/* ============ WORK ============ */

.work { padding: 0 var(--gutter) var(--space-section); }

.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.work-note { color: var(--muted); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.work-item {
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.work-item-lg { grid-column: 1 / -1; }

.work-item figure {
  overflow: clip;
  border-radius: 1rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.work-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.work-item-lg img { aspect-ratio: 21 / 9; }

.work-item:hover img, .work-item:focus-visible img { transform: scale(1.04); }

.work-meta h3 {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.work-meta h3::after {
  content: "→";
  display: inline-block;
  margin-left: 0.45em;
  color: var(--primary-bright);
  transition: transform 0.3s var(--ease-out);
}

.work-item:hover .work-meta h3::after { transform: translateX(0.3em); }

.work-meta p { color: var(--muted); font-size: 0.92rem; }

/* ============ PROCESS ============ */

.process {
  padding: var(--space-section) var(--gutter);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.process .section-title { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}

.process-steps li {
  border-top: 1px solid oklch(0.76 0.05 60);
  padding-top: 1.1rem;
}

.step-num {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
}

.process-steps h3 {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.process-steps p { color: var(--muted); font-size: 0.98rem; text-wrap: pretty; }

/* ============ PRICING (oxblood drench) ============ */

.pricing {
  background: var(--deep);
  padding: var(--space-section) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.pricing .section-title { color: var(--cream-text); }

.pricing-body { max-width: 56ch; }

.pricing-lede {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cream-text);
  margin-bottom: 1.2rem;
}

.pricing-lede strong { color: var(--gold); font-weight: 800; }

.pricing-body p:not(.pricing-lede) {
  color: oklch(0.87 0.045 60);
  margin-bottom: 1.2rem;
  text-wrap: pretty;
}

.pricing-body .btn { margin-top: 0.5rem; }

/* ============ CTA (vermillion drench) ============ */

.cta {
  background: var(--primary);
  color: var(--cream-text);
  padding: var(--space-section) var(--gutter);
  text-align: center;
  position: relative;
  z-index: var(--z-content);
}

.cta-kicker {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.cta-title {
  font-size: clamp(2.2rem, 6.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 18ch;
  margin-inline: auto;
}

.cta-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 0.03em var(--cream-text);
}

.cta-sub {
  max-width: 52ch;
  margin: 1.5rem auto 2.5rem;
  font-weight: 500;
  text-wrap: pretty;
}

.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ============ SUBPAGES (book / contact / thanks) ============ */

.page {
  padding: clamp(8rem, 16vh, 11rem) var(--gutter) var(--space-section);
  max-width: 68.75rem;
  margin-inline: auto;
}

.page-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.page-title {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.98;
  margin-bottom: 1.2rem;
}

.page-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 0.035em var(--primary-bright);
}

.page-sub {
  color: var(--muted);
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  text-wrap: pretty;
}

.page-sub a { color: var(--ink); }

.page-thanks { min-height: 70svh; }
.page-thanks .hero-actions { margin-top: 2rem; }

/* ============ FORMS ============ */

.form { max-width: 45rem; display: grid; gap: 1.4rem; }

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

.field { display: grid; gap: 0.45rem; }

.field label, .field legend {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.field legend { margin-bottom: 0.6rem; }

.req { color: var(--primary); }

.hint { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: oklch(0.985 0.01 85);
  border: 1px solid oklch(0.78 0.045 65);
  border-radius: 0.65rem;
  padding: 0.8em 1em;
  width: 100%;
  transition: border-color 0.2s var(--ease-out);
}

.field textarea { resize: vertical; min-height: 5.5em; }

.field input::placeholder, .field textarea::placeholder { color: var(--muted); }

.field input:hover, .field select:hover, .field textarea:hover { border-color: oklch(0.62 0.08 50); }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  outline: none;
}

fieldset.field { border: 0; }

.opts { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.opt { position: relative; cursor: pointer; }

.opt input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.opt span {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55em 1.2em;
  border: 1px solid oklch(0.72 0.05 60);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out),
              color 0.2s var(--ease-out);
}

.opt:hover span { border-color: var(--primary); }

.opt input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--cream-text);
}

.opt input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-submit { justify-self: start; }

/* honeypot: visually removed for humans, present for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { color: var(--muted); font-size: 0.92rem; }
.form-note a { color: var(--ink); }

/* ============ CONTACT PAGE ============ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-direct {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}

.contact-direct h2 {
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.contact-direct p { color: var(--muted); text-wrap: pretty; }

.contact-email a {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  word-break: break-all;
}

.contact-email a:hover { text-decoration: underline; }

.contact-rule {
  width: 100%;
  border: 0;
  border-top: 1px solid oklch(0.78 0.045 65);
  margin: 0.6rem 0;
}

/* ============ FOOTER ============ */

.footer {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(1.8rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  overflow: clip;
}

.footer-mark {
  font-weight: 800;
  font-size: clamp(5rem, 19vw, 15rem);
  line-height: 0.75;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 0.008em oklch(0.8 0.05 65);
  user-select: none;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.footer-h {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
}

.footer-nav { display: grid; gap: 0.45rem; justify-items: start; }

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.2s var(--ease-out);
}

.footer-nav a:hover { color: var(--primary); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.footer-line { color: var(--muted); font-size: 0.9rem; }

.footer-top {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s var(--ease-out);
}

.footer-top:hover { color: var(--ink); }

/* ============ MOTION ============ */

/* Reveal-on-scroll: content is fully visible by default; the .js class
   (added by main.js) opts elements in, so no-JS visitors lose nothing. */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

html.js .reveal.in { opacity: 1; transform: none; }

/* Hero line entrance */
html.js .hero-line > span {
  transform: translateY(110%);
  animation: hero-rise 0.9s var(--ease-out) forwards;
}

html.js .hero-line:nth-child(2) > span { animation-delay: 0.12s; }
html.js .hero-line:nth-child(3) > span { animation-delay: 0.24s; }

@keyframes hero-rise {
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .hero-line > span { transform: none; animation: none; }
  .hero-strip img { transform: rotate(var(--tilt, 0deg)); }
  .work-item img, .service-media img, .btn { transition: none; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 860px) {
  .service, .service-flip { grid-template-columns: 1fr; }
  .service-flip .service-media { order: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item-lg img { aspect-ratio: 3 / 2; }
  .pricing { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 6rem; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip img:nth-child(3), .hero-strip img:nth-child(4) { display: none; }
  .hero-strip img { aspect-ratio: 4 / 3; }
  .hero-strip img:nth-child(2) { translate: 0 1rem; }
  .form-row-2 { grid-template-columns: 1fr; }
}
