/* ============================================
   THE CLARITY LAB — DESIGN SYSTEM
   ============================================ */
:root {
  --ivory:      #FFFFFF;
  --stone:      #FFFFFF;
  --taupe:      #FFFFFF;
  --charcoal:   #1C1C1C;
  --olive:      #6A6B4F;
  --brass:      #A88F5A;
  --brass-soft: #C9B58A;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Jost', -apple-system, system-ui, sans-serif;

  --track-lg: 0.32em;
  --track-md: 0.22em;
  --track-sm: 0.14em;

  --max:    1280px;
  --narrow: 880px;

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

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection { background: var(--brass); color: var(--ivory); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--charcoal);
}

.display-xl { font-size: clamp(2.75rem, 7vw, 6rem); }
.display-lg { font-size: clamp(2.25rem, 5vw, 4rem); }
.display-md { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--track-lg);
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--brass);
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: #3a3a36;
}

p { font-weight: 300; color: #3a3a36; }
p + p { margin-top: 1.2em; }

/* ============================================
   LAYOUT PRIMITIVES
   ============================================ */
.wrap   { max-width: var(--max);    margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }
.narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }

section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }

.rule {
  width: 48px; height: 1px;
  background: var(--brass);
  border: 0;
  display: block;
}

/* ============================================
   NAVIGATION
   ============================================ */
header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  background: rgba(247, 245, 240, 0);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0;
  border-bottom-color: rgba(168, 143, 90, 0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.nav-mark {
  display: flex;
  align-items: center;
}
.nav-logo {
  height: 150px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
.nav-links {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2rem);
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: var(--track-md);
  font-weight: 400;
  color: var(--charcoal);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--olive); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--charcoal);
  padding: 0.6rem 1.2rem !important;
  transition: all 0.3s var(--ease) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--charcoal);
  color: var(--ivory) !important;
}

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--charcoal); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  padding: 10rem 0 5rem;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--ivory);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
}
.hero-text { position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: 2.5rem; opacity: 0; animation: fadeUp 1s var(--ease) 0.2s forwards; }
.hero-title {
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) 0.4s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--olive);
  font-weight: 400;
}
.hero-lede {
  max-width: 32rem;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) 0.6s forwards;
}
.hero-actions {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) 0.8s forwards;
}

.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1.6s var(--ease) 0.5s forwards;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(0.96) brightness(1.02);
}
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,28,28,0) 60%, rgba(28,28,28,0.18) 100%);
  pointer-events: none;
}

.pillars {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(168, 143, 90, 0.25);
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  flex-wrap: nowrap;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) 1s forwards;
}
.pillars span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--track-lg);
  color: var(--charcoal);
  font-weight: 400;
}
.pillars .sep { color: var(--brass); letter-spacing: 0; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: var(--track-md);
  font-weight: 400;
  padding: 1.05rem 1.8rem;
  background: var(--charcoal);
  color: var(--ivory);
  border: 1px solid var(--charcoal);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '→';
  font-size: 0.9rem;
  transition: transform 0.4s var(--ease);
}
.btn:hover { background: var(--olive); border-color: var(--olive); }
.btn:hover::after { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--charcoal);
  border-radius: 0;
}
.btn-ghost:hover { background: transparent; color: var(--olive); border-bottom-color: var(--brass); }

/* ============================================
   SECTION: THE WORK
   ============================================ */
.work { background: var(--stone); overflow: hidden; }
.work::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/clarity lab boardroom.png') center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.work .wrap { position: relative; z-index: 1; }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.work-grid h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; }
.work-grid h2 em { font-style: italic; color: var(--olive); }
.work-body p:first-of-type { font-size: 1.1rem; line-height: 1.75; }

/* ============================================
   SECTION: ABOUT NEHA
   ============================================ */
.about {
  background: var(--ivory);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0;
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: contrast(0.97);
  transition: transform 1.8s var(--ease);
}
.about-portrait:hover img { transform: scale(1.03); }
.about-portrait::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: 100%; height: 100%;
  border: 1px solid var(--brass);
  z-index: -1;
  pointer-events: none;
}
.about-text h2 { margin: 1.5rem 0 1.5rem; }
.about-text .signature {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--olive);
}
.about-text .signature small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--track-md);
  color: var(--charcoal);
  margin-top: 0.5rem;
}

/* ============================================
   SECTION: WHY THIS WORKS
   ============================================ */
.why {
  background: var(--charcoal);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%; height: 100%;
  background: url('../images/reflection.png') center/cover no-repeat;
  opacity: 0.18;
  mask-image: linear-gradient(to left, black 20%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 20%, transparent 100%);
}
.why .eyebrow { color: var(--brass-soft); }
.why .eyebrow::before { background: var(--brass); }
.why h2 {
  color: var(--ivory);
  margin: 1.5rem 0 2.5rem;
  max-width: 22ch;
}
.why h2 em { font-style: italic; color: var(--brass-soft); }
.why p { color: rgba(247, 245, 240, 0.78); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  position: relative;
  z-index: 2;
}
.why-shifts {
  margin-top: 3rem;
  list-style: none;
  border-top: 1px solid rgba(168, 143, 90, 0.3);
  counter-reset: shift;
}
.why-shifts li {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(168, 143, 90, 0.18);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(247, 245, 240, 0.92);
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
}
.why-shifts li::before {
  content: counter(shift, decimal-leading-zero);
  counter-increment: shift;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: var(--track-md);
  color: var(--brass);
  flex-shrink: 0;
  min-width: 2.5rem;
}

/* ============================================
   SECTION: SERVICES
   ============================================ */
.services { background: var(--ivory); }
.services-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.services-header h2 { margin: 1.5rem auto; }
.services-header .lede { max-width: 38rem; margin: 0 auto; }
.services-header .rule { margin: 0 auto; }

.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.service-card {
  background: var(--stone);
  padding: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  transition: background 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.service-card:hover { background: var(--taupe); }
.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}
.service-card .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--track-md);
  color: var(--olive);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.service-card p { font-size: 0.97rem; flex-grow: 1; }
.service-card .more {
  margin-top: 2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--track-md);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--brass);
  align-self: flex-start;
  transition: gap 0.3s var(--ease);
}
.service-card .more:hover { gap: 1rem; }

/* ============================================
   SECTION: MISSION & VALUES
   ============================================ */
.mission {
  background: var(--stone);
  text-align: center;
}
.mission .narrow { text-align: center; }
.mission .rule { margin: 0 auto 2rem; }
.mission h2 { margin-bottom: 1.5rem; }
.mission .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  color: var(--charcoal);
  max-width: 30ch;
  margin: 0 auto;
  font-weight: 300;
}
.mission .pull::before, .mission .pull::after {
  content: '\201C';
  color: var(--brass);
  font-size: 1.2em;
  line-height: 0;
  vertical-align: -0.2em;
  opacity: 0.6;
}
.mission .pull::after { content: '\201D'; }
.values {
  margin-top: clamp(4rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  text-align: left;
}
.value h4 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--charcoal);
  line-height: 1.2;
}
.value .value-num {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: var(--track-md);
  color: var(--brass);
  display: block;
  margin-bottom: 0.8rem;
}

/* ============================================
   SECTION: CONTACT
   ============================================ */
.contact {
  background: var(--charcoal);
  position: relative;
}
.contact .eyebrow { color: var(--brass-soft); }
.contact .eyebrow::before { background: var(--brass); }
.contact h2 { color: var(--ivory); }
.contact .lede { color: rgba(247, 245, 240, 0.78); }
.contact .rule { background: var(--brass-soft); }
.contact-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid rgba(168, 143, 90, 0.2);
}
.contact-header h2 { margin: 1.5rem 0; }
.contact-header .lede { margin-bottom: 2.5rem; }
.contact-header .rule { margin: 0 auto; }
.contact-details {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.contact-details li { text-align: center; }
.contact-details .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: var(--track-md);
  color: var(--brass-soft);
  display: block;
  margin-bottom: 0.35rem;
}
.contact-details .value-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ivory);
}
.contact-form-wrap {
  max-width: 900px;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
}

form { display: grid; gap: 1.75rem; }
.field { position: relative; }
.field label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: var(--track-md);
  color: var(--brass-soft);
  margin-bottom: 0.6rem;
  font-weight: 400;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid rgba(201, 181, 138, 0.35);
  background: transparent;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ivory);
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--brass-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(247, 245, 240, 0.35); }
.field textarea { resize: none; overflow: hidden; min-height: 0; line-height: 1.5; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
form button { justify-self: start; margin-top: 0.5rem; }
.form-note {
  font-size: 0.78rem;
  color: var(--brass-soft);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #FFFFFF;
  color: var(--charcoal);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(168, 143, 90, 0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.footer-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--track-md);
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 1rem;
  max-width: 24rem;
  margin-top: 1rem;
}
footer h5 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: var(--track-md);
  color: var(--brass);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.7rem; }
footer ul a {
  color: rgba(28, 28, 28, 0.6);
  font-size: 0.9rem;
  font-weight: 300;
  transition: color 0.3s var(--ease);
}
footer ul a:hover { color: var(--brass); }

.hours li { font-size: 0.85rem; color: rgba(28, 28, 28, 0.6); }
.hours .day { color: var(--charcoal); }

.footer-bottom {
  border-top: 1px solid rgba(168, 143, 90, 0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--track-sm);
  color: rgba(28, 28, 28, 0.4);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-grid,
  .work-grid,
  .about-grid,
  .why-grid,
  .service-cards,
  .values,
  .contact-grid,
  .footer-grid,
  .field-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero { min-height: auto; padding-top: 8rem; padding-bottom: 4rem; }
  .hero-image { max-height: 60vh; aspect-ratio: 3/4; }
  .about-portrait { max-height: 70vh; }
  .about-portrait::before { display: none; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 75%;
    max-width: 320px;
    background: var(--ivory);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,0.05);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 0.85rem; }
  .nav-cta { align-self: flex-start; margin-top: 1rem; }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 101;
  }
  .menu-toggle span {
    width: 24px; height: 1px;
    background: var(--charcoal);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .why::before { width: 100%; opacity: 0.08; }
  .service-card { min-height: auto; }
}

@media (max-width: 540px) {
  .hero-title { font-size: 2.5rem; }
  .display-lg { font-size: 2rem; }
  .pillars span { font-size: 0.62rem; }
}
