:root {
  --white: #FFFFFF;
  --cream: #F4F1E9;
  --off-white: #ECE8DC;
  --ink: #1C1C1A;
  --ink-soft: rgba(28, 28, 26, 0.64);
  --ink-faint: rgba(28, 28, 26, 0.46);
  --sage: #2C4A3B;
  --sage-soft: #4A6E5B;
  --sage-tint: #E3EAE3;
  --sage-pill: rgba(44, 74, 59, 0.08);
  --border: rgba(28, 28, 26, 0.16);
  --border-strong: rgba(28, 28, 26, 0.28);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Silver diagonal light-streak texture — a normal scrolling background (not
   fixed), so it moves with the page content like the Hanzo reference. */
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background-color: #EAE8E1;
  background-image: repeating-linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0) 80px,
    rgba(255, 255, 255, 0.6) 115px,
    rgba(255, 255, 255, 0) 165px,
    rgba(255, 255, 255, 0) 300px
  );
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

h1, h2, h3, .serif {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 150px 0; }

@media (max-width: 720px) {
  section { padding: 90px 0; }
  .container { padding: 0 24px; }
}

.section-tinted { background: rgba(28, 28, 26, 0.035); }

/* Eyebrow — pill tag, gives every section a visible anchor */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-pill);
  border: 1px solid rgba(44, 74, 59, 0.16);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); opacity: 0.92; box-shadow: 0 12px 24px -10px rgba(28,28,26,0.35); }

.btn-primary { background: var(--sage); color: #fff; }

.btn-text {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--sage);
  font-weight: 600;
}
.btn-text::after { content: '→'; transition: transform 0.2s ease; }
.btn-text:hover { transform: none; opacity: 1; }
.btn-text:hover::after { transform: translateX(3px); }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  background: rgba(234, 232, 225, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-strong);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.nav .btn { padding: 10px 22px; font-size: 13.5px; }

/* Hero — silver streak texture now comes from body::before, shared site-wide */
.hero {
  padding-top: 210px;
  padding-bottom: 140px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -260px;
  right: -160px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--sage-tint) 0%, rgba(238,242,237,0) 68%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 64px; text-align: center; }
  .hero-copy { order: 1; }
  .hero-phone { order: 2; }
}

.hero-copy { text-align: left; }

.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--sage);
}

.hero .tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--sage);
  margin-bottom: 20px;
}

.hero .sub {
  max-width: 460px;
  margin: 0 0 36px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero-copy, .hero-copy .sub { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-copy .showcase-tabs { text-align: left; max-width: 380px; margin: 36px auto 0; }
}

.hero-copy .showcase-tabs { margin-top: 40px; max-width: 380px; }

.hero-phone { display: flex; justify-content: center; }

@media (max-width: 720px) {
  .hero { padding-top: 150px; padding-bottom: 90px; }
  .hero h1 { font-size: 38px; }
  .hero-phone .phone-frame { transform: scale(0.85); }
}

/* Marquee ticker */
.marquee {
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  background: var(--ink);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  padding: 0 28px;
}
.marquee-item::after {
  content: '✦';
  margin-left: 28px;
  color: var(--sage-soft);
  font-size: 11px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Section head */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 72px; }
.section-head h2 { font-size: 40px; margin-bottom: 18px; font-weight: 600; }
.section-head .sub { color: var(--ink-soft); font-size: 16.5px; }

/* How It Works — fanned, overlapping cards at gentle rotated angles, with
   hand-drawn-style connecting arrows, inspired by the Hanzo template's
   process section. */
.fan-cards {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0 10px;
}

@media (max-width: 900px) {
  .fan-cards { flex-direction: column; gap: 28px; padding: 10px 0; }
}

.fan-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 34px 60px -30px rgba(28, 28, 26, 0.3);
  width: 300px;
  min-height: 300px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.fan-card:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.02) !important;
  box-shadow: 0 44px 74px -28px rgba(28, 28, 26, 0.36);
  z-index: 5 !important;
}

.fan-card-1 { transform: rotate(-7deg) translateY(14px); margin-right: -36px; z-index: 1; }
.fan-card-2 { transform: rotate(3deg) translateY(-16px); z-index: 3; }
.fan-card-3 { transform: rotate(-4deg) translateY(20px); margin-left: -36px; z-index: 2; }

/* Opacity-only fade-in that doesn't fight the rotated transform above
   (kept separate from .reveal, which also animates transform). */
.fan-reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fan-reveal.is-visible { opacity: 1; }
.fan-card-2.fan-reveal { transition-delay: 0.1s; }
.fan-card-3.fan-reveal { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .fan-reveal { opacity: 1; transition: none; }
}

@media (max-width: 900px) {
  .fan-card-1, .fan-card-2, .fan-card-3 { transform: none; margin: 0; width: 100%; max-width: 340px; }
}

.fan-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
}

.fan-text h3 { font-size: 20px; margin-bottom: 8px; font-weight: 600; }
.fan-text p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.fan-connector {
  position: absolute;
  top: -8%;
  width: 84px;
  height: 84px;
  color: var(--sage);
  pointer-events: none;
  z-index: 4;
}
.fan-connector-1 { left: 26%; transform: translateX(-50%); }
.fan-connector-2 { left: 74%; transform: translateX(-50%) scaleX(-1); }

@media (max-width: 900px) {
  .fan-connector { display: none; }
}

/* Case study */
.case-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 72px;
}
.case-intro p { font-size: 18px; color: var(--ink-soft); }
.case-intro strong { color: var(--ink); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 90px;
}

@media (max-width: 720px) {
  .stat-row { grid-template-columns: 1fr; gap: 48px; }
}

.stat { text-align: center; }
.stat .number {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 14px;
}
.stat .desc { font-size: 14.5px; color: var(--ink-soft); max-width: 220px; margin: 0 auto; line-height: 1.5; }

.case-quote {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding-top: 64px;
  border-top: 1px solid var(--border-strong);
}
.case-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 20px;
}
.case-quote .attribution { font-size: 13.5px; color: var(--ink-faint); letter-spacing: 0.02em; }
.case-quote .attribution strong { color: var(--ink-soft); }

/* Scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Work Showcase */
.showcase-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

@media (max-width: 860px) {
  .showcase-wrap { grid-template-columns: 1fr; gap: 48px; }
}

.showcase-copy .lead { font-size: 17px; color: var(--ink-soft); margin-top: 20px; }

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 36px;
}
.showcase-tab {
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--border-strong);
  padding: 18px 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--ink-faint);
  transition: color 0.2s ease;
}
.showcase-tab:last-child { border-bottom: 1px solid var(--border-strong); }
.showcase-tab.active { color: var(--ink); font-weight: 600; }
.showcase-tab .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  margin-right: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  vertical-align: middle;
}
.showcase-tab.active .dot { opacity: 1; }

/* Reel card — modeled on Instagram Reels UI, not a phone bezel */
.phone-frame {
  position: relative;
  width: 300px;
  height: 560px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.7);
  background: #fff;
  box-shadow: 0 60px 110px -45px rgba(28, 28, 26, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone-frame:hover { transform: translateY(-6px); }

/* Soft fade at the top of the card, like the reference template */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

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

/* Ambient glow behind the phone — static, no cursor tracking */
.hero-phone {
  position: relative;
}
.hero-phone::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(44, 74, 59, 0.28) 0%, rgba(44, 74, 59, 0) 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.reel-progress {
  position: absolute;
  top: 20px; left: 16px; right: 16px;
  display: flex;
  gap: 5px;
  z-index: 3;
}
.reel-progress span {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(28, 28, 26, 0.18);
  overflow: hidden;
}
.reel-progress span::after {
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ink);
}
.reel-progress span.done::after { width: 100%; }
.reel-progress span.active::after { width: 100%; animation: reel-progress-fill 4s linear; }

@keyframes reel-progress-fill {
  from { width: 0%; }
  to { width: 100%; }
}

.reel-handle {
  position: absolute;
  top: 40px; left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}
.reel-handle .avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sage-soft);
  border: 1.5px solid rgba(255,255,255,0.8);
}
.reel-handle .verified {
  color: var(--sage);
  flex-shrink: 0;
}

/* Reel slides — vertical swipe-up transition, like native Reels/TikTok */
.phone-screen { overflow: hidden; touch-action: pan-y; cursor: grab; }
.phone-screen:active { cursor: grabbing; }

.phone-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 32px 22px;
  background: linear-gradient(165deg, #1E2B24 0%, #2C4A3B 55%, #14201A 100%);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
}
.phone-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%);
  z-index: 1;
}
.phone-slide.active { transform: translateY(0); z-index: 2; }
.phone-slide.prev { transform: translateY(-100%); }

/* Real reel video/image — drop a <video> or <img class="slide-media"> as the
   first child inside .phone-slide and it will fill the card behind the caption. */
.slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.phone-slide .slide-caption {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 14.5px;
  line-height: 1.5;
}
.phone-slide .slide-caption .tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A9C6B4;
  margin-bottom: 8px;
}

/* Focus / who we help */
.focus-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

@media (max-width: 860px) {
  .focus-wrap { grid-template-columns: 1fr; gap: 40px; }
}

.focus-wrap h2 { font-size: 38px; margin-bottom: 20px; font-weight: 600; }
.focus-wrap .lead { font-size: 17px; color: var(--ink-soft); margin-bottom: 0; }

.focus-list { list-style: none; padding: 0; margin: 0; }
.focus-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border-strong);
  font-size: 15px;
  color: var(--ink-soft);
}
.focus-list li:last-child { border-bottom: 1px solid var(--border-strong); }
.focus-list .mark { color: var(--sage); font-weight: 600; flex-shrink: 0; }
.focus-list strong { color: var(--ink); font-weight: 600; }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
}

.contact h2 { font-size: 40px; margin-bottom: 18px; font-weight: 600; }
.contact .sub { color: var(--ink-soft); font-size: 16px; margin-bottom: 32px; }

.contact-fact {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 16px 0;
  border-top: 1px solid var(--border-strong);
}
.contact-fact:last-child { border-bottom: 1px solid var(--border-strong); }
.contact-fact strong { color: var(--ink); }

form.contact-form { padding: 0; }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 9px;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 0;
  border: none;
  border-bottom: 1.5px solid var(--border-strong);
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  color: var(--ink);
  background: transparent;
  resize: vertical;
  border-radius: 0;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--sage);
}
.field .optional { color: var(--ink-faint); font-weight: 400; }

.contact-form button { margin-top: 8px; padding: 15px 34px; }

.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 18px; }

.form-success { display: none; padding: 60px 0; }
.form-success.visible { display: block; }
.form-success h3 { font-size: 26px; margin-bottom: 12px; font-weight: 600; }
.form-success p { color: var(--ink-soft); }

/* Footer */
footer {
  padding: 44px 0;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--border-strong);
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
footer .foot-logo { color: var(--ink); font-family: 'Playfair Display', serif; font-weight: 600; }
