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

:root {
  --bg: #f5f2ec;
  --bg2: #ede9e1;
  --text: #1a1814;
  --muted: #8a8070;
  --dim: #6a6258;
  --faint: #9a9088;
  --line: #ddd8ce;
  --line-dark: #e4e0d8;
  --accent: #1a1814;
  --accent-text: #f5f2ec;
}

html { scroll-behavior: smooth; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid transparent;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.4s, background 0.4s;
  pointer-events: none;
}

#nav.visible { opacity: 1; transform: none; pointer-events: all; }

#nav.scrolled {
  background: rgba(245,242,236,0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links { display: flex; gap: 40px; list-style: none; }

.nav-links a {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ── HERO ── */
#hero {
  width: 100%;
  height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#hero-canvas { display: block; width: 100%; height: 100%; }

#hero-tagline {
  position: absolute;
  bottom: 80px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.4em;
  text-transform: lowercase;
  color: #aaa49a;
  opacity: 0;
  transition: opacity 2s ease;
  pointer-events: none;
}

#hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 48px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c8c2b8;
  opacity: 0;
  transition: opacity 1.5s ease 0.5s;
}

#hero-scroll.visible { opacity: 1; }

/* ── SECTIONS COMMON ── */
section { padding: 100px 96px 120px 96px; }

.section-label {
  font-size: 14px;
  letter-spacing: 0.4em;
  color: #b8b2a8;
  text-transform: uppercase;
  margin-bottom: 72px;
}

/* ── ABOUT ── */
#about { border-top: 0.5px solid var(--line); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 100%; }

.about-left { padding-right: 80px; border-right: 0.5px solid var(--line); }
.about-right { padding-left: 80px; }

.headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 42px;
  line-height: 1.15;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 40px;
}

.headline em { font-style: italic; color: var(--muted); }

.body-text {
  font-size: 14px;
  line-height: 2;
  color: var(--dim);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.principle {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 0.5px solid var(--line);
}

.principle-quote {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 21px;
  font-style: italic;
  color: #4a4540;
  line-height: 1.6;
}

.principle-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #b8b2a8;
  text-transform: uppercase;
  margin-top: 16px;
}

.stats-list { list-style: none; }

.stat-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 0.5px solid var(--line-dark);
}

.stat-item:first-child { border-top: 0.5px solid var(--line-dark); }

.stat-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 32px;
  color: var(--text);
  font-weight: 400;
  min-width: 64px;
  flex-shrink: 0;
}

.stat-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.domains { margin-top: 56px; }

.domains-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #b8b2a8;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.domain-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--faint);
  border: 0.5px solid var(--line);
  padding: 6px 14px;
  border-radius: 2px;
  transition: color 0.3s, border-color 0.3s;
  cursor: default;
}

.tag:hover { color: var(--text); border-color: var(--muted); }

/* ── SERVICES ── */
#services { border-top: 0.5px solid var(--line); }

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 100%;
  margin-bottom: 80px;
  padding-bottom: 64px;
  border-bottom: 0.5px solid var(--line);
}

.services-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 38px;
  line-height: 1.2;
  color: var(--text);
  font-weight: 400;
}

.services-headline em { font-style: italic; color: var(--muted); }

.services-intro {
  padding-left: 80px;
  font-size: 14px;
  line-height: 2;
  color: var(--faint);
  font-weight: 300;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
}

.service-row {
  display: grid;
  grid-template-columns: 200px 1fr 60px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 0.5px solid var(--line-dark);
  max-width: 100%;
  gap: 48px;
  cursor: default;
}

.service-row:hover .service-name { color: var(--text); }

.service-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 32px;
  color: #c8c2b8;
  letter-spacing: 0.2em;
  padding-top: 4px;
}

.service-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
  transition: color 0.4s;
}

.service-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--faint);
  font-weight: 300;
  letter-spacing: 0.03em;
  max-width: 420px;
}

.service-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.stack-tag {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8b2a8;
  border: 0.5px solid var(--line);
  padding: 4px 10px;
  border-radius: 1px;
}

.service-arrow {
  text-align: right;
  font-size: 16px;
  color: #c8c2b8;
  padding-top: 4px;
  transition: color 0.4s, transform 0.4s;
}

.service-row:hover .service-arrow { color: var(--muted); transform: translate(3px, -3px); }

.team-note {
  max-width: 100%;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 0.5px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 32px;
}

.team-note-label {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: #c8c2b8;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.team-note-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  color: var(--dim);
  line-height: 1.7;
}

/* ── CONTACT ── */
#contact { border-top: 0.5px solid var(--line); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 100%; }

.contact-left { padding-right: 80px; border-right: 0.5px solid var(--line); }
.contact-right { padding-left: 80px; }

.contact-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 42px;
  line-height: 1.15;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 32px;
}

.contact-headline em { font-style: italic; color: var(--muted); }

.contact-subtext {
  font-size: 14px;
  line-height: 2;
  color: var(--faint);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 56px;
}

.contact-detail {
  padding: 20px 0;
  border-top: 0.5px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.contact-detail:last-child { border-bottom: 0.5px solid var(--line-dark); }

.detail-label {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: #c8c2b8;
  text-transform: uppercase;
}

.detail-value { font-size: 14px; color: var(--faint); letter-spacing: 0.04em; }

.field-group { margin-bottom: 28px; }

.field-label {
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b8b2a8;
  display: block;
  margin-bottom: 10px;
}

.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--line);
  padding: 10px 0;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  letter-spacing: 0.03em;
  transition: border-color 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
}

.field-input::placeholder { color: #c8c2b8; }
.field-input:focus { border-bottom-color: var(--muted); }

textarea.field-input { resize: none; height: 96px; line-height: 1.8; }

.interest-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.interest-btn {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--faint);
  border: 0.5px solid var(--line);
  background: transparent;
  padding: 7px 14px;
  border-radius: 1px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  text-transform: lowercase;
}

.interest-btn.active {
  color: var(--text);
  border-color: var(--muted);
  background: var(--bg2);
}

.submit-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.submit-btn {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent);
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  border-radius: 1px;
  transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover { background: #3a3530; }
.submit-btn:active { transform: scale(0.98); }

.submit-note {
  font-size: 10px;
  color: #c8c2b8;
  letter-spacing: 0.05em;
  max-width: 160px;
  line-height: 1.7;
  text-align: right;
}

.success-msg {
  display: none;
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  padding-top: 16px;
  line-height: 1.7;
}

.footer-line {
  max-width: 100%;
  margin-top: 100px;
  padding-top: 32px;
  border-top: 0.5px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.footer-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 14px;
  color: #c8c2b8;
  letter-spacing: 0.05em;
}

.footer-copy { font-size: 10px; color: #c8c2b8; letter-spacing: 0.1em; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  section { padding: 72px 24px 80px; }
  #nav { padding: 18px 24px; }
  .nav-links { gap: 24px; }
  .about-grid, .services-header, .contact-grid { grid-template-columns: 1fr; }
  .about-left, .contact-left {
    padding-right: 0;
    border-right: none;
    border-bottom: 0.5px solid var(--line);
    padding-bottom: 56px;
    margin-bottom: 56px;
  }
  .about-right, .contact-right { padding-left: 0; }
  .services-intro { padding-left: 0; margin-top: 24px; }
  .service-row { grid-template-columns: 80px 1fr 32px; gap: 20px; }
  .headline, .contact-headline { font-size: 32px; }
  .services-headline { font-size: 30px; }
}
