/* ==========================================================================
   VELLUM STUDIO — Design tokens
   Palette: deep ink-emerald ground, champagne gold accent, warm greige
   Type: Fraunces (display serif) + Manrope (body) + IBM Plex Mono (data)
   ========================================================================== */

:root {
  /* --- Color: dark theme (default) --- */
  --ink:            #0E1210;
  --ink-2:          #131A17;
  --emerald:        #14342A;
  --emerald-soft:   #1C4438;
  --gold:           #C9A768;
  --gold-soft:      #E4CFA0;
  --sage:           #9CAF97;
  --paper:          #EDE7DA;
  --paper-dim:      #C9C3B4;

  --bg:             var(--ink);
  --bg-elevated:    var(--ink-2);
  --surface:        rgba(237, 231, 218, 0.04);
  --surface-strong: rgba(237, 231, 218, 0.07);
  --border:         rgba(237, 231, 218, 0.12);
  --text:           var(--paper);
  --text-dim:       var(--paper-dim);
  --accent:         var(--gold);
  --accent-2:       var(--sage);

  --glass-bg:       rgba(19, 26, 23, 0.55);
  --glass-border:   rgba(237, 231, 218, 0.10);

  /* --- Type --- */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --fs-hero:  clamp(2.6rem, 6.4vw, 6.4rem);
  --fs-h2:    clamp(2rem, 4vw, 3.4rem);
  --fs-h3:    clamp(1.25rem, 2vw, 1.6rem);
  --fs-body:  1rem;
  --fs-small: 0.85rem;

  /* --- Layout --- */
  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-s: .3s;
  --dur-m: .6s;
  --dur-l: 1s;

  --shadow-soft: 0 20px 60px -20px rgba(0,0,0,0.45);
  --shadow-strong: 0 30px 80px -20px rgba(0,0,0,0.6);
}

[data-theme="light"] {
  --bg:             var(--paper);
  --bg-elevated:    #F7F4EC;
  --surface:        rgba(14, 18, 16, 0.035);
  --surface-strong: rgba(14, 18, 16, 0.06);
  --border:         rgba(14, 18, 16, 0.10);
  --text:           #171D1A;
  --text-dim:       #5B6560;
  --accent:         #A9803F;
  --accent-2:       #4C6E4A;

  --glass-bg:       rgba(247, 244, 236, 0.65);
  --glass-border:   rgba(14, 18, 16, 0.08);

  --shadow-soft: 0 20px 60px -25px rgba(20,20,15,0.25);
  --shadow-strong: 0 30px 80px -20px rgba(20,20,15,0.35);
}

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

body, h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--dur-m) var(--ease), color var(--dur-m) var(--ease);
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; }
em { font-style: italic; color: var(--accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; padding: clamp(4rem, 9vw, 8rem) 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2 { margin-top: 0.4rem; }

/* Hide default cursor on devices that support fine pointer + our custom cursor */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-soft);
  animation: pulseMark 1.6s ease-in-out infinite;
}
@keyframes pulseMark { 0%,100% { opacity: .4; transform: scale(.96);} 50% { opacity: 1; transform: scale(1);} }
.loader__bar { width: 180px; height: 2px; background: rgba(237,231,218,0.15); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0%; background: var(--gold); animation: loadBar 1.6s var(--ease) forwards; }
@keyframes loadBar { to { width: 100%; } }

/* ==========================================================================
   Custom cursor
   ========================================================================== */
.cursor { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.cursor.is-active { opacity: 1; }
.cursor__ring {
  position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid var(--accent); border-radius: 50%;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.cursor__dot { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--accent); border-radius: 50%; }
.cursor.cursor--pointer .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(201,167,104,0.12); }
.cursor.cursor--text .cursor__ring { width: 4px; height: 26px; margin: -13px 0 0 -2px; border-radius: 2px; background: var(--accent); border-color: transparent; }
.cursor.cursor--view .cursor__ring {
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  background: var(--accent); border-color: transparent;
}
.cursor.cursor--view .cursor__dot { opacity: 0; }
.cursor--view::after {
  content: "View"; position: absolute; top: -8px; left: -18px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .05em;
  color: var(--ink); text-transform: uppercase;
}

/* ==========================================================================
   Scroll progress bar
   ========================================================================== */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  z-index: 9997; transition: width .1s linear;
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 1.1rem 0;
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0.65rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease);
}
.nav__logo { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; padding-left: .5rem;}
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: 0.9rem; font-weight: 500; opacity: .85; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__links a:not(.nav__cta):hover { opacity: 1; }
.nav__cta {
  padding: 0.6rem 1.3rem; border-radius: 100px;
  background: var(--accent); color: var(--ink) !important; font-weight: 600;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(201,167,104,0.6); }

.nav__right { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.theme-toggle__icon {
  width: 16px; height: 16px; border-radius: 50%;
  box-shadow: inset -5px -2px 0 0 var(--accent);
  transition: box-shadow .3s ease, transform .4s var(--ease);
}
[data-theme="light"] .theme-toggle__icon { box-shadow: inset 0 0 0 8px var(--accent); transform: rotate(180deg); }

.nav__burger { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav__burger span { width: 16px; height: 1.5px; background: var(--text); transition: transform .3s ease, opacity .3s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 0; margin: 0.5rem 1rem 0;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px;
  backdrop-filter: blur(16px); overflow: hidden;
  max-height: 0; opacity: 0; transition: max-height .4s var(--ease), opacity .3s ease;
}
.nav__mobile.is-open { max-height: 500px; opacity: 1; }
.nav__mobile a { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); font-weight: 500; }
.nav__mobile a:last-child { border-bottom: none; color: var(--accent); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 1.9rem; border-radius: 100px; font-weight: 600; font-size: 0.92rem;
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s ease, color .3s ease;
}
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { box-shadow: 0 16px 40px -14px rgba(201,167,104,0.65); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline { border: 1px solid var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--ink); }
.btn span { position: relative; z-index: 1; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; padding-top: 6rem; overflow: hidden;
  text-align: center;
}
.hero__mesh {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(45% 55% at 18% 20%, rgba(28,68,56,0.85), transparent 60%),
    radial-gradient(50% 60% at 85% 15%, rgba(201,167,104,0.28), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(156,175,151,0.18), transparent 60%),
    var(--ink);
  background-size: 140% 140%;
  animation: meshDrift 22s ease-in-out infinite alternate;
}
[data-theme="light"] .hero__mesh {
  background:
    radial-gradient(45% 55% at 18% 20%, rgba(156,175,151,0.35), transparent 60%),
    radial-gradient(50% 60% at 85% 15%, rgba(169,128,63,0.22), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(201,167,104,0.16), transparent 60%),
    var(--paper);
  background-size: 140% 140%;
}
@keyframes meshDrift { 0% { background-position: 0% 0%; } 100% { background-position: 30% 20%; } }
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner { max-width: 900px; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.hero__headline { font-size: var(--fs-hero); font-weight: 400; }
.hero__headline .line { display: block; overflow: hidden; }
.reveal-mask { display: inline-block; transform: translateY(110%); }

.hero__sub { max-width: 520px; margin: 1.75rem auto 0; color: var(--text-dim); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero__cta { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; justify-content: center; }

.hero__clients { margin-top: 4.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.hero__clients span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); }
.hero__clients ul { display: flex; gap: 2.2rem; flex-wrap: wrap; justify-content: center; }
.hero__clients li { font-family: var(--font-display); font-style: italic; opacity: 0.55; font-size: 1rem; }

.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-indicator span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); }
.scroll-indicator__line { width: 1px; height: 46px; background: var(--border); overflow: hidden; }
.scroll-indicator__line span { display: block; width: 100%; height: 40%; background: var(--accent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ==========================================================================
   Glass / tilt cards common
   ========================================================================== */
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* ==========================================================================
   About
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-soft); }
.about__media img { aspect-ratio: 4/5; object-fit: cover; }
.about__media-badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem; padding: 0.9rem 1.2rem; border-radius: var(--radius-m);
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; color: var(--paper);
}
.about__media-badge strong { font-family: var(--font-display); font-size: 1.4rem; }
.about__media-badge span { font-size: 0.72rem; color: var(--paper-dim); }

.about__copy h2 { margin-bottom: 1.25rem; }
.about__copy p { color: var(--text-dim); margin-bottom: 1rem; max-width: 46ch; }
.about__facts { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; flex-wrap: wrap; }
.fact { display: flex; flex-direction: column; }
.fact__num { font-family: var(--font-display); font-size: 2.4rem; color: var(--accent); }
.fact__label { font-size: 0.78rem; color: var(--text-dim); max-width: 12ch; }

/* ==========================================================================
   Services
   ========================================================================== */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card {
  padding: 2rem 1.6rem; border-radius: var(--radius-m); background: var(--surface);
  border: 1px solid var(--border); transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { background: var(--surface-strong); border-color: var(--accent); box-shadow: var(--shadow-soft); }
.service-card__index { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.service-card h3 { margin: 1.4rem 0 0.7rem; }
.service-card p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.2rem; }
.service-card ul li { font-size: 0.85rem; padding: 0.4rem 0; border-top: 1px solid var(--border); color: var(--text-dim); }

/* ==========================================================================
   Work / Portfolio
   ========================================================================== */
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.project-card {
  position: relative; display: block; border-radius: var(--radius-m); overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.project-card--tall { grid-row: span 2; }
.project-card__img { position: relative; height: 100%; aspect-ratio: 1/1; overflow: hidden; }
.project-card--tall .project-card__img { aspect-ratio: 4/5.2; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover .project-card__img img { transform: scale(1.08); }
.project-card__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,10,8,0.88) 100%);
}
.project-card__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; color: var(--paper); }
.project-card__tag {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-soft); display: block; margin-bottom: 0.4rem;
}
.project-card__meta h3 { color: var(--paper); }
.project-card__meta p { color: var(--paper-dim); font-size: 0.85rem; margin-top: 0.3rem; }
.work__more { text-align: center; margin-top: 3rem; }

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
.why__copy h2 { margin: 0.6rem 0 1rem; }
.why__copy p { color: var(--text-dim); max-width: 40ch; margin-bottom: 2rem; }
.why__list { display: flex; flex-direction: column; gap: 1.75rem; }
.why-item { display: grid; grid-template-columns: 56px 1fr; gap: 1.4rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.why-item:last-child { border-bottom: none; }
.why-item__icon { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.why-item__icon svg { width: 26px; height: 26px; }
.why-item h3 { margin-bottom: 0.4rem; }
.why-item p { color: var(--text-dim); font-size: 0.92rem; max-width: 48ch; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { background: var(--emerald); position: relative; }
[data-theme="light"] .stats { background: #1D3A30; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 0%, rgba(201,167,104,0.15), transparent 70%); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat__num { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--gold-soft); }
.stat__label { font-size: 0.82rem; color: var(--paper-dim); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform .6s var(--ease); }
.testimonial-card {
  min-width: 100%; padding: 2.8rem clamp(1.5rem, 6vw, 5rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  display: flex; flex-direction: column; gap: 2rem;
}
.testimonial-card blockquote {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 400; line-height: 1.35;
  max-width: 780px;
}
.testimonial-card figcaption { display: flex; align-items: center; gap: 1rem; }
.testimonial-card figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-card figcaption strong { display: block; font-size: 0.95rem; }
.testimonial-card figcaption span { font-size: 0.8rem; color: var(--text-dim); }
.testimonial-dots { display: flex; gap: 0.6rem; justify-content: center; margin-top: 2rem; }
.testimonial-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background .3s ease, transform .3s ease; }
.testimonial-dots button.is-active { background: var(--accent); transform: scale(1.3); }

/* ==========================================================================
   Process timeline
   ========================================================================== */
.timeline { position: relative; padding-left: clamp(1rem, 4vw, 2rem); }
.timeline__line { position: absolute; left: clamp(1rem, 4vw, 2rem); top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--border); }
.timeline__line span { display: block; width: 100%; height: 0%; background: var(--accent); transition: height .2s linear; }
.timeline-item { position: relative; padding: 0 0 3rem 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item__num {
  position: absolute; left: -0.55rem; top: 0; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink);
  background: var(--accent); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.timeline-item__body h3 { margin-bottom: 0.5rem; }
.timeline-item__body p { color: var(--text-dim); max-width: 56ch; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0; text-align: left; font-family: var(--font-display); font-size: 1.05rem;
}
.accordion-item__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; margin-left: 1rem; }
.accordion-item__icon::before, .accordion-item__icon::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .35s var(--ease);
}
.accordion-item__icon::before { width: 100%; height: 1.5px; top: 50%; left: 0; transform: translateY(-50%); }
.accordion-item__icon::after { width: 1.5px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.accordion-item__head[aria-expanded="true"] .accordion-item__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-item__body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.accordion-item__body p { color: var(--text-dim); padding-bottom: 1.4rem; max-width: 56ch; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
.contact__copy h2 { margin: 0.6rem 0 1rem; }
.contact__copy > p { color: var(--text-dim); max-width: 40ch; margin-bottom: 2.5rem; }
.contact__details { display: flex; flex-direction: column; gap: 1.4rem; }
.contact__details li { display: flex; flex-direction: column; gap: 0.2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.contact__details strong { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-family: var(--font-mono); }
.contact__details a:hover { color: var(--accent); }

.contact__form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { position: relative; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 1rem 0.2rem; background: transparent; border: none; border-bottom: 1px solid var(--border);
  outline: none; transition: border-color .3s ease;
  appearance: none; -webkit-appearance: none; border-radius: 0;
}
.form-field select { color: var(--text); }
.form-field select option { background: var(--bg-elevated); color: var(--text); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--accent); }
.form-field label {
  position: absolute; left: 0.2rem; top: 1rem; color: var(--text-dim); pointer-events: none;
  transition: transform .25s var(--ease), font-size .25s var(--ease), color .25s ease;
}
.form-field input:focus + label, .form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label, .form-field textarea:not(:placeholder-shown) + label,
.form-field select:focus ~ .form-field__label-select, .form-field select.has-value ~ .form-field__label-select {
  transform: translateY(-1.4rem); font-size: 0.72rem; color: var(--accent);
}
.form-field__label-select { position: absolute; left: 0.2rem; top: 1rem; color: var(--text-dim); pointer-events: none; transition: transform .25s var(--ease), font-size .25s var(--ease), color .25s ease; }
.contact__form .btn { align-self: flex-start; margin-top: 0.5rem; }
.form-status { font-size: 0.85rem; color: var(--accent-2); min-height: 1.2em; }

/* ==========================================================================
   Map
   ========================================================================== */
.map { padding: 0; }
.map__frame { position: relative; height: 480px; width: 100%; filter: saturate(0.4) contrast(1.05); }
[data-theme="light"] .map__frame { filter: saturate(0.6) contrast(1.02); }
.map__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__card {
  position: absolute; bottom: 1.5rem; left: 1.5rem; padding: 1.4rem 1.6rem; border-radius: var(--radius-m);
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 0.2rem; max-width: 260px;
}
.map__card strong { font-family: var(--font-display); font-size: 1.1rem; }
.map__card span { font-size: 0.82rem; color: var(--text-dim); }
.map__link { margin-top: 0.6rem; font-size: 0.82rem; color: var(--accent); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--bg-elevated); padding-top: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--border); }
.footer__top { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand p { color: var(--text-dim); font-size: 0.88rem; margin-top: 1rem; max-width: 30ch; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.footer__col a { display: block; padding: 0.35rem 0; color: var(--text-dim); font-size: 0.9rem; transition: color .3s ease, transform .3s ease; }
.footer__col a:hover { color: var(--accent); transform: translateX(3px); }
.footer__newsletter p { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; }
.footer__form { display: flex; border-bottom: 1px solid var(--border); }
.footer__form input { flex: 1; background: transparent; border: none; padding: 0.6rem 0; outline: none; }
.footer__form button { color: var(--accent); font-size: 1.1rem; }
.footer__bottom {
  display: flex; justify-content: space-between; padding: 1.5rem 0; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-dim); flex-wrap: wrap; gap: 0.6rem;
}

/* ==========================================================================
   Floating actions
   ========================================================================== */
.floating-actions { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 800; display: flex; flex-direction: column; gap: 0.8rem; align-items: center; }
.fab {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft); transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .3s ease;
}
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab--whatsapp { background: #25D366; color: #06210F; }
.fab--call { background: var(--accent); color: var(--ink); }
.fab--top {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  opacity: 0; visibility: hidden; transform: translateY(10px);
}
.fab--top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fab--top svg { width: 18px; height: 18px; }

/* ==========================================================================
   Reveal animation base states (GSAP toggles .is-visible)
   ========================================================================== */
.reveal-up { opacity: 0; transform: translateY(28px); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: flex; }

  .about__grid, .why__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }

  .cursor { display: none; }
  body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: auto; }
}

@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .project-card--tall { grid-row: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__clients ul { gap: 1.2rem; }
  .map__card { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; }
  section { padding: 3.5rem 0; }
}
