/* ==========================================================
   Asad Rasheed — portfolio
   Built on the Asad Rasheed brand kit v1.0
   Display: Caprasimo · Body: Figtree
   ========================================================== */

:root {
  /* brand tokens */
  --accent: #c67139;
  --accent-600: #b2622d;
  --accent-700: #8c491a;   /* terracotta for paragraph-size text */
  --accent-btn: #a85a29;   /* darkened accent for solid-button backgrounds — clears 4.5:1 with white text; --accent itself only reaches ~3.4:1 */
  --accent-200: #ffe1d0;
  --accent-100: #fff2eb;
  --sage: #728157;
  --sage-300: #ccdbb2;
  --sage-700: #56633f;
  --bg: #f5ead8;
  --surface: #ebddc5;
  --ink: #201e1d;
  --dark: #2e2b25;
  --n-300: #dcd3c4;
  --n-500: #a19786;
  --n-600: #6a6151;   /* darkened from #82796a to clear 4.5:1 body-text contrast on --bg */
  --n-700: #645c50;
  --border-strong: #8c8168; /* functional control borders (form inputs) — clears 3:1 on --bg */
  --danger: #9a3324;

  --font-display: "Caprasimo", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --r: 16px;
  --r-lg: 28px;
  --r-pill: 999px;

  --wrap: 1140px;
  --shadow-sm: 0 1px 2px rgba(32,30,29,.06), 0 4px 14px rgba(32,30,29,.05);
  --shadow-md: 0 2px 6px rgba(32,30,29,.07), 0 18px 40px rgba(32,30,29,.09);
  --shadow-lg: 0 4px 10px rgba(32,30,29,.06), 0 30px 60px rgba(32,30,29,.14);

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);       /* settles late — reads as "considered" */
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { max-width: 100%; display: block; }
a { color: var(--accent-700); text-decoration: none; }
a:hover { color: var(--accent-800, #643312); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; color: var(--bg); }

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

/* ---------------- buttons ---------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent-btn); color: #fff8f0;
  font-weight: 700; font-size: 16px; letter-spacing: .01em;
  padding: 14px 26px; border: 0; border-radius: var(--r-pill);
  cursor: pointer;
  /* --mx/--my come from the pointer-follow in main.js, --lift from :hover */
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--lift, 0px)), 0);
  transition: transform .25s var(--ease-out), background .18s ease, box-shadow .25s var(--ease-out);
  box-shadow: 0 6px 18px rgba(168,90,41,.32);
}
.btn:hover { background: var(--accent-700); color: #fff8f0; --lift: -2px; box-shadow: 0 12px 30px rgba(140,73,26,.4); }
.btn:active { --lift: 0px; }
/* light sweeps across the button on hover */
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,248,240,.26) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .65s var(--ease-soft);
}
.btn:hover::after { transform: translateX(130%); }
.btn-ghost::after { display: none; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--n-300); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--accent); box-shadow: none; }
.btn-sm { padding: 10px 20px; font-size: 15px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-700); margin: 0 0 18px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--sage);
  box-shadow: 0 0 0 4px rgba(114,129,87,.18);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(114,129,87,.18); } 50% { box-shadow: 0 0 0 7px rgba(114,129,87,.06); } }
@media (prefers-reduced-motion: reduce) { .dot, .timeline-current .timeline-dot, .type-cursor { animation: none; } }
@media (prefers-reduced-motion: reduce) { .type-cursor { opacity: .7; } }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,234,216,.82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-bottom-color: var(--n-300); box-shadow: 0 4px 20px rgba(32,30,29,.05); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; font-size: 16px; }
.brand:hover { color: var(--ink); }
.brand img { flex: none; }
.nav-links { margin-left: auto; display: flex; gap: 30px; }
.nav-links a { color: var(--n-700); font-weight: 600; font-size: 15.5px; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--accent); transition: right .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--ink); }

.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.menu-btn span + span { margin-top: 5px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; padding: 8px 24px 22px; border-top: 1px solid var(--n-300); }
.mobile-menu a { padding: 13px 0; font-weight: 600; color: var(--ink); border-bottom: 1px solid rgba(220,211,196,.6); }
.mobile-menu.open { display: flex; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 84px 0 76px; overflow: hidden; }
.hero::before,
.hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -170px; top: -190px; background: radial-gradient(circle, rgba(198,113,57,.16), transparent 68%); animation: floatGlow 15s ease-in-out infinite; }
.hero::after  { width: 420px; height: 420px; left: -180px; bottom: -200px; background: radial-gradient(circle, rgba(114,129,87,.16), transparent 68%); animation: floatGlow 19s ease-in-out infinite reverse; }
/* The ambient glows drift so the hero isn't completely frozen. Translate only —
   scaling a gradient this size repaints it every frame and cost ~2.5s of FCP. */
@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, 34px, 0); }
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center;
}
/* grid children default to min-content width — let them shrink instead */
.hero-grid > *, .about-grid > *, .contact-grid > *, .cards > *, .svc-grid > *, .testimonial-grid > * { min-width: 0; }
/* Sized so "backend that holds" stays on one line inside its grid column at
   every width down to 620px, where the override below lets it wrap. */
h1 { font-size: clamp(38px, 3.9vw, 54px); }
h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .13em;
  background: var(--sage-300); border-radius: 2px; z-index: -1;
}
/* on narrow screens the phrase has to be allowed to wrap or it forces the grid wide */
@media (max-width: 620px) { h1 em { white-space: normal; } h1 em::after { display: none; } }
.type-cursor {
  display: inline-block; width: 3px; height: .8em; margin-left: 4px;
  background: var(--accent); vertical-align: -0.08em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 19px; color: var(--n-700); max-width: 54ch; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-links { list-style: none; display: flex; gap: 12px; padding: 0; margin: 34px 0 0; }
.hero-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--n-300); color: var(--n-700);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.hero-links a svg { width: 20px; height: 20px; fill: currentColor; transition: transform .3s var(--ease-out); }
.hero-links a:hover { color: var(--accent-700); border-color: var(--accent); background: var(--bg); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.hero-links a:hover svg { transform: scale(1.12); }

/* portrait */
.hero-photo { position: relative; }
.photo-frame {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
  border: 1px solid var(--n-300);
  box-shadow: var(--shadow-lg);
  /* --parallax is set by the scroll loop in main.js */
  transform: rotate(1.2deg) translate3d(0, var(--parallax, 0px), 0);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.photo-fallback {
  display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 96px; color: var(--accent);
  background: linear-gradient(150deg, var(--surface), var(--accent-100));
}
.photo-frame.no-photo .photo-fallback { display: flex; }
.photo-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 8px rgba(245,234,216,.7); border-radius: var(--r-lg);
}
.photo-badge {
  position: absolute; left: -14px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg); border: 1px solid var(--n-300);
  border-radius: var(--r-pill); padding: 10px 18px;
  font-size: 14px; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------------- now band ---------------- */
.band { background: var(--dark); color: var(--bg); padding: 46px 0; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.band-item p { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(245,234,216,.82); }
.band-label {
  display: block; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
  color: var(--sage-300); margin-bottom: 10px;
}

/* ---------------- proof row ---------------- */
.proof { padding: 40px 0; border-bottom: 1px solid var(--n-300); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.proof-item { display: flex; flex-direction: column; gap: 6px; }
.proof-num { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); color: var(--accent-700); line-height: 1.1; }
/* the figure lifts a beat after its tile, so the row reads as two layers */
@keyframes numRise { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
.js .proof-item.in .proof-num { animation: numRise .6s var(--ease-out) 120ms both; }
.proof-label { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--n-700); }

/* ---------------- sections ---------------- */
.section { padding: 92px 0; }
.section-alt { background: var(--surface); }
.section-head { position: relative; max-width: 640px; margin-bottom: 52px; padding-top: 26px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 46px); }
.section-sub { color: var(--n-700); margin-top: 16px; font-size: 17.5px; }
/* short terracotta rule that draws itself in as the section arrives */
.section-head::before {
  content: ""; position: absolute; top: 0; left: 0; width: 54px; height: 3px;
  background: var(--accent); border-radius: 2px;
}
.js .section-head::before {
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out) 150ms;
}
.js .section-head.in::before { transform: scaleX(1); }
.section-dark .section-head::before { background: var(--sage-300); }

/* ---------------- work cards ---------------- */
.work-grid { display: flex; flex-direction: column; gap: 26px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--bg); border: 1px solid var(--n-300); border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.section-alt .card { background: var(--bg); }
.card { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s ease; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent-200); }

.card-media { position: relative; aspect-ratio: 16/10; background: var(--surface); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
/* the artwork pushes in slightly while the card lifts */
.card-media img, .card-media-fallback { transition: transform .6s var(--ease-out); }
.card:hover .card-media img, .card:hover .card-media-fallback { transform: scale(1.05); }
.card-media-fallback {
  display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center; text-align: center; padding: 16px;
  font-family: var(--font-display); font-size: 22px; color: rgba(255,255,255,.7);
}
.card-media.no-image .card-media-fallback { display: flex; }
.art-1 { background: linear-gradient(135deg, #c67139, #8c491a); }
.art-2 { background: linear-gradient(135deg, #7a8a5e, #3d472b); }
.art-3 { background: linear-gradient(135deg, #2e2b25, #645c50); }

.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tag { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--sage-700); margin: 0 0 10px; }
.card-body h3 { font-size: 24px; margin-bottom: 14px; }
.card-line { color: var(--n-700); font-size: 15.5px; margin: 0 0 8px; }
.card-line strong { color: var(--ink); font-weight: 700; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 20px; }
.chips li {
  font-size: 12.5px; font-weight: 600; color: var(--n-700);
  background: var(--surface); border-radius: var(--r-pill); padding: 5px 12px;
}
.card-links { margin-top: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.card-link { font-weight: 700; font-size: 15px; color: var(--accent-700); }
.card-link span { display: inline-block; transition: transform .2s ease; }
.card-link:hover span { transform: translateX(4px); }
.card-link-muted { font-weight: 600; font-size: 14.5px; color: var(--n-600); }

/* featured card: image left, copy right on desktop */
.card-featured { display: grid; grid-template-columns: 1.05fr 1fr; }
.card-featured .card-media { aspect-ratio: auto; min-height: 320px; }
.card-featured .card-body { padding: 34px 36px; justify-content: center; }
.card-featured .card-body h3 { font-size: 28px; }
@media (max-width: 860px) {
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .card-media { aspect-ratio: 16/10; min-height: 0; }
  .card-featured .card-body { padding: 26px 24px; }
}

/* ---------------- experience timeline ---------------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.timeline-item { position: relative; padding-left: 44px; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 7px; top: 22px; bottom: -18px;
  width: 2px; background: var(--n-300);
}
.timeline-item:last-child::before { display: none; }
/* the connector draws downward and the marker pops as each entry arrives */
.js .timeline-item::before {
  transform: scaleY(0); transform-origin: top;
  transition: transform .8s var(--ease-out) calc(var(--reveal-delay, 0ms) + 200ms);
}
.js .timeline-item.in::before { transform: scaleY(1); }
.timeline-dot {
  position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); box-sizing: border-box;
}
.js .timeline-dot {
  transform: scale(0);
  transition: transform .55s var(--ease-out) calc(var(--reveal-delay, 0ms) + 80ms);
}
.js .timeline-item.in .timeline-dot { transform: scale(1); }
.timeline-current .timeline-dot {
  background: var(--sage); border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(114,129,87,.18);
  animation: pulse 2.6s ease-in-out infinite;
}
.timeline-date { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-700); margin: 0 0 6px; }
.timeline-body h3 { font-size: 21px; margin-bottom: 8px; }
.timeline-org { font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--n-700); }
.timeline-body p:last-child { color: var(--n-700); font-size: 15.5px; margin: 0; }

/* ---------------- testimonials ---------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.is-hidden { display: none; }
.testimonial {
  background: var(--surface); border: 1px solid var(--n-300); border-radius: var(--r-lg);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s ease;
}
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-200); }
.testimonial-mark { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--accent); }
.testimonial-quote { color: var(--ink); font-size: 16px; margin: 0; flex: 1; }
.testimonial-person { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--n-300); padding-top: 14px; }
.testimonial-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.testimonial-role { font-size: 13.5px; color: var(--n-700); }

/* ---------------- services ---------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: var(--bg); border: 1px solid var(--n-300); border-radius: var(--r);
  padding: 28px 26px; position: relative; height: 100%;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.svc { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s ease; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent-200); }
.svc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-100); color: var(--accent-700);
  margin-bottom: 14px;
  transition: transform .3s var(--ease-out), background .3s ease;
}
.svc-icon svg { width: 20px; height: 20px; }
.svc:hover .svc-icon { transform: translateY(-2px) rotate(-6deg); background: var(--accent-200); }
.svc-kind {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-700); background: var(--accent-100);
  border-radius: var(--r-pill); padding: 5px 12px; margin-bottom: 16px; align-self: flex-start;
}
.svc h3 { font-size: 21px; margin-bottom: 12px; }
.svc p { color: var(--n-700); font-size: 15.5px; margin: 0; }

/* ---------------- stack ---------------- */
.stack-group + .stack-group { margin-top: 30px; }
.stack-label { font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--n-700); margin: 0 0 14px; }
.stack-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-tool {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 10px 16px 10px 12px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.chip-tool:hover { transform: translateY(-3px); background: var(--bg); border-color: var(--n-300); box-shadow: var(--shadow-sm); }
.chip-tool svg { width: 20px; height: 20px; fill: currentColor; flex: none; transition: transform .3s var(--ease-out); }
.chip-tool:hover svg { transform: scale(1.14) rotate(-6deg); }
.chip-tool span { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---------------- about ---------------- */
.section-dark { background: var(--dark); color: var(--bg); }
.section-dark .eyebrow { color: var(--sage-300); }
.section-dark h2 { color: var(--bg); font-size: clamp(32px, 4.2vw, 46px); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about-copy p { color: rgba(245,234,216,.8); margin-top: 20px; font-size: 17px; }
.photo-frame.small { transform: rotate(-1.5deg); aspect-ratio: 1/1; border-color: rgba(245,234,216,.22); background: #3a362e; }
.photo-frame.small::after { box-shadow: inset 0 0 0 8px rgba(46,43,37,.7); }
.photo-frame.small .photo-fallback { background: linear-gradient(150deg, #3a362e, #2e2b25); color: var(--accent); }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
.facts li { font-size: 15px; color: rgba(245,234,216,.78); border-top: 1px solid rgba(245,234,216,.16); padding-top: 12px; }
.facts strong { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--sage-300); margin-bottom: 3px; }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-copy h2 { font-size: clamp(32px, 4.2vw, 46px); }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; }
.contact-list li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--n-300); }
.contact-list span { flex: 0 0 84px; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--n-600); }
.contact-list a { font-weight: 600; word-break: break-word; }
.whatsapp-link { font-size: 13.5px; color: var(--sage-700); border-bottom: 1.5px solid var(--sage-300); padding-bottom: 1px; }
.whatsapp-link:hover { color: var(--sage-700); border-color: var(--sage); }

.contact-form {
  background: var(--surface); border: 1px solid var(--n-300); border-radius: var(--r-lg);
  padding: 32px 30px; display: flex; flex-direction: column; gap: 18px;
}
.contact-form label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--n-700); display: block; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 8px; padding: 13px 15px;
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 12px;
  text-transform: none; letter-spacing: normal; font-weight: 400;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(198,113,57,.14);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--n-600); }
.contact-form .btn { align-self: flex-start; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease; }
.contact-form .btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.form-note { font-size: 13.5px; color: var(--n-600); margin: 0; }
.form-note-pending { color: var(--n-600); }
.form-note-success { color: var(--sage-700); font-weight: 600; }
.form-note-error { color: var(--danger); font-weight: 600; }

/* ---------------- footer ---------------- */
.footer { background: var(--ink); color: rgba(245,234,216,.7); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { color: var(--bg); font-size: 14.5px; font-weight: 600; }
.footer .brand:hover { color: var(--bg); }
.footer-links { margin-left: auto; display: flex; gap: 22px; }
.footer-links a { color: rgba(245,234,216,.7); font-size: 14.5px; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.copy { margin: 0; font-size: 14px; }

/* ---------------- reveal on scroll ----------------
   Scoped to .js so the page still renders everything if the script fails. */
/* No will-change here on purpose: promoting every reveal element up front
   costs more in layers and paint than the animation saves. */
.js .reveal {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition:
    opacity .75s var(--ease-out) var(--reveal-delay, 0ms),
    transform .75s var(--ease-out) var(--reveal-delay, 0ms);
}
.js .reveal[data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
.js .reveal[data-reveal="right"] { transform: translate3d(32px, 0, 0); }
.js .reveal[data-reveal="scale"] { transform: scale(.96); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- scroll progress ---------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-700));
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* ---------------- hero entrance ----------------
   A short curtain-raise on load: eyebrow, headline, lead, buttons, links,
   then the portrait — instead of the whole block arriving at once. */
@keyframes heroRise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes heroPhotoIn { from { opacity: 0; transform: translate3d(0, 28px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes drawLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Delays stay short: content starts invisible, so every extra millisecond
   here pushes First Contentful Paint out with it. */
.js .hero-enter > * { opacity: 0; animation: heroRise .7s var(--ease-out) forwards; }
.js .hero-enter > *:nth-child(2) { animation-delay: .08s; }
.js .hero-enter > *:nth-child(3) { animation-delay: .16s; }
.js .hero-enter > *:nth-child(4) { animation-delay: .24s; }
.js .hero-enter > *:nth-child(5) { animation-delay: .3s; }
.js .hero-enter-photo { opacity: 0; animation: heroPhotoIn .8s var(--ease-out) .18s forwards; }
.js h1 em::after { transform: scaleX(0); transform-origin: left; animation: drawLine .75s var(--ease-out) .45s forwards; }

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .cards, .svc-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 56px 0 60px; }
  .hero-photo { max-width: 380px; }
  .photo-frame.small { max-width: 320px; }
  .section { padding: 68px 0; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .cards, .svc-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .hero-links { gap: 18px; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; flex-wrap: wrap; }
  .contact-form { padding: 26px 20px; }
}

/* ---------------- reduced motion ----------------
   Everything decorative resolves to its final state. The reveal JS also
   short-circuits, so nothing depends on a transition firing. */
@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal[data-reveal="left"],
  .js .reveal[data-reveal="right"],
  .js .reveal[data-reveal="scale"] { opacity: 1; transform: none; transition: none; }

  .js .hero-enter > *,
  .js .hero-enter-photo,
  .js h1 em::after,
  .js .proof-item.in .proof-num { opacity: 1; transform: none; animation: none; }

  .hero::before, .hero::after { animation: none; }

  .js .section-head::before,
  .js .timeline-item::before,
  .js .timeline-dot { transform: none; transition: none; }

  .btn::after { display: none; }
  .btn, .card, .svc, .testimonial, .chip-tool, .hero-links a { transition: background .18s ease, color .18s ease, border-color .18s ease; }
  .btn:hover, .card:hover, .svc:hover, .testimonial:hover, .chip-tool:hover, .hero-links a:hover { transform: none; }
  .card:hover .card-media img, .card:hover .card-media-fallback,
  .svc:hover .svc-icon, .chip-tool:hover svg, .hero-links a:hover svg { transform: none; }
}

/* ---------------- print ---------------- */
@media print {
  .nav, .footer, .hero-cta, .contact-form, .menu-btn, .scroll-progress { display: none; }
  body { background: #fff; }
  .js .reveal, .js .hero-enter > *, .js .hero-enter-photo { opacity: 1; transform: none; animation: none; }
}
