/* ============================================================
   DIGIVREX — Design tokens
   ============================================================ */
:root{
  --ink: #0B1615;
  --ink-2: #12211F;
  --ink-3: #172B28;
  --paper: #F4EFE3;
  --paper-2: #ECE4D2;
  --gold: #C9A227;
  --gold-soft: #E4C766;
  --teal: #55D6C2;
  --text: #ECE8DD;
  --text-dim: #9FB2AD;
  --text-dim-2: #6E8681;
  --ink-text: #10201D;
  --ink-text-dim: #4B5C57;
  --line: rgba(236,232,221,0.11);
  --line-strong: rgba(236,232,221,0.22);
  --paper-line: rgba(16,32,29,0.12);

  --display: "Instrument Serif", "Georgia", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22,.68,.16,1);
}

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

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

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
button{ font-family: inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }

:focus-visible{
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section{ position: relative; padding: clamp(72px, 11vw, 140px) 0; }
.section--tight{ padding-top: clamp(48px,7vw,80px); padding-bottom: clamp(48px,7vw,80px); }
.section--paper{ background: var(--paper); color: var(--ink-text); }

.eyebrow{
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 18px;
}
.section--paper .eyebrow{ color:#8A6A10; }
.eyebrow::before{
  content:"";
  width: 22px; height:1px;
  background: currentColor;
  display:inline-block;
}

h2.headline{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
h2.headline em{ font-style: italic; color: var(--gold-soft); }
.section--paper h2.headline em{ color:#8A6A10; }

.lede{
  font-size: clamp(15.5px, 1.6vw, 18px);
  color: var(--text-dim);
  max-width: 54ch;
  margin-top: 18px;
}
.section--paper .lede{ color: var(--ink-text-dim); }

.head-row{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px,6vw,72px);
}

.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  transition: transform .45s var(--ease), background .3s ease, border-color .3s ease, color .3s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--gold);
  color: #14150C;
  border-color: var(--gold);
}
.btn-primary:hover{ background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost{
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover{ border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.section--paper .btn-ghost{ color: var(--ink-text); border-color: var(--paper-line); }
.section--paper .btn-ghost:hover{ border-color:#8A6A10; color:#8A6A10; }
.btn svg{ width:14px; height:14px; transition: transform .35s var(--ease); }
.btn:hover svg{ transform: translate(3px,-3px); }

/* ============================================================
   LENIS SMOOTH SCROLL BASE STYLES
   ============================================================ */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  padding: 22px var(--pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
  transition: padding .4s var(--ease), background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck{
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(11,22,21,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-logo{
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: .06em;
  display:flex;
  align-items:center;
  gap:10px;
}
.nav-logo .mark{
  width: 9px; height:9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,.18);
}
.nav-links{
  display:flex;
  align-items:center;
  gap: 38px;
}
.nav-links a{
  font-size: 14px;
  color: var(--text-dim);
  transition: color .3s ease;
  position:relative;
}
.nav-links a:hover{ color: var(--text); }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-burger{
  display:none;
  width: 40px; height:40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:transparent;
  position:relative;
  flex-shrink:0;
}
.nav-burger span{
  position:absolute; left:11px; right:11px; height:1px; background: var(--text);
  transition: transform .35s var(--ease), opacity .3s ease;
}
.nav-burger span:nth-child(1){ top:16px; }
.nav-burger span:nth-child(2){ top:22px; }
.nav-burger span:nth-child(3){ top:28px; }
.nav.is-open .nav-burger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2){ opacity:0; }
.nav.is-open .nav-burger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-panel{
  position: fixed;
  inset:0;
  z-index: 90;
  background: var(--ink-2);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: 8px;
  padding: 0 var(--pad);
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.nav.is-open ~ .mobile-panel,
.mobile-panel.is-open{ transform: translateY(0); }
.mobile-panel a{
  font-family: var(--display);
  font-size: 42px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.mobile-panel .btn{ margin-top: 28px; align-self:flex-start; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  min-height: 100svh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  z-index:0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(201,162,39,.16), transparent 60%),
    radial-gradient(50% 40% at 8% 92%, rgba(85,214,194,.12), transparent 60%);
}
.hero-grid{
  position:absolute; inset:0; z-index:0;
  opacity:.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 70%, transparent);
}
.hero-content{ position:relative; z-index:2; }
.hero-tag{
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-tag .dot{
  width:7px; height:7px; border-radius:50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(85,214,194,.18);
}
.hero h1{
  font-family: var(--display);
  font-weight:400;
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: .98;
  letter-spacing: -0.015em;
  max-width: 16ch;
}
.hero h1 em{ font-style: italic; color: var(--gold-soft); }
.hero-sub{
  margin-top: 30px;
  max-width: 46ch;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--text-dim);
}
.hero-ctas{
  display:flex;
  gap:16px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-foot{
  position:relative;
  z-index: 2;
  margin-top: clamp(56px, 9vw, 96px);
  display:flex;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap:wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero-foot-item{ font-family: var(--mono); font-size: 12px; color: var(--text-dim-2); letter-spacing:.03em; }
.hero-foot-item b{ display:block; font-family: var(--body); font-size: 14.5px; color: var(--text); font-weight: 500; margin-bottom: 4px; }

/* floating UI fragments */
.hero-float{
  position:absolute;
  z-index:1;
  border: 1px solid var(--line-strong);
  background: rgba(20,40,38,.55);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  animation: floaty 9s ease-in-out infinite;
}
.hero-float b{ display:block; color: var(--text); font-size: 13px; font-family: var(--body); font-weight:600; margin-bottom:2px; }
.hf-1{ top: 18%; right: 8%; width: 190px; animation-delay: 0s; }
.hf-2{ top: 52%; right: 20%; width: 168px; animation-delay: 1.6s; }
.hf-3{ top: 74%; right: 2%; width: 150px; animation-delay: 3.1s; }
@media (max-width: 980px){ .hero-float{ display:none; } }
@keyframes floaty{
  0%,100%{ transform: translateY(0px) rotate(-1deg); }
  50%{ transform: translateY(-14px) rotate(1deg); }
}

/* ============================================================
   MARQUEE / TRUST STRIP
   ============================================================ */
.trust{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.trust-item{
  background: var(--ink);
  padding: 40px clamp(20px,4vw,44px);
}
.trust-item .num{ font-family: var(--mono); color: var(--gold-soft); font-size:13px; margin-bottom:14px; display:block; }
.trust-item h3{ font-family: var(--display); font-size: 22px; font-weight:400; margin-bottom: 10px; }
.trust-item p{ color: var(--text-dim); font-size: 14.5px; max-width: 32ch; }
@media (max-width: 800px){
  .trust-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
}
.service-card{
  background: var(--ink);
  padding: 38px 32px;
  min-height: 240px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition: background .4s ease;
  position:relative;
}
.service-card:hover{ background: var(--ink-3); }
.service-card .sv-num{ font-family: var(--mono); font-size: 12px; color: var(--text-dim-2); }
.service-card h3{
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  margin: 30px 0 12px;
}
.service-card p{ color: var(--text-dim); font-size: 14.5px; }
.service-card .sv-tag{
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing:.06em;
  text-transform: uppercase;
  color: var(--teal);
  opacity:0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.service-card:hover .sv-tag{ opacity:1; transform: translateY(0); }
@media (max-width: 900px){ .services-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-list{ display:flex; flex-direction:column; gap: 28px; }
.pf-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  overflow:hidden;
  transition: border-color .4s ease;
}
.pf-card:hover{ border-color: var(--line-strong); }
.pf-preview{
  position:relative;
  padding: clamp(22px, 3vw, 34px);
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--pf-bg, var(--ink-3));
  min-height: 300px;
}
.pf-browser{
  width:100%;
  max-width: 420px;
  border-radius: 12px;
  overflow:hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  background: #0c0f0e;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .6s var(--ease);
}
.pf-card:hover .pf-browser{ transform: translateY(-6px); }
.pf-browser-bar{
  display:flex; align-items:center; gap:7px;
  padding: 9px 12px;
  background: rgba(255,255,255,.06);
}
.pf-browser-bar span{ width:7px; height:7px; border-radius:50%; background: rgba(255,255,255,.25); }
.pf-browser-url{
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,.55);
  background: rgba(0,0,0,.25);
  border-radius: 4px;
  padding: 3px 8px;
  flex: 1;
  overflow:hidden;
  white-space:nowrap;
  text-overflow: ellipsis;
}
.pf-browser-body{
  padding: 20px 18px 26px;
  background: var(--pf-mock-bg, #101c1a);
}
.pf-mock-eyebrow{
  font-family: var(--mono); font-size:9px; letter-spacing:.1em; text-transform:uppercase;
  color: var(--pf-mock-accent, #C9A227); opacity:.85; margin-bottom:10px;
}
.pf-mock-title{
  font-family: var(--display); font-size: 22px; color: var(--pf-mock-text, #f2efe6);
  line-height:1.15; max-width: 14ch; margin-bottom: 14px;
}
.pf-mock-line{ height:7px; border-radius:3px; background: var(--pf-mock-line, rgba(255,255,255,.14)); margin-bottom:8px; }
.pf-mock-line.w60{ width:60%; }
.pf-mock-line.w80{ width:80%; }
.pf-mock-line.w40{ width:40%; }
.pf-mock-cta{
  margin-top:16px; display:inline-block; font-family:var(--mono); font-size:9.5px; letter-spacing:.08em; text-transform:uppercase;
  padding: 8px 14px; border-radius:100px; background: var(--pf-mock-accent, #C9A227); color:#101010;
}
.pf-mock-cards{ display:flex; gap:8px; margin-top:18px; }
.pf-mock-cards div{ flex:1; height:46px; border-radius:8px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }

.pf-body{
  padding: clamp(28px, 3.4vw, 46px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.pf-cat{
  font-family: var(--mono); font-size: 11.5px; letter-spacing:.1em; text-transform:uppercase;
  color: var(--teal); margin-bottom: 14px; display:flex; align-items:center; gap:10px;
}
.pf-cat .pf-idx{ color: var(--text-dim-2); }
.pf-body h3{ font-family: var(--display); font-weight:400; font-size: clamp(24px,2.6vw,32px); margin-bottom: 14px; }
.pf-body p{ color: var(--text-dim); font-size: 15px; max-width: 46ch; }
.pf-note{
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-dim-2);
  font-family: var(--mono);
  border-left: 2px solid var(--line-strong);
  padding-left: 10px;
}
.pf-link{
  margin-top: 26px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing:.05em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  width: fit-content;
  transition: border-color .3s ease, color .3s ease, gap .3s ease;
}
.pf-link:hover{ color: var(--gold-soft); border-color: var(--gold-soft); gap:12px; }
@media (max-width: 860px){
  .pf-card{ grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-list{ border-top: 1px solid var(--line); }
.process-item{
  display:grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.process-item .p-num{ font-family: var(--display); font-size: 34px; color: var(--text-dim-2); }
.process-item h3{ font-family: var(--display); font-weight:400; font-size: 24px; }
.process-item p{ color: var(--text-dim); font-size: 15px; max-width: 46ch; }
@media (max-width: 720px){
  .process-item{ grid-template-columns: 50px 1fr; }
  .process-item p{ grid-column: 2 / -1; }
}

/* ============================================================
   WHY / DIFFERENTIATION
   ============================================================ */
.why-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px,5vw,70px);
  align-items:start;
}
.why-list{ display:flex; flex-direction:column; }
.why-row{
  display:flex;
  align-items:flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.why-row svg{ width:18px; height:18px; flex-shrink:0; margin-top:3px; color: var(--gold-soft); }
.why-row h4{ font-size: 15.5px; font-weight:600; margin-bottom:4px; }
.why-row p{ color: var(--text-dim); font-size: 14px; }
@media (max-width: 860px){ .why-grid{ grid-template-columns:1fr; } }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}
.industry-pill{
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 13px 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing:.03em;
  color: var(--text-dim);
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.industry-pill:hover{ color: var(--ink); background: var(--teal); border-color: var(--teal); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final{
  border-radius: 28px;
  padding: clamp(48px,7vw,96px);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cta-final::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(201,162,39,.14), transparent 65%);
}
.cta-final h2{
  font-family: var(--display); font-weight:400;
  font-size: clamp(32px, 5vw, 58px);
  max-width: 18ch;
  margin: 0 auto;
  position:relative;
}
.cta-final .lede{ margin-left:auto; margin-right:auto; position:relative; }
.cta-final .hero-ctas{ justify-content:center; position:relative; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid{
  display:grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(40px,6vw,90px);
}
.contact-info-row{
  display:flex;
  gap:16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-row svg{ width:18px; height:18px; color: var(--gold-soft); flex-shrink:0; margin-top:2px; }
.contact-info-row b{ display:block; font-size: 13px; color: var(--text-dim-2); font-family: var(--mono); text-transform:uppercase; letter-spacing:.05em; margin-bottom:4px; }
.contact-info-row a, .contact-info-row span{ font-size: 15.5px; }

.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-family: var(--mono); font-size: 11.5px; letter-spacing:.06em; text-transform:uppercase; color: var(--text-dim); }
.field input, .field select, .field textarea{
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  transition: border-color .3s ease, background .3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--teal); outline:none; }
.field textarea{ resize: vertical; min-height: 110px; }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color: #E4685A; }
.field-err{ font-size:12px; color:#E4685A; min-height:14px; font-family: var(--mono); }
.form-foot{ display:flex; align-items:center; gap:20px; margin-top:8px; flex-wrap:wrap; }
.form-note{ font-size:12.5px; color: var(--text-dim-2); max-width: 40ch; }
.form-success{
  display:none;
  border: 1px solid rgba(85,214,194,.4);
  background: rgba(85,214,194,.08);
  border-radius: 14px;
  padding: 26px;
  align-items:center;
  gap:16px;
}
.form-success.is-visible{ display:flex; }
.form-success svg{ width:28px; height:28px; color: var(--teal); flex-shrink:0; }
.form-success h4{ font-size:16px; margin-bottom:4px; }
.form-success p{ font-size:13.5px; color: var(--text-dim); }
form.is-sent .form-fields{ display:none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{
  border-top: 1px solid var(--line);
  padding: 64px 0 34px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer-brand .nav-logo{ margin-bottom: 18px; }
.footer-brand p{ color: var(--text-dim); font-size: 14px; max-width: 30ch; }
.footer-col h5{ font-family: var(--mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color: var(--text-dim-2); margin-bottom: 18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a, .footer-col span{ font-size: 14px; color: var(--text-dim); transition: color .3s ease; }
.footer-col a:hover{ color: var(--text); }
.footer-bottom{
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim-2);
}
@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px){
  .footer-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns:1fr; }
}

/* ============================================================
   SCROLL REVEAL + RESPONSIVE NAV SWAP
   ============================================================ */
[data-reveal]{
  opacity:0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-in{ opacity:1; transform: translateY(0); }

@media (max-width: 900px){
  .nav-links, .nav-cta .btn-ghost{ display:none; }
  .nav-burger{ display:block; }
}

/* section divider — coastline motif */
.tideline{
  height: 64px;
  overflow:hidden;
  position: relative;
}
.tideline svg{ width:100%; height:100%; display:block; }

/* skip link */
.skip-link{
  position:absolute; left:-999px; top: 0;
  background: var(--gold); color:#111; padding: 12px 18px; z-index:200; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left:0; }


/* ============================================================
   ANIMATION & INTERACTION ENHANCEMENTS
   ============================================================ */

/* 1. Global Smooth Transition Rules */
.btn, .service-card, .pf-card, .industry-pill, .field input, .field select, .field textarea {
  will-change: transform, box-shadow, border-color;
}

/* 2. Interactive Button Hover Physics */
.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(201, 162, 39, 0.35);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -6px rgba(85, 214, 194, 0.2);
}

/* 3. Service Card Lift & Accent Glow */
.service-card {
  transition: transform 0.4s var(--ease), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  background: var(--ink-3);
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* 4. Portfolio Browser Mockup Zoom & Lift */
.pf-card {
  transition: transform 0.45s var(--ease), border-color 0.45s ease, box-shadow 0.45s ease;
}

.pf-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.45);
}

.pf-browser {
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.pf-card:hover .pf-browser {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 35px 70px -20px rgba(0, 0, 0, 0.7);
}

/* 5. Industry Pill Hover Ripple */
.industry-pill {
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.industry-pill:hover {
  color: var(--ink);
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 20px -4px rgba(85, 214, 194, 0.35);
}

/* 6. Hero Floating Elements Smooth Motion */
.hf-1 { top: 18%; right: 8%; width: 190px; animation: floaty 8s ease-in-out infinite; }
.hf-2 { top: 52%; right: 20%; width: 168px; animation: floaty 10s ease-in-out 1.5s infinite; }
.hf-3 { top: 74%; right: 2%; width: 150px; animation: floaty 9s ease-in-out 3s infinite; }

@keyframes floaty {
  0%, 100% {
    transform: translateY(0px) rotate(-1deg);
  }
  50% {
    transform: translateY(-16px) rotate(1.5deg);
  }
}

/* 7. Pulse Animation for Online Status Indicator (Hero Tag Dot) */
.hero-tag .dot {
  position: relative;
}

.hero-tag .dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* 8. Input Focus Glow Effect */
.field input, .field select, .field textarea {
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(85, 214, 194, 0.15);
  outline: none;
}

/* 9. Navigation Link Animated Underline */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(85, 214, 194, 0.12),
    transparent 40%
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

h1 em, h2.headline em {
  background: linear-gradient(
    120deg,
    var(--gold) 0%,
    var(--gold-soft) 30%,
    var(--teal) 50%,
    var(--gold-soft) 70%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.btn-primary, .btn-ghost {
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease, border-color 0.3s ease;
}

/* ============================================================
   CUSTOM SELECTION HIGHLIGHT
   ============================================================ */
/* Default selection: Gold highlight with dark text */
::selection {
  background: var(--gold);
  color: var(--ink);
}

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

/* Paper section selection: Teal highlight with dark text */
.section--paper ::selection {
  background: var(--teal);
  color: var(--ink);
}

.section--paper ::-moz-selection {
  background: var(--teal);
  color: var(--ink);
}

/* ============================================================
   CURSOR PARTICLE TRAIL CANVAS
   ============================================================ */
.trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* Allows user to click buttons through it */
  z-index: 1; /* Behind text and buttons */
  mix-blend-mode: screen;
}

@media (hover: none) and (pointer: coarse) {
  .trail-canvas {
    display: none;
  }
}

/* ============================================================
   SLEEK & COMPACT FLOATING QUICK CONTACT BAR
   ============================================================ */
.quick-contact-bar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 8px; /* Tight, compact spacing */
}

.qc-btn {
  position: relative;
  width: 34px;  /* Reduced from 44px for a subtle, sleek look */
  height: 34px;
  border-radius: 50%;
  background: rgba(18, 33, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #a0aec0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Scaled-down SVG Icons */
.qc-btn svg {
  width: 15px; /* Compact icon scale */
  height: 15px;
}

/* Hover States & Colors */
.qc-btn:hover {
  transform: translateY(-2px) scale(1.08);
  color: #0b1615;
}

.qc-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.qc-call:hover {
  background: #c9a227; /* Theme Gold */
  border-color: #c9a227;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.4);
}

.qc-mail:hover {
  background: #55d6c2; /* Theme Teal */
  border-color: #55d6c2;
  box-shadow: 0 4px 14px rgba(85, 214, 194, 0.4);
}

.qc-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #dc2743;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.4);
}

/* Compact Tooltip Labels */
.qc-tooltip {
  position: absolute;
  left: 44px;
  background: #12211f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.qc-btn:hover .qc-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Hide tooltips on mobile screens */
@media (max-width: 600px) {
  .quick-contact-bar {
    bottom: 16px;
    left: 16px;
    gap: 6px;
  }
  .qc-tooltip {
    display: none;
  }
}

/* ============================================================
   TOP SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px; /* Sleek, thin bar */
  width: 0%;   /* Starts at 0% and grows with scroll */
  background: linear-gradient(90deg, #c9a227 0%, #55d6c2 100%); /* Gold to Teal gradient */
  z-index: 9999; /* Keeps it above the navbar */
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(85, 214, 194, 0.5); /* Subtle glow */
}

