/* ===================================================
   FIRST CHAPTER — Base
   =================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Megila and Aston Script text should never be uppercased */
.display, .script, [style*="--f-display"] {
  text-transform: none;
}

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

/* Protect portfolio imagery from casual copying */
.protected {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.protected-wrap { position: relative; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p { margin: 0; }

.eyebrow {
  font-family: var(--f-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--olive);
}

.script {
  font-family: var(--f-script);
  font-weight: 700;
  line-height: 1;
}

.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.lede {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

@media (max-width: 720px) {
  .container { padding: 0 var(--sp-3); }
}

.section {
  padding: var(--sp-6) 0;
  position: relative;
}
@media (max-width: 720px) {
  .section { padding: var(--sp-5) 0; }
}

.section--olive {
  background: var(--olive-deep);
  color: var(--paper);
}
.section--olive .eyebrow { color: var(--cream-deep); opacity: 0.75; }

.hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-sans);
  font-size: var(--fs-nav);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.05em 2.2em;
  border: 1px solid var(--olive);
  color: var(--olive);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { background: var(--olive); color: var(--paper); }

.btn--solid {
  background: var(--olive);
  color: var(--paper);
}
.btn--solid:hover { background: var(--olive-deep); color: var(--paper); }

.btn--light {
  border-color: rgba(251, 248, 241, 0.55);
  color: var(--paper);
}
.btn--light:hover { background: var(--paper); color: var(--olive-deep); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
