/* =========================================================
   WEBVIZ — v1
   Tokens
   ========================================================= */
:root{
  --ink:        #0D0C0A;
  --ink-2:      #17140F;
  --ink-3:      #1E1A14;
  --paper:      #F3EFE5;
  --paper-dim:  #D8D2C3;
  --stone:      #92897A;
  --hairline:   #2B271F;
  --brass:      #C9A24C;
  --brass-dim:  #8A7238;
  --brass-soft: rgba(201,162,76,0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  --container: 1220px;
  --pad: clamp(1.5rem, 4vw, 3.5rem);

  --section-space: clamp(4.5rem, 9vw, 8rem);
}

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

body{
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection{ background: var(--brass); color: var(--ink); }

a{ color: inherit; text-decoration: none; }

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

img{ max-width: 100%; display: block; }

/* subtle film grain over the whole page — cheap, keeps flat colour fields from
   feeling like plain SaaS blocks */
.grain{
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* focus visibility */
a:focus-visible, button:focus-visible{
  outline: 1px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Type
   ========================================================= */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}

.section-title{
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.section-lede{
  color: var(--stone);
  max-width: 52ch;
  font-size: 1.05rem;
  margin: 0;
}

.section-head{ margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.7rem;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-primary{
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover{
  background: var(--paper);
  transform: translateY(-1px);
}

.btn-large{
  font-size: 1rem;
  padding: 1.15rem 2.2rem;
}

.btn-nav{
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
}

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,12,10,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  gap: 2rem;
}

.logo{
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.main-nav{
  display: flex;
  gap: 2.1rem;
  margin-right: auto;
  margin-left: 2.5rem;
}
.main-nav a{
  font-size: 0.9rem;
  color: var(--paper-dim);
  position: relative;
  padding-bottom: 3px;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right 0.25s ease;
}
.main-nav a:hover{ color: var(--paper); }
.main-nav a:hover::after{ right: 0; }

.menu-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span{
  display: block;
  height: 1px;
  background: var(--paper);
}

.mobile-nav{
  display: none;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: var(--header-h, 65px);
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--hairline);
  background: var(--ink);
  z-index: 99;
  overflow-y: auto;
}
.mobile-nav a{
  padding: 1.1rem var(--pad);
  border-bottom: 1px solid var(--hairline);
  font-size: 1rem;
}
.mobile-nav .btn{ margin: 1.5rem var(--pad); justify-content: center; }
.mobile-nav.is-open{ display: flex; }
body.nav-open{ overflow: hidden; }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-line{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}
.hero-line path{
  fill: none;
  stroke: var(--brass);
  stroke-width: 1;
  opacity: 0.35;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: draw 2.4s cubic-bezier(.16,.84,.44,1) 0.2s forwards;
}
@keyframes draw{ to{ stroke-dashoffset: 0; } }

.hero-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.status-line{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stone);
  margin-bottom: 1.75rem;
}
.status-line .dot{ color: var(--hairline); }
.status-line::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass);
  display: inline-block;
  margin-right: 0.15rem;
}

.hero-title{
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  max-width: 19ch;
}

.hero-sub{
  color: var(--paper-dim);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  max-width: 46ch;
  margin: 0 0 2.4rem;
}

.hero-actions{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-note{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stone);
  margin: 0;
}

.hero-media{ position: relative; }

/* Reserved image slot — proportion 4:5, filled with a flat token-matched
   panel + minimal crop-mark corners until the final asset is dropped in. */
.hero-media-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
}
.frame-tall{ aspect-ratio: 4 / 5; }

.frame-tick{
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.55;
}
.frame-tick::before, .frame-tick::after{
  content: "";
  position: absolute;
  background: var(--brass);
}
.frame-tick::before{ width: 100%; height: 1px; top: 0; }
.frame-tick::after{ height: 100%; width: 1px; left: 0; }
.tick-tl{ top: 18px; left: 18px; }
.tick-tr{ top: 18px; right: 18px; }
.tick-bl{ bottom: 18px; left: 18px; }
.tick-br{ bottom: 18px; right: 18px; }

.frame-cross{
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  transform: translate(-50%,-50%);
  opacity: 0.3;
}
.frame-cross::before, .frame-cross::after{
  content: "";
  position: absolute;
  background: var(--brass);
}
.frame-cross::before{ width: 100%; height: 1px; top: 50%; transform: translateY(-50%); }
.frame-cross::after{ height: 100%; width: 1px; left: 50%; transform: translateX(-50%); }

.frame-tag{
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.frame-tall .frame-tag{ bottom: 18px; }

.scroll-cue{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}
.scroll-cue i{
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--brass), transparent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue{
  0%{ transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50%{ transform: scaleY(1); transform-origin: top; opacity: 1; }
  100%{ transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee-section{
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 2.5rem 0;
}
.marquee-label{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 1.5rem;
}
.marquee{
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track{
  display: flex;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  animation: scroll-x 32s linear infinite;
}
.marquee-track span{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--stone);
  white-space: nowrap;
}
@keyframes scroll-x{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* =========================================================
   Sections / rhythm
   ========================================================= */
.section{
  padding: var(--section-space) 0;
}
.section-tight{ padding-top: calc(var(--section-space) * 0.6); padding-bottom: calc(var(--section-space) * 0.6); }

.divider{
  max-width: 400px;
  margin: 0 auto;
  padding: 0 var(--pad);
  opacity: 0.5;
}
.divider svg{ width: 100%; height: 20px; }
.divider path{ fill: none; stroke: var(--hairline); stroke-width: 1; }

/* =========================================================
   Process list
   ========================================================= */
.process-list{
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.process-item{
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.process-index{
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--brass);
}
.process-copy h3{
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 0 0 0.6rem;
}
.process-copy p{
  color: var(--stone);
  max-width: 58ch;
  margin: 0;
}

/* =========================================================
   Stat row
   ========================================================= */
.stat-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.stat{ display: flex; flex-direction: column; gap: 0.6rem; }
.stat-number{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--brass);
  line-height: 1;
}
.stat-label{
  color: var(--stone);
  font-size: 0.92rem;
  max-width: 30ch;
}

/* =========================================================
   Case grid
   ========================================================= */
.case-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.case-card{
  display: flex;
  flex-direction: column;
}
.case-media{
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--hairline);
  border-radius: 3px;
  margin-bottom: 1.4rem;
}
.case-media .frame-tag{
  position: absolute;
  bottom: 14px; left: 14px;
}
.case-sector{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.5rem;
}
.case-name{
  font-family: var(--font-display);
  font-weight: 480;
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}
.case-desc{
  color: var(--stone);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.case-result{
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--paper);
  border-top: 1px solid var(--hairline);
  padding-top: 0.85rem;
  margin: auto 0 0;
}

/* =========================================================
   Testimonial
   ========================================================= */
.testimonial-section{
  background: var(--ink-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.testimonial{ max-width: 62ch; }
.testimonial blockquote{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.35;
  margin: 0 0 2rem;
  color: var(--paper);
}
.testimonial-author{
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.author-avatar{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--ink-3), var(--brass-dim));
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}
.author-name{ margin: 0; font-weight: 600; font-size: 0.95rem; }
.author-role{ margin: 0; color: var(--stone); font-size: 0.85rem; }

/* =========================================================
   About
   ========================================================= */
.about-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-text{
  color: var(--stone);
  max-width: 54ch;
  margin: 0 0 2.5rem;
}
.about-stats{
  display: flex;
  gap: clamp(1.75rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
  padding-top: 1.75rem;
  flex-wrap: wrap;
}
.about-stats > div{ display: flex; flex-direction: column; gap: 0.35rem; }
.about-stat-number{
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--paper);
}
.about-stat-label{
  font-size: 0.82rem;
  color: var(--stone);
  max-width: 18ch;
}

/* =========================================================
   CTA final
   ========================================================= */
.cta-section{
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.cta-inner{
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-title{
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
.cta-sub{
  color: var(--stone);
  font-size: 1.05rem;
  max-width: 44ch;
  margin: 0 0 2.5rem;
}
.cta-contact{
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--stone);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.cta-contact a:hover{ color: var(--brass); }
.cta-contact .dot{ color: var(--hairline); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  border-top: 1px solid var(--hairline);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--hairline);
}
.footer-brand p{
  color: var(--stone);
  font-size: 0.88rem;
  margin: 0.6rem 0 0;
  max-width: 26ch;
}
.footer-nav, .footer-social{
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav a, .footer-social a{
  font-size: 0.88rem;
  color: var(--paper-dim);
}
.footer-nav a:hover, .footer-social a:hover{ color: var(--brass); }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stone);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; max-width: 420px; margin: 0 auto 1rem; }
  .hero-title, .hero-sub{ max-width: none; }
  .about-inner{ grid-template-columns: 1fr; }
  .about-media{ max-width: 420px; }
  .case-grid{ grid-template-columns: repeat(2, 1fr); }
  .stat-row{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px){
  .main-nav{ display: none; }
  .btn-nav{ display: none; }
  .menu-toggle{ display: flex; }
  .footer-inner{ flex-direction: column; }
}

@media (max-width: 720px){
  .process-item{ grid-template-columns: 1fr; gap: 0.6rem; }
  .stat-row{ grid-template-columns: 1fr; gap: 2rem; }
  .case-grid{ grid-template-columns: 1fr; }
  .about-stats{ gap: 1.5rem; }
  .cta-contact{ flex-direction: column; gap: 0.3rem; }
  .cta-contact .dot{ display: none; }
}

@media (max-width: 480px){
  .hero-actions{ flex-direction: column; align-items: flex-start; gap: 1rem; }
  .btn-large{ width: 100%; justify-content: center; }
  .footer-bottom{ flex-direction: column; }
}
