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

:root {
  --cream: #F2EFE8;
  --cream-dark: #E8E4DC;
  --ink: #1A1815;
  --ink-soft: #3D3A34;
  --ink-muted: #7A766E;
  --gold: #B8976A;
  --gold-light: #D4B896;
  --gold-pale: #F0E8D8;
  --white: #FDFCFA;
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans: 'DM Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s var(--ease-out), width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
  mix-blend-mode: multiply;
}
#cursor.hover { width: 40px; height: 40px; background: var(--gold); mix-blend-mode: multiply; }

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 10000;
}

/* ── VIDEO BACKGROUND ── */
.video-bg {
  position: fixed; inset: 0;
  z-index: -1;
  overflow: hidden;
  transition: opacity 0.4s ease;
}
.video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-overlay {
  position: absolute; inset: 0;
  background: rgba(26, 24, 21, 0.55);
  transition: opacity 0.3s;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(242, 239, 232, 0.92);
  backdrop-filter: blur(12px);
  padding: 18px 60px;
  border-bottom: 0.5px solid rgba(26, 24, 21, 0.08);
}
.nav-logo {
  text-decoration: none; display: flex; align-items: center;
  font-family: var(--ff-serif); font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); transition: color 0.4s;
}
nav:not(.scrolled) .nav-logo { color: var(--cream); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--ink-muted); text-decoration: none;
  transition: color 0.2s;
}
nav:not(.scrolled) .nav-links a { color: rgba(242,239,232,0.6); }
nav:not(.scrolled) .nav-links a:hover { color: var(--cream); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--ink); border: 0.5px solid var(--ink);
  padding: 10px 24px; text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
}
nav:not(.scrolled) .nav-cta {
  color: var(--cream); border-color: rgba(242,239,232,0.4);
}
nav:not(.scrolled) .nav-cta:hover { background: var(--cream); color: var(--ink); }
.nav-cta:hover { background: var(--ink); color: var(--cream); }

.nav-hamburger {
  display: none; background: none; border: none;
  flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--ink); transition: all 0.3s;
}
nav:not(.scrolled) .nav-hamburger span { background: var(--cream); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(242,239,232,0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin-bottom: 32px; }
.mobile-menu a {
  font-family: var(--ff-serif); font-size: 32px; font-weight: 300;
  color: var(--ink); text-decoration: none; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-cta {
  font-family: var(--ff-sans) !important; font-size: 14px !important;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 0.5px solid var(--ink); padding: 14px 32px; display: inline-block;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  padding: 120px 60px 80px;
}
.hero-bg-text {
  position: absolute;
  font-family: var(--ff-serif);
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 300; letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 0.5px rgba(242,239,232,0.08);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap; user-select: none; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 32px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.3s forwards;
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 300; line-height: 1.02; letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 40px; opacity: 0; transform: translateY(30px);
  animation: fadeUp 1.1s var(--ease-out) 0.5s forwards;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-subtitle {
  font-size: 17px; font-weight: 300;
  color: rgba(242,239,232,0.6); line-height: 1.7;
  max-width: 540px; margin: 0 auto 56px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.75s forwards;
}
.hero-actions {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.95s forwards;
}
.btn-primary {
  background: var(--cream); color: var(--ink);
  padding: 16px 40px; font-family: var(--ff-sans);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: background 0.25s, transform 0.2s;
  display: inline-block; cursor: pointer;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); }
.btn-ghost {
  border: 0.5px solid rgba(242,239,232,0.35);
  color: var(--cream);
  padding: 16px 40px; font-family: var(--ff-sans);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: all 0.25s; display: inline-block;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--cream); color: var(--ink); }

.hero-scroll {
  position: absolute; bottom: 48px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: fadeIn 1s var(--ease-out) 1.6s forwards;
}
.hero-scroll span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242,239,232,0.45); }
.scroll-line {
  width: 0.5px; height: 48px;
  background: rgba(242,239,232,0.45);
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top;
}

/* ── CINEMATIC SCROLL ── */
.cinematic-section {
  position: relative;
  z-index: 1;
  background: transparent;
}
.cinematic-spacer { height: 30vh; }
.cinematic-text-block {
  min-height: 80vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 60px;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.cinematic-text-block.cin-visible {
  opacity: 1; transform: translateY(0);
}
.cin-label {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.cinematic-text-block h2 {
  font-family: var(--ff-serif);
  font-size: clamp(42px, 7vw, 90px);
  font-weight: 300; line-height: 1.08;
  color: var(--cream);
}
.cinematic-text-block h2 em { font-style: italic; color: var(--gold); }

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 0.5px solid rgba(26,24,21,0.12);
  border-bottom: 0.5px solid rgba(26,24,21,0.12);
  padding: 20px 0;
  background: var(--cream-dark);
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-item {
  padding: 0 56px;
  font-family: var(--ff-serif);
  font-size: 15px; font-weight: 400; letter-spacing: 0.12em;
  color: var(--ink-muted); white-space: nowrap;
  display: flex; align-items: center; gap: 56px;
}
.marquee-item::after { content: '·'; color: var(--gold); }

/* ── SECTION COMMONS ── */
section { position: relative; }
.section-label {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 300; line-height: 1.1;
  color: var(--ink); margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ── ABOUT ── */
#about {
  padding: 140px 60px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  max-width: 1400px; margin: 0 auto;
  background: var(--cream);
  position: relative; z-index: 2;
}
.about-left { position: sticky; top: 120px; }
.about-number {
  font-family: var(--ff-serif); font-size: 180px; font-weight: 300;
  color: var(--cream-dark); line-height: 1;
  position: absolute; top: -60px; left: -20px; z-index: -1; letter-spacing: -0.05em;
}
.about-text {
  font-family: var(--ff-serif); font-size: 28px; font-weight: 300;
  line-height: 1.55; color: var(--ink-soft);
}
.about-text strong { font-weight: 500; color: var(--ink); }
.about-detail {
  border-top: 0.5px solid rgba(26,24,21,0.12);
  padding: 32px 0;
}
.about-detail:last-child { border-bottom: 0.5px solid rgba(26,24,21,0.12); }
.about-detail h4 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.about-detail p {
  font-size: 16px; line-height: 1.65; color: var(--ink-muted); font-weight: 300;
}

/* ── SERVICES ── */
#services {
  padding: 120px 60px;
  background: var(--ink); color: var(--cream);
  position: relative; z-index: 2;
}
#services .section-label { color: var(--gold-light); }
#services .section-title { color: var(--cream); }
#services .section-title em { color: var(--gold); }
.services-header { max-width: 1400px; margin: 0 auto 80px; }
.services-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.06);
}
.service-card {
  background: var(--ink); padding: 52px 44px;
  transition: background 0.3s; cursor: pointer;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.service-card:hover { background: rgba(255,255,255,0.03); }
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: var(--ff-serif); font-size: 13px;
  color: var(--gold); letter-spacing: 0.1em;
  margin-bottom: 40px; display: block;
}
.service-icon { width: 36px; height: 36px; margin-bottom: 28px; opacity: 0.6; }
.service-card h3 {
  font-family: var(--ff-serif); font-size: 28px; font-weight: 300;
  color: var(--cream); margin-bottom: 20px; line-height: 1.2;
}
.service-card p {
  font-size: 15px; font-weight: 300;
  color: rgba(242,239,232,0.5); line-height: 1.7; margin-bottom: 36px;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-light); border: 0.5px solid rgba(184,151,106,0.3);
  padding: 5px 12px;
}

/* ── PORTFOLIO ── */
#portfolio {
  padding: 140px 60px; max-width: 1400px; margin: 0 auto;
  position: relative; z-index: 2; background: var(--cream);
}
.portfolio-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 80px;
}
.portfolio-link {
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--ink-muted); text-decoration: none;
  border-bottom: 0.5px solid var(--ink-muted);
  padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.portfolio-link:hover { color: var(--gold); border-color: var(--gold); }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.project-card { position: relative; overflow: hidden; background: var(--cream-dark); cursor: pointer; }
.project-card:nth-child(1) { grid-column: 1 / 8; grid-row: 1; }
.project-card:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
.project-card:nth-child(3) { grid-column: 1 / 5; grid-row: 2; }
.project-card:nth-child(4) { grid-column: 5 / 13; grid-row: 2; }
.project-visual {
  aspect-ratio: 16/10; background: var(--cream-dark);
  position: relative; overflow: hidden;
}
.project-card:nth-child(1) .project-visual { aspect-ratio: 16/9; }
.project-card:nth-child(4) .project-visual { aspect-ratio: 16/9; }
.pv-bg {
  position: absolute; inset: 0;
  transition: transform 0.7s var(--ease-out);
}
.project-card:hover .pv-bg { transform: scale(1.04); }
.pv-1 { background: linear-gradient(135deg, #1A1815 0%, #2a2722 50%, #3D3A34 100%); }
.pv-2 { background: linear-gradient(135deg, #B8976A 0%, #F0E8D8 100%); }
.pv-3 { background: linear-gradient(135deg, #3D3A34 0%, #7A766E 100%); }
.pv-4 { background: linear-gradient(135deg, #F2EFE8 0%, #E8E4DC 100%); }
.pv-inner {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 40px;
}
.pv-frame {
  border: 0.5px solid rgba(255,255,255,0.15);
  width: 70%; height: 70%; display: grid; place-items: center;
}
.pv-frame span {
  font-family: var(--ff-serif); font-size: 13px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
}
.pv-frame.dark { border-color: rgba(26,24,21,0.15); }
.pv-frame.dark span { color: rgba(26,24,21,0.3); }
.project-info {
  padding: 28px 32px; display: flex;
  align-items: flex-start; justify-content: space-between; gap: 20px;
}
.project-info h3 {
  font-family: var(--ff-serif); font-size: 20px; font-weight: 400;
  color: var(--ink); margin-bottom: 6px;
}
.project-info p { font-size: 13px; color: var(--ink-muted); font-weight: 300; }
.project-arrow {
  width: 36px; height: 36px;
  border: 0.5px solid rgba(26,24,21,0.15);
  display: grid; place-items: center; flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.project-card:hover .project-arrow { background: var(--ink); border-color: var(--ink); }
.project-card:hover .project-arrow svg path { stroke: var(--cream); }
.project-arrow svg { width: 14px; height: 14px; }
.project-arrow svg path { stroke: var(--ink); transition: stroke 0.2s; }

.coming-soon {
  position: absolute; inset: 0;
  background: rgba(26,24,21,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s; z-index: 2;
}
.project-card:hover .coming-soon { opacity: 1; }
.coming-soon span {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-light); border: 0.5px solid var(--gold); padding: 10px 20px;
}

/* ── LAPTOP MOCKUP ── */
.laptop-mockup {
  width: 88%; max-width: 600px;
  perspective: 1000px;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .laptop-mockup { transform: translateY(-4px) scale(1.01); }
.laptop-screen {
  background: #0d0d0d;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border: 3px solid #222;
  border-bottom: none;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.laptop-topbar {
  height: 28px; background: #2a2a2a;
  display: flex; align-items: center;
  padding: 0 10px; gap: 6px;
  border-bottom: 1px solid #333;
}
.lp-dot { width: 8px; height: 8px; border-radius: 50%; }
.lp-url {
  font-size: 10px; color: rgba(255,255,255,0.4);
  margin-left: auto; margin-right: auto;
  font-family: var(--ff-sans); letter-spacing: 0.02em;
}
.laptop-viewport {
  width: 100%; aspect-ratio: 16/10; overflow: hidden;
  background: #111;
}
.laptop-viewport iframe {
  width: 200%; height: 200%;
  border: none;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}
.laptop-base {
  height: 16px;
  background: linear-gradient(180deg, #d4d4d4 0%, #b0b0b0 30%, #c8c8c8 60%, #e0e0e0 100%);
  border-radius: 0 0 6px 6px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 1px solid rgba(0,0,0,0.1);
  border-top: none;
}
.laptop-notch {
  width: 90px; height: 5px;
  background: linear-gradient(180deg, #a8a8a8, #c0c0c0);
  border-radius: 0 0 6px 6px;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
}

/* ── STATS ── */
#stats {
  padding: 100px 60px;
  border-bottom: 0.5px solid rgba(26,24,21,0.08);
  background: var(--cream);
  position: relative; z-index: 2;
}
.stats-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-left: 0.5px solid rgba(26,24,21,0.1);
}
.stat-block { padding: 0 60px; border-right: 0.5px solid rgba(26,24,21,0.1); }
.stat-number {
  font-family: var(--ff-serif);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 300; color: var(--ink); line-height: 1; margin-bottom: 12px;
}
.stat-number span { color: var(--gold); }
.stat-label { font-size: 13px; font-weight: 300; color: var(--ink-muted); letter-spacing: 0.04em; }

/* ── PROCESS ── */
#process {
  padding: 120px 60px;
  background: var(--gold-pale);
  border-top: 0.5px solid rgba(184,151,106,0.2);
  border-bottom: 0.5px solid rgba(184,151,106,0.2);
  position: relative; z-index: 2;
}
#process .section-label { color: var(--gold); }
.process-inner { max-width: 1400px; margin: 0 auto; }
.process-header { margin-bottom: 80px; }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-left: 0.5px solid rgba(26,24,21,0.1);
}
.process-step {
  padding: 48px 40px;
  border-right: 0.5px solid rgba(26,24,21,0.1);
  border-top: 0.5px solid rgba(26,24,21,0.1);
}
.step-num {
  font-family: var(--ff-serif); font-size: 60px; font-weight: 300;
  color: rgba(184,151,106,0.25); line-height: 1; margin-bottom: 28px;
}
.process-step h3 {
  font-family: var(--ff-serif); font-size: 22px; font-weight: 400;
  color: var(--ink); margin-bottom: 16px;
}
.process-step p { font-size: 14px; font-weight: 300; color: var(--ink-muted); line-height: 1.7; }

/* ── SAAS TEASER ── */
#saas {
  padding: 140px 60px;
  background: var(--ink);
  position: relative; overflow: hidden; z-index: 2;
}
#saas::before {
  content: 'SaaS';
  position: absolute; font-family: var(--ff-serif);
  font-size: 300px; font-weight: 300;
  color: transparent; -webkit-text-stroke: 0.5px rgba(184,151,106,0.08);
  right: -40px; top: 50%; transform: translateY(-50%);
  pointer-events: none; letter-spacing: -0.05em;
}
.saas-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: center; position: relative; z-index: 2;
}
.saas-badge {
  display: inline-block; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  border: 0.5px solid rgba(184,151,106,0.4); padding: 6px 16px; margin-bottom: 32px;
}
.saas-title {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300; color: var(--cream); line-height: 1.15; margin-bottom: 24px;
}
.saas-title em { font-style: italic; color: var(--gold); }
.saas-text {
  font-size: 16px; font-weight: 300;
  color: rgba(242,239,232,0.55); line-height: 1.7; margin-bottom: 48px;
}
.saas-mockup {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden; aspect-ratio: 4/3; position: relative;
}
.mockup-bar {
  background: rgba(255,255,255,0.05); height: 36px;
  display: flex; align-items: center; padding: 0 16px; gap: 8px;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; }
.mockup-content {
  padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.mockup-card {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.06);
  padding: 20px; border-radius: 2px;
}
.mc-label { height: 6px; background: rgba(184,151,106,0.3); margin-bottom: 10px; width: 60%; border-radius: 2px; }
.mc-value { height: 20px; background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ── CONTACT ── */
#contact {
  padding: 140px 60px; max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 120px; align-items: start;
  background: var(--cream); position: relative; z-index: 2;
}
.contact-left .section-title { font-size: clamp(40px, 5vw, 68px); }
.contact-detail { margin-top: 60px; }
.contact-detail a {
  font-family: var(--ff-serif); font-size: 22px; font-weight: 300;
  color: var(--ink-soft); text-decoration: none;
  display: block; margin-bottom: 12px; transition: color 0.2s;
  cursor: pointer;
}
.contact-detail a:hover { color: var(--gold); }
.contact-form { padding-top: 60px; }
.form-group { margin-bottom: 32px; }
.form-group label {
  display: block; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: transparent; border: none;
  border-bottom: 0.5px solid rgba(26,24,21,0.2);
  padding: 12px 0; font-family: var(--ff-sans);
  font-size: 16px; font-weight: 300; color: var(--ink);
  outline: none; transition: border-color 0.3s;
  appearance: none; -webkit-appearance: none; resize: none;
  cursor: text;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-muted); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); }
.form-group textarea { min-height: 100px; }
.form-submit {
  background: var(--ink); color: var(--cream);
  border: none; padding: 18px 48px;
  font-family: var(--ff-sans); font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: background 0.25s, transform 0.2s;
  display: inline-block;
}
.form-submit:hover { background: var(--gold); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: var(--ink); padding: 80px 60px 48px;
  position: relative; z-index: 2;
}
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-bottom: 60px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08); margin-bottom: 40px;
}
.footer-logo {
  font-family: var(--ff-serif); font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream);
}
.footer-tagline { font-size: 13px; font-weight: 300; color: rgba(242,239,232,0.35); margin-top: 8px; }
.footer-links { display: flex; gap: 60px; }
.footer-col h5 {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
  font-size: 14px; font-weight: 300;
  color: rgba(242,239,232,0.45); text-decoration: none;
  transition: color 0.2s; cursor: pointer;
}
.footer-col ul a:hover { color: var(--cream); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 12px; color: rgba(242,239,232,0.25); font-weight: 300; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 0.6; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

/* ── REVEAL ON SCROLL ── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 24px 32px; }
  nav.scrolled { padding: 16px 32px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  #hero { padding: 120px 32px 80px; }
  .cinematic-text-block { padding: 40px 32px; }
  #about { grid-template-columns: 1fr; gap: 48px; padding: 80px 32px; }
  .about-left { position: relative; top: auto; }
  #services { padding: 80px 32px; }
  .services-grid { grid-template-columns: 1fr; }
  #portfolio { padding: 80px 32px; }
  .portfolio-grid { display: flex; flex-direction: column; }
  .project-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  #process { padding: 80px 32px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  #stats { padding: 80px 32px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-block { margin-bottom: 40px; }
  #saas { padding: 80px 32px; }
  .saas-inner { grid-template-columns: 1fr; gap: 60px; }
  #contact { grid-template-columns: 1fr; gap: 60px; padding: 80px 32px; }
  .contact-form { padding-top: 0; }
  footer { padding: 60px 32px 40px; }
  .footer-top { flex-direction: column; gap: 48px; }
  .footer-links { flex-wrap: wrap; gap: 40px; }
}
@media (max-width: 600px) {
  body { cursor: auto; }
  #cursor { display: none; }
  .process-steps { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; border-left: none; }
  .stat-block { padding: 0 20px 40px 0; }
  .hero-title { font-size: clamp(38px, 10vw, 72px); }
  .cinematic-text-block h2 { font-size: clamp(32px, 8vw, 56px); }
  .laptop-viewport iframe { width: 300%; height: 300%; transform: scale(0.333); }
}
