:root {
  --white:      #FFFFFF;
  --cream:      #F6F7F0;
  --tan:        #E4E7DA;
  --darker-tan: #CDD3BB;
  --blue:       #395666;
  --navy:       #192830;
  --black:      #2F3136;

  --bg:         var(--cream);
  --surface:    var(--tan);
  --surface-2:  var(--darker-tan);
  --ink:        var(--navy);
  --ink-mid:    var(--blue);
  --ink-light:  #5a7282;
  --accent:     var(--blue);
  --rule:       rgba(57,86,102,0.15);

  --radius:     8px;
  --radius-cta: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── WIREFRAME (build placeholder) ─── */
.wireframe {
  background: var(--tan);
  border: 1.5px dashed var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
}
.wireframe-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: center;
  line-height: 1.6;
}
.wireframe-sublabel {
  font-size: 11px;
  color: var(--ink-light);
  opacity: 0.7;
  text-align: center;
  line-height: 1.5;
  max-width: 240px;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(246,247,240,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
  padding: 10px 24px;
  border-radius: var(--radius-cta);
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--navy); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 56px 80px;
  animation: fadeUp 1.1s ease forwards;
  opacity: 0;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-light);
  max-width: 400px;
  margin-bottom: 40px;
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  width: fit-content;
  border-radius: var(--radius-cta);
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn:hover { background: var(--navy); }
.btn-arrow {
  font-size: 16px;
  transition: transform 0.2s;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ─── HERO CANVAS (animation stage) ─── */
.hero-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1372 / 720;
  overflow: hidden;
  background: var(--tan);
}

/* Mock browser chrome — fades in after photos settle */
.mock-chrome-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  background: rgba(246,247,240,0.96);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  z-index: 22;
  border-bottom: 1px solid rgba(57,86,102,0.1);
  opacity: 0;
  pointer-events: none;
}
.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--darker-tan);
  flex-shrink: 0;
}
.mock-url-bar {
  flex: 1;
  height: 13px;
  background: var(--tan);
  border-radius: 20px;
  margin-left: 6px;
  max-width: 220px;
}

/* Hero video — hidden until photos dissolve; contain preserves native proportions */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 20;
  display: block;
}

/* Individual animated photos */
.photo-chip {
  position: absolute;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(25,40,48,0.2);
  will-change: transform, opacity;
  pointer-events: none;
  display: block;
}

/* Hero footer bar */
.hero-footer-bar {
  padding: 16px 28px;
  border-top: 1px solid var(--rule);
  background: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.hero-footer-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-weight: 400;
}
.hero-footer-arrow {
  font-size: 12px;
  color: var(--ink-light);
  opacity: 0.5;
}

/* ─── PROBLEM ─── */
.problem {
  max-width: 680px;
  margin: 96px auto;
  padding: 0 48px;
  text-align: center;
}
.problem p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-mid);
}
.problem p + p {
  margin-top: 20px;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--blue);
  font-weight: 300;
}

/* ─── BUILD ─── */
.build {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 40px 80px;
}
/* Organised photo grid in the "What we make" section */
.build-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--darker-tan); /* gap colour */
  align-content: start;
}
.build-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.build-text {
  padding: 72px 56px;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  font-weight: 400;
}
.build-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--white);
}
.build-text p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
}

/* ─── USE CASES ─── */
.use-cases {
  padding: 0 40px 80px;
}
.use-cases-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.use-cases-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 400;
  color: var(--navy);
}
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.use-card {
  background: var(--tan);
  padding: 36px 28px;
  border-radius: var(--radius);
  transition: background 0.3s, transform 0.2s;
}
.use-card:hover { background: var(--navy); transform: translateY(-2px); }
.use-card:hover .use-num,
.use-card:hover .use-title,
.use-card:hover .use-desc { color: var(--white); }
.use-card:hover .use-rule { background: var(--darker-tan); }

.use-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-light);
  margin-bottom: 28px;
  font-weight: 400;
  transition: color 0.3s;
}
.use-rule {
  width: 24px;
  height: 1px;
  background: var(--rule);
  margin-bottom: 16px;
  transition: background 0.3s;
}
.use-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--navy);
  transition: color 0.3s;
}
.use-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-light);
  font-weight: 300;
  transition: color 0.3s;
}

/* ─── TRUST ─── */
.trust {
  background: var(--navy);
  padding: 88px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.trust-quote {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trust-mark {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 400;
  color: var(--blue);
  line-height: 0.6;
}
.trust-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.6;
}
.trust-attr {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--darker-tan);
  font-weight: 400;
}

/* ─── FORM ─── */
.form-section {
  padding: 88px 40px 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.form-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  text-align: center;
}
.form-container {
  width: 100%;
  max-width: 620px;
}
.intake-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-weight: 400;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--tan);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--navy);
  outline: none;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7282' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--tan);
  padding-right: 36px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-light); opacity: 0.6; }
.form-group textarea { resize: none; min-height: 80px; line-height: 1.6; }

.check-group { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.check-item { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.check-item input[type="checkbox"] {
  width: 16px; height: 16px;
  border: 1.5px solid var(--darker-tan);
  background: var(--tan);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  border-radius: 3px;
  padding: 0;
}
.check-item input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
}
.check-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 4px;
  width: 5px; height: 8px;
  border: 1.5px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}
.check-item span { font-size: 14px; color: var(--navy); font-weight: 300; }

.form-submit {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 16px 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  cursor: pointer;
  width: 100%;
  border-radius: var(--radius-cta);
  transition: background 0.2s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-submit:hover { background: var(--navy); }
.form-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}
.form-error {
  font-size: 13px;
  color: #b0392e;
  text-align: center;
  margin-top: -8px;
  line-height: 1.5;
}
.form-note {
  font-size: 12px;
  color: var(--ink-light);
  text-align: center;
  margin-top: -8px;
}
.form-success {
  display: none;
  padding: 56px 40px;
  background: var(--tan);
  text-align: center;
  border-radius: var(--radius);
}
.form-success.visible { display: block; }
.intake-form.hidden { display: none; }
.form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
}
.form-success p { font-size: 14px; color: var(--ink-light); line-height: 1.8; }

/* ─── FOOTER ─── */
footer {
  padding: 32px 40px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cream);
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--navy);
}
.footer-note {
  font-size: 12px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 100px 20px 48px; }
  .hero-canvas { width: 100%; }
  .problem { margin: 56px auto; padding: 0 20px; }
  .build { grid-template-columns: 1fr; margin: 0 20px 56px; }
  .build-text { padding: 48px 28px; }
  .use-cases { padding: 0 20px 56px; }
  .use-cases-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust { grid-template-columns: 1fr; gap: 40px; padding: 64px 20px; }
  .form-section { padding: 64px 20px 80px; gap: 32px; }
  footer { padding: 24px 20px; flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 560px) {
  .use-cases-grid { grid-template-columns: 1fr; }
}
