/* ============================================================
   WAYPOINT STUDIOS — STYLES
   v0.1 — Static prototype
   Brand tokens locked per build brief. Goal: rugged but crisp,
   warm parchment base, photography is the hero.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Neutrals */
  --parchment:   #F5F2EA;
  --off-white:   #EDEBE4;
  --stone:       #B5B0A5;
  --flint:       #6B6860;
  --charcoal:    #2C2B28;
  --near-black:  #141413;

  /* Accent — Golden Hour */
  --high-noon:    #FFE566;
  --golden-hour:  #FFBF00;
  --sunset:       #FF8C00;
  --burnt-orange: #CC5500;

  /* Type */
  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing — 8pt base */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  16px;
  --s-4:  24px;
  --s-5:  32px;
  --s-6:  48px;
  --s-7:  64px;
  --s-8:  96px;
  --s-9:  128px;
  --s-10: 160px;

  /* Layout */
  --max-w: 1280px;
  --gutter: 32px;

  /* Misc */
  --rule: 1px solid var(--stone);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ---------- BASE ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--flint);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--golden-hour); color: var(--near-black); }

/* ---------- TYPE SCALE ---------- */
.display, h1.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--charcoal);
}
h1, .h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  color: var(--charcoal);
}
h2, .h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  color: var(--charcoal);
}
h3, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: var(--charcoal);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--flint);
}
.eyebrow--accent { color: var(--burnt-orange); }
.body-lg { font-size: 15px; line-height: 1.7; }
.body    { font-size: 14px; line-height: 1.7; }
.body-sm { font-size: 12px; line-height: 1.6; }
.label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}
em, .italic { font-style: italic; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--s-9) 0;
}
.section--tight { padding: var(--s-7) 0; }
.section--dark {
  background: var(--near-black);
  color: var(--off-white);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark .display {
  color: var(--off-white);
}
.section--dark .eyebrow { color: var(--stone); }

.divider {
  border: 0;
  border-top: var(--rule);
  margin: 0;
}

.grid {
  display: grid;
  gap: var(--s-5);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--12 { grid-template-columns: repeat(12, 1fr); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 234, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--charcoal);
}
.nav__brand em { font-style: italic; color: var(--burnt-orange); }
.nav__links {
  display: flex;
  gap: var(--s-5);
  align-items: center;
}
.nav__link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--flint);
  transition: color 120ms ease;
  position: relative;
}
.nav__link:hover { color: var(--charcoal); }
.nav__link.is-active { color: var(--charcoal); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--golden-hour);
}
.nav__cta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  padding: 10px 18px;
  transition: all 140ms ease;
}
.nav__cta:hover {
  background: var(--charcoal);
  color: var(--parchment);
}
.nav__toggle { display: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid transparent;
  transition: all 160ms ease;
}
.btn--primary {
  background: var(--charcoal);
  color: var(--parchment);
}
.btn--primary:hover {
  background: var(--burnt-orange);
}
.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--ghost:hover {
  background: var(--charcoal);
  color: var(--parchment);
}
.btn--accent {
  background: var(--golden-hour);
  color: var(--near-black);
}
.btn--accent:hover {
  background: var(--sunset);
}
.btn__arrow {
  display: inline-block;
  transition: transform 160ms ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-7);
  align-items: end;
}
.hero__display {
  font-family: var(--serif);
  font-size: clamp(48px, 7.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -1.2px;
  color: var(--charcoal);
  font-weight: 400;
}
.hero__display em {
  color: var(--burnt-orange);
  font-style: italic;
}
.hero__lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--flint);
  max-width: 38ch;
}
.hero__meta {
  display: flex;
  gap: var(--s-5);
  margin-top: var(--s-5);
  align-items: center;
}
.hero__bg-mark {
  position: absolute;
  right: -40px;
  top: 30px;
  width: 280px;
  opacity: 0.08;
  pointer-events: none;
}

/* ---------- EYEBROW BAR ---------- */
.eyebrow-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.eyebrow-bar__rule {
  flex: 0 0 48px;
  height: 1px;
  background: var(--burnt-orange);
}

/* ---------- CARDS / WORK ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-5);
}
.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid transparent;
  transition: all 220ms ease;
}
.work-card:hover { border-color: var(--charcoal); transform: translateY(-2px); }
.work-card--lg { grid-column: span 7; }
.work-card--md { grid-column: span 5; }
.work-card--sm { grid-column: span 6; }
.work-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--charcoal), var(--burnt-orange));
  position: relative;
  overflow: hidden;
}
.work-card--lg .work-card__media { aspect-ratio: 16 / 10; }
.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255, 191, 0, 0.25), transparent 60%);
}
.work-card__media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}
.work-card__body {
  padding: var(--s-4) var(--s-5) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.work-card__tags {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.work-card__tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--flint);
}
.work-card__title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  color: var(--charcoal);
  font-weight: 400;
}
.work-card__client {
  font-size: 12px;
  color: var(--flint);
  font-style: italic;
}

/* ---------- FILTERS ---------- */
.filters {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
  padding-top: var(--s-4);
  border-top: var(--rule);
}
.filters__btn {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--flint);
  padding: 10px 16px;
  border: 1px solid transparent;
  transition: all 140ms ease;
}
.filters__btn:hover { color: var(--charcoal); }
.filters__btn.is-active {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

/* ---------- VALUES ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.value {
  padding: var(--s-6) var(--s-5);
  border-top: var(--rule);
  border-right: var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.value:nth-child(2n) { border-right: 0; }
.value:nth-last-child(-n+2) { border-bottom: var(--rule); }
.value__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--burnt-orange);
  line-height: 1;
}
.value__title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--charcoal);
  line-height: 1.2;
}
.value__body { color: var(--flint); }

/* ---------- WHO WE WORK WITH ---------- */
.traits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
.trait {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.trait__mark {
  width: 28px;
  height: 1px;
  background: var(--golden-hour);
  margin-bottom: var(--s-2);
}
.trait__title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--charcoal);
}
.trait__body { color: var(--flint); font-size: 13px; }

/* ---------- SERVICES / OFFERS ---------- */
.offers {
  display: grid;
  gap: 0;
}
.offer {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  gap: var(--s-6);
  padding: var(--s-7) 0;
  border-top: var(--rule);
  align-items: start;
}
.offer:last-child { border-bottom: var(--rule); }
.offer__name {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  color: var(--charcoal);
}
.offer__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.offer__price-num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--burnt-orange);
  line-height: 1.1;
}
.offer__price-unit {
  font-size: 11px;
  color: var(--flint);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.offer__desc { color: var(--flint); margin-bottom: var(--s-3); }
.offer__includes {
  margin-top: var(--s-3);
}
.offer__includes-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: var(--s-2);
}
.offer__includes ul li {
  padding-left: var(--s-3);
  position: relative;
  font-size: 13px;
  color: var(--flint);
  margin-bottom: 6px;
}
.offer__includes ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--burnt-orange);
}

/* ---------- DISCOVERY CTA ---------- */
.discovery {
  background: var(--near-black);
  color: var(--off-white);
  padding: var(--s-9) 0;
  position: relative;
  overflow: hidden;
}
.discovery__inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--s-7);
  align-items: center;
}
.discovery__title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  color: var(--off-white);
}
.discovery__title em { color: var(--golden-hour); font-style: italic; }
.discovery__body { color: var(--stone); max-width: 44ch; }
.discovery__price {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--golden-hour);
  line-height: 1;
}
.discovery__price-unit {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-top: 8px;
}

/* ---------- FORM ---------- */
.form {
  display: grid;
  gap: var(--s-4);
  max-width: 720px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.form__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--charcoal);
}
.form__input,
.form__select,
.form__textarea {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--charcoal);
  background: var(--off-white);
  border: 1px solid var(--stone);
  padding: 14px 16px;
  transition: border-color 140ms ease;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--charcoal);
}
.form__textarea { resize: vertical; min-height: 140px; }
.form__hint {
  font-size: 11px;
  color: var(--flint);
}
.form__radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.form__radio {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding: 12px 16px;
  border: 1px solid var(--stone);
  cursor: pointer;
  transition: all 140ms ease;
}
.form__radio:hover { border-color: var(--charcoal); }
.form__radio input { margin-top: 4px; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--near-black);
  color: var(--stone);
  padding: var(--s-7) 0 var(--s-5);
  border-top: 1px solid var(--charcoal);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
.footer__brand {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--off-white);
  line-height: 1;
  margin-bottom: var(--s-3);
}
.footer__tag { color: var(--stone); max-width: 36ch; font-size: 13px; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.footer__col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: var(--s-3);
}
.footer__col li { margin-bottom: 8px; }
.footer__col a {
  color: var(--stone);
  font-size: 13px;
  transition: color 140ms ease;
}
.footer__col a:hover { color: var(--golden-hour); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  border-top: 1px solid var(--charcoal);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--stone);
}

/* ---------- HERO IMAGE PLACEHOLDER ---------- */
.media-block {
  background: linear-gradient(135deg, #2C2B28 0%, #6B6860 50%, #CC5500 100%);
  position: relative;
  overflow: hidden;
}
.media-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255, 191, 0, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(20, 20, 19, 0.6) 0%, transparent 50%);
}
.media-block__label {
  position: absolute;
  bottom: var(--s-4);
  left: var(--s-4);
  right: var(--s-4);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.7);
}

/* ---------- LOGO ---------- */
.logo-wordmark {
  font-family: var(--serif);
  font-style: normal;
  font-size: 22px;
  color: var(--charcoal);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.logo-wordmark em {
  font-style: italic;
  color: var(--burnt-orange);
}

/* ---------- UTIL ---------- */
.flow > * + * { margin-top: var(--s-3); }
.flow-lg > * + * { margin-top: var(--s-4); }
.text-center { text-align: center; }
.muted { color: var(--flint); }
.accent { color: var(--burnt-orange); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }

/* ---------- BREAKPOINTS ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .traits { grid-template-columns: repeat(2, 1fr); }
  .work-card--lg, .work-card--md, .work-card--sm { grid-column: span 12; }
  .footer__inner { grid-template-columns: 1fr; }
  .discovery__inner { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; gap: var(--s-3); }
  .offer__price { flex-direction: row; align-items: baseline; gap: var(--s-3); }
}

@media (max-width: 768px) {
  .section { padding: var(--s-7) 0; }
  .hero { padding: var(--s-7) 0 var(--s-6); }
  .traits { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .value { border-right: 0; }
  .value:nth-last-child(-n+2) { border-bottom: 0; }
  .value:last-child { border-bottom: var(--rule); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .footer__bottom { flex-direction: column; gap: var(--s-2); align-items: flex-start; }
  .form__row { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-flex;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--charcoal);
  }
}

@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .hero__display { font-size: 44px; line-height: 1.02; }
  .footer__cols { grid-template-columns: 1fr; }
}
