/* ==========================================================================
   The Felt Project — Human Experience Research
   ========================================================================== */

:root {
  --bg: #FAF8F5;
  --near-white: #F5F2EE;
  --ink: #2C2C2C;
  --muted: #555555;
  --gold: #9B4D3A;
  --gold-soft: rgba(155, 77, 58, 0.15);
  --rule: #E8E4DE;
  --dark: #1A1A1A;

  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --measure: 34rem;
  --container: 78rem;
  --gutter: clamp(1.5rem, 4vw, 3rem);

  --fs-display: clamp(2.5rem, 5.6vw, 5rem);
  --fs-h1: clamp(2rem, 4.2vw, 3.5rem);
  --fs-h2: clamp(1.65rem, 2.9vw, 2.5rem);
  --fs-lead: clamp(1.0625rem, 1.4vw, 1.1875rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.8125rem;
  --fs-label: 0.75rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: hidden;
}

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

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

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

/* ---------- Type utilities ---------- */
.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.24;
  letter-spacing: -0.005em;
  margin: 0;
}

.label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  display: inline-block;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: clamp(5rem, 11vw, 11rem);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  border-bottom: 1px solid transparent;
}

.nav.on-light {
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--rule);
  color: var(--ink);
}

.nav.on-dark {
  color: #fff;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}

.nav-logo {
  height: auto;
  width: 106px;
  display: block;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.nav.on-dark .nav-logo {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.nav.on-light .nav-logo {
  filter: none;
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  position: relative;
  padding-block: 0.4rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
}

.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: block;
  color: #fff;
  padding-block: 0;
  overflow: hidden;
}

.hero-frame {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(6rem, 10vh, 9rem) var(--gutter) clamp(4rem, 7vh, 6rem);
  max-width: 100rem;
  margin: 0 auto;
}

.hero-bottom {
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 820px) {
  .hero-bottom {
    grid-template-columns: 1fr auto;
    gap: 4rem;
  }
}

.hero-frame--centered {
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero-frame--centered .hero-bottom {
  grid-row: 1 / -1;
  align-self: center;
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.hero-frame--centered .hero-eyebrow {
  display: block;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.hero-frame--centered .hero-eyebrow--below {
  margin-bottom: 0;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.hero-frame--centered .hero-statement {
  text-align: center;
  margin: 0 auto;
}

.hero-frame--centered .hero-title { text-wrap: balance; }

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #D9B888;
  padding-left: 0.15em;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: #EBD7B6;
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  text-wrap: pretty;
}

.hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('https://images.unsplash.com/photo-1566054757965-8c4085344c96?auto=format&fit=crop&w=2400&q=80');
  filter: saturate(85%) contrast(105%);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.35) 40%, rgba(26,26,26,0.55) 100%);
}

.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.55  0 0 0 0 0.45  0 0 0 0.14 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}

.scroll-hint {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 34px;
  display: grid;
  place-items: center;
  opacity: 0.75;
}

.scroll-hint svg {
  animation: drift 2.6s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateY(-3px); opacity: 0.45; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* ---------- Section 2: The Work ---------- */
.work {
  background: var(--bg);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}

@media (min-width: 880px) {
  .work-grid { grid-template-columns: 1fr 1fr; gap: clamp(4rem, 7vw, 8rem); }
}

.work-copy .h2 { margin-bottom: 2rem; text-wrap: balance; }
.work-copy p { color: var(--muted); max-width: 32rem; }

.cards { display: flex; flex-direction: column; gap: 1.25rem; }

.card {
  position: relative;
  background: #fff;
  border-left: 3px solid var(--gold);
  padding: 2rem 2rem 2rem 2.25rem;
  box-shadow: 0 1px 2px rgba(44,44,44,0.04), 0 8px 24px -12px rgba(44,44,44,0.08);
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1), box-shadow 0.45s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(44,44,44,0.05), 0 24px 48px -20px rgba(44,44,44,0.16);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.card-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-price {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  font-style: italic;
}

.card-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ---------- Section 3: The Approach ---------- */
.approach {
  background: var(--gold);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.approach::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.94  0 0 0 0 0.85  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

.approach-inner {
  position: relative;
  text-align: center;
  max-width: 50rem;
  margin: 0 auto;
}

.approach .h1 {
  color: #fff;
  margin-bottom: 2.5rem;
  text-wrap: balance;
}

.approach-body {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 38rem;
  margin: 0 auto;
}

.approach-body p + p { margin-top: 1.2em; }

.stats {
  margin-top: clamp(4rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: clamp(3rem, 5vw, 4rem);
  border-top: 1px solid rgba(255,255,255,0.25);
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.5rem; }
}

.stat { text-align: center; }

.stat-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
}

.stat-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.stat-label span {
  display: block;
  color: rgba(255,255,255,0.55);
  margin-top: 0.35rem;
  font-weight: 400;
}

/* ---------- Section 4: Who this is for ---------- */
.who { background: var(--bg); }

.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

@media (min-width: 880px) {
  .who-grid { grid-template-columns: 5fr 6fr; gap: clamp(4rem, 7vw, 7rem); }
}

.who-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-image: url('https://images.unsplash.com/photo-1594736797933-d0401ba2fe65?auto=format&fit=crop&w=1600&q=80');
  filter: saturate(80%) contrast(102%);
}

.who-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(139,115,85,0.08), rgba(26,26,26,0.12));
}

.who-copy .label { margin-bottom: 1.75rem; }
.who-copy .h2 { margin-bottom: 1.75rem; text-wrap: balance; max-width: 28rem; }
.who-copy p { color: var(--muted); max-width: 32rem; }

.who-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  max-width: 30rem;
}

.who-list li {
  padding: 1.05rem 0;
  border-top: 1px solid var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.who-list li:last-child { border-bottom: 1px solid var(--gold-soft); }

/* ---------- Section 5: About ---------- */
.about {
  background: var(--near-white);
}

.about-inner {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.about-inner .label { margin-bottom: 1.75rem; }
.about-inner .h2 { margin-bottom: 3rem; }

.about-body {
  text-align: center;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 34rem;
  margin-inline: auto;
}

.about-body p + p { margin-top: 1.2em; }

.pull {
  margin-top: clamp(4rem, 6vw, 5rem);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  color: var(--gold);
  text-wrap: balance;
  letter-spacing: -0.005em;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Section 6: Contact ---------- */
.contact {
  background: var(--dark);
  color: #fff;
  text-align: center;
}

.contact .h1 {
  color: #fff;
  text-wrap: balance;
  max-width: 38rem;
  margin-inline: auto;
}

.contact-body {
  color: rgba(255,255,255,0.7);
  max-width: 32rem;
  margin: 0 auto clamp(3rem, 5vw, 4rem);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.875rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.005em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
}

.contact-email::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(.22,.61,.36,1);
}
.contact-email:hover::after { transform: scaleX(1); }
.contact-email:hover { color: #D9B888; }

.contact-logo {
  display: block;
  width: clamp(120px, 14vw, 180px);
  height: auto;
  margin: clamp(4rem, 7vw, 6rem) auto 0;
  opacity: 0.7;
}

.footer {
  margin-top: clamp(5rem, 10vw, 9rem);
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-hint svg { animation: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.68rem; letter-spacing: 0.18em; }
}
