/* ============================================
   Bailey Studio — Hero
   ---------------------------------------------
   Palette:
     bg          #0a0a0a
     text        #f5f1ea
     muted       rgba(245, 241, 234, 0.55)
     accent      #ff5b1f
     hairline    rgba(245, 241, 234, 0.1)
   Easing: cubic-bezier(0.22, 1, 0.36, 1)
   ============================================ */

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

html {
  scroll-behavior: smooth;
  /* Offset for the fixed nav so anchor targets aren't hidden beneath it */
  scroll-padding-top: 80px;
}

body {
  background: #0a0a0a;
  color: #f5f1ea;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* Suppress browser-default cursors on interactive form controls
   (I-beam on text inputs, pointer on selects/buttons) so only the
   custom cursor is visible. The text-editing caret inside inputs is
   not affected — that's the system caret, not the mouse cursor. */
input,
textarea,
select,
button {
  cursor: none;
}

/* --------------------------------------------
   Noise / grain overlay
   -------------------------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* --------------------------------------------
   Custom cursor
   -------------------------------------------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f5f1ea;
  border: 1px solid transparent;
  pointer-events: none;
  z-index: 9999;
  /* Initial position offscreen until JS takes over */
  transform: translate3d(-100px, -100px, 0);
  transition:
    width 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor.is-hover {
  width: 40px;
  height: 40px;
  background: transparent;
  border-color: #f5f1ea;
}

/* Touch / non-hover devices: restore native cursor */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
  body, a { cursor: auto; }
}

/* --------------------------------------------
   Navigation
   -------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.1);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Stacked wordmark: "Bailey" on top, tight "STUDIO" beneath */
.nav__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.nav__brand-name {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  /* letter spans injected by JS */
}

.nav__brand-name .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: letterIn 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

@keyframes letterIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav__brand-suffix {
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(245, 241, 234, 0.6);
  opacity: 0;
  animation: suffixFade 400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  /* animation-delay assigned by JS once Bailey letters are done */
}

@keyframes suffixFade {
  to { opacity: 1; }
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
}

.nav__cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b1f;
  flex-shrink: 0;
}

/* --------------------------------------------
   Hero
   -------------------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 max(80px, 8vw);
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
  margin-bottom: 32px;
}

.hero__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b1f;
  flex-shrink: 0;
}

.hero__headline {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 1100px;
  margin-bottom: 32px;
}

.hero__headline-italic {
  font-style: italic;
}

.hero__headline-accent {
  display: block;
  color: #ff5b1f;
  font-style: normal;
}

.hero__sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(245, 241, 234, 0.55);
  max-width: 520px;
  margin-bottom: 48px;
}

.hero__cta {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 18px 36px;
  border: 1px solid rgba(245, 241, 234, 0.3);
  background: transparent;
  color: #f5f1ea;
  transition:
    background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__cta:hover {
  background: #ff5b1f;
  border-color: #ff5b1f;
  color: #0a0a0a;
}

/* --------------------------------------------
   Hero — corner accents (bottom of hero)
   -------------------------------------------- */
.hero__corners {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 32px;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
  pointer-events: none;
}

.hero__corner {
  display: inline-block;
}

/* The scroll-to-explore corner is interactive; overrides the parent's
   pointer-events: none so it can actually receive clicks */
.hero__corner--scroll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  cursor: none;
  color: rgba(245, 241, 234, 0.55);
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__corner--scroll:hover {
  color: #f5f1ea;
}

.hero__corner-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__corner--scroll:hover .hero__corner-arrow {
  transform: translateY(4px);
}

/* ============================================
   Selected Work section
   ============================================ */
.work {
  position: relative;
  z-index: 2;
  padding: 80px 80px 80px max(80px, 8vw);
}

/* --------------------------------------------
   Section header
   -------------------------------------------- */
.work__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.1);
}

.work__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

.work__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b1f;
  flex-shrink: 0;
}

.work__years {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

/* --------------------------------------------
   Projects — asymmetric grid
   -------------------------------------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 32px;
  row-gap: 48px;
}

/* Asymmetric placement: alternating widths, subtle offset for rhythm */
.project--01 { grid-column: 1 / span 7; }                  /* ~58% left */
.project--02 { grid-column: 8 / -1; margin-top: 24px; }    /* ~42% right, slight offset */
.project--03 { grid-column: 1 / span 6; }                  /* 50% left */

/* --------------------------------------------
   Project block
   -------------------------------------------- */
.project {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project__index {
  display: block;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
  margin-bottom: 20px;
}

/* Image container — defines aspect ratio + clips the scaling placeholder */
.project__media {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

/* Aspect ratios drive the natural shape; max-heights keep them tight */
.project--01 .project__media { aspect-ratio: 16 / 10; max-height: 420px; }
.project--02 .project__media { aspect-ratio: 4 / 5;  max-height: 480px; }
.project--03 .project__media { aspect-ratio: 16 / 10; max-height: 400px; }

/* "Corrupt image" placeholder */
.project__placeholder {
  position: absolute;
  inset: 0;
  background: #141414;
  border: 1px dashed rgba(245, 241, 234, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.project__icon {
  color: rgba(245, 241, 234, 0.3);
}

.project__filename {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 234, 0.4);
}

/* "View project →" — appears in bottom-right on hover */
.project__view {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #ff5b1f;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}

.project:hover .project__placeholder {
  transform: scale(1.02);
}

.project:hover .project__view {
  opacity: 1;
}

.project__name {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  color: #f5f1ea;
  margin-bottom: 8px;
}

.project__meta {
  font-size: 13px;
  font-weight: 400;
  color: rgba(245, 241, 234, 0.55);
}

/* --------------------------------------------
   Section footer — "View all work →"
   -------------------------------------------- */
.work__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 48px;
}

.view-all {
  position: relative;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #f5f1ea;
  padding-bottom: 4px;
}

/* Underline grows left-to-right on hover */
.view-all::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.view-all:hover::after {
  transform: scaleX(1);
}

/* ============================================
   About section
   ============================================ */
.about {
  position: relative;
  z-index: 2;
  padding: 80px 80px 80px max(80px, 8vw);
}

/* --------------------------------------------
   Section header (mirrors work header pattern)
   -------------------------------------------- */
.about__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 64px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.1);
}

.about__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

.about__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b1f;
  flex-shrink: 0;
}

.about__meta {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

/* --------------------------------------------
   Two-column grid (~55% / ~38% with 80px gap)
   -------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  column-gap: 80px;
  align-items: start;
}

/* --------------------------------------------
   Left column — headline, paragraph, details
   -------------------------------------------- */
.about__headline {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: #f5f1ea;
  max-width: 600px;
}

.about__headline em {
  font-style: italic;
}

.about__paragraph {
  margin-top: 32px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(245, 241, 234, 0.75);
  max-width: 520px;
}

.about__details {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  max-width: 520px;
}

.about__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 241, 234, 0.08);
}

.about__detail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b1f;
  flex-shrink: 0;
}

.about__detail-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(245, 241, 234, 0.75);
}

.about__detail-value {
  color: #f5f1ea;
}

/* --------------------------------------------
   Right column — portrait placeholder (4:5, capped)
   -------------------------------------------- */
.about__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 520px;
}

.about__placeholder {
  position: absolute;
  inset: 0;
  background: #141414;
  border: 1px dashed rgba(245, 241, 234, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* --------------------------------------------
   Scroll-triggered reveal (shared by About + CTA)
   -------------------------------------------- */
[data-reveal-section] [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal-section].is-visible [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

/* Per-section stagger */
.about.is-visible [data-reveal="headline"]    { transition-delay: 0ms; }
.about.is-visible [data-reveal="paragraph"]   { transition-delay: 150ms; }
.about.is-visible [data-reveal="placeholder"] { transition-delay: 200ms; }
.about.is-visible [data-reveal="details"]     { transition-delay: 300ms; }

.services.is-visible [data-reveal="header"]   { transition-delay: 0ms; }
.services.is-visible [data-reveal="card-1"]   { transition-delay: 120ms; }
.services.is-visible [data-reveal="card-2"]   { transition-delay: 240ms; }
.services.is-visible [data-reveal="card-3"]   { transition-delay: 360ms; }
.services.is-visible [data-reveal="care"]     { transition-delay: 560ms; }

.cta.is-visible [data-reveal="header"]        { transition-delay: 0ms; }
.cta.is-visible [data-reveal="headline"]      { transition-delay: 150ms; }
.cta.is-visible [data-reveal="support"]       { transition-delay: 300ms; }
.cta.is-visible [data-reveal="contact"]       { transition-delay: 300ms; }
.cta.is-visible [data-reveal="form"]          { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal-section] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Services & Pricing section
   ============================================ */
.services {
  position: relative;
  z-index: 2;
  padding: 120px max(80px, 8vw) 80px;
}

/* --------------------------------------------
   Section header (mirrors work/about pattern)
   -------------------------------------------- */
.services__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 64px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.1);
}

.services__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

.services__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b1f;
  flex-shrink: 0;
}

.services__meta {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

/* --------------------------------------------
   Pricing tier grid
   -------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tier {
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(245, 241, 234, 0.1);
  padding: 40px;
  cursor: none;
  transition:
    background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.tier:hover {
  background: rgba(20, 20, 20, 0.6);
  border-color: rgba(245, 241, 234, 0.25);
}

/* Keyboard focus mirrors hover (these cards are role="button") */
.tier:focus-visible {
  outline: none;
  background: rgba(20, 20, 20, 0.6);
  border-color: rgba(245, 241, 234, 0.4);
}

.tier__index {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.6);
  margin-bottom: 32px;
}

.tier__price {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  color: #f5f1ea;
  margin-bottom: 24px;
}

.tier__description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(245, 241, 234, 0.7);
}

.tier__features {
  list-style: none;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(245, 241, 234, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(245, 241, 234, 0.8);
}

.tier__feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff5b1f;
  flex-shrink: 0;
}

/* --------------------------------------------
   Care plan strip
   -------------------------------------------- */
.care {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid rgba(245, 241, 234, 0.1);
  border-bottom: 1px solid rgba(245, 241, 234, 0.1);
}

.care__left {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.care__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b1f;
  flex-shrink: 0;
  /* baseline-align nudge so the dot sits with the text */
  transform: translateY(-1px);
}

.care__label {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #f5f1ea;
}

.care__optional {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-style: italic;
  color: rgba(245, 241, 234, 0.5);
}

.care__center {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(245, 241, 234, 0.65);
  text-align: center;
  flex: 1;
}

.care__right {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  color: #f5f1ea;
  white-space: nowrap;
}

.services__note {
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-style: italic;
  color: rgba(245, 241, 234, 0.5);
}

/* ============================================
   Closing CTA section (contact form)
   ============================================ */
.cta {
  position: relative;
  z-index: 2;
  padding: 120px max(80px, 8vw) 100px;
}

/* --------------------------------------------
   Section header
   -------------------------------------------- */
.cta__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 64px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.1);
}

.cta__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

.cta__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b1f;
  flex-shrink: 0;
}

.cta__meta {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

/* --------------------------------------------
   Two-column layout (~45% / ~50%)
   -------------------------------------------- */
.cta__grid {
  display: grid;
  grid-template-columns: 45fr 50fr;
  column-gap: 80px;
  align-items: start;
}

/* --------------------------------------------
   Left column — headline, support, direct contact
   -------------------------------------------- */
.cta__headline {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #f5f1ea;
  max-width: 480px;
}

.cta__headline em {
  font-style: italic;
}

.cta__support {
  margin-top: 32px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(245, 241, 234, 0.7);
  max-width: 420px;
}

.cta__direct {
  margin-top: 48px;
}

.cta__direct-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.5);
  margin-bottom: 12px;
}

.cta__direct-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #f5f1ea;
}

.cta__direct-text {
  position: relative;
  display: inline-block;
}

.cta__direct-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: #ff5b1f;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta__direct-link:hover .cta__direct-text::after {
  transform: scaleX(1);
}

.cta__direct-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta__direct-link:hover .cta__direct-arrow {
  transform: translateX(6px);
}

/* Copy-to-clipboard confirmation: appears below the direct email link.
   Fade-in uses 0.25s (set on .is-visible); fade-out uses 0.4s (the base
   rule's transition kicks in when .is-visible is removed). */
.email-copy-confirmation {
  display: block;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #f5f1ea;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.email-copy-confirmation.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.email-copy-confirmation__check {
  color: #ff5b1f;
  margin-right: 4px;
}

/* --------------------------------------------
   Right column — contact form (underline-only fields)
   -------------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* anchor for the custom select arrow */
  position: relative;
}

.field label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.55);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 241, 234, 0.2);
  border-radius: 0;
  padding: 14px 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #f5f1ea;
  transition: border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 241, 234, 0.35);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: #ff5b1f;
}

.field textarea {
  resize: none;
  font-family: 'Inter', sans-serif; /* explicit — some browsers default textarea to monospace */
  line-height: 1.5;
}

/* Custom-styled select — strip native chrome, draw a "↓" via ::after */
.field--select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 28px;
}

.field--select::after {
  content: '↓';
  position: absolute;
  right: 0;
  bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(245, 241, 234, 0.5);
  pointer-events: none;
}

/* Make selected option text legible against the dark page background */
.field select option {
  background: #141414;
  color: #f5f1ea;
}

/* Submit — mirrors the hero CTA button */
.form__submit {
  align-self: flex-start;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 16px 36px;
  border: 1px solid rgba(245, 241, 234, 0.3);
  background: transparent;
  color: #f5f1ea;
  cursor: none;
  transition:
    background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.form__submit:hover {
  background: #ff5b1f;
  border-color: #ff5b1f;
  color: #0a0a0a;
}

/* Inline field-level validation error — fades in below the input */
.field-error {
  display: block;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(245, 241, 234, 0.7);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  min-height: 18px;
}

.field-error.visible {
  opacity: 1;
  transform: translateY(0);
}

.field-error .error-mark {
  color: #ff5b1f;
  font-weight: 500;
  margin-right: 4px;
}

.form-field.invalid input,
.form-field.invalid textarea,
.form-field.invalid select {
  border-bottom-color: #e85a4f;
}

/* Form status message — fades in once the JS handler sets text + class */
.form-status {
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-status.is-visible { opacity: 1; }
.form-status.is-success { color: #ff5b1f; }
.form-status.is-error   { color: rgba(245, 241, 234, 0.75); }

/* ============================================
   Site footer
   ============================================ */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px max(80px, 8vw);
  border-top: 1px solid rgba(245, 241, 234, 0.1);
}

.site-footer__col {
  display: inline-flex;
  align-items: center;
}

/* Right column holds two links side-by-side */
.site-footer__col--right {
  gap: 32px;
}

/* Left: stacked wordmark (matches nav treatment, smaller) */
.site-footer__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.site-footer__brand-name {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
}

.site-footer__brand-suffix {
  margin-top: 3px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 8px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(245, 241, 234, 0.6);
}

/* Center: copyright */
.site-footer__col--center {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.5);
}

/* Right: Instagram + back-to-top (shared link styling) */
.site-footer__social,
.site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 234, 0.7);
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__social-arrow,
.site-footer__top-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__social:hover,
.site-footer__top:hover {
  color: #f5f1ea;
}

/* Instagram arrow lifts up-and-out */
.site-footer__social:hover .site-footer__social-arrow {
  transform: translate(3px, -3px);
}

/* Back-to-top arrow lifts straight up */
.site-footer__top:hover .site-footer__top-arrow {
  transform: translateY(-4px);
}

/* ============================================
   Responsive — collapse grids on small screens
   ============================================ */
@media (max-width: 900px) {
  .work { padding: 64px 32px; }

  .projects {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .project--01,
  .project--02,
  .project--03 {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .about { padding: 64px 32px; }

  .about__grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .about__headline { font-size: 32px; }

  /* Services: cards stack, care strip becomes vertical */
  .services { padding: 80px 32px 64px; }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tier { padding: 32px; }

  .care {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .care__center { text-align: left; }

  /* CTA: form drops below the copy column */
  .cta { padding: 80px 32px; }

  .cta__grid {
    grid-template-columns: 1fr;
    row-gap: 56px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 40px 32px;
  }
}

/* ============================================
   Success overlay — shown after a successful form submission
   ============================================ */
.success-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000; /* below custom cursor (9999), above everything else */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.success-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.success-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.success-overlay__card {
  position: relative;
  background: #141414;
  border: 1px solid rgba(245, 241, 234, 0.1);
  padding: 64px 72px;
  max-width: 480px;
  width: calc(100% - 48px);
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.success-overlay.visible .success-overlay__card {
  transform: scale(1);
}

.success-overlay__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(245, 241, 234, 0.4);
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  cursor: none;
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.success-overlay__close:hover {
  color: #f5f1ea;
}

.success-overlay__checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
}

.success-overlay__checkmark svg {
  width: 100%;
  height: 100%;
}

/* Circle around the checkmark draws first */
.check-circle {
  stroke-dasharray: 188; /* ~2πr for r=30 */
  stroke-dashoffset: 188;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The check mark itself draws second, with a 0.4s delay so the circle leads */
.check-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.success-overlay.visible .check-circle,
.success-overlay.visible .check-path {
  stroke-dashoffset: 0;
}

.success-overlay__headline {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  line-height: 1.1;
  color: #f5f1ea;
  margin: 0 0 16px;
  font-weight: 400;
}

.success-overlay__text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 241, 234, 0.7);
  max-width: 320px;
  margin: 0 auto;
}
