:root {
  /* Palette taken from the Vindoor logo: deep green-charcoal fading into warm sand */
  --ink: #1b2421;
  --ink-2: #26312e;
  --slate: #5b6764;
  --sand: #dedbcc;
  --sand-2: #cfcbb8;
  --paper: #f4f3ee;
  --white: #fbfbf8;
  --line: rgba(27, 36, 33, .14);
  --line-light: rgba(222, 219, 204, .16);

  --sans: 'Inter Tight', system-ui, sans-serif;
  --radius: 22px;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; font-weight: 500; }

.wrap { width: min(1280px, 100% - var(--pad) * 2); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .75rem 1.3rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; border: 1px solid transparent;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
  cursor: pointer; white-space: nowrap;
}
.btn i { transition: transform .25s; }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 14px var(--pad) auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .6rem .6rem .6rem 1.2rem;
  background: rgba(244, 243, 238, .78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px;
  max-width: 1280px; margin-inline: auto;
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 10px 40px -18px rgba(27, 36, 33, .35); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 26px; color: var(--ink); }
.brand.light { color: var(--paper); }
.brand.light .brand-mark { color: var(--sand); }
.nav-links { display: flex; gap: 2rem; font-size: .95rem; }
.nav-links a { position: relative; padding: .25rem 0; color: var(--slate); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.burger { display: none; width: 42px; height: 42px; border: 0; background: var(--ink); border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--paper); transition: transform .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 80px; overflow: hidden; }
.hero-bg-mark {
  position: absolute; width: min(60vw, 760px); height: min(52vw, 650px);
  right: -14%; bottom: -22%; color: var(--sand); opacity: .6; pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem; border-radius: 999px; background: var(--sand);
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(27,36,33,.4); } 50% { box-shadow: 0 0 0 7px rgba(27,36,33,0); } }
h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.8rem); line-height: .98; letter-spacing: -.045em;
  font-weight: 500; margin: 1.5rem 0 1.4rem;
}
h1 em { color: var(--slate); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--slate); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-meta { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.hero-meta strong { color: var(--ink); font-weight: 600; }
.hero-meta .arrow { color: var(--slate); }

.hero-visual { position: relative; padding-bottom: 60px; }
.hero-img { position: relative; overflow: hidden; border-radius: var(--radius); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img.main { aspect-ratio: 4 / 5; border-bottom-right-radius: 90px; box-shadow: 0 30px 60px -30px rgba(27,36,33,.5); }
.hero-img.small {
  position: absolute; left: -12%; bottom: 0; width: 42%; aspect-ratio: 1;
  border: 6px solid var(--paper); border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px rgba(27,36,33,.5);
}
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: rgba(244,243,238,.9); backdrop-filter: blur(8px);
}
.chip-top { top: 18px; right: 18px; animation: float 5s ease-in-out infinite; }
.chip-bottom { left: 10px; bottom: 10px; font-size: .72rem; padding: .4rem .7rem; animation: float 6s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--sand); overflow: hidden; padding: 1.1rem 0; transform: rotate(-1.2deg) scale(1.02); margin: 20px 0 40px; }
.marquee-track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: scroll 32s linear infinite; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.marquee-track i { width: 10px; height: 10px; background: var(--sand); transform: rotate(45deg); flex: none; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 140px) 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--paper); }
.sec-head { display: flex; gap: 1.2rem; align-items: baseline; padding-top: 1rem; margin-bottom: 3rem; border-top: 1px solid var(--line); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.section-dark .sec-head { border-color: var(--line-light); }
.sec-head .idx { color: var(--slate); }
.section-dark .sec-head .idx { color: var(--sand-2); }
.h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.04em; font-weight: 500; max-width: 14em; }
.h2 em, .mega em { color: var(--slate); }
.section-dark .h2 em { color: var(--sand); }
.muted { color: var(--slate); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.statement { font-size: clamp(1.8rem, 3.8vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; }
.statement em { color: var(--slate); }
.about-side p { color: var(--slate); margin-bottom: 1rem; }
.link-arrow { display: inline-flex; gap: .6rem; align-items: center; margin-top: .6rem; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.link-arrow i { transition: transform .25s; }
.link-arrow:hover i { transform: translateX(4px); }
.about-img-row { margin-top: clamp(3rem, 6vw, 5rem); border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; }
.about-img-row img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) contrast(1.05); transition: filter .6s, transform 1.2s; }
.about-img-row:hover img { filter: grayscale(0); transform: scale(1.03); }

/* Services */
.services { margin-top: 3.5rem; border-top: 1px solid var(--ink); }
.service {
  position: relative; display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 50px; gap: 1.5rem; align-items: center;
  padding: 2rem 0; border-bottom: 1px solid var(--line); transition: padding .35s, background .35s;
  cursor: pointer;
}
.service::before { content: ''; position: absolute; inset: 0 -20px; background: var(--paper); border-radius: 14px; opacity: 0; transition: opacity .3s; z-index: 0; }
.service > * { position: relative; z-index: 1; }
.service:hover { padding-left: 14px; }
.service:hover::before { opacity: 1; }
.s-num { color: var(--slate); font-size: .95rem; }
.service h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.service p { color: var(--slate); font-size: .98rem; }
.s-tags { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.s-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .3s, color .3s, transform .3s; }
.service:hover .s-arrow { background: var(--ink); color: var(--paper); transform: rotate(45deg); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 4rem; }
.steps li {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 290px;
  padding: 1.6rem; border: 1px solid var(--line-light); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(222,219,204,.07), rgba(222,219,204,0));
  transition: transform .4s, background .4s, color .4s;
}
.steps li:nth-child(even) { margin-top: 2.2rem; }
.steps li:hover { background: var(--sand); color: var(--ink); transform: translateY(-8px); }
.step-n { font-size: .85rem; letter-spacing: .1em; color: var(--sand-2); }
.steps li:hover .step-n, .steps li:hover p { color: var(--slate); }
.steps h3 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 500; letter-spacing: -.04em; margin-bottom: .6rem; }
.steps p { color: var(--sand-2); font-size: .95rem; transition: color .4s; }

/* Work */
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* Metrics */
.metrics { background: var(--sand); padding: clamp(50px, 7vw, 90px) 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.metrics-grid > div { border-top: 1px solid var(--ink); padding-top: 1rem; }
.metrics b { display: block; font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; margin-bottom: .6rem; }
.metrics span { color: var(--slate); font-size: .92rem; }

/* Contact */
.contact { padding-bottom: clamp(60px, 8vw, 110px); }
.mega { font-size: clamp(3rem, 9vw, 8rem); line-height: .94; letter-spacing: -.05em; font-weight: 500; }
.contact-lead { margin-top: 1.6rem; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3.5rem; }
.c-card {
  position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 1.8rem;
  border-radius: var(--radius); background: var(--ink); color: var(--paper);
  transition: transform .35s, background .35s, color .35s; overflow: hidden;
}
.c-card > i { font-size: 1.9rem; margin-bottom: 2.5rem; color: var(--sand); transition: color .35s; }
.c-card small { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.c-card strong { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 500; letter-spacing: -.02em; }
.c-go { position: absolute; top: 1.5rem; right: 1.5rem; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: transform .35s, background .35s, color .35s; }
.c-card:hover { background: var(--sand); color: var(--ink); transform: translateY(-6px); }
.c-card:hover > i { color: var(--ink); }
.c-card:hover .c-go { background: var(--ink); color: var(--paper); transform: rotate(45deg); }

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: 3.5rem 0 1.5rem; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-light); }
.motto { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; color: var(--sand); }
.socials { display: flex; gap: .7rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .3s, color .3s; }
.socials a:hover { background: var(--sand); color: var(--ink); }
.copy { padding-top: 1.5rem; font-size: .82rem; color: var(--sand-2); opacity: .8; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 12px 30px -8px rgba(27,36,33,.6); transition: transform .3s, background .3s;
}
.wa-float:hover { transform: scale(1.1); background: var(--ink-2); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; padding-left: 10%; }
  .hero-img.small { left: 0; }
  .service { grid-template-columns: 1fr 44px; }
  .service p, .s-tags { grid-column: 1; }
  .s-arrow { grid-row: 1; grid-column: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(even) { margin-top: 0; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: .6rem 1.4rem;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-links a:last-child { border: 0; }
}
@media (max-width: 620px) {
  .hero { padding-top: 120px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 220px; }
  .footer-in { flex-direction: column; align-items: flex-start; }
  .about-img-row { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.s-arrow i, .c-go i { transform: rotate(-45deg); }

/* Portfolio ribbon: cards ride a curved path, positioned by script.js */
.work { overflow: hidden; background: linear-gradient(var(--paper), #e9e8e0 50%, var(--paper)); padding-bottom: 0; }
.ribbon {
  position: relative; height: clamp(640px, 92vh, 980px); margin-top: 1rem;
  perspective: 1500px; perspective-origin: 50% 40%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.r-card {
  position: absolute; left: 50%; top: 50%; width: var(--cw, 620px);
  border-radius: 20px; overflow: hidden; background: var(--ink);
  box-shadow: 0 40px 70px -30px rgba(27, 36, 33, .55), 0 0 0 1px rgba(27, 36, 33, .08);
  will-change: transform, opacity; backface-visibility: hidden;
}
.r-card img { width: 100%; aspect-ratio: 1600 / 876; object-fit: cover; object-position: top; }
.r-cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; gap: .8rem;
  padding: 2.2rem 1.2rem .9rem; color: var(--paper);
  background: linear-gradient(to top, rgba(27, 36, 33, .88), rgba(27, 36, 33, 0));
}
.r-cap span { font-size: .75rem; letter-spacing: .1em; color: var(--sand-2); }
.r-cap strong { font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; }
.r-cap em { margin-left: auto; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
@media (max-width: 700px) {
  .ribbon { height: 560px; }
  .r-cap em { display: none; }
}

/* SEO: keyword pill now lives inside the H1 */
h1 .pill { display: flex; width: fit-content; margin-bottom: 1.5rem; font-size: .8rem; line-height: 1.4; letter-spacing: .08em; font-weight: 500; }
h1 { margin-top: 0; }
.hero-copy .lead { margin-top: 0; }

/* FAQ */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); padding: 1.3rem 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 500; letter-spacing: -.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 1.6rem; line-height: 1; transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin-top: .9rem; color: var(--slate); max-width: 36em; }
.motto small { display: block; margin-top: .3rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sand-2); opacity: .8; }
@media (max-width: 1000px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Full-screen hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 130px 0 120px; text-align: center; background: linear-gradient(180deg, #f7f6f1 0%, var(--paper) 55%, var(--sand) 130%); }
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.hero-copy h1 { font-size: clamp(2.8rem, 6.2vw, 6rem); line-height: .96; max-width: 10.5em; margin: 0 0 1.6rem; }
h1 .pill { margin: 0 auto 1.8rem; }
.hero-copy .lead { max-width: 36em; margin-inline: auto; }
.hero-actions { justify-content: center; }
.btn-light { background: rgba(251,251,248,.85); color: var(--ink); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-light:hover { background: var(--ink); color: var(--paper); }

/* motion-graphic background */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-bg::after { content: ''; position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse at 50% 45%, rgba(244,243,238,.82), rgba(244,243,238,.35) 70%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; }
.b1 { width: 46vw; height: 46vw; left: -8%; top: -12%; background: var(--sand); animation: drift1 18s ease-in-out infinite alternate; }
.b2 { width: 40vw; height: 40vw; right: -10%; top: 20%; background: #b9c0b8; opacity: .55; animation: drift2 22s ease-in-out infinite alternate; }
.b3 { width: 34vw; height: 34vw; left: 30%; bottom: -22%; background: #eceadd; animation: drift1 26s ease-in-out infinite alternate-reverse; }
.panel { position: absolute; background: linear-gradient(100deg, rgba(27,36,33,.55), rgba(222,219,204,.25)); border-radius: 26px; clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%); filter: blur(1px); opacity: .22; }
.p1 { width: 30vw; height: 62vh; left: 4%; top: 12%; transform: rotate(-8deg); animation: sway 14s ease-in-out infinite alternate; }
.p2 { width: 26vw; height: 54vh; right: 3%; top: 8%; transform: rotate(7deg) scaleX(-1); animation: sway 17s ease-in-out infinite alternate-reverse; }
.p3 { width: 36vw; height: 50vh; left: 32%; bottom: -14%; transform: rotate(-3deg); opacity: .14; animation: sway 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, -8vh) scale(.9); } }
@keyframes sway { 0% { translate: 0 0; rotate: 0deg; } 100% { translate: 3vw -5vh; rotate: 5deg; } }

/* floating project thumbnails */
.float-img { position: absolute; z-index: 2; width: clamp(110px, 12vw, 190px); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 40px -18px rgba(27,36,33,.5); border: 4px solid rgba(251,251,248,.9); animation: float 6s ease-in-out infinite; }
.float-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.f1 { left: 4%; top: 22%; rotate: -7deg; }
.f2 { left: 12%; top: 56%; rotate: 5deg; animation-delay: -2s; width: clamp(100px, 9vw, 150px); }
.f3 { right: 4%; top: 24%; rotate: 6deg; animation-delay: -3s; }
.f4 { right: 11%; top: 58%; rotate: -5deg; animation-delay: -1s; width: clamp(100px, 9vw, 150px); }

/* bottom bar */
.hero-meta { position: absolute; z-index: 3; left: var(--pad); bottom: 34px; margin: 0; }
.scroll-btn { position: absolute; z-index: 3; left: 50%; bottom: 28px; translate: -50% 0; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; transition: transform .3s; }
.scroll-btn:hover { transform: translateY(4px); }
.scroll-btn i { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

@media (max-width: 900px) {
  .f2, .f4 { display: none; }
  .f1 { left: 4%; top: 16%; width: 96px; }
  .f3 { right: 4%; top: 18%; width: 96px; }
  .hero-meta { display: none; }
  .hero { padding-top: 150px; }
}

/* Language switcher */
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; }
.lang a { padding: .35rem .7rem; border-radius: 999px; color: var(--slate); transition: background .25s, color .25s; }
.lang a:hover { color: var(--ink); }
.lang a.on { background: var(--ink); color: var(--paper); }
@media (max-width: 820px) { .lang { margin-left: auto; } }
.nav-links { margin-inline: auto; }
@media (max-width: 820px) { .nav-links { margin-inline: 0; } }

/* ---------- Theme toggle ---------- */
.theme-toggle { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .25s, transform .25s; }
.theme-toggle:hover { background: var(--sand); }
.theme-toggle i { grid-area: 1 / 1; font-size: .95rem; transition: transform .45s cubic-bezier(.3,.7,.2,1), opacity .3s; }
.theme-toggle .fa-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .fa-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .fa-sun { opacity: 1; transform: none; }
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .4s, color .4s, border-color .4s, fill .4s !important; }

@media (max-width: 820px) {
  .nav { gap: .6rem; }
  .lang a { padding: .3rem .55rem; }
  .brand { font-size: 1.1rem; }
}

/* ---------- Dark mode ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ecebe3;
  --ink-2: #d4d2c6;
  --slate: #9aa6a2;
  --sand: #212b28;
  --sand-2: #8d9994;
  --paper: #0f1513;
  --white: #151c1a;
  --line: rgba(236, 235, 227, .14);
  --line-light: rgba(236, 235, 227, .14);
  --logo-a: #e9e8df;
  --logo-b: #4b5853;
}
#vGrad stop:first-child { stop-color: var(--logo-a, #1b2421); }
#vGrad stop:last-child { stop-color: var(--logo-b, #dedbcc); }

:root[data-theme="dark"] .nav { background: rgba(15, 21, 19, .72); }
:root[data-theme="dark"] .nav.scrolled { box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .btn-light { background: rgba(33, 43, 40, .8); }
:root[data-theme="dark"] .btn-light:hover { background: var(--ink); color: var(--paper); }

/* hero */
:root[data-theme="dark"] .hero { background: linear-gradient(180deg, #0c110f 0%, var(--paper) 55%, #18211e 130%); }
:root[data-theme="dark"] .hero-bg::after { background: radial-gradient(ellipse at 50% 45%, rgba(15,21,19,.82), rgba(15,21,19,.3) 70%); }
:root[data-theme="dark"] .b2 { background: #34433e; opacity: .5; }
:root[data-theme="dark"] .b3 { background: #1c2623; }
:root[data-theme="dark"] .panel { background: linear-gradient(100deg, rgba(222,219,204,.2), rgba(222,219,204,.03)); }
:root[data-theme="dark"] .float-img { border-color: rgba(33, 43, 40, .95); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .8); }

/* sections that are dark in light mode stay dark */
:root[data-theme="dark"] .section-dark,
:root[data-theme="dark"] .footer { background: #090d0c; color: #ecebe3; }
:root[data-theme="dark"] .section-dark .h2 em { color: #9aa6a2; }
:root[data-theme="dark"] .steps .step-n,
:root[data-theme="dark"] .steps p { color: #9aa6a2; }
:root[data-theme="dark"] .steps li:hover { background: #ecebe3; color: #0f1513; }
:root[data-theme="dark"] .steps li:hover .step-n,
:root[data-theme="dark"] .steps li:hover p { color: #4b5853; }
:root[data-theme="dark"] .footer .brand.light { color: #f4f3ee; }
:root[data-theme="dark"] .footer .brand.light .brand-mark { color: #dedbcc; }
:root[data-theme="dark"] .motto { color: #dedbcc; }
:root[data-theme="dark"] .motto small, :root[data-theme="dark"] .copy { color: #8d9994; }
:root[data-theme="dark"] .socials a { border-color: rgba(236,235,227,.16); }
:root[data-theme="dark"] .socials a:hover { background: #dedbcc; color: #0f1513; }

/* services, work, metrics */
:root[data-theme="dark"] .section-sand { background: #131a18; }
:root[data-theme="dark"] .service::before { background: #1b2421; }
:root[data-theme="dark"] .work { background: linear-gradient(var(--paper), #151d1a 50%, var(--paper)); }
:root[data-theme="dark"] .r-card { background: #1b2421; box-shadow: 0 40px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(236,235,227,.1); }
:root[data-theme="dark"] .r-cap { color: #f4f3ee; }
:root[data-theme="dark"] .r-cap span { color: #cfcbb8; }
:root[data-theme="dark"] .metrics { background: #131a18; }

/* contact cards */
:root[data-theme="dark"] .c-card { background: #1b2421; color: #ecebe3; }
:root[data-theme="dark"] .c-card > i { color: #dedbcc; }
:root[data-theme="dark"] .c-go { border-color: rgba(236,235,227,.16); }
:root[data-theme="dark"] .c-card:hover { background: #ecebe3; color: #0f1513; }
:root[data-theme="dark"] .c-card:hover > i { color: #0f1513; }
:root[data-theme="dark"] .c-card:hover .c-go { background: #0f1513; color: #ecebe3; }

:root[data-theme="dark"] .about-img-row img { filter: grayscale(.5) brightness(.85); }
:root[data-theme="dark"] .about-img-row:hover img { filter: grayscale(0) brightness(1); }
:root[data-theme="dark"] .wa-float { box-shadow: 0 12px 30px -8px rgba(0,0,0,.8); }

/* Portfolio ribbon on phones: portrait screenshots */
@media (max-width: 700px) {
  .ribbon { height: 680px; }
  .r-card { border-radius: 16px; }
}

/* Portfolio ribbon: full portrait screenshots, never cropped; caption sits under the image */
.r-card img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.r-cap { position: static; padding: .9rem 1.1rem 1rem; background: #1b2421; color: #f4f3ee; }
.r-cap em { display: inline; }
@media (max-width: 700px) { .r-cap em { display: none; } .r-cap { padding: .7rem .9rem .8rem; } }
