/* ============================================================
   VEDA ENTERPRISES — Design tokens
   Flexible packaging manufacturer, Delhi.
   Palette drawn from the brand mark (ink line-art on paper)
   and the material itself: laminate foil, kraft paper, print ink.
   ============================================================ */

:root{
  --ink:        #17130F;   /* near-black, warm undertone — print ink */
  --ink-soft:   #4A4239;
  --paper:      #F7F2E9;   /* warm kraft-adjacent paper */
  --paper-dim:  #EFE8DA;
  --red:        #D8311F;   /* Veda brand red */
  --red-deep:   #9E2013;
  --foil:       #ABB2B8;   /* metallic laminate accent */
  --foil-dark:  #6E747A;
  --amber:      #E8A33D;   /* from the brand's own colour-swatch fan */

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
p{ margin:0; }
button{ font-family: inherit; cursor:pointer; }

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

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

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width: 22px;
  height: 2px;
  background: var(--red);
  display:inline-block;
}

.section{ padding: 96px 0; }
.section-tight{ padding: 64px 0; }
@media (max-width: 720px){
  .section{ padding: 64px 0; }
  .section-tight{ padding: 44px 0; }
}

.section-head{
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2{
  font-size: clamp(32px, 4.4vw, 52px);
  margin-top: 14px;
}
.section-head p{
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 52ch;
}

/* ---------- Buttons ---------- */
.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  overflow:hidden;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn-ripple{
  position:absolute;
  border-radius:50%;
  background: currentColor;
  opacity: 0.28;
  transform: scale(0);
  pointer-events:none;
  animation: btn-ripple-out .55s ease-out forwards;
}
@keyframes btn-ripple-out{
  to{ transform: scale(1); opacity:0; }
}
.btn:active{ transform: translateY(0) scale(0.96); }
.btn-primary{
  background: var(--red);
  color: var(--paper);
}
.btn-primary:hover{ background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(216,49,31,0.32); }
.btn-outline{
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover{ background: var(--ink); color: var(--paper); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,19,15,0.18); }
.btn-outline.on-dark{ color: var(--paper); }
.btn-outline.on-dark:hover{ background: var(--paper); color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.btn-arrow{ display:inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn-arrow{ transform: translateX(5px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(23,19,15,0.08);
  transition: box-shadow .3s var(--ease);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 84px;
  transition: height .3s var(--ease);
}
.site-header.scrolled{ box-shadow: 0 6px 24px rgba(23,19,15,0.08); }
@media (min-width: 901px){
  .site-header.scrolled .container{ height: 68px; }
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-icon{ height: 36px; width:auto; transition: transform .3s var(--ease), height .3s var(--ease); }
.site-header.scrolled .brand-icon{ height: 30px; }
.brand:hover .brand-icon{ transform: rotate(-6deg) scale(1.06); }
.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name .brand-suffix{
  font-weight: 500;
  color: var(--ink-soft);
}
.footer-brand .brand{ margin-bottom: 16px; }
.footer-brand .brand-name{ color: var(--paper); font-size: 21px; }
.footer-brand .brand-name .brand-suffix{ color: rgba(247,242,233,0.6); }

.nav-links{
  display:flex;
  align-items:center;
  gap: 36px;
}
.nav-links a{
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position:relative;
  padding: 6px 0;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  height:2px;
  width:0;
  background: var(--red);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after{ width:100%; }
.nav-links a[aria-current="page"]{ color: var(--red); }

.header-actions{ display:flex; align-items:center; gap:18px; }
.header-phone{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  display:flex;
  align-items:center;
  gap:8px;
}
@media (max-width: 900px){
  .header-phone{ display:none; }
}

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  padding: 8px;
}
.nav-toggle span{ width:24px; height:2px; background: var(--ink); display:block; transition: transform .3s var(--ease), opacity .2s var(--ease); }
body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2){ opacity:0; transform: scaleX(0); }
body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px){
  .nav-toggle{ display:flex; }
  .nav-links{
    position:fixed;
    inset: 84px 0 0 0;
    z-index: 200;
    background: var(--paper);
    flex-direction:column;
    justify-content:flex-start;
    padding: 40px 28px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-links a{ font-size: 24px; font-family: var(--font-display); font-weight:600; padding: 12px 0; border-bottom: 1px solid rgba(23,19,15,0.08); width:100%; }
  body.nav-open{ overflow:hidden; }
}

/* ============================================================
   HERO — flowing ribbon (unwinding roll) signature element
   ============================================================ */
.hero{
  position:relative;
  background: var(--ink);
  color: var(--paper);
  overflow:hidden;
  padding: 120px 0 100px;
}
.hero-ribbons{
  position:absolute;
  inset:0;
  z-index:0;
  opacity: 0.9;
}
.ribbon-row{
  position:absolute;
  left:-10%;
  width: 130%;
  height: 64px;
  display:flex;
  align-items:center;
  animation: ribbon-flow linear infinite;
}
.ribbon-row svg{ height:100%; width:auto; flex-shrink:0; }
@keyframes ribbon-flow{
  from{ transform: translateX(0); }
  to{ transform: translateX(-33.333%); }
}
.hero-inner{
  position:relative;
  z-index:2;
}
.hero .eyebrow{ color: var(--amber); }
.hero h1{
  margin-top: 22px;
  font-size: clamp(44px, 7.4vw, 88px);
  text-transform: uppercase;
  line-height: 1.02;
  max-width: 15ch;
}
.hero h1 em{
  font-style:normal;
  color: var(--red);
}
.hero-sub{
  margin-top: 26px;
  font-size: 18px;
  color: rgba(247,242,233,0.75);
  max-width: 48ch;
}
.hero-cta{
  margin-top: 40px;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.hero-stats{
  position:relative;
  z-index:2;
  margin-top: 80px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(247,242,233,0.18);
  padding-top: 32px;
  gap: 20px;
}
.hero-stats div strong{
  display:block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  color: var(--paper);
}
.hero-stats div span{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247,242,233,0.55);
}
@media (max-width: 780px){
  .hero-stats{ grid-template-columns: repeat(2,1fr); row-gap: 30px; }
}

/* ============================================================
   PRODUCT MARQUEE — conveyor of real printed pouches
   ============================================================ */
.marquee-wrap{
  background: var(--paper-dim);
  padding: 44px 0;
  overflow:hidden;
  border-bottom: 1px solid rgba(23,19,15,0.08);
}
.marquee-label{
  text-align:center;
  margin-bottom: 26px;
}
.marquee-track{
  display:flex;
  width: max-content;
  gap: 22px;
  animation: marquee-scroll 42s linear infinite;
}
.marquee-wrap:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.marquee-item{
  flex: 0 0 auto;
  width: 148px;
  height: 178px;
  background: #fff;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(23,19,15,0.08);
  border: 1px solid rgba(23,19,15,0.06);
}
.marquee-item{ transition: transform .35s var(--ease); }
.marquee-item:hover{ transform: translateY(-6px) scale(1.04); z-index:2; }
.marquee-item img{ width:100%; height:100%; object-fit: cover; transition: transform .5s var(--ease); }
.marquee-item:hover img{ transform: scale(1.08); }

/* ============================================================
   INDUSTRIES / CARDS
   ============================================================ */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(23,19,15,0.1);
  border: 1px solid rgba(23,19,15,0.1);
}
.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(23,19,15,0.1);
  border: 1px solid rgba(23,19,15,0.1);
}
@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr 1fr; } .grid-4{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background: var(--paper);
  padding: 34px 30px;
  transition: background .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover{ background: var(--paper-dim); transform: translateY(-6px); box-shadow: 0 20px 34px rgba(23,19,15,0.1); position:relative; z-index:1; }
.card .num{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
  display:inline-block;
  transition: transform .35s var(--ease);
}
.card:hover .num{ transform: translateX(4px); }
.card h3{
  margin-top: 14px;
  font-size: 23px;
}
.card p{
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ============================================================
   PROCESS — real sequence, numbered legitimately
   ============================================================ */
.process{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position:relative;
}
@media (max-width: 900px){ .process{ grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px){ .process{ grid-template-columns: 1fr; } }

.process-step{ position:relative; padding-right: 24px; }
.process-step .step-num{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--foil-dark);
}
.process-step h3{
  margin-top: 12px;
  font-size: 21px;
}
.process-step p{
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.process-step:not(:last-child)::after{
  content:"→";
  position:absolute;
  right: -6px;
  top: 2px;
  color: var(--red);
  font-size: 20px;
}
@media (max-width: 900px){ .process-step:not(:last-child)::after{ display:none; } }

/* ============================================================
   SPEC SHEET — quality standards, monospace like a data sheet
   ============================================================ */
.spec-sheet{
  background: var(--ink);
  color: var(--paper);
  padding: 64px 48px;
  border-radius: var(--radius);
}
@media (max-width: 640px){ .spec-sheet{ padding: 40px 22px; } }
.spec-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  margin-top: 30px;
}
@media (max-width: 640px){ .spec-grid{ grid-template-columns: 1fr; } }
.spec-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  border-bottom: 1px dashed rgba(247,242,233,0.22);
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.spec-row span:first-child{ color: rgba(247,242,233,0.55); }
.spec-row span:last-child{ color: var(--amber); }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.category-block:not(:last-child){
  border-bottom: 1px solid rgba(23,19,15,0.1);
}
.category-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 20px;
  flex-wrap:wrap;
  margin-bottom: 34px;
}
.category-head h2{
  font-size: clamp(28px, 3.6vw, 44px);
}
.category-head .tag{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foil-dark);
  border: 1px solid var(--foil);
  padding: 6px 12px;
  border-radius: 999px;
}
.product-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1000px){ .product-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px){ .product-grid{ grid-template-columns: repeat(2, 1fr); } }

.product-tile{
  background:#fff;
  border: 1px solid rgba(23,19,15,0.08);
  border-radius: var(--radius);
  overflow:hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-tile:hover{ transform: translateY(-6px); box-shadow: 0 18px 30px rgba(23,19,15,0.12); }
.product-tile .thumb{
  aspect-ratio: 5/6;
  overflow:hidden;
  background: #fff;
}
.product-tile .thumb img{ width:100%; height:100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-tile:hover .thumb img{ transform: scale(1.08); }
.product-tile .label{
  padding: 12px 14px 16px;
  font-size: 13px;
  font-weight:600;
  border-top: 1px solid rgba(23,19,15,0.06);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:center;
}
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; gap: 36px; } }

.timeline{
  border-left: 2px solid rgba(23,19,15,0.14);
  padding-left: 30px;
  display:flex;
  flex-direction:column;
  gap: 40px;
}
.timeline-item{ position:relative; }
.timeline-item::before{
  content:"";
  position:absolute;
  left: -36px;
  top: 4px;
  width: 10px;
  height:10px;
  border-radius:50%;
  background: var(--red);
}
.timeline-item .yr{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
}
.timeline-item h3{ margin-top:6px; font-size: 20px; }
.timeline-item p{ margin-top:8px; color: var(--ink-soft); font-size: 14.5px; max-width: 46ch; }

.value-list{ display:flex; flex-direction:column; gap:0; }
.value-list li{
  padding: 22px 0;
  border-bottom: 1px solid rgba(23,19,15,0.1);
  display:flex;
  gap: 20px;
  align-items:baseline;
}
.value-list li .vn{ font-family: var(--font-mono); color: var(--red); font-size:13px; flex-shrink:0; width: 30px; }
.value-list li h4{ font-size: 17px; }
.value-list li p{ margin-top:4px; color: var(--ink-soft); font-size: 14px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrap{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border: 1px solid rgba(23,19,15,0.12);
}
@media (max-width: 900px){ .contact-wrap{ grid-template-columns: 1fr; } }

.contact-form{
  padding: 52px;
  background: #fff;
}
@media (max-width: 560px){ .contact-form{ padding: 30px 22px; } }

.form-row{ margin-bottom: 22px; }
.form-row label{
  display:block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea{
  width:100%;
  border: 1.5px solid rgba(23,19,15,0.18);
  background: var(--paper);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  outline:none;
  border-color: var(--red);
}
.form-row-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 500px){ .form-row-2{ grid-template-columns: 1fr; } }

.form-note{
  font-size: 13px;
  color: var(--foil-dark);
  margin-top: 4px;
}

.contact-side{
  background: var(--ink);
  color: var(--paper);
  padding: 52px;
  display:flex;
  flex-direction:column;
  gap: 34px;
}
@media (max-width: 560px){ .contact-side{ padding: 30px 22px; } }
.contact-side h3{
  font-size: 15px;
  font-family: var(--font-mono);
  text-transform:uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 10px;
}
.contact-side .val{ font-size: 18px; font-weight: 600; }
.contact-side .sub{ font-size: 13.5px; color: rgba(247,242,233,0.55); margin-top: 4px; }
.contact-map{
  border: 1px solid rgba(247,242,233,0.2);
  height: 220px;
  overflow:hidden;
  border-radius: var(--radius);
}
.contact-map iframe{ width:100%; height:100%; border:0; filter: grayscale(0.4) contrast(1.05); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band{
  background: var(--red);
  color: var(--paper);
  padding: 80px 0;
  text-align:center;
}
.cta-band h2{
  font-size: clamp(32px, 5vw, 56px);
  text-transform: uppercase;
  max-width: 18ch;
  margin: 0 auto;
}
.cta-band p{
  margin-top: 16px;
  color: rgba(247,242,233,0.85);
  font-size: 16px;
}
.cta-band .hero-cta{ justify-content:center; margin-top: 34px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background: var(--ink);
  color: rgba(247,242,233,0.75);
  padding: 70px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(247,242,233,0.14);
}
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }

.footer-grid h4{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform:uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.footer-grid ul{ display:flex; flex-direction:column; gap:11px; }
.footer-grid a:hover{ color: var(--paper); }
.footer-grid p{ font-size: 14px; line-height:1.7; }
.footer-brand img{ height: 30px; margin-bottom: 16px; }
.footer-bottom{
  padding-top: 26px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(247,242,233,0.4);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in{ opacity:1; transform: translateY(0); }

/* Cascading stagger for grid / list items inside a revealed block */
.reveal .card,
.reveal .process-step,
.reveal .spec-row,
.reveal .service-card,
.reveal .p-item,
.reveal .d-step,
.reveal .product-tile,
.reveal.value-list > li,
.reveal.tools-strip > span{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.in .card,
.reveal.in .process-step,
.reveal.in .spec-row,
.reveal.in .service-card,
.reveal.in .p-item,
.reveal.in .d-step,
.reveal.in .product-tile,
.reveal.value-list.in > li,
.reveal.tools-strip.in > span{
  opacity:1;
  transform: translateY(0);
}
/* stagger delays, first ~10 items in a group */
.reveal.in .card:nth-child(1),  .reveal.in .process-step:nth-child(1),  .reveal.in .spec-row:nth-child(1),  .reveal.in .service-card:nth-child(1),  .reveal.in .p-item:nth-child(1),  .reveal.in .d-step:nth-child(1),  .reveal.in .product-tile:nth-child(1),  .reveal.value-list.in > li:nth-child(1),  .reveal.tools-strip.in > span:nth-child(1){ transition-delay: .03s; }
.reveal.in .card:nth-child(2),  .reveal.in .process-step:nth-child(2),  .reveal.in .spec-row:nth-child(2),  .reveal.in .service-card:nth-child(2),  .reveal.in .p-item:nth-child(2),  .reveal.in .d-step:nth-child(2),  .reveal.in .product-tile:nth-child(2),  .reveal.value-list.in > li:nth-child(2),  .reveal.tools-strip.in > span:nth-child(2){ transition-delay: .08s; }
.reveal.in .card:nth-child(3),  .reveal.in .process-step:nth-child(3),  .reveal.in .spec-row:nth-child(3),  .reveal.in .service-card:nth-child(3),  .reveal.in .p-item:nth-child(3),  .reveal.in .d-step:nth-child(3),  .reveal.in .product-tile:nth-child(3),  .reveal.value-list.in > li:nth-child(3),  .reveal.tools-strip.in > span:nth-child(3){ transition-delay: .13s; }
.reveal.in .card:nth-child(4),  .reveal.in .process-step:nth-child(4),  .reveal.in .spec-row:nth-child(4),  .reveal.in .service-card:nth-child(4),  .reveal.in .p-item:nth-child(4),  .reveal.in .d-step:nth-child(4),  .reveal.in .product-tile:nth-child(4),  .reveal.value-list.in > li:nth-child(4),  .reveal.tools-strip.in > span:nth-child(4){ transition-delay: .18s; }
.reveal.in .card:nth-child(5),  .reveal.in .spec-row:nth-child(5),  .reveal.in .product-tile:nth-child(5),  .reveal.value-list.in > li:nth-child(5),  .reveal.tools-strip.in > span:nth-child(5){ transition-delay: .23s; }
.reveal.in .card:nth-child(6),  .reveal.in .spec-row:nth-child(6),  .reveal.in .product-tile:nth-child(6),  .reveal.tools-strip.in > span:nth-child(6){ transition-delay: .28s; }
.reveal.in .spec-row:nth-child(7),  .reveal.in .product-tile:nth-child(7),  .reveal.tools-strip.in > span:nth-child(7){ transition-delay: .33s; }
.reveal.in .spec-row:nth-child(8),  .reveal.in .product-tile:nth-child(8),  .reveal.tools-strip.in > span:nth-child(8){ transition-delay: .38s; }
.reveal.in .spec-row:nth-child(9),  .reveal.in .product-tile:nth-child(9){ transition-delay: .43s; }
.reveal.in .spec-row:nth-child(10), .reveal.in .product-tile:nth-child(10){ transition-delay: .48s; }
.reveal.in .product-tile:nth-child(n+11){ transition-delay: .5s; }

/* ============================================================
   ENTRANCE MOTION — hero & page-hero (plays on load, not scroll)
   ============================================================ */
@keyframes rise-in{
  from{ opacity:0; transform: translateY(20px); }
  to{ opacity:1; transform: translateY(0); }
}
.hero .eyebrow,
.hero h1,
.hero-sub,
.hero-cta,
.hero-stats{
  opacity:0;
  animation: rise-in .8s var(--ease) forwards;
}
.hero .eyebrow{ animation-delay: .1s; }
.hero h1{ animation-delay: .22s; }
.hero-sub{ animation-delay: .36s; }
.hero-cta{ animation-delay: .5s; }
.hero-stats{ animation-delay: .62s; }

.page-hero .eyebrow,
.page-hero h1,
.page-hero p{
  opacity:0;
  animation: rise-in .7s var(--ease) forwards;
}
.page-hero .eyebrow{ animation-delay: .05s; }
.page-hero h1{ animation-delay: .15s; }
.page-hero p{ animation-delay: .28s; }

/* Soft whole-page fade-in on first paint */
body{ animation: page-fade-in .5s var(--ease); }
@keyframes page-fade-in{ from{ opacity:0; } to{ opacity:1; } }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero{
  background: var(--ink);
  color: var(--paper);
  padding: 84px 0 60px;
  position:relative;
  overflow:hidden;
}
.page-hero h1{
  font-size: clamp(38px, 6vw, 68px);
  text-transform:uppercase;
  line-height: 1.03;
  margin-top: 14px;
  max-width: 18ch;
}
.page-hero p{
  margin-top: 18px;
  color: rgba(247,242,233,0.7);
  max-width: 56ch;
  font-size: 16px;
}
.page-hero .eyebrow{ color: var(--amber); }

/* ============================================================
   DESIGN PAGE
   ============================================================ */
.service-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(23,19,15,0.1);
  border: 1px solid rgba(23,19,15,0.1);
}
@media (max-width: 720px){ .service-grid{ grid-template-columns: 1fr; } }
.service-card{
  background: var(--paper);
  padding: 40px;
}
@media (max-width: 560px){ .service-card{ padding: 28px 24px; } }
.service-card .sn{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
}
.service-card h3{
  margin-top: 16px;
  font-size: 25px;
}
.service-card p{
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}
.service-card ul{
  margin-top: 16px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.service-card ul li{
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-left: 18px;
  position:relative;
}
.service-card ul li::before{
  content:"—";
  position:absolute;
  left:0;
  color: var(--red);
}

.design-portfolio{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px){ .design-portfolio{ grid-template-columns: repeat(2, 1fr); } }
.design-portfolio .p-item{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
  border: 1px solid rgba(23,19,15,0.08);
}
.design-portfolio .p-item img{
  width:100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.design-portfolio .p-item:hover img{ transform: scale(1.06); }
.design-portfolio .p-item .p-tag{
  position:absolute;
  bottom:0; left:0; right:0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(23,19,15,0.85), transparent);
  color: var(--paper);
  font-size: 13px;
  font-weight:600;
  opacity:0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.design-portfolio .p-item:hover .p-tag{ opacity:1; transform: translateY(0); }

.design-process{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
@media (max-width: 900px){ .design-process{ grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 560px){ .design-process{ grid-template-columns: 1fr; } }
.design-process .d-step .d-num{
  font-family: var(--font-display);
  font-size: 44px;
  font-weight:700;
  color: rgba(23,19,15,0.12);
  line-height:1;
}
.design-process .d-step h3{
  margin-top: 6px;
  font-size: 19px;
}
.design-process .d-step p{
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.tools-strip{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}
.tools-strip span{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(23,19,15,0.18);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ============================================================
   (nav active state handled by aria-current="page" per-file)
   ============================================================ */
