:root {
  --bg: #fff9d6;
  --accent: #e63b2e;
  --ink: #1c1712;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(28, 23, 18, 0.16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  overflow-x: hidden;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
}

.divider {
  border-top: 1px solid rgba(28, 23, 18, 0.3);
  box-shadow: 0 0 12px 8px var(--bg);
  background: var(--bg);
  margin: 0 clamp(20px, 6vw, 72px);
}

.divider--hero {
  margin: clamp(32px, 6vw, 52px) clamp(20px, 6vw, 72px) 0;
}

/* ---------- reveal-on-scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal="pending"] { opacity: 0; transform: translateY(28px); }
  [data-reveal="in"] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  /* About photo: gentle zoom-out as it settles into place */
  .about-photo img {
    transform: scale(1.08);
    transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .about-photo[data-reveal="in"] img {
    transform: scale(1);
  }
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(32px, 6vw, 56px) clamp(20px, 6vw, 72px) clamp(24px, 5vw, 40px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: clamp(200px, 26vw, 380px) minmax(280px, 1fr) clamp(140px, 15vw, 220px);
  align-items: end;
  gap: 20px;
  position: relative;
  min-height: 520px;
}

.hero-name {
  position: relative;
  z-index: 3;
  margin-right: -70px;
  padding-bottom: 54px;
  min-width: 0;
}

.hero-name .first {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 7vw, 150px);
  line-height: 0.82;
  letter-spacing: 2px;
  color: var(--accent);
}

.hero-name .last-wrap {
  margin-top: -8px;
}

.hero-name .last {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 6px 22px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 7vw, 150px);
  line-height: 0.82;
  letter-spacing: 2px;
}

.hero-handle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--ink);
  text-transform: uppercase;
  margin-top: 18px;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.social-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.hero-video {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 1px solid rgba(28, 23, 18, 0.35);
  overflow: hidden;
  background: #fdfbe6;
}

.window-bar {
  height: 36px;
  background: rgba(28, 23, 18, 0.06);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(28, 23, 18, 0.15);
}

.window-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(28, 23, 18, 0.25);
}

.window-bar .label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(28, 23, 18, 0.45);
  margin-left: 6px;
}

.hero-video-frame {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.window-footer {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-top: 1px solid rgba(28, 23, 18, 0.15);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(28, 23, 18, 0.5);
}

.hero-stats {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: center;
}

.stat-card {
  background: var(--ink);
  border-radius: 12px;
  padding: 16px;
}

.stat-card .big {
  font-family: 'Bebas Neue', sans-serif;
  font-style: italic;
  font-size: 28px;
  color: var(--bg);
}

.stat-card .big.accent {
  color: var(--accent);
}

.stat-card .small {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(250, 246, 183, 0.6);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 20px);
  margin-top: clamp(28px, 5vw, 44px);
  flex-wrap: wrap;
  position: relative;
}

.pill-btn {
  text-decoration: none;
  background: var(--bg);
  padding: 16px clamp(20px, 5vw, 36px);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--ink);
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pill-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff9d6;
}

/* ---------- section heading ---------- */
.section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-label-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 36px;
}

.section-label-row .section-label {
  margin-bottom: 0;
}

.section-label-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  letter-spacing: 2px;
  color: var(--accent);
  text-align: center;
  margin-bottom: 44px;
}

/* ---------- about ---------- */
.about {
  padding: clamp(40px, 8vw, 64px) clamp(20px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

.about-photo {
  width: 100%;
  height: 560px;
  border: 1px solid rgba(28, 23, 18, 0.35);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- work ---------- */
.work {
  padding: clamp(40px, 8vw, 64px) clamp(20px, 6vw, 72px);
}

.work--first {
  padding-bottom: 40px;
}

.work-row {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  justify-content: center;
  flex-wrap: wrap;
}

.work-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.work-caption {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-align: center;
}

/* ---------- phone mockup (iOS device) ---------- */
.phone-shell {
  width: 230px;
  height: 499px;
  overflow: hidden;
}

.phone-scale {
  transform: scale(0.5721);
  transform-origin: top left;
  width: 402px;
  height: 874px;
}

.phone-device {
  width: 402px;
  height: 874px;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.12);
  font-family: -apple-system, system-ui, sans-serif;
}

.phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}

.phone-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px 0;
  box-sizing: border-box;
}

.phone-statusbar .time {
  font-family: -apple-system, "SF Pro", system-ui;
  font-weight: 590;
  font-size: 17px;
  color: #fff;
}

.phone-statusbar .icons {
  display: flex;
  align-items: center;
  gap: 7px;
}

.phone-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.phone-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.phone-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  padding: 0;
}

.phone-play .knob {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(250, 246, 183, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(250, 246, 183, 0.5);
}

.phone-play [data-icon="play"] {
  display: flex;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #faf6b7;
  margin-left: 4px;
}

.phone-play [data-icon="pause"] {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.phone-play [data-icon="pause"] span {
  width: 6px;
  height: 20px;
  background: #faf6b7;
  border-radius: 1px;
}

.phone-home-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 8px;
  pointer-events: none;
}

.phone-home-indicator span {
  width: 139px;
  height: 5px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.7);
}

/* ---------- clients marquee ---------- */
.marquee-viewport {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 24px;
  padding-right: 24px;
  width: max-content;
  animation: logos-marquee 28s linear infinite;
}

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

.logo-tile {
  height: 76px;
  width: 170px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-tile img {
  max-width: 150px;
  max-height: 48px;
  object-fit: contain;
}

/* ---------- testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.testimonial-card {
  border-top: 2px solid var(--accent);
  padding-top: 22px;
  background: var(--bg);
  box-shadow: 0 0 14px 10px var(--bg);
}

.testimonial-quote {
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 18px;
}

.testimonial-author {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 4vw, 32px);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon-img {
  width: auto;
  height: 40px;
  max-width: 46px;
  object-fit: contain;
}

.service-icon--bare {
  border: none;
  background: transparent;
}

.service-icon-img--lg {
  height: 64px;
  max-width: 72px;
}

.service-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 10px;
}

.service-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
}

/* ---------- contact ---------- */
.contact {
  padding: clamp(40px, 8vw, 64px) clamp(20px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.contact-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 22px;
}

.contact-heading .accent {
  color: var(--accent);
}

.contact-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

.mail-card {
  border: 1px solid rgba(28, 23, 18, 0.35);
  border-radius: 12px;
  overflow: hidden;
  background: #fdfbe6;
}

.mail-card .window-bar .dot {
  width: 10px;
  height: 10px;
}

.mail-form {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mail-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  border-bottom: 1px solid rgba(28, 23, 18, 0.15);
  padding-bottom: 12px;
}

.mail-row .field-label {
  font-weight: 700;
  color: rgba(28, 23, 18, 0.5);
  min-width: 64px;
}

.mail-row input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}

.mail-form textarea {
  border: none;
  outline: none;
  background: rgba(28, 23, 18, 0.03);
  border-radius: 8px;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  resize: vertical;
  min-height: 90px;
}

.mail-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 6px;
}

.sent-msg {
  display: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--accent);
}

.sent-msg.is-visible {
  display: inline;
}

.send-btn {
  border: none;
  cursor: pointer;
  padding: 11px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fdfbe6;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.send-btn:hover {
  opacity: 0.9;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 28px clamp(20px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(28, 23, 18, 0.65);
  text-align: center;
  width: 100%;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    min-height: 0 !important;
  }
  .hero-name {
    margin-right: 0 !important;
    padding-bottom: 0 !important;
    flex: 1 1 100%;
  }
  .hero-video {
    flex: 1 1 100%;
    max-width: none !important;
  }
  .hero-stats {
    flex: 1 1 100%;
    max-width: none !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
  .hero-stats > .stat-card {
    flex: 1 1 140px;
  }
}
