@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --cream:  #F5F0E8;
  --cream2: #EDE6D6;
  --cream3: #E2D9C5;
  --burg:   #5C1A2E;
  --burg2:  #8B2A42;
  --burg3:  #3A0F1C;
  --wine:   #A63248;
  --text:   #1A0A10;
  --muted:  #7A5A62;
  --faint:  #C4AEB5;
  --border: rgba(92,26,46,.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 56px;
  background: rgba(245,240,232,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
nav.scrolled { background: rgba(245,240,232,.99); }

.nav-brand {
  display: flex; flex-direction: column; gap: 2px;
  text-decoration: none; flex-shrink: 0;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 900; letter-spacing: -.02em;
  color: var(--burg3); line-height: 1;
}
.logo span { color: var(--burg2); font-style: italic; }
.logo-tagline {
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); line-height: 1;
}
nav ul { list-style: none; display: flex; gap: 36px; align-items: center; }
nav ul a {
  color: var(--muted); text-decoration: none; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; transition: color .2s;
  white-space: nowrap;
}
nav ul a:hover { color: var(--burg); }
.nav-cta {
  color: var(--cream) !important; background: var(--burg) !important;
  padding: 9px 22px; border-radius: 2px; font-size: 12px !important;
  transition: background .2s !important; white-space: nowrap;
}
.nav-cta:hover { background: var(--burg2) !important; }
.burger {
  display: none; background: none; border: none;
  font-size: 22px; color: var(--burg3); cursor: pointer; padding: 4px;
}

/* ── MOBILE MENU ── */
#mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: var(--burg3);
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
#mobile-menu.open { display: flex; }
.mobile-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; font-size: 24px;
  color: rgba(245,240,232,.5); cursor: pointer;
}
#mobile-menu ul { list-style: none; text-align: center; }
#mobile-menu li { margin: 12px 0; }
.mobile-link {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 900; font-style: italic;
  color: rgba(245,240,232,.7); text-decoration: none; transition: color .2s;
}
.mobile-link:hover { color: var(--cream); }
.mobile-cta {
  display: inline-block; margin-top: 16px;
  font-family: 'Inter', sans-serif; font-size: 13px !important;
  font-style: normal; font-weight: 500;
  background: var(--burg2); color: var(--cream) !important;
  padding: 14px 36px; border-radius: 2px; letter-spacing: .08em;
}

/* ══════════════════════════════════════════
   HERO
   Layout:
   - Row 1 (top-left):    "Built for..."
   - Row 2 (middle):      title left | card middle-right
   - Row 3 (bottom):      scroll center | buttons bottom-right
   ══════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  top: 44%; left: 56%;
  transform: translate(-50%, -50%);
  width: 0; height: 0; border-radius: 50%;
  background: radial-gradient(
    ellipse at 40% 40%,
    rgba(139,42,66,.22) 0%,
    rgba(92,26,46,.14) 35%,
    rgba(166,50,72,.07) 65%,
    transparent 80%
  );
  opacity: 0;
  animation: blobGrow 2.6s cubic-bezier(.16,1,.3,1) .2s forwards;
  pointer-events: none; z-index: 0;
  filter: blur(1px);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* "AI Integration Studio" vertical right edge */
.hero-tag {
  position: absolute;
  right: 36px; top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint);
  display: flex; align-items: center; gap: 8px;
  opacity: 0; animation: fadeIn .8s 1.6s forwards;
}
.hero-tag::before {
  content: '';
  width: 1px; height: 28px;
  background: var(--faint); opacity: .5;
}

/* ROW 1: eyebrow top-left under nav */
.hero-eyebrow-bar {
  position: relative; z-index: 2;
  padding: 20px 56px 0;
  flex-shrink: 0;
  opacity: 0; animation: fadeUp .6s .3s forwards;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--burg2);
}

/* ROW 2: middle row — title + card side by side */
.hero-middle {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  gap: 40px;
}

/* Title: left, big */
.hero-title-wrap {
  opacity: 0; animation: fadeUp .9s .55s forwards;
  flex-shrink: 0;
  padding-left: 80px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(60px, 9vw, 122px);
  font-weight: 900;
  line-height: .93;
  letter-spacing: -.03em;
  color: var(--burg3);
}
.hero-title .line2 {
  display: block; font-style: italic; color: var(--burg2);
  padding-left: clamp(48px, 7vw, 110px);
}
.hero-title .line3 { display: block; }

/* Card: middle-right, vertically centered */
.hero-sub-block {
  background: rgba(245,240,232,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(92,26,46,.13);
  border-radius: 8px;
  padding: 22px 26px;
  width: 280px;
  flex-shrink: 0;
  margin-right: 80px;
  opacity: 0; animation: fadeUp .8s .75s forwards;
}
.hero-sub {
  font-size: 14px; color: var(--muted); line-height: 1.8;
}

/* ROW 3: bottom bar */
.hero-footer {
  position: relative; z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 0 56px 40px;
  flex-shrink: 0;
  opacity: 0; animation: fadeUp .8s .95s forwards;
}

/* Scroll — bottom left (or center-left) */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 3;
}
.scroll-hint span {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(92,26,46,.4), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* Buttons — bottom RIGHT */
.hero-actions {
  display: flex; gap: 14px; align-items: center;
  margin-left: auto;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--burg); color: var(--cream);
  padding: 14px 32px; border-radius: 2px;
  text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: .06em; display: inline-block;
  transition: background .2s, transform .2s; white-space: nowrap;
}
.btn-primary:hover { background: var(--burg2); transform: translateY(-2px); }
.btn-ghost {
  color: var(--muted); text-decoration: none; font-size: 13px;
  letter-spacing: .05em; border-bottom: 1px solid var(--faint);
  padding-bottom: 2px; transition: color .2s, border-color .2s; white-space: nowrap;
}
.btn-ghost:hover { color: var(--burg); border-color: var(--burg); }

/* ── MARQUEE ── */
.marquee-wrap { background: var(--burg3); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-item {
  display: flex; align-items: center; gap: 24px; padding: 0 40px;
  font-family: 'Playfair Display', serif; font-size: 14px; font-style: italic;
  color: rgba(245,240,232,.35); white-space: nowrap; letter-spacing: .02em;
}
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--wine); flex-shrink: 0; }

/* ── SHARED ── */
section { position: relative; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 56px; }

/* ── INTRO ── */
#intro { padding: 100px 0; border-bottom: 1px solid var(--border); }
.intro-inner { display: grid; grid-template-columns: 180px 1fr; gap: 80px; align-items: start; }
.intro-label {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--burg2);
  padding-top: 10px; display: flex; flex-direction: column; gap: 8px;
}
.intro-label::after { content: ''; width: 24px; height: 1px; background: var(--burg2); opacity: .4; }
.intro-text {
  font-family: 'Playfair Display', serif; font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 400; line-height: 1.4; color: var(--burg3);
}
.intro-text em { font-style: italic; color: var(--burg2); }

/* ── SERVICES ── */
#services { padding: 100px 0; }
.services-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; gap: 40px; }
.services-heading {
  font-family: 'Playfair Display', serif; font-size: clamp(40px, 5vw, 64px);
  font-weight: 900; line-height: 1.05; letter-spacing: -.02em; color: var(--burg3);
}
.services-heading em { font-style: italic; color: var(--burg2); }
.services-note { max-width: 280px; color: var(--muted); font-size: 14px; line-height: 1.75; flex-shrink: 0; }
.services-list { display: flex; flex-direction: column; }
.service-row {
  display: grid; grid-template-columns: 72px 1fr 32px;
  gap: 24px; align-items: center; padding: 26px 0;
  border-top: 1px solid var(--border);
  cursor: pointer; position: relative;
  text-decoration: none; color: inherit; overflow: hidden;
}
.service-row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 0; background: var(--burg3);
  transition: height .32s cubic-bezier(.16,1,.3,1); z-index: 0;
}
.service-row:hover::after { height: 100%; }
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-num { font-family: 'Playfair Display', serif; font-size: 13px; font-style: italic; color: var(--faint); position: relative; z-index: 1; transition: color .2s; }
.service-row:hover .service-num { color: rgba(245,240,232,.35); }
.service-body { position: relative; z-index: 1; }
.service-name { font-family: 'Playfair Display', serif; font-size: clamp(18px, 2vw, 26px); font-weight: 700; color: var(--burg3); margin-bottom: 3px; transition: color .2s; }
.service-row:hover .service-name { color: var(--cream); }
.service-sub { font-size: 13px; color: var(--muted); transition: color .2s; line-height: 1.5; }
.service-row:hover .service-sub { color: rgba(245,240,232,.45); }
.service-arrow { font-size: 20px; color: var(--faint); position: relative; z-index: 1; transition: color .2s, transform .3s; justify-self: end; }
.service-row:hover .service-arrow { color: var(--cream); transform: translate(3px,-3px); }

/* ── PROCESS ── */
#process { padding: 100px 0; background: var(--burg3); color: var(--cream); }
.process-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 64px; gap: 40px; }
.process-title { font-family: 'Playfair Display', serif; font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; color: var(--cream); }
.process-title em { font-style: italic; color: var(--wine); }
.process-note { max-width: 260px; font-size: 14px; color: rgba(245,240,232,.45); line-height: 1.75; flex-shrink: 0; }
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(245,240,232,.08); border: 1px solid rgba(245,240,232,.08); }
.process-step { padding: 36px 28px; transition: background .3s; }
.process-step:hover { background: rgba(245,240,232,.04); }
.pstep-num { font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 900; font-style: italic; color: rgba(245,240,232,.08); line-height: 1; margin-bottom: 20px; transition: color .3s; }
.process-step:hover .pstep-num { color: rgba(163,50,72,.4); }
.pstep-title { font-size: 15px; font-weight: 500; color: var(--cream); margin-bottom: 10px; }
.pstep-desc { font-size: 13px; color: rgba(245,240,232,.4); line-height: 1.75; }

/* ── TENSION ── */
#tension {
  padding: 80px 56px; background: var(--cream2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 56px; overflow: hidden;
}
.tension-big { font-family: 'Playfair Display', serif; font-size: clamp(48px,6.5vw,88px); font-weight: 900; font-style: italic; color: var(--burg3); line-height: 1; white-space: nowrap; flex-shrink: 0; letter-spacing: -.03em; }
.tension-big span { color: var(--burg2); }
.tension-text { font-size: 15px; color: var(--muted); line-height: 1.8; max-width: 400px; }
.tension-cta { flex-shrink: 0; margin-left: auto; }

/* ── STATS ── */
#stats { padding: 100px 0; border-bottom: 1px solid var(--border); }
.stats-label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--burg2); margin-bottom: 40px; display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.stat-box { background: var(--cream); padding: 44px 32px; transition: background .3s; }
.stat-box:hover { background: var(--cream2); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 900; font-style: italic; color: var(--burg); line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── CONTACT ── */
#contact { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-heading { font-family: 'Playfair Display', serif; font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; color: var(--burg3); margin-bottom: 24px; }
.contact-heading em { font-style: italic; color: var(--burg2); }
.contact-desc { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 40px; }
.contact-detail { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 24px; }
.contact-detail-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; gap: 16px; }
.contact-detail-row span:first-child { color: var(--burg2); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; flex-shrink: 0; }
.contact-detail-row span:last-child { color: var(--muted); text-align: right; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--burg2); }
.form-field input,
.form-field textarea,
.form-field select {
  background: transparent; border: none; border-bottom: 1px solid var(--border);
  padding: 12px 0; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 300;
  outline: none; resize: none; border-radius: 0; transition: border-color .25s;
  -webkit-appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #C4AEB5; opacity: 1; }
.form-field select { color: #C4AEB5; }
.form-field select.has-value { color: var(--text); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-bottom-color: var(--burg); }
.form-field select option { background: var(--cream); color: var(--text); }
.form-field textarea { height: 100px; }
.form-submit {
  background: var(--burg); color: var(--cream);
  border: none; padding: 15px 32px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: .08em; cursor: pointer; border-radius: 2px; margin-top: 8px;
  transition: background .2s, transform .2s; align-self: flex-start;
}
.form-submit:hover { background: var(--burg2); transform: translateY(-2px); }
.form-submit:disabled { opacity: .6; cursor: default; transform: none; }
#form-status { font-size: 13px; padding: 10px 0; min-height: 20px; display: none; }
#form-status.visible { display: block; }
#form-status.success { color: #3A6A2A; }
#form-status.error { color: #8B0000; }

/* ── FOOTER ── */
footer {
  padding: 28px 56px; border-top: 1px solid var(--border);
  background: var(--burg3);
  display: flex; align-items: center; justify-content: space-between;
}
footer p { font-size: 12px; color: rgba(245,240,232,.3); }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 900; font-style: italic; color: rgba(245,240,232,.2); text-decoration: none; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(245,240,232,.25); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: rgba(245,240,232,.6); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .8s ease, transform .8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.stagger-child { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }

/* ── KEYFRAMES ── */
@keyframes blobGrow {
  0%   { width: 0; height: 0; opacity: 0; }
  30%  { opacity: 1; }
  100% { width: min(95vw, 980px); height: min(95vw, 980px); opacity: 1; }
}
@keyframes fadeUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scrollPulse { 0%,100% { opacity: .2; } 50% { opacity: 1; } }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  nav ul { display: none; }
  .burger { display: block; }
  #hero { padding-top: 64px; }
  .hero-tag { display: none; }
  .hero-eyebrow-bar { padding: 16px 24px 0; }
  .hero-middle {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 0;
    gap: 20px;
  }
  .hero-sub-block { width: 100%; }
  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 40px;
    gap: 20px;
  }
  .hero-actions { margin-left: 0; }
  .scroll-hint { display: none; }
  .container { padding: 0 24px; }
  #intro { padding: 64px 0; }
  .intro-inner { grid-template-columns: 1fr; gap: 20px; }
  #services { padding: 64px 0; }
  .services-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services-note { max-width: 100%; }
  .service-row { grid-template-columns: 48px 1fr 24px; gap: 14px; }
  #process { padding: 64px 0; }
  .process-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .process-note { max-width: 100%; }
  #tension { flex-direction: column; padding: 56px 24px; gap: 24px; }
  .tension-cta { margin-left: 0; }
  #stats { padding: 64px 0; }
  #contact { padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 24px; }
}

@media (max-width: 900px) {
  .hero-title-wrap { padding-left: 0; }
  .hero-sub-block { width: 100%; margin-right: 0; }
  .scroll-hint { display: none; }
  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 40px;
    gap: 20px;
  }
  .hero-actions { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}