/* ============================================================
   DESIGN SYSTEM — Made By Josh
   ============================================================ */
:root {
  --bg:         #0E0D0B;
  --surface:    #141210;
  --surface-2:  #1B1916;
  --border:     #262320;
  --border-2:   #363230;

  --text-1: #EAE5DC;
  --text-2: #96908A;
  --text-3: #57534F;

  --accent:     #C4784A;
  --accent-2:   #D48A5E;
  --accent-dim: rgba(196, 120, 74, 0.12);

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;

  --max-w:    1200px;
  --gutter:   clamp(20px, 6vw, 96px);
  --header-h: 70px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--border) var(--bg);
  scrollbar-width: thin;
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain overlay for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: 1.25rem; }

/* ============================================================
   INTRO ANIMATION
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  pointer-events: none;
}

.intro-bars {
  position: absolute;
  inset: 0;
  display: flex;
}

.bar {
  flex: 1;
  background: var(--text-1);
  transform-origin: top center;
}

.intro-wordmark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--bg);
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
}

/* ============================================================
   PAGE
   ============================================================ */
.page {
  visibility: hidden;
  opacity: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

#site-header.scrolled {
  background: rgba(14, 13, 11, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--gutter);
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.logo:hover .logo-mark { background: var(--accent-2); }

.logo-wordmark {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}

.main-nav a:hover {
  color: var(--text-1);
  background: var(--surface-2);
}

.header-cta {
  padding: 8px 18px;
  background: var(--text-1);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
  white-space: nowrap;
}

.header-cta:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, border-color 0.2s,
              transform 0.2s var(--ease-spring), box-shadow 0.2s;
  white-space: nowrap;
}

.btn svg {
  transition: transform 0.2s var(--ease-spring);
  flex-shrink: 0;
}

.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--text-1);
  color: var(--bg);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  color: var(--text-1);
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-1px);
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section {
  padding: clamp(72px, 11vw, 130px) var(--gutter);
  border-top: 1px solid var(--border);
}

.section-tinted {
  background: linear-gradient(180deg, var(--surface) 0%, transparent 80%);
}

.section-top {
  margin-bottom: clamp(48px, 7vw, 80px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.section-desc {
  color: var(--text-2);
  max-width: 420px;
  font-size: 1rem;
  line-height: 1.75;
  padding-top: 8px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + clamp(60px, 10vh, 100px));
  padding-bottom: clamp(60px, 10vh, 100px);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 32px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.7); }
}

/* Hero headline — each line clipped for slide-up reveal */
.hero-heading {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.hero-heading .clip {
  display: block;
  overflow: hidden;
  line-height: 1.06;
  padding-bottom: 0.05em;
}

.hero-heading .slide {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-heading .slide.italic {
  font-style: italic;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-3);
}

.hero-sub {
  color: var(--text-2);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-mockup-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-mockup-note svg {
  flex-shrink: 0;
  stroke: var(--accent);
}

/* Decorative letter + orbit ring */
.hero-deco {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.deco-letter {
  font-family: var(--ff-display);
  font-size: clamp(160px, 22vw, 290px);
  font-style: italic;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  line-height: 1;
  user-select: none;
}

.deco-ring {
  position: absolute;
  width: 130%;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: orbit 32s linear infinite;
}

.deco-ring::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

@keyframes orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  padding: 14px 0;
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}

.marquee-inner:hover { animation-play-state: paused; }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
}

.marquee-track span {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.marquee-track .sep { color: var(--accent); }

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

/* ============================================================
   SERVICES
   ============================================================ */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.25s, padding-left 0.25s var(--ease-out);
  cursor: default;
}

.service-row:first-child { border-top: 1px solid var(--border); }

.service-row:hover {
  border-bottom-color: var(--border-2);
  padding-left: 8px;
}

.service-row:hover .service-num { color: var(--accent); }

.service-row:hover .service-tag {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(196, 120, 74, 0.3);
}

.service-num {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: -0.04em;
  transition: color 0.25s;
  flex-shrink: 0;
}

.service-info h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text-1);
}

.service-info p {
  color: var(--text-2);
  font-size: 0.92rem;
  max-width: 480px;
  line-height: 1.65;
}

.service-tag {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  flex-shrink: 0;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(28px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
}

.process-card:nth-child(1) { border-radius: var(--r-md) 0 0 0; }
.process-card:nth-child(2) { border-radius: 0 var(--r-md) 0 0; }
.process-card:nth-child(3) { border-radius: 0; }
.process-card:nth-child(4) { border-radius: 0 0 0 var(--r-md); }
.process-card:nth-child(5) { border-radius: 0 0 var(--r-md) 0; }

.process-card:hover { background: var(--surface-2); }

.process-card--highlight {
  background: var(--accent-dim);
  border-color: rgba(196, 120, 74, 0.3);
}

.process-card--highlight:hover {
  background: rgba(196, 120, 74, 0.16);
}

.process-card--highlight .process-num {
  color: var(--accent);
  opacity: 0.6;
}

.process-card--highlight h3 {
  color: var(--accent-2);
}

.process-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(196, 120, 74, 0.15);
  border: 1px solid rgba(196, 120, 74, 0.3);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.process-num {
  font-family: var(--ff-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--border-2);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 8px;
}

.process-card h3 { color: var(--text-1); }

.process-card p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.72;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.contact-left h2 { margin: 0; }

.contact-left > p {
  color: var(--text-2);
  font-size: 1.02rem;
  max-width: 380px;
  line-height: 1.75;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.contact-row:last-child { border-bottom: none; }
.contact-row:hover { background: var(--surface-2); }

.detail-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-val {
  font-size: 0.9rem;
  color: var(--text-1);
  text-align: right;
}

.detail-link {
  color: var(--accent);
  transition: color 0.15s;
}

.detail-link:hover { color: var(--accent-2); }

/* ============================================================
   POLICIES
   ============================================================ */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.policy-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.policy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--accent);
  flex-shrink: 0;
}

.policy-card h3 { color: var(--text-1); }

.policy-card ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.policy-card li {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}

.policy-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-size: 0.68rem;
  top: 5px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 70px) var(--gutter);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 300px;
}

.footer-left p {
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.65;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.15s;
}

.footer-nav a:hover { color: var(--text-1); }

.copyright {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.js-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-deco { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }

  .process-grid { grid-template-columns: 1fr; gap: 2px; }
  .process-card:nth-child(1) { border-radius: var(--r-md) var(--r-md) 0 0; }
  .process-card:nth-child(2) { border-radius: 0; }
  .process-card:nth-child(3) { border-radius: 0; }
  .process-card:nth-child(4) { border-radius: 0; }
  .process-card:nth-child(5) { border-radius: 0 0 var(--r-md) var(--r-md); }

  .section-heading-row { flex-direction: column; gap: 10px; }
}

@media (max-width: 680px) {
  .main-nav { display: none; }

  .service-row {
    grid-template-columns: 44px 1fr;
    padding-left: 0 !important;
  }

  .service-tag { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .detail-val { text-align: left; }
}
