/* =========================================================
   CoffeeNCoders — main.css
   Global: tokens, base, typography, buttons, layout blocks,
   header, footer, floating CTA, reveal. Loaded on every page.
   ========================================================= */

:root {
  --espresso: #1b1411;
  --espresso-2: #241a15;
  --espresso-3: #2f231c;
  --cream: #f7f2eb;
  --paper: #fcfaf7;
  --ink: #1d1712;
  --muted: #7b6d62;
  --muted-dark: #b3a497;
  --line: rgba(29, 23, 18, .1);
  --line-dark: rgba(255, 236, 220, .1);
  --copper: #e2753a;
  --amber: #f4a85a;
  --green: #5fd39a;
  --wa: #1fa855;                                          /* WhatsApp green, a deeper tone than the neon #25d366 (the user's pick) */
  --wa-grad: linear-gradient(135deg, #1fa855, #128c4a);   /* every WhatsApp button / icon box */

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter", "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* Selected text: a soft see-through amber, the colour of the coffee-ring stains in the hero (stronger, so it shows);
   the text keeps its own colour, so it reads on the dark and the light sections */
::selection { background: rgba(244, 168, 90, .26); }
/* Inline icons from icon() (functions.php) sit on the text line next to the words they follow */
svg[data-icon] { flex: none; vertical-align: -.15em; }
/* Animations only play while their section is on screen (main.js marks the others), so the page has less to draw */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--font); letter-spacing: -.01em;
  white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--light { background: var(--cream); color: var(--ink); box-shadow: 0 8px 30px -10px rgba(244, 168, 90, .5); }
.btn--light:hover { background: #fff; }
.btn--ghost { color: var(--cream); border-color: rgba(255, 236, 220, .22); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: rgba(255, 236, 220, .5); background: rgba(255, 255, 255, .07); }
.btn--copper { background: var(--copper); color: #fff; }
.btn--dark { background: var(--espresso); color: var(--cream); box-shadow: 0 12px 30px -12px rgba(27, 20, 17, .6); }
.btn--dark:hover { background: #000; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-block: 18px;
  transition: padding .5s var(--ease);
}
.header__inner {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Dark box that fades in around the header on scroll: it keeps the content width (no shrinking), so nothing moves */
.header__inner::before {
  content: ""; position: absolute; inset: -9px max(4px, calc(var(--gutter) - 18px)); z-index: -1;
  border-radius: 12px;
  background: rgba(31, 23, 19, .94);
  border: 1px solid var(--line-dark);
  box-shadow: 0 24px 50px -20px rgba(27, 20, 17, .55), 0 2px 6px rgba(27, 20, 17, .2);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  opacity: 0; transform: scale(.98);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.header.is-scrolled .header__inner::before { opacity: 1; transform: none; }
.logo img { width: 112px; height: auto; filter: invert(1); }
.logo img.logo__custom { width: auto; max-width: 160px; max-height: 36px; filter: none; } /* uploaded logo is shown as-is */
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { font-size: 14.5px; font-weight: 500; color: rgba(247, 242, 235, .86); transition: color .2s; }
@media (min-width: 861px) {
  /* a bigger hit area around every menu item (the gap shrinks by the same amount, so nothing moves): the pointer and the
     copper hover start at the same spot */
  .nav { gap: 12px; }
  .nav > a:not(.btn), .nav .nav__drop-btn { padding: 10px 6px; }
}
.nav a:not(.btn):hover { color: var(--amber); }
.nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__cta { border-radius: 8px; }
/* WhatsApp: a quiet square like the menu button, WhatsApp green on hover, with a small label under it */
.header__wa {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: var(--cream);
  border: 1px solid var(--line-dark); background: rgba(31, 168, 85, .2); transition: color .25s, background .25s, border-color .25s;   /* a light wash of the WhatsApp green (--wa); hover fills it */
}
.header__wa svg { width: 19px; height: 19px; }
.header__wa:hover, .header__wa:focus-visible { color: #fff; background: var(--wa-grad); border-color: var(--wa); }
/* "typing…" pill in the corner, the same one as the contact page badge */
.header__wa-typing { position: absolute; right: -7px; bottom: -6px; display: flex; align-items: center; gap: 2px; padding: 3px 4px; border-radius: 999px; background: var(--cream); border: 2px solid var(--espresso); }
.header__wa-typing i { width: 3px; height: 3px; border-radius: 50%; background: var(--copper); animation: hd-type 1.2s ease-in-out infinite; }
.header__wa-typing i:nth-child(2) { animation-delay: .15s; }
.header__wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hd-type { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-2px); opacity: 1; } }
.header__wa:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.header__wa-tip {
  position: absolute; top: calc(100% + 10px); left: 50%; padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  font-size: 12.5px; font-weight: 500; color: var(--espresso); background: var(--cream);
  opacity: 0; transform: translate(-50%, -4px); transition: opacity .2s, transform .2s;
}
.header__wa:hover .header__wa-tip, .header__wa:focus-visible .header__wa-tip { opacity: 1; transform: translate(-50%, 0); }
.menu-toggle {
  display: none; position: relative;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .05); cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--cream);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 22px; }
.menu-open .menu-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* The menu link of the page you are on */
.nav a[aria-current]:not(.btn), .nav__drop[aria-current] > .nav__drop-btn { color: var(--amber); }

/* ---------- Section shells ---------- */
.dark { background: var(--espresso); color: var(--cream); position: relative; }
.light { background: var(--paper); position: relative; }
.section { padding-block: clamp(80px, 11vw, 140px); }

/* ---------- Services dropdown ---------- */
.nav__drop { position: relative; display: flex; }   /* flex: no extra line-box space around the button, so the whole box is the button */
.nav__drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 14.5px var(--font); color: rgba(247, 242, 235, .86);
  transition: color .2s;
}
.nav__drop-btn svg { width: 10px; height: 10px; transition: transform .3s var(--ease); }
.nav__drop-btn:hover, .nav__drop.is-open .nav__drop-btn { color: var(--amber); }
.nav__drop.is-open .nav__drop-btn svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: 580px; padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  border-radius: 16px; background: rgba(31, 23, 19, .98);
  border: 1px solid var(--line-dark);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); pointer-events: none;   /* a menu that is fading out can't catch the pointer */
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; } /* hover bridge */

.nav__drop.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
@media (hover: hover) and (min-width: 861px) {
  .nav__drop:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
  .nav__drop:hover .nav__drop-btn { color: var(--amber); }
  .nav__drop:hover .nav__drop-btn svg { transform: rotate(180deg); }
}
.nav .dropdown__link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; color: var(--cream);
  transition: background .2s;
}
.nav .dropdown__link:hover { background: rgba(255, 255, 255, .06); color: var(--cream); }
/* the service / tool page you are on: amber name, copper-edged icon, a soft copper wash */
.nav .dropdown__link[aria-current] { color: var(--cream); background: rgba(226, 117, 58, .12); box-shadow: inset 0 0 0 1px rgba(226, 117, 58, .28); }
.nav .dropdown__link[aria-current] strong { color: var(--amber); }
.nav .dropdown__link[aria-current] .dropdown__ico { background: rgba(226, 117, 58, .16); border-color: rgba(226, 117, 58, .55); }
.dropdown__ico {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark);
}
.dropdown__ico img { width: 18px; height: 18px; border-radius: 4px; }
.dropdown__link strong { display: block; font-size: 14px; font-weight: 600; }
.dropdown__link small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted-dark); }
.nav .dropdown__foot {
  grid-column: 1 / -1; margin-top: 4px; padding: 11px 12px;
  border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-dark);
}
.nav .dropdown__foot span { color: var(--amber); }
.nav .dropdown__foot:hover { color: var(--cream); }

/* Tools: a wide menu under the whole header box, one column per category (--cols) with a heading */
.nav__drop--mega { position: static; }
.dropdown--mega {
  top: calc(100% + 14px); width: calc(100% - var(--gutter) * 2);   /* lines up with the logo and the button */
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 4px 8px; padding: 14px;
}
/* hover bridges: one only under the Tools button, one only over the gap above the menu, so they never cover the other menu links */
.dropdown--mega::before { top: -16px; height: 16px; }
.nav__drop--mega .nav__drop-btn { position: relative; }
@media (min-width: 861px) { .nav__drop--mega .nav__drop-btn::after { content: ""; position: absolute; left: -10px; right: -10px; top: 100%; height: 26px; } }
.dropdown__group { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dropdown__head { padding: 6px 12px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.dropdown__ico svg { width: 18px; height: 18px; color: var(--cream); }   /* the Tools icons: light, like the Services logos */
.dropdown__soon {
  margin-left: 4px; padding: 1px 6px; border-radius: 999px; vertical-align: 1px;
  font-size: 10px; font-style: normal; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted-dark); background: rgba(255, 255, 255, .07);
}

/* Logo mark (flame only) */
.mark { display: inline-block; width: 32px; height: 40px; overflow: hidden; }
.mark img { height: 40px; width: auto; max-width: none; }

/* Floating CTA */
.float-cta {
  position: fixed; left: 50%; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px 12px 18px; border-radius: 10px; white-space: nowrap;
  background: var(--espresso-3); color: var(--cream);
  border: 1px solid rgba(255, 236, 220, .14);
  font-size: 15px; font-weight: 500;
  box-shadow: 0 20px 40px -14px rgba(27, 20, 17, .6);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), background .25s;
}
.float-cta.is-visible { transform: translate(-50%, 0); opacity: 1; }
.float-cta:hover { background: #3a2a21; }
.float-cta .mark { width: 18px; height: 22px; }
.float-cta .mark img { height: 22px; filter: invert(1); }

/* Coffee + code background: coffee ring stains, beans and a mug whose steam is code */
.coffeebg {
  --half: calc(var(--container) / 2);   /* pieces sit just outside the content edge, and stay on screen on narrower windows */
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask: linear-gradient(#000 60%, transparent 85%);
  mask: linear-gradient(#000 60%, transparent 85%);
}
.cf-defs { position: absolute; width: 0; height: 0; }
.cf-ring { position: absolute; fill: none; stroke: rgba(244, 168, 90, .08); }
.cf-ring--a { width: 300px; left: min(calc(50% + var(--half) - 120px), calc(100% - 210px)); top: 64px; transform: rotate(-18deg); }
.cf-ring--b { width: 220px; left: max(calc(50% - var(--half) - 270px), -150px); top: 500px; transform: rotate(40deg); }
.cf-bean { position: absolute; width: 18px; height: 24px; fill: rgba(226, 117, 58, .16); stroke: var(--espresso); stroke-width: 1.6; }
.cf-bean--1 { left: min(calc(50% + var(--half) + 60px), calc(100% - 44px)); top: 330px; transform: rotate(35deg); }
.cf-bean--2 { left: max(calc(50% - var(--half) - 110px), 14px); top: 300px; transform: rotate(-25deg); width: 14px; height: 19px; }
.cf-bean--3 { left: max(calc(50% - var(--half) - 170px), 20px); top: 760px; transform: rotate(70deg); }
.cf-bean--4 { left: min(calc(50% + var(--half) - 120px), calc(100% - 220px)); top: 30px; transform: rotate(-60deg); width: 14px; height: 19px; }
.cf-cup { position: absolute; width: 140px; left: calc(50% + var(--half) - 20px); top: 575px; filter: drop-shadow(0 0 30px rgba(226, 117, 58, .12)); }
.cf-cup svg { display: block; width: 100%; overflow: visible; }
.cf-cup .mark { position: absolute; left: 60px; top: 66px; width: 20px; height: 26px; opacity: .75; }
.cf-cup .mark img { height: 26px; filter: invert(1) drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.cf-steam { position: absolute; left: 34px; bottom: 82%; width: 80px; height: 240px; }
.cf-steam i {
  position: absolute; bottom: 0; left: var(--x); opacity: 0;
  font: 600 14px ui-monospace, Consolas, monospace; font-style: normal; color: rgba(244, 168, 90, .5);
  animation: steam 7s ease-in infinite; animation-delay: var(--d);
}
.cf-steam i:nth-child(1) { --x: 18px; --d: 0s; --dx: -14px; }
.cf-steam i:nth-child(2) { --x: 40px; --d: 1.2s; --dx: 12px; }
.cf-steam i:nth-child(3) { --x: 28px; --d: 2.4s; --dx: -6px; }
.cf-steam i:nth-child(4) { --x: 50px; --d: 3.6s; --dx: 16px; }
.cf-steam i:nth-child(5) { --x: 10px; --d: 4.8s; --dx: -10px; }
.cf-steam i:nth-child(6) { --x: 34px; --d: 6s; --dx: 8px; }
@keyframes steam {
  0% { opacity: 0; transform: translate(0, 0) scale(.9); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), -230px) scale(1.1); }
}
@media (max-width: 1599px) { .cf-cup { display: none; } }   /* the mug needs the space beside the content (--container) */
@media (max-width: 960px) {
  .cf-ring--b, .cf-bean--2, .cf-bean--3 { display: none; }
  .cf-ring--a { width: 220px; left: auto; right: -70px; top: 60px; }
  .cf-bean--1 { left: auto; right: 40px; top: 300px; }
  .cf-bean--4 { left: auto; right: 150px; top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-steam { display: none; }
}

/* ---------- Page loader (toggle: Dashboard → Site settings) ---------- */
/* Fades in only after 250ms, so fast pages never show it; auto-hides after 8s even without JS */
.site-loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; justify-items: center;
  background: radial-gradient(420px 320px at 50% 52%, rgba(226, 117, 58, .18), transparent 70%), var(--espresso);
  opacity: 0; pointer-events: none;
  animation: loader-in .3s ease .25s forwards, loader-out .5s ease 8s forwards;
}
.site-loader.is-test { opacity: 1; animation: loader-out .5s ease 6s forwards; } /* test mode: visible at once */
.site-loader.is-done { opacity: 0 !important; transition: opacity .45s ease; }
.site-loader__mark { position: relative; width: 60px; height: 80px; } /* 60px = just the flame at this height */
/* soft glow that "breathes" once the flame is full */
.site-loader__mark::before {
  content: ""; position: absolute; inset: -48px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 168, 90, .32), transparent 65%);
  opacity: 0; animation: loader-glow 2.2s ease-in-out 1.85s infinite;
}
.site-loader__flame { position: absolute; inset: 0; overflow: hidden; }
.site-loader__flame img { height: 80px; width: auto; max-width: none; filter: invert(1); opacity: .16; }
/* fills from the bottom once (starting when the loader appears) and stays full */
.site-loader__flame--fill { animation: loader-brew 1.6s cubic-bezier(.45, 0, .2, 1) .25s both; }
.site-loader.is-test .site-loader__flame--fill { animation-delay: .1s; }
.site-loader__flame--fill img { opacity: 1; }
@keyframes loader-in { to { opacity: 1; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@keyframes loader-brew { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes loader-glow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Shown to a logged-in dashboard user previewing a hidden page */
.preview-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 10px;
  font-size: 13.5px; color: #1d1712; background: var(--amber);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); max-width: calc(100% - 32px);
}
.preview-bar a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Footer ----------
   A deeper espresso than the sections, opened by a copper light line (so it never melts into a dark section above).
   Top: status + live time, the big email and a CTA; then link columns; then a huge outlined wordmark that a copper
   light follows under the pointer (main.js sets --mx / --my); then the bottom bar. */
.ft { position: relative; overflow: hidden; padding-top: clamp(64px, 8vw, 104px); color: var(--cream); background: #120d0b; }
.ft::before {   /* copper light line along the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(244, 168, 90, .7) 30%, #ffd2a1 50%, rgba(244, 168, 90, .7) 70%, transparent);
  box-shadow: 0 0 40px 4px rgba(226, 117, 58, .35);
}
.ft::after {   /* soft glow under the line */
  content: ""; position: absolute; left: 50%; top: -260px; width: 120%; height: 420px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(226, 117, 58, .16), transparent 70%);
}
.ft > .container { position: relative; z-index: 1; }

.ft__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; padding-bottom: clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line-dark); }
.ft__pitch { min-width: 0; }
.ft__status { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted-dark); }
.ft__status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.ft__status i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ft-ping 2s ease-out infinite; }
.ft__time b { font-weight: 600; color: var(--cream); font-variant-numeric: tabular-nums; }
.ft__big { margin-top: 16px; font-family: var(--display); font-size: clamp(28px, 3.4vw, 50px); font-weight: 700; line-height: 1.1; letter-spacing: -.045em; }
.ft__big > span { display: block; color: var(--muted-dark); }
/* the email (opens the mail app) + a round copper Copy button; main.js [data-copy] swaps the icon to a tick and the tip to "Copied" */
.ft__big .ft__mailrow { display: inline-flex; align-items: center; gap: .32em; max-width: 100%; }
.ft__mail { min-width: 0; overflow-wrap: anywhere; color: var(--cream); background: linear-gradient(90deg, var(--amber), var(--copper)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.ft__mail:hover { color: var(--amber); background-size: 100% 2px; }
.ft__copy {
  position: relative; flex: none; display: grid; place-items: center; width: .9em; height: .9em; padding: 0;
  border: 0; border-radius: 50%; font: inherit; color: #fff; background: var(--copper); cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(226, 117, 58, .8); transition: transform .3s var(--ease), background .3s, color .3s;
}
.ft__copy:hover { background: #ef8448; }
.ft__copy:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.ft__copy svg { width: .4em; height: .4em; }
.ft__copy svg[data-icon="Check"], .ft__copy.is-copied svg[data-icon="Copy"] { display: none; }
.ft__copy.is-copied { color: var(--espresso); background: var(--green); }
.ft__copy.is-copied svg[data-icon="Check"] { display: block; }
.ft__copy-tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px);
  padding: 6px 10px; border-radius: 7px; white-space: nowrap; pointer-events: none;
  font: 600 12.5px/1 var(--font); letter-spacing: 0; color: var(--espresso); background: var(--cream);
  opacity: 0; transition: opacity .2s, transform .2s var(--ease);
}
.ft__copy:hover .ft__copy-tip, .ft__copy:focus-visible .ft__copy-tip, .ft__copy.is-copied .ft__copy-tip { opacity: 1; transform: translate(-50%, 0); }
.ft__cta { flex: none; }

.ft__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 40px; padding-top: clamp(40px, 5vw, 64px); }   /* brand + however many link columns are filled */
.ft__logo { width: 140px; height: auto; filter: invert(1); }
.ft__brand p { max-width: 360px; margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--muted-dark); }
.ft__col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.ft__title { margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.ft__col a { position: relative; font-size: 15px; color: rgba(247, 242, 235, .78); transition: color .25s, transform .3s var(--ease); }
.ft__col a:hover { color: var(--cream); transform: translateX(3px); }
.ft__col a.ft__wa { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 4px; color: var(--cream); }
.ft__col a.ft__wa:hover { transform: none; }
.ft__wa-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--wa-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .3s var(--ease); }   /* the site's WhatsApp green (--wa) */
.ft__wa-ico svg { width: 19px; height: 19px; }
.ft__wa-txt { display: grid; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.ft__wa-txt small { font-size: 11.5px; font-weight: 500; color: var(--muted-dark); }
.ft__wa:hover .ft__wa-txt { color: var(--wa); }
.ft__socials { display: flex; flex-wrap: wrap; gap: 8px; }
.ft__col a.ft__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--cream); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); transition: color .25s, background .25s, border-color .25s, transform .3s var(--ease); }
.ft__col a.ft__icon:hover { color: #fff; background: var(--copper); border-color: var(--copper); transform: none; }
.ft__icon svg { width: 18px; height: 18px; }
.ft__sub { margin-top: 14px; font-size: 13px; color: var(--muted-dark); }
.ft__profiles { display: flex; flex-wrap: wrap; gap: 6px; }
.ft__col a.ft__profile { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; border: 1px solid var(--line-dark); }
.ft__col a.ft__profile:hover { border-color: var(--copper); transform: none; }
.ft__profile svg { width: 12px; height: 12px; color: var(--copper); }

/* the big logo mark: the logo file masks two layers, a faint cream fill and a copper fill that only shows in a circle around the pointer */
.ft__word { position: relative; display: grid; width: 100%; max-width: 500px; aspect-ratio: 4 / 1; margin: clamp(40px, 6vw, 80px) auto 0; }
.ft__word > span { grid-area: 1 / 1; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.ft__word > .ft__word-base { background: linear-gradient(180deg, rgba(247, 242, 235, .09), rgba(247, 242, 235, .02) 90%); }
.ft__word > .ft__word-lit {   /* beats the plain logo mask above */
  background: linear-gradient(180deg, #ffd2a1, var(--copper) 55%, #8a3d17);
  -webkit-mask: var(--logo) center / contain no-repeat, radial-gradient(circle var(--r, 0px) at var(--mx, 50%) var(--my, 50%), #000 30%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask: var(--logo) center / contain no-repeat, radial-gradient(circle var(--r, 0px) at var(--mx, 50%) var(--my, 50%), #000 30%, transparent 100%);
  mask-composite: intersect;
  transition: --r .4s;
}
.ft__word.is-lit .ft__word-lit { --r: 90px; }

.ft__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px 28px; border-top: 1px solid var(--line-dark); font-size: 13.5px; color: var(--muted-dark); }
/* Back to top: a quiet pill; on hover it fills cream and the arrow flies out of the copper circle and comes back in from below */
.ft__top-link { display: inline-flex; align-items: center; gap: 12px; padding: 5px 5px 5px 16px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(247, 242, 235, .03); color: var(--cream); font-weight: 500; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.ft__top-link:hover { background: var(--cream); border-color: var(--cream); color: var(--espresso); }
.ft__top-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.ft__up { display: grid; place-items: center; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; background: var(--copper); color: #fff; }
.ft__up svg { transform: rotate(-90deg); }
.ft__top-link:hover .ft__up svg { animation: ft-fly .6s var(--ease); }
@keyframes ft-fly {
  45% { transform: translateY(-26px) rotate(-90deg); }
  46% { transform: translateY(26px) rotate(-90deg); }
  100% { transform: translateY(0) rotate(-90deg); }
}

@property --r { syntax: "<length>"; inherits: true; initial-value: 0px; }
@keyframes ft-ping { 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 960px) {
  .ft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .header__cta { display: none; }
  .header__wa-tip { display: none; }   /* phones: just the icon */
  .nav {
    position: fixed; inset: 0 0 auto; padding: 90px var(--gutter) 30px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(27, 20, 17, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-100%); transition: transform .45s var(--ease);
    z-index: -1;
  }
  .nav a:not(.btn) { padding: 16px 0; font-size: 20px; border-bottom: 1px solid var(--line-dark); color: var(--cream); }
  .nav__cta { display: inline-flex; margin-top: 24px; }
  .nav { max-height: 100vh; overflow-y: auto; }
  .nav__drop { display: block; border-bottom: 1px solid var(--line-dark); }
  .nav__drop-btn { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 20px; color: var(--cream); }
  .nav__drop-btn svg { width: 14px; height: 14px; }
  .dropdown {
    position: static; width: auto; padding: 0 0 12px;
    display: none; grid-template-columns: 1fr;
    background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .dropdown::before { display: none; }
  .nav__drop.is-open .dropdown { display: grid; transform: none; pointer-events: auto; }
  .nav .dropdown a.dropdown__link, .nav .dropdown a.dropdown__foot { padding: 10px 4px; font-size: 15px; border-bottom: 0; }
  .nav .dropdown a.dropdown__foot { font-size: 13px; }
  .dropdown--mega { padding: 0 0 12px; gap: 6px; }
  .dropdown__head { padding: 10px 4px 2px; }
  .menu-open .nav { transform: none; }
  .menu-open { background: transparent; border-color: transparent; }
}
@media (max-width: 640px) {
  .ft__big { font-size: clamp(20px, 6.2vw, 28px); }   /* the email fits on one line on a phone */
  .ft__copy { width: 34px; height: 34px; }   /* a finger-sized Copy button */
  .ft__copy svg { width: 15px; height: 15px; }
  .ft__cta { width: 100%; }
  .ft__grid { gap: 32px 20px; }
  .ft__col a.ft__wa { gap: 9px; }   /* the WhatsApp row fits the half-width Connect column */
  .ft__wa-ico { width: 36px; height: 36px; border-radius: 11px; }
  .ft__wa-txt { font-size: 14px; }
  .ft__bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* =========================================================
   Closing WhatsApp band, shared by /work/ and /about/ (includes/wa-end.php): full-width warm cream (light) with a faint
   56px line grid fading out and amber / copper glows; words left, a white chat card right (no box around the words).
   ========================================================= */
.wa-end {
  position: relative; overflow: hidden; padding-block: clamp(80px, 9vw, 130px); color: var(--ink);
  background:
    radial-gradient(40% 70% at 88% 100%, rgba(226, 117, 58, .2), transparent 70%),
    radial-gradient(35% 60% at 8% 0%, rgba(244, 168, 90, .22), transparent 70%),
    #f1e6d8;
}
.wa-end::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(29, 23, 18, .07) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(29, 23, 18, .07) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask: radial-gradient(70% 90% at 70% 50%, #000, transparent 75%); mask: radial-gradient(70% 90% at 70% 50%, #000, transparent 75%);
}
.wa-end > .container { position: relative; z-index: 1; }
.wa-end__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: center; gap: 36px clamp(32px, 6vw, 96px); }
.wa-end__copy { max-width: 620px; }
.wa-end__title { font-family: var(--display); font-size: clamp(28px, 3.2vw, 46px); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; }
.wa-end__title b { display: block; font-weight: inherit; color: var(--copper); }
.wa-end__text { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.wa-end__btn { justify-self: end; }

/* the chat card: our flame avatar with a light typing pill (copper dots), the WhatsApp button (--wa-grad, no drop shadow), the number */
.wa-chat { display: grid; gap: 16px; padding: 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(90, 50, 20, .45); }
.wa-chat__who { display: flex; align-items: center; gap: 12px; }
.wa-chat__who b { display: block; font: 700 15.5px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.wa-chat__who > span:last-child { font-size: 13px; color: var(--muted); }
.wa-chat__av { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg, var(--amber), var(--copper)); }
.wa-chat__av img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.wa-chat__typing {
  position: absolute; right: -8px; bottom: -4px; display: flex; gap: 2px; padding: 4px 5px; border-radius: 999px;
  background: var(--cream); border: 1px solid rgba(29, 23, 18, .12); box-shadow: 0 0 0 2px #fff;
}
.wa-chat__typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--copper); animation: wa-type 1.2s infinite; }
.wa-chat__typing i:nth-child(2) { animation-delay: .15s; }
.wa-chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-type { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.wa-chat__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 20px; border-radius: 14px;
  font-size: 16px; font-weight: 600; color: #fff; background: var(--wa-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); transition: filter .25s;
}
.wa-chat__btn svg { width: 20px; height: 20px; }
.wa-chat__btn:hover { filter: brightness(1.08); }
.wa-chat__num { font-size: 13px; text-align: center; color: var(--muted); }
@media (max-width: 960px) {
  .wa-end__grid { grid-template-columns: 1fr; }
  .wa-end__btn { justify-self: start; }
}
@media (max-width: 640px) {
  .wa-end__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-chat__btn { transition: none; }
  .wa-chat__typing i { animation: none; opacity: .8; }
}
