/* ============================================
   THE FAT DUCK — shared styles
   Brand: #1A3C34 (duck green), #E8621A (duck orange), #F0F0EE (bg)
   ============================================ */

@font-face {
  font-family: "Modak";
  src: url("fonts/Modak-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("fonts/Onest-VariableFont_wght.ttf") format("truetype-variations"),
       url("fonts/Onest-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #1A3C34;
  --green-deep: #0F2823;
  --orange: #E8621A;
  --orange-soft: #F28B4F;
  --bg: #F0F0EE;
  --bg-alt: #E6E6E3;
  --ink: #111111;
  --ink-soft: #4A4A48;
  --muted: #8A8A86;
  --rule: #CFCFCB;
  --white: #FAFAF8;

  --font-display: "Modak", system-ui, sans-serif;
  --font-body: "Onest", "Inter", system-ui, sans-serif;
  --font-mono: "Onest", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Minimal mode overrides */
[data-mode="minimal"] {
  --font-display: "Onest", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (max-width: 900px) {
  /* Prevent horizontal scroll on mobile — kept off desktop because `overflow: clip`
     on an ancestor of a sticky element breaks `position: sticky`. */
  html, body { overflow-x: clip; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}


a { color: inherit; text-decoration: none; cursor: none; }
button { font: inherit; cursor: none; border: none; background: none; color: inherit; }
[role="button"], label[for], summary { cursor: none; }
/* Mobile / touch devices restore native cursors below (see @media block) */
img, svg { display: block; max-width: 100%; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Glossy "balloon 3D" effect on bubbly type.
   Because we can't render true 3D, we fake it:
   - heavy green/orange fill
   - subtle gradient + highlight on top
   - drop-shadow for weight
*/
.display--green {
  color: var(--green);
  filter: drop-shadow(0 4px 10px rgba(15, 40, 35, 0.15));
  position: relative;
}
.display--orange {
  color: var(--orange);
  filter: drop-shadow(0 4px 10px rgba(232, 98, 26, 0.2));
  position: relative;
}
.display--outline {
  -webkit-text-stroke: 2px var(--rule);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-mode="minimal"] .display--green,
[data-mode="minimal"] .display--orange {
  filter: none;
  -webkit-text-fill-color: currentColor;
  background: transparent;
  background-clip: border-box;
  -webkit-background-clip: border-box;
}
[data-mode="minimal"] .display--green { color: var(--green); }
[data-mode="minimal"] .display--orange { color: var(--orange); }

h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.02em; }

/* ============================================
   TYPE SCALE (system)
   h1 96 · h2 78 · h3 64 · h4 48 · h5 32 · h6 24
   body 18 · tips 14
   ============================================ */
h1 { font-size: clamp(56px, 8vw, 96px); line-height: 0.95; }
h2 { font-size: clamp(48px, 6.5vw, 78px); line-height: 1; }
h3 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
h4 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
h5 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
h6 { font-size: clamp(18px, 2vw, 24px); line-height: 1.2; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
p { font-size: 18px; line-height: 1.55; }
small, .tip, .tips { font-size: 14px; line-height: 1.5; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--orange);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

section { position: relative; padding: 120px 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 720px) { section { padding: 80px 0; min-height: 100vh; } }

/* Defensive mobile reset: undo any sticky-stack styles applied by JS at desktop width */
@media (max-width: 900px) {
  section.section-stack {
    position: static !important;
    min-height: auto !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
  }
}


/* ============================================
   NAVBAR
   ============================================ */

.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
  width: calc(100% - 40px);
  max-width: 1360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 14px 28px;
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(26, 60, 52, 0.08);
  border-radius: var(--radius-pill);
  transition: all 0.4s var(--ease);
}

.nav__logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s var(--ease);
}
.nav__logo:hover { transform: rotate(-8deg) scale(1.05); }
.nav__logo-img {
  width: 56px;
  height: 56px;
  display: block;
}

.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav__links a {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
  position: relative;
}
.nav__links a:hover { color: var(--green); background: rgba(26, 60, 52, 0.06); }
.nav__links a.is-active { color: var(--green); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.nav__right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  padding: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lang-switch button {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.lang-switch button.is-active {
  background: var(--green);
  color: var(--white);
}

.nav__toggle { display: none; }

/* Mobile menu drawer */
.nav__mobile {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh; /* mobile-accurate height (excludes browser chrome) */
  max-height: 100dvh;
  background: var(--green-deep);
  z-index: 350; /* above floating navbar (300) — we want this to take over */
  display: flex;
  flex-direction: column;
  padding: 20px 24px clamp(20px, 4vh, 36px);
  gap: 0;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
  overflow: hidden;
}
/* Header strip inside the open drawer — logo left, close X right */
.nav__mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  margin-bottom: clamp(16px, 4vh, 32px);
  flex-shrink: 0;
}
.nav__mobile-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nav__mobile-logo img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1);
}
.nav__mobile-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
}
/* When the drawer is open, the floating navbar disappears entirely */
body.nav-open .nav { opacity: 0; pointer-events: none; }
.nav__mobile.is-open {
  transform: translateY(0);
  visibility: visible;
}
/* Animated background swirl for personality */
.nav__mobile::before {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(232,98,26,0.18), transparent 65%);
  pointer-events: none;
}
.nav__mobile::after {
  content: "";
  position: absolute;
  top: 20%;
  left: -30%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.nav__mobile-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: clamp(8px, 2vh, 18px);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  list-style: none;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex: 1 1 auto;
  min-height: 0;
}
.nav__mobile-links li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex: 1 1 0;
  min-height: 0;
}
.nav__mobile a.nav__mobile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(6px, 1.2vh, 22px) 4px;
  font-family: var(--font-display);
  font-size: clamp(22px, 5.2vh, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color 0.2s var(--ease), padding-left 0.3s var(--ease);
  width: 100%;
}
.nav__mobile a.nav__mobile-link:hover,
.nav__mobile a.nav__mobile-link.is-active {
  color: var(--orange);
  padding-left: 12px;
}
.nav__mobile-link__arrow {
  width: 18px;
  height: 18px;
  opacity: 0.4;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  flex-shrink: 0;
}
.nav__mobile a.nav__mobile-link:hover .nav__mobile-link__arrow,
.nav__mobile a.nav__mobile-link.is-active .nav__mobile-link__arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.nav__mobile-foot {
  margin-top: auto;
  padding-top: clamp(16px, 3vh, 36px);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.6vh, 16px);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.nav__mobile-contact { padding: clamp(12px, 2vh, 18px) 24px; }
.nav__mobile-info { padding-top: clamp(8px, 1.6vh, 16px); }
.nav__mobile-lang {
  display: inline-flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}
.nav__mobile-lang button {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.nav__mobile-lang button.is-active {
  background: var(--orange);
  color: var(--white);
}
.nav__mobile-contact {
  padding: 18px 24px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__mobile-contact:hover {
  background: #D95612;
  transform: translateY(-2px);
}
.nav__mobile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav__mobile-info span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.nav__mobile-info a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s var(--ease);
}
.nav__mobile-info a:hover {
  color: var(--orange);
}
.nav__mobile-email {
  display: none;
}

@media (max-width: 920px) {
  .nav__links, .lang-switch, .nav__right > .btn { display: none; }
  .nav__toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-size: 22px;
    z-index: 101;
    position: relative;
  }
  .nav__toggle.is-open {
    background: var(--orange);
  }
}

@media (max-width: 720px) {
  .nav { top: 10px; width: calc(100% - 20px); padding: 6px 8px 6px 14px; }
  .nav__logo-img { width: 40px; height: 40px; }
  .nav__toggle { width: 38px; height: 38px; font-size: 20px; }
}

/* ============================================
   COLLAPSED NAV (on scroll)
   Navbar slides up so its top is hidden above the viewport edge,
   leaving only the bottom band peeking out like a drawer.
   Logo hides, links become green dots (orange = current page),
   CTA becomes a phone icon. Hover expands the full nav back.
   ============================================ */

/* ---------- Smooth transitions for collapse/expand ---------- */
.nav {
  transition:
    top 0.5s var(--ease-out),
    width 0.5s var(--ease-out),
    max-width 0.5s var(--ease-out),
    padding 0.5s var(--ease-out),
    height 0.5s var(--ease-out),
    border-radius 0.5s var(--ease-out),
    background 0.4s var(--ease);
}
.nav__logo,
.nav__logo-img {
  transition:
    width 0.45s var(--ease-out),
    height 0.45s var(--ease-out),
    opacity 0.35s var(--ease);
}
.nav__links a {
  transition:
    width 0.45s var(--ease-out),
    height 0.45s var(--ease-out),
    padding 0.45s var(--ease-out),
    font-size 0.3s var(--ease),
    color 0.3s var(--ease),
    background 0.3s var(--ease),
    border-radius 0.45s var(--ease-out);
}
/* Stagger the dots ↔ links wave from left to right */
.nav__links > li:nth-child(1) > a { transition-delay: 0s; }
.nav__links > li:nth-child(2) > a { transition-delay: 0.04s; }
.nav__links > li:nth-child(3) > a { transition-delay: 0.08s; }
.nav__links > li:nth-child(4) > a { transition-delay: 0.12s; }
.nav__links > li:nth-child(5) > a { transition-delay: 0.16s; }

.lang-switch,
.nav__cta {
  transition:
    width 0.45s var(--ease-out),
    height 0.45s var(--ease-out),
    padding 0.45s var(--ease-out),
    font-size 0.3s var(--ease),
    border-radius 0.45s var(--ease-out),
    opacity 0.3s var(--ease),
    background 0.3s var(--ease);
}

/* CTA label/arrow/phone crossfade — phone overlaps the button center
   so it doesn't push width while transitioning. */
.nav__cta {
  position: relative;
}
.nav__cta-label,
.nav__cta-arrow {
  transition: opacity 0.25s var(--ease);
}
.nav__cta-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease) 0.1s;
}

/* Fade nav back when user scrolls — keeps it from competing with content */
.nav.is-collapsed { opacity: 0.55; }
@media (hover: hover) {
  .nav.is-collapsed:hover,
  .nav.is-collapsed:focus-within { opacity: 1; }
}

@media (min-width: 921px) {
  .nav.is-collapsed {
    top: 0;
    width: 56%;
    max-width: 640px;
    height: auto;
    min-height: 0;
    padding: 6px 18px 8px;
    border-radius: 0 0 20px 20px;
    align-items: center;
  }
  .nav.is-collapsed .nav__logo-img {
    width: 26px;
    height: 26px;
  }
  /* Invisible hover capture zone above the nav — keeps hover when
     the nav slides DOWN to its expanded position and there's a gap
     between viewport top and the expanded nav. */
  .nav.is-collapsed::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -24px;
    height: 24px;
  }
  .nav.is-collapsed .nav__links {
    gap: 16px;
  }
  .nav.is-collapsed .nav__links a {
    width: 10px;
    height: 10px;
    padding: 0;
    font-size: 0;
    color: transparent;
    background: var(--green-deep);
    border-radius: 50%;
    overflow: hidden;
  }
  .nav.is-collapsed .nav__links a:hover {
    background: var(--green);
  }
  .nav.is-collapsed .nav__links a.is-active {
    background: var(--orange);
  }
  .nav.is-collapsed .nav__links a.is-active::after {
    display: none;
  }
  .nav.is-collapsed .lang-switch {
    width: 0;
    padding: 0;
    border: none;
    opacity: 0;
    overflow: hidden;
    margin: 0;
  }
  .nav.is-collapsed .nav__right {
    gap: 0;
  }
  .nav.is-collapsed .nav__cta {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: none;
  }
  .nav.is-collapsed .nav__cta .nav__cta-label,
  .nav.is-collapsed .nav__cta .nav__cta-arrow {
    opacity: 0;
    width: 0;
    overflow: hidden;
  }
  .nav.is-collapsed .nav__cta .nav__cta-phone {
    opacity: 1;
  }

  /* Hover: slide back down to the original floating navbar position
     (20px from top, with the side gaps). The ::before pseudo above
     catches the cursor while the bar travels down so hover persists. */
  .nav.is-collapsed:hover {
    top: 20px;
    width: calc(100% - 40px);
    max-width: 1360px;
    height: auto;
    padding: 14px 14px 14px 28px;
    border-radius: var(--radius-pill);
    align-items: center;
  }
  .nav.is-collapsed:hover .nav__logo {
    width: auto;
    opacity: 1;
    pointer-events: auto;
  }
  .nav.is-collapsed:hover .nav__logo-img {
    width: 56px;
    height: 56px;
  }
  .nav.is-collapsed:hover .nav__links {
    gap: 4px;
  }
  .nav.is-collapsed:hover .nav__links a {
    width: auto;
    height: auto;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--ink-soft);
    background: transparent;
    border-radius: var(--radius-pill);
  }
  .nav.is-collapsed:hover .nav__links a.is-active {
    color: var(--green);
    background: transparent;
  }
  .nav.is-collapsed:hover .nav__links a.is-active::after {
    display: block;
  }
  .nav.is-collapsed:hover .lang-switch {
    width: auto;
    padding: 3px;
    border: 1px solid var(--rule);
    opacity: 1;
  }
  .nav.is-collapsed:hover .nav__right {
    gap: 12px;
  }
  .nav.is-collapsed:hover .nav__cta {
    width: auto;
    height: auto;
    padding: 14px 22px;
    font-size: 18px;
    border-radius: var(--radius-pill);
    gap: 10px;
  }
  .nav.is-collapsed:hover .nav__cta .nav__cta-label,
  .nav.is-collapsed:hover .nav__cta .nav__cta-arrow {
    opacity: 1;
    width: auto;
    overflow: visible;
  }
  .nav.is-collapsed:hover .nav__cta .nav__cta-phone {
    opacity: 0;
  }
}

/* On tablet/mobile (<= 920px) the desktop links are already hidden,
   so just slide the bar up to peek out from the top edge. */
@media (max-width: 920px) {
  .nav.is-collapsed {
    top: 0;
    width: 70%;
    min-width: 240px;
    max-width: 380px;
    height: auto;
    padding: 8px 16px 10px;
    border-radius: 0 0 20px 20px;
    align-items: center;
  }
  .nav.is-collapsed .nav__logo-img {
    width: 28px;
    height: 28px;
  }
  .nav.is-collapsed .nav__toggle {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn__arrow {
  width: 18px; height: 18px;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
  overflow: visible;
}
.btn--primary:hover {
  background: #D95612;
  transform: translateY(-2px);
}
/* Rotating edge-glow micro-animation — same technique as the service badge */
@property --btn-glow-a {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}
.btn__glow {
  position: absolute;
  inset: -22px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: conic-gradient(from var(--btn-glow-a) at center,
    #000 2.5%, transparent 14%, transparent 86%, #000 97.5%);
          mask-image: conic-gradient(from var(--btn-glow-a) at center,
    #000 2.5%, transparent 14%, transparent 86%, #000 97.5%);
  animation: btn-glow-rotate 4s linear infinite;
}
.btn__glow::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px hsl(36 100% 82% / 90%),
    inset 0 0 2px 0 hsl(36 100% 82% / 60%),
    0 0 3px 0 hsl(36 100% 80% / 70%),
    0 0 8px 0 hsl(36 100% 82% / 45%),
    0 0 18px 2px hsl(40 100% 85% / 22%);
}
@keyframes btn-glow-rotate {
  to { --btn-glow-a: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .btn__glow { animation: none; opacity: 0; }
}
.btn--green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(26, 60, 52, 0.5), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn--green:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(26, 60, 52, 0.04);
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  opacity: 0.5;
  pointer-events: none;
}

.deco-curve {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
}
.deco-curve path {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
}

.year-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
}
.year-mark b { color: var(--orange); }

/* Footer-ish horizontal rule w/ circles (brandbook style) */
.page-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

/* ============================================
   DUCK MASCOT PLACEHOLDER
   Note for designer: drop the actual 3D duck render here
   ============================================ */

.duck-placeholder {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.25), transparent 40%),
    radial-gradient(circle at 70% 75%, var(--green-deep), var(--green) 60%);
  display: grid; place-items: center;
  box-shadow: 0 40px 80px -30px rgba(15, 40, 35, 0.55), inset 0 -20px 40px rgba(0,0,0,0.15);
  overflow: hidden;
}
.duck-placeholder::before {
  /* orange highlight orb */
  content: "";
  position: absolute;
  top: 8%; right: 12%;
  width: 22%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFB07A, var(--orange) 55%, #B94812);
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}
.duck-placeholder::after {
  content: "drop 3D duck render here";
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.55);
  padding: 6px 12px;
  border: 1px dashed rgba(250, 250, 248, 0.3);
  border-radius: 4px;
  white-space: nowrap;
}

/* Smaller duck mark for accents */
.duck-mini {
  width: 72px; aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.28), transparent 45%),
    radial-gradient(circle at 70% 75%, var(--green-deep), var(--green) 60%);
  position: relative;
  box-shadow: 0 16px 30px -12px rgba(15, 40, 35, 0.5);
}
.duck-mini::after {
  content: "";
  position: absolute;
  top: 12%; right: 15%;
  width: 30%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFB07A, var(--orange) 55%);
}

/* ============================================
   CUSTOM CURSOR + BRAND PIXEL TRAIL
   Native cursor is hidden (kept for text fields). A small orange dot
   follows the mouse with a slight lerp; on hover over a clickable the
   dot transforms into an outlined "target" ring.
   ============================================ */

/* Keep the I-beam over text inputs so the user can see where they're typing */
input, textarea, [contenteditable="true"] { cursor: text; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.5),
    0 4px 14px rgba(232, 98, 26, 0.45);
  transition:
    width 0.25s var(--ease),
    height 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    opacity 0.2s var(--ease);
  will-change: transform;
}
.cursor-dot.is-visible { opacity: 1; }

/* Hover over a link/button: dot becomes a hollow target ring */
.cursor-dot.is-hover {
  width: 40px;
  height: 40px;
  background: transparent;
  border-color: var(--orange);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.6),
    0 0 0 5px rgba(232, 98, 26, 0.18),
    0 6px 20px rgba(232, 98, 26, 0.3);
}

/* Over a text field, hide the custom dot so the native I-beam reads cleanly */
.cursor-dot.is-text { opacity: 0; }

/* Click squish for tactile feedback */
.cursor-dot.is-press {
  width: 8px;
  height: 8px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.6),
    0 0 0 8px rgba(232, 98, 26, 0.18),
    0 4px 14px rgba(232, 98, 26, 0.45);
}
.cursor-dot.is-hover.is-press {
  width: 32px;
  height: 32px;
}

.pixel-trail-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

/* Restore native cursor on touch / small screens */
@media (hover: none), (max-width: 860px) {
  body { cursor: auto; }
  a { cursor: auto; }
  button, [role="button"], label[for], summary { cursor: pointer; }
  .cursor-dot,
  .pixel-trail-layer { display: none; }
}
.pixel-trail__dot {
  position: fixed;
  transform: translate(-50%, -50%);
  border-radius: 1px;
  opacity: 0.9;
  animation: pixel-fade var(--dur, 700ms) linear forwards;
  will-change: transform, opacity;
}
@keyframes pixel-fade {
  0% {
    transform: translate(-50%, -50%) translate(0, 0);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--dx, 0), var(--dy, 0));
    opacity: 0;
  }
}

@keyframes duck-wobble {
  0%, 100% { transform: rotate(0deg); }
  20%      { transform: rotate(-1.2deg); }
  60%      { transform: rotate(1.2deg); }
  80%      { transform: rotate(-0.6deg); }
}
.is-duck-hover {
  animation: duck-wobble 0.55s ease-in-out infinite;
  transform-origin: center center;
}
/* Cards drive their own 3D tilt on hover — keep the wiggle off them */
.service-card.is-duck-hover,
.blog-card.is-duck-hover,
.service-badge.is-duck-hover,
[data-tilt].is-duck-hover {
  animation: none;
}

@media (max-width: 860px), (hover: none) {
  .duck-3d-layer { display: none; }
  .is-duck-hover { animation: none; }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--green-deep);
  color: var(--white);
  padding: 100px 0 40px;
  position: relative;
  z-index: 200; /* above any sticky sections inside main */
  overflow: hidden;
  transform: translateY(110%);
  transition: transform 0.22s cubic-bezier(0.3, 0, 0.4, 1);
}
.footer.is-revealed {
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@media (max-width: 900px) {
  .footer { transform: none !important; transition: none !important; }
}
.footer__giant {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FF8A4A 0%, var(--orange) 50%, #B94812 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 30px rgba(232, 98, 26, 0.25));
  text-align: center;
  margin-bottom: 60px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin-bottom: 18px;
}
.footer__col a, .footer__col p {
  display: block;
  color: rgba(250, 250, 248, 0.75);
  font-size: 14px;
  line-height: 1.9;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: var(--orange); }

.footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(250, 250, 248, 0.55);
  letter-spacing: 0.04em;
}
.footer__bottom a { color: rgba(250, 250, 248, 0.55); }
.footer__bottom a:hover { color: var(--orange); }
.footer__bottom-links { display: flex; gap: 20px; }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie {
  position: fixed;
  bottom: 20px; left: 20px;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: 0 24px 60px -20px rgba(15, 40, 35, 0.25);
  z-index: 90;
  transform: translateY(150%);
  transition: transform 0.6s var(--ease);
}
.cookie.is-visible { transform: translateY(0); }
.cookie h5 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: var(--green);
  margin-bottom: 8px;
}
.cookie p { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.cookie__actions { display: flex; gap: 8px; }
.cookie__btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.cookie__btn--primary { background: var(--green); color: var(--white); }
.cookie__btn--ghost { border: 1px solid var(--rule); color: var(--ink-soft); }

/* ============================================
   TWEAKS PANEL
   ============================================ */

.tweaks {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 260px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 24px 60px -20px rgba(15, 40, 35, 0.3);
  z-index: 95;
  display: none;
}
.tweaks.is-visible { display: block; }
.tweaks h5 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--green);
  margin-bottom: 4px;
}
.tweaks p { font-size: 11px; color: var(--muted); margin-bottom: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.tweaks__row { display: flex; gap: 6px; }
.tweaks__row button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.tweaks__row button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

[data-reveal] {
  opacity: 1;
  transform: none;
}
[data-reveal="fade"] { transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.4s; }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.marquee__track {
  display: inline-flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 140px);
  line-height: 1;
  align-items: center;
}
.marquee__track span {
  background: linear-gradient(180deg, #2d5448 0%, var(--green) 40%, var(--green-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.marquee__track span:nth-child(even) {
  background: linear-gradient(180deg, #FF8A4A 0%, var(--orange) 45%, #B94812 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.marquee__dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* Article pages are RO-only blog posts — hide language switch so users don't
   end up with EN nav over RO body content. */
body[data-page="insights"] .lang-switch,
body[data-page="insights"] .nav__mobile-lang {
  display: none;
}
