/* ===========================================================
   Sizzentic Solution — Design tokens
   =========================================================== */
:root{
  --red: #E5231C;
  --red-deep: #B81813;
  --ink: #15130F;
  --paper: #FAF8F4;
  --paper-dim: #F0ECE4;
  --grey: #6B6660;
  --grey-light: #A9A39A;
  --amber: #FFB400;
  --line: rgba(21,19,15,0.12);

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --container: 1180px;
  --radius: 2px;
}

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

html{ scroll-behavior: smooth; }

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

body{
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul{ list-style: none; }

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

::selection{ background: var(--red); color: var(--paper); }

:focus-visible{
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content: '';
  width: 7px; height: 7px;
  background: var(--red);
  display: inline-block;
}

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2{ font-size: clamp(28px, 4vw, 44px); }
h3{ font-size: 20px; }

.lede{
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--grey);
  max-width: 560px;
}

/* ===========================================================
   Pixel-grid signature motif
   =========================================================== */
.pixel-rule{
  display: flex;
  gap: 4px;
  margin: 0 0 18px 0;
}
.pixel-rule span{
  width: 7px; height: 7px;
  background: var(--ink);
}
.pixel-rule span:nth-child(odd){ background: var(--red); }

.pixel-divider{
  position: relative;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(40, 1fr);
  gap: 3px;
  padding: 0 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.pixel-divider .cell{
  background: var(--paper-dim);
  height: 6px;
  align-self: center;
}
.pixel-divider .cell.lit{ background: var(--red); }
.pixel-divider .cell.lit2{ background: var(--ink); }

/* ===========================================================
   Header
   =========================================================== */
header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.brand img{ height: 34px; width: auto; flex-shrink: 0; }
.brand small{
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--grey);
  font-weight: 400;
}
.nav-links{
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a{
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover{ color: var(--red); }
.nav-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav-cta:hover{ background: var(--red); }
.menu-toggle{ display:none; }

@media (max-width: 1024px){
  .nav-links{ display: none; }
  .nav-cta{ display: none; }
  .menu-toggle{
    display: inline-flex;
    background: none; border: 1px solid var(--ink);
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--ink);
    flex-shrink: 0;
  }
}

@media (max-width: 400px){
  .brand small{ display: none; }
  .brand{ font-size: 15px; }
  .brand img{ height: 28px; }
}

.mobile-menu{
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-menu.open{ display: flex; }
.mobile-menu a{
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.mobile-cta{
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  border-bottom: none;
}
@media (min-width: 861px){
  .mobile-menu{ display: none !important; }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero{
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1{
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 22px;
}
.hero h1 em{
  font-style: normal;
  color: var(--red);
  display: block;
}
.hero p{
  font-size: 18px;
  color: var(--grey);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-ctas{ display: flex; gap: 14px; flex-wrap: wrap; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-solid{
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}
.btn-solid:hover{ background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-2px); }
.btn-ghost{ background: transparent; color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.hero-stage{
  position: relative;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
}
#flame-canvas{ width: 100%; height: 100%; }

.hero-stats{
  display: flex;
  gap: 36px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.stat .num{
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--ink);
}
.stat .num span{ color: var(--red); }
.stat .label{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 4px;
}

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-stage{ order: -1; max-width: 280px; margin: 0 auto 16px; }
  .hero{ padding-top: 40px; }
}

/* ===========================================================
   Section scaffolding
   =========================================================== */
section{ padding: 90px 0; }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.bg-dim{ background: var(--paper-dim); }
.bg-ink{ background: var(--ink); color: var(--paper); }
.bg-ink .eyebrow{ color: var(--amber); }
.bg-ink .eyebrow::before{ background: var(--amber); }
.bg-ink .lede{ color: var(--grey-light); }

/* ===========================================================
   Services
   =========================================================== */
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{
  background: var(--paper);
  padding: 36px 30px;
  transition: background 0.2s ease;
  position: relative;
}
.service-card:hover{ background: var(--paper-dim); }
.service-icon{
  display: grid;
  grid-template-columns: repeat(3, 8px);
  grid-template-rows: repeat(3, 8px);
  gap: 3px;
  margin-bottom: 22px;
}
.service-icon span{ background: var(--line); transition: background 0.25s ease; }
.service-card:hover .service-icon span{ background: var(--paper-dim); }
.service-card:hover .service-icon span.on{ background: var(--red); }
.service-card h3{ margin-bottom: 10px; }
.service-card p{ color: var(--grey); font-size: 14.5px; }

@media (max-width: 860px){
  .service-grid{ grid-template-columns: 1fr; }
}

/* ===========================================================
   Pricing
   =========================================================== */
.pricing-toggle{
  display: inline-flex;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.pricing-toggle button{
  background: none; border: none;
  padding: 10px 18px;
  cursor: pointer;
  color: var(--grey);
}
.pricing-toggle button.active{
  background: var(--ink); color: var(--paper);
}
.pricing-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.price-card{
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured{
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.price-card.featured .price-tag{ color: var(--amber); }
.price-card.featured .price-feat{ color: var(--grey-light); }
.price-card.featured .pixel-rule span{ background: var(--paper); }
.price-card.featured .pixel-rule span:nth-child(odd){ background: var(--amber); }

.price-tier{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.price-card.featured .price-tier{ color: var(--amber); }
.price-tag{
  font-family: var(--font-display);
  font-size: 42px;
  margin-bottom: 4px;
}
.price-tag sup{ font-size: 16px; font-family: var(--font-body); font-weight: 600; }
.price-sub{ color: var(--grey); font-size: 13px; margin-bottom: 26px; }
.price-card.featured .price-sub{ color: var(--grey-light); }

.price-feat{
  font-size: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.price-card.featured .price-feat{ border-top-color: rgba(250,248,244,0.14); }
.price-feat:first-of-type{ border-top: none; }
.price-feat b{ font-weight: 600; text-align: right; }

.price-cta{
  margin-top: 28px;
  text-align: center;
  padding: 13px;
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.price-card.featured .price-cta{ border-color: var(--paper); }
.price-card:not(.featured) .price-cta:hover{ background: var(--ink); color: var(--paper); cursor: pointer; }
.price-card.featured .price-cta:hover{ background: var(--paper); color: var(--ink); cursor: pointer; }

.pricing-footnote{
  margin-top: 28px;
  font-size: 13px;
  color: var(--grey);
  border-left: 3px solid var(--amber);
  padding: 10px 16px;
  background: var(--paper-dim);
}

@media (max-width: 980px){
  .pricing-grid{ grid-template-columns: 1fr; }
}

/* ===========================================================
   Process
   =========================================================== */
.process-list{ display: flex; flex-direction: column; }
.process-row{
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.process-row:first-child{ border-top: none; }
.process-num{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
}
.process-row h3{ font-size: 19px; }
.process-row p{ color: var(--grey); font-size: 14.5px; }

@media (max-width: 700px){
  .process-row{ grid-template-columns: 1fr; gap: 8px; }
}

/* ===========================================================
   Portfolio
   =========================================================== */
.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.portfolio-card{
  border: 1px solid var(--line);
  padding: 34px;
  background: var(--paper);
}
.portfolio-tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}
.portfolio-card h3{ margin-bottom: 10px; }
.portfolio-card p{ color: var(--grey); font-size: 14.5px; margin-bottom: 18px; }
.portfolio-meta{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.portfolio-meta span{
  font-family: var(--font-mono);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 4px 10px;
}

@media (max-width: 860px){
  .portfolio-grid{ grid-template-columns: 1fr; }
}

/* ===========================================================
   Contact / Footer
   =========================================================== */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-list dt{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 26px;
  margin-bottom: 6px;
}
.contact-list dt:first-child{ margin-top: 0; }
.contact-list dd{ font-size: 16px; }
.contact-list a:hover{ color: var(--amber); }

.office{
  border: 1px solid rgba(250,248,244,0.16);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.office .country{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.cta-band{
  text-align: center;
  padding: 70px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2{ margin-bottom: 24px; }
.cta-band .btn{ margin: 0 auto; }

footer{
  background: var(--ink);
  color: var(--grey-light);
  padding: 50px 0 28px;
  font-size: 13.5px;
}
.footer-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(250,248,244,0.12);
}
.footer-brand{
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 15px;
}
.footer-brand img{ height: 26px; }
.footer-links{ display: flex; gap: 22px; }
.footer-links a:hover{ color: var(--paper); }

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

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