/* ==========================================
   HUNGRY AT MIDNIGHT — Main Stylesheet
   Direction B — Warm food-forward brutalism (v1.1)
   ========================================== */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================
   TOKENS
   ========================================== */
:root {
  /* Palette */
  --midnight:        #0B1730;
  --bone:            #F4EFE6;
  --butter:          #F6E7B4;
  --persimmon:       #E04B1F;   /* large type, UI, eyebrows, flourish */
  --persimmon-deep:  #B83C16;   /* small body links + inline emphasis (WCAG AA on Bone) */
  --ink:             #0E0E10;
  --paper-white:     #FBFAF7;
  --stone:           #E7E0D2;   /* calm neutral shown while photos load */
  --rule:            #0B1730;

  /* Legacy aliases (keep existing class names / inline styles working) */
  --bg:      var(--bone);
  --text:    var(--midnight);
  --accent:  var(--persimmon);
  --muted:   #4B556B;       /* desaturated Midnight for secondary text */
  --border:  var(--midnight);
  --surface: var(--butter);
  --white:   var(--paper-white);

  /* Type families */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans:    'Inter', system-ui, -apple-system, sans-serif;
  --mono:    'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif:   'Fraunces', Georgia, serif;       /* flourish only */

  /* Type scale */
  --fs-display:  clamp(4rem, 12vw, 9rem);
  --fs-h1:       clamp(2.75rem, 7vw, 5.5rem);
  --fs-h2:       clamp(2.25rem, 5.5vw, 4rem);
  --fs-h3:       clamp(1.25rem, 2.5vw, 1.6rem);
  --fs-body-lg:  1.125rem;
  --fs-body:     1rem;
  --fs-sm:       0.875rem;
  --fs-label:    0.72rem;
  --fs-micro:    0.68rem;

  /* Layout */
  --max-w: 1280px;
  --pad:   clamp(1.25rem, 5vw, 3rem);
  --gap:   clamp(1.5rem, 4vw, 3rem);

  /* Borders */
  --rule-w: 2px;
}

/* ==========================================
   BASE
   ========================================== */
html { scroll-behavior: smooth; }

/* Anchor targets clear the sticky nav (fallback when Lenis is inactive). */
:target { scroll-margin-top: 84px; }
section[id], .hero[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--sans);
  background: var(--bone);
  color: var(--midnight);
  line-height: 1.6;
  font-size: var(--fs-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
main { flex: 1; }

/* Typography scale */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--midnight);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { color: var(--midnight); opacity: 0.85; }
strong { font-weight: 600; opacity: 1; }

/* Fraunces flourish — one short phrase per page, italic only */
.italic-flourish,
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--persimmon);
}


/* ==========================================
   LAYOUT HELPERS
   ========================================== */

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

section { padding: clamp(3.5rem, 9vw, 7rem) 0; }

/* Mono label system — eyebrows, project tags, contact labels, form labels */
.section-label,
.hero-eyebrow,
.project-tag,
.about-aside-label,
.contact-detail-label,
.form-group label {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 1rem;
}

/* Persimmon version — for the single emphasis per page */
.label-berry { color: var(--persimmon); }

.section-header {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section-header h2 { margin-bottom: 1rem; }

.section-header p {
  font-size: var(--fs-body-lg);
  max-width: 55ch;
}


/* ==========================================
   NAVIGATION
   ========================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bone);
  border-bottom: var(--rule-w) solid var(--midnight);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--persimmon);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--midnight);
  transition: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--persimmon);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--midnight);
  transition: all 0.3s ease;
}

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

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

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bone);
    border-bottom: var(--rule-w) solid var(--midnight);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 0.75rem var(--pad); }

  .nav-links a {
    font-size: 0.875rem;
  }
}


/* ==========================================
   BUTTONS — hard edges, instant flip
   ========================================== */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border: var(--rule-w) solid var(--midnight);
  background: transparent;
  color: var(--midnight);
  cursor: pointer;
  transition: none;       /* instant */
  white-space: nowrap;
}

.btn:hover {
  background: var(--persimmon);
  color: var(--bone);
  border-color: var(--persimmon);
}

.btn-dark {
  background: var(--midnight);
  color: var(--bone);
  border-color: var(--midnight);
}

.btn-dark:hover {
  background: var(--persimmon);
  border-color: var(--persimmon);
  color: var(--bone);
}

.btn-outline {
  background: transparent;
  color: var(--midnight);
  border-color: var(--midnight);
}

.btn-outline:hover {
  background: var(--persimmon);
  color: var(--bone);
  border-color: var(--persimmon);
}

.btn-accent {
  background: var(--persimmon);
  color: var(--bone);
  border-color: var(--persimmon);
}

.btn-accent:hover {
  background: var(--bone);
  color: var(--midnight);
  border-color: var(--bone);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
}

.btn-ghost:hover {
  background: var(--bone);
  color: var(--midnight);
  border-color: var(--bone);
}


/* ==========================================
   FOOTER — Midnight dark band
   ========================================== */

.site-footer {
  background: var(--midnight);
  color: var(--bone);
  border-top: var(--rule-w) solid var(--midnight);
  padding: 3.5rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 0.5rem;
}

.footer-brand span { color: var(--persimmon); }

.footer-tagline {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.7;
  max-width: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.8;
  transition: none;
}

.footer-links a:hover { color: var(--persimmon); opacity: 1; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: var(--rule-w) solid rgba(244, 239, 230, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy,
.footer-location {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.7;
  max-width: none;
}

.footer-bottom a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-micro) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone) !important;
  opacity: 0.8;
}

.footer-bottom a:hover { color: var(--persimmon) !important; opacity: 1; }

/* Footer signature — "[STAY HUNGRY / STAY FOOLISH]" */
.footer-signature {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.55;
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-links {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}


/* ==========================================
   IMAGE PLACEHOLDERS
   ========================================== */

.img-placeholder {
  background: var(--stone);
  border: var(--rule-w) solid var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.img-placeholder img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll reveal — content blocks fade and rise into view as they enter the
   viewport. JS adds the .reveal class, so with JS off the blocks are simply
   visible; reduced-motion skips it (script.js never adds the class). */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.img-placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--midnight);
  text-align: center;
  padding: 1rem;
}


/* ==========================================
   SERVICES MARQUEE (homepage)
   ========================================== */

.marquee {
  border-top: var(--rule-w) solid var(--midnight);
  border-bottom: var(--rule-w) solid var(--midnight);
  background: var(--bone);
  overflow: hidden;
  padding: 1.25rem 0;
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-scroll 60s linear infinite;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--midnight);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}


/* ==========================================
   CTA BAND — Midnight dark band
   ========================================== */

.cta-band {
  background: var(--midnight);
  color: var(--bone);
  border-top: var(--rule-w) solid var(--midnight);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
}

.cta-band h2 { color: var(--bone); margin-bottom: 1rem; }

.cta-band p {
  color: var(--bone);
  opacity: 0.7;
  font-size: var(--fs-body-lg);
  max-width: 50ch;
  margin: 0 auto 2.5rem;
}

.cta-band .btn-ghost {
  border-color: var(--bone);
  color: var(--bone);
}

.cta-band .btn-ghost:hover {
  background: var(--bone);
  color: var(--midnight);
  border-color: var(--bone);
}


/* ==========================================
   PAGE HEADER (inner pages)
   ========================================== */

.page-header {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: var(--rule-w) solid var(--midnight);
}

.page-header h1 {
  font-size: var(--fs-h1);
  margin-bottom: 1rem;
}

.page-header .lead {
  font-size: var(--fs-body-lg);
  max-width: 55ch;
  color: var(--midnight);
  opacity: 0.85;
}


/* ==========================================
   HOME — HERO
   ========================================== */

.hero {
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem);
  border-bottom: var(--rule-w) solid var(--midnight);
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: 0.98;
  margin-bottom: 1.5rem;
}

.hero h1 em,
.hero h1 .italic-flourish {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--persimmon);   /* one Persimmon hit per hero */
}

.hero-eyebrow { margin-bottom: 1.75rem; }

.hero-body {
  font-size: var(--fs-body-lg);
  margin-bottom: 2.5rem;
  max-width: 52ch;
  color: var(--midnight);
  opacity: 0.85;
}

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


/* ==========================================
   HOME — SERVICES GRID
   ========================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rule-w);
  background: var(--midnight);
  border: var(--rule-w) solid var(--midnight);
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-tile {
  background: var(--bone);
  padding: 2.25rem 2rem;
  transition: none;
}

.service-tile:hover { background: var(--butter); }

.service-tile-num,
.value-num,
.process-step-num,
.service-item-num {
  font-family: var(--display);
  font-weight: 700;
  color: var(--midnight);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.service-tile h3 {
  font-size: 1.3rem;
  margin-bottom: 0.625rem;
}

.service-tile p {
  font-size: var(--fs-sm);
  max-width: none;
  line-height: 1.6;
}


/* ==========================================
   HOME — ABOUT SPLIT
   ========================================== */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

@media (max-width: 700px) {
  .about-split { grid-template-columns: 1fr; }
}

.about-split-image {
  aspect-ratio: 4 / 5;
}

.about-split-content h2 { margin-bottom: 1.5rem; }

.about-split-content p {
  margin-bottom: 1.25rem;
  max-width: none;
}

.about-split-content .btn { margin-top: 0.75rem; }

.stats-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.75rem 0;
  border-top: var(--rule-w) solid var(--midnight);
  border-bottom: var(--rule-w) solid var(--midnight);
}

.stat-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--midnight);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--midnight);
  opacity: 0.7;
}


/* ==========================================
   HOME — FEATURED PROJECTS
   ========================================== */

.projects-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .projects-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .projects-strip { grid-template-columns: 1fr; }
}

.project-card {
  border: var(--rule-w) solid var(--midnight);
  overflow: hidden;
  background: var(--bone);
  transition: none;
}

.project-card:hover { background: var(--butter); }

.project-card-image {
  aspect-ratio: 16 / 10;
}

.project-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-card-body p {
  font-size: var(--fs-sm);
  max-width: none;
  line-height: 1.55;
}


/* ==========================================
   ABOUT PAGE
   ========================================== */

.about-hero-image {
  aspect-ratio: 21 / 9;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.about-story {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 700px) {
  .about-story { grid-template-columns: 1fr; }
}

.about-credentials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-credentials li {
  font-size: var(--fs-sm);
  color: var(--midnight);
  opacity: 0.85;
  padding-left: 1rem;
  border-left: var(--rule-w) solid var(--persimmon);
  line-height: 1.4;
}

.about-body p {
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: none;
  color: var(--midnight);
  opacity: 0.85;
}

.about-body p:last-child { margin-bottom: 0; }

.about-body strong { color: var(--midnight); font-weight: 600; opacity: 1; }

/* Philosophy strip — Butter accent panel */
.philosophy-strip {
  background: var(--butter);
  border-top: var(--rule-w) solid var(--midnight);
  border-bottom: var(--rule-w) solid var(--midnight);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.philosophy-strip blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--midnight);
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-strip blockquote::before {
  content: '\201C';
  color: var(--persimmon);
}

.philosophy-strip blockquote::after {
  content: '\201D';
  color: var(--persimmon);
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--rule-w);
  background: var(--midnight);
  border: var(--rule-w) solid var(--midnight);
}

.value-card {
  padding: 2rem;
  background: var(--bone);
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.625rem;
}

.value-card p {
  font-size: var(--fs-sm);
  max-width: none;
  line-height: 1.6;
}


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

.services-list {
  border-top: var(--rule-w) solid var(--midnight);
}

.service-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 2rem;
  padding: 2.75rem 0;
  border-bottom: var(--rule-w) solid var(--midnight);
}

@media (max-width: 560px) {
  .service-item { grid-template-columns: 60px 1fr; gap: 1.25rem; }
}

.service-item-num {
  font-size: 2.25rem;
  padding-top: 0;
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .service-item-num { font-size: 1.6rem; }
}

.service-item-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
}

.service-item-content p {
  font-size: var(--fs-body);
  max-width: 58ch;
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.service-tag {
  font-family: var(--mono);
  font-weight: 400;
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  padding: 0.4rem 0.875rem;
  background: var(--butter);
  border: var(--rule-w) solid var(--midnight);
  color: var(--midnight);
  text-transform: uppercase;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: process;
}

.process-step {
  counter-increment: process;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: var(--fs-sm);
  max-width: none;
  line-height: 1.6;
}


/* ==========================================
   PROJECTS PAGE
   ========================================== */

.projects-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border: var(--rule-w) solid var(--midnight);
  background: transparent;
  color: var(--midnight);
  cursor: pointer;
  transition: none;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--persimmon);
  color: var(--bone);
  border-color: var(--persimmon);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
}

.projects-more {
  text-align: center;
  margin-top: 2rem;
}

/* Staggered fade-and-rise for cards revealed via "Show more". A keyframe
   animation (not a transition) so it plays reliably from the start every
   time, regardless of paint timing or the scroll-reveal observer. */
@keyframes project-reveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cards wait hidden (added by JS, so no-JS users still see them) until they
   are revealed with the staggered animation. */
.project-item.proj-pending {
  opacity: 0;
}

.project-item--revealing {
  animation: project-reveal 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .project-item--revealing { animation: none; }
}

.project-item {
  border: var(--rule-w) solid var(--midnight);
  overflow: hidden;
  background: var(--bone);
  transition: none;
  display: flex;
  flex-direction: column;
}

.project-item:hover {
  background: var(--butter);
}

.project-item-image {
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}

.project-item-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-item-body .project-tag {
  margin-bottom: 0.5rem;
}

.project-item-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.625rem;
}

.project-item-body p {
  font-size: var(--fs-sm);
  max-width: none;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: var(--rule-w) solid var(--midnight);
}

.project-client,
.project-year {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--midnight);
  opacity: 0.7;
}


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

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

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-info h2 { margin-bottom: 1.25rem; }

.contact-info > p {
  font-size: var(--fs-body);
  margin-bottom: 2rem;
  max-width: none;
  line-height: 1.7;
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail-label {
  margin-bottom: 0.3rem;
}

.contact-detail-value {
  font-size: var(--fs-body);
  color: var(--midnight);
}

.contact-detail-value a { transition: none; }
.contact-detail-value a:hover { color: var(--persimmon); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--paper-white);
  border: var(--rule-w) solid var(--midnight);
  color: var(--midnight);
  padding: 0.875rem 1rem;
  font-family: var(--sans);
  font-size: var(--fs-body);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid var(--persimmon);
  outline-offset: 0;
  border-color: var(--midnight);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: '↓';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.8rem;
  color: var(--midnight);
}

.form-group select { padding-right: 2.5rem; cursor: pointer; }

.form-success {
  display: none;
  padding: 1.25rem;
  background: var(--butter);
  border: var(--rule-w) solid var(--persimmon);
  font-size: var(--fs-sm);
  color: var(--persimmon-deep);
}

.form-success.visible { display: block; }

.form-error {
  display: none;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--bone);
  border: var(--rule-w) solid var(--persimmon);
  font-size: var(--fs-sm);
  color: var(--midnight);
}

.form-error a {
  color: var(--persimmon-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-error.visible { display: block; }


/* ==========================================
   INLINE LINKS (accessibility-safe)
   ========================================== */

.prose a, p a, li a {
  color: var(--persimmon-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover, p a:hover, li a:hover {
  background: var(--persimmon);
  color: var(--bone);
  text-decoration: none;
}


/* ==========================================
   SMOOTH (MOMENTUM) SCROLL — Lenis
   Framer/Mejias-style inertia scrolling.
   ========================================== */

html.lenis,
html.lenis body { height: auto; }

.lenis.lenis-smooth { scroll-behavior: auto !important; }

.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

.lenis.lenis-stopped { overflow: hidden; }

.lenis.lenis-smooth iframe { pointer-events: none; }


/* ==========================================
   PRICING GRID (Services page)
   ========================================== */

.pricing-section {
  background: var(--bone);
  border-top: var(--rule-w) solid var(--midnight);
}

.pricing-grid {
  display: flex;
  gap: 0;
  border: var(--rule-w) solid var(--midnight);
  background: var(--bone);
}

.pricing-tile {
  appearance: none;
  background: var(--bone);
  border: 0;
  border-left: var(--rule-w) solid var(--midnight);
  text-align: left;
  font: inherit;
  color: var(--midnight);
  cursor: pointer;
  flex: 1 1 0;
  min-width: 0;
  padding: 2rem 1.75rem;
  position: relative;
  transition: flex 800ms cubic-bezier(0.16, 1, 0.3, 1), background 450ms ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: 0;
}

.pricing-tile:first-child {
  border-left: 0;
}

.pricing-tile:hover {
  background: var(--butter);
}

.pricing-tile-index {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--midnight);
  opacity: 0.55;
}

.pricing-tile-toggle {
  position: absolute;
  top: 2rem;
  right: 1.75rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--persimmon);
}

.pricing-tile-toggle::before {
  content: "+";
}

.pricing-tile[aria-expanded="true"] .pricing-tile-toggle::before {
  content: "\2212";  /* Unicode minus sign U+2212 */
}

.pricing-tile-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--midnight);
  margin: 0;
  padding-right: 2.5rem;  /* clear of the + glyph */
}

.pricing-tile-body {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.pricing-tile[aria-expanded="true"] {
  flex: 3 1 0;
  background: var(--butter);
}

.pricing-tile[aria-expanded="true"] .pricing-tile-body {
  display: flex;
}

.pricing-tile-price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--persimmon);
  margin: 0;
}

.pricing-tile-desc {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--midnight);
  max-width: 52ch;
  margin: 0;
}

.pricing-tile-note {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--midnight);
  max-width: 52ch;
  margin: 0;
}

.pricing-tile-meta {
  font-family: var(--sans);
  font-style: italic;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--midnight);
  opacity: 0.7;
  max-width: 52ch;
  margin: 0;
}

@media (max-width: 768px) {
  .pricing-grid {
    flex-direction: column;
  }
  .pricing-tile {
    border-left: 0;
    border-top: var(--rule-w) solid var(--midnight);
  }
  .pricing-tile:first-child {
    border-top: 0;
  }
  .pricing-tile[aria-expanded="true"] {
    flex: 1 1 auto;
  }
  .pricing-tile-toggle {
    top: 1.75rem;
    right: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-tile {
    transition: none;
  }
}


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

/* Tighten the whitespace above and below the "Services." intro. */
.services-section {
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.services-intro {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.services-accordion {
  border: var(--rule-w) solid var(--midnight);
  background: var(--bone);
}

.accordion-item {
  border-top: var(--rule-w) solid var(--midnight);
}

.accordion-item:first-child {
  border-top: 0;
}

.accordion-head {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  background: var(--bone);
  border: 0;
  border-radius: 0;
  text-align: left;
  font: inherit;
  color: var(--midnight);
  cursor: pointer;
  padding: 1.4rem clamp(1.25rem, 4vw, 2rem);
  transition: background 450ms ease;
}

.accordion-head:hover,
.accordion-head[aria-expanded="true"] {
  background: var(--butter);
}

.accordion-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--midnight);
  opacity: 0.55;
  white-space: nowrap;
}

.accordion-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--midnight);
}

.accordion-toggle {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--persimmon);
  align-self: center;
}

.accordion-toggle::before {
  content: "+";
}

.accordion-head[aria-expanded="true"] .accordion-toggle::before {
  content: "\2212";  /* Unicode minus sign U+2212 */
}

.accordion-body {
  overflow: hidden;
  height: 0;
  opacity: 0;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  background: var(--bone);
  transition: height 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1s ease;
  will-change: height;
}

.accordion-body.is-open {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .accordion-body { transition: none; }
}

.accordion-lead {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--midnight);
  opacity: 0.85;
  max-width: 60ch;
  margin: 1.5rem 0 0;
}

/* Inside the accordion, the sub-service list and its rows sit tighter. */
.accordion-body .services-list {
  border-top: 0;
}

.accordion-body .service-item {
  padding: 1.75rem 0;
}

.accordion-body .service-item:last-child {
  border-bottom: 0;
  padding-bottom: 1.75rem;
}


/* ==========================================
   FAQ
   ========================================== */

.faq-list {
  border-top: var(--rule-w) solid var(--midnight);
}

.faq-item {
  border-bottom: var(--rule-w) solid var(--midnight);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
  font: inherit;
  color: var(--midnight);
  cursor: pointer;
  padding: 1.5rem 0 1.25rem;
}

.faq-q-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 200ms ease;
}

.faq-q:hover .faq-q-text {
  color: var(--persimmon);
}

.faq-toggle {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--persimmon);
  align-self: center;
}

.faq-toggle::before {
  content: "+";
}

.faq-q[aria-expanded="true"] .faq-toggle::before {
  content: "\2212";  /* Unicode minus sign U+2212 */
}

.faq-a {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s ease;
  will-change: height;
}

.faq-a.is-open {
  opacity: 1;
}

.faq-a p {
  font-size: var(--fs-body);
  line-height: 1.65;
  max-width: 72ch;
  color: var(--midnight);
  opacity: 0.85;
  margin: 0;
  padding-bottom: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none; }
}


/* ==========================================
   SECTION CTA
   ========================================== */

.section-cta {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex;
  align-items: baseline;
  gap: 1.25rem 1.5rem;
  flex-wrap: wrap;
}

.section-cta p {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--midnight);
  opacity: 0.7;
  margin: 0;
}


/* ==========================================
   CUSTOM SCOPE PANEL
   ========================================== */

.custom-scope {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  background: var(--midnight);
  color: var(--bone);
  border: var(--rule-w) solid var(--midnight);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 58ch;
}

.custom-scope .section-label {
  color: var(--persimmon);
  margin-bottom: 1rem;
}

.custom-scope h2 {
  color: var(--bone);
  margin-bottom: 1.25rem;
}

.custom-scope p {
  color: var(--bone);
  opacity: 0.72;
  max-width: none;
}

.custom-scope-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: var(--rule-w) solid rgba(244, 239, 230, 0.25);
  font-size: var(--fs-sm);
}

.custom-scope .btn-accent {
  margin-top: 2rem;
}
