/* =========================================================
   STUDIO BIANCA — Shared Stylesheet
   Editorial luxury · warm · minimal · light & airy
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Colour palette */
  --color-bg:          #F5EFE6; /* off-white / cashmere */
  --color-bg-alt:      #EEE6D8; /* slightly deeper section background */
  --color-text:        #383E42; /* deep taupe / warm charcoal */
  --color-text-soft:   #6F6B68; /* muted body */
  --color-accent:      #516079; /* slate blue */
  --color-accent-dark: #3D4A5E; /* deeper slate blue */
  --color-warm:        #516079; /* terracotta / sandy beige */
  --color-warm-soft:   #B8ADAB; /* sandy beige */
  --color-border:      #B8ADAB; /* light linen / pale beige */
  --color-white:       #fbf8f4;

  /* Placeholder tones */
  --ph-1: #e3d8cb;
  --ph-2: #d8cabb;
  --ph-3: #cdbfaf;

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--color-warm); }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--color-text);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
p  { margin: 0 0 1.2em; max-width: 64ch; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-warm);
  margin: 0 0 1.2rem;
  display: block;
}
.lead { font-size: clamp(1.15rem, 1.7vw, 1.45rem); color: var(--color-text-soft); font-weight: 300; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--color-bg-alt); }
.center { text-align: center; }
.measure { max-width: 58ch; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1.05em 2.4em;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--color-text); color: var(--color-bg); }
.btn--solid { background: var(--color-text); color: var(--color-bg); }
.btn--solid:hover { background: var(--color-warm); border-color: var(--color-warm); color: var(--color-white); }
.btn--light { border-color: var(--color-bg); color: var(--color-bg); }
.btn--light:hover { background: var(--color-bg); color: var(--color-text); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
/* Background + blur live on a pseudo-element rather than on .nav itself:
   backdrop-filter on .nav would make it the containing block for its
   position:fixed descendant (.nav__links on mobile), squashing the
   full-screen mobile menu down to the header's own height. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(245, 239, 230, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 20px rgba(56, 62, 66, 0.05);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; width: 100%;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text);
  line-height: 1;
}
.wordmark:hover { color: var(--color-text); }
.wordmark span { font-style: normal; }

.nav__links { display: flex; align-items: center; gap: clamp(1.6rem, 3vw, 2.8rem); }
.nav__link {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 400; color: var(--color-text);
  position: relative; padding-block: 0.4rem;
}
/* keep the "Work With Me" item on the same row/baseline as the other links */
.nav__item { display: flex; align-items: center; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--color-warm); transition: width .35s var(--ease);
}
.nav__link:hover { color: var(--color-text); }
.nav__link:hover::after { width: 100%; }

/* Dropdown */
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute; top: 100%; right: 0; min-width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 0.6rem 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  box-shadow: 0 12px 30px rgba(56,62,66,0.08);
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.nav__dropdown a {
  display: block; padding: 0.6rem 1.4rem;
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-text);
}
.nav__dropdown a:hover { background: var(--color-bg-alt); color: var(--color-warm); }

/* Language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: 0.1rem; margin-left: 0.4rem; }
.lang-switch button {
  background: none; border: none; cursor: pointer; padding: 0.3rem 0.45rem;
  font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-text-soft); font-weight: 400;
  transition: color .3s var(--ease);
}
.lang-switch button:hover { color: var(--color-text); }
.lang-switch button.active { color: var(--color-warm); font-weight: 500; }
.lang-switch span { color: var(--color-border); font-size: 0.7rem; }
.nav__logo { display: none; }
.nav__social { display: none; }
@media (max-width: 860px) {
  .lang-switch { margin-left: 0; margin-top: 1rem; align-self: center; justify-content: center; }
  .lang-switch button { font-size: 0.9rem; padding: 0.4rem 0.6rem; }
  /* mirrors .footer__social-icons — mobile-menu copy of the Instagram/YouTube links */
  .nav__social { display: flex; gap: 1.4rem; align-items: center; justify-content: center; margin-top: 0.6rem; }
  .nav__social a { display: inline-flex; color: var(--color-text); }
  .nav__social a:hover { color: var(--color-warm); }
  .nav__social svg { width: 24px; height: 24px; }
}

/* Hamburger */
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; padding: 0;
}
.nav__toggle span {
  position: absolute; left: 0; height: 1.5px; width: 100%;
  background: var(--color-text); transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 2px; }
.nav__toggle span:nth-child(2) { top: 11px; }
.nav__toggle span:nth-child(3) { top: 20px; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Placeholders (image / video) ---------- */
.ph {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ph-1), var(--ph-3));
  display: flex; align-items: center; justify-content: center;
  color: rgba(56,62,66,0.42);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 500;
  padding: 0 1rem; text-align: center; line-height: 1.6;
}
.ph--alt { background: linear-gradient(135deg, var(--ph-2), var(--color-warm-soft)); }
/* Hide the placeholder label once a real image is injected */
.ph:has(.ph-img)::after { content: none; }
.ph:has(.ph-img) { background: none; }
/* real images injected by inject-images.mjs reuse the ratio classes */
.ph-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ratio-43.ph-img, .ratio-32.ph-img, .ratio-23.ph-img, .ratio-11.ph-img, .ratio-169.ph-img { height: auto; }
.ph--cool { background: linear-gradient(135deg, #C9D2DD, var(--ph-2)); }
.ratio-43  { aspect-ratio: 4 / 3; }
.ratio-32  { aspect-ratio: 3 / 2; }
.ratio-23  { aspect-ratio: 2 / 3; }
.ratio-11  { aspect-ratio: 1 / 1; }
.ratio-169 { aspect-ratio: 16 / 9; }

/* ---------- Mood board presentation trigger ---------- */
.moodboard-trigger {
  padding: 0; border: 0; margin: 0; display: block; width: 100%;
  background: var(--color-bg-alt); cursor: pointer; font: inherit; color: inherit;
}
.moodboard-trigger .ph-img { object-fit: contain; transition: transform .6s var(--ease); }
.moodboard-trigger:hover .ph-img,
.moodboard-trigger:focus-visible .ph-img { transform: scale(1.04); }
.moodboard-trigger__hint {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  background: rgba(30,32,34,0.32);
  opacity: 0; transition: opacity .35s var(--ease);
}
.moodboard-trigger:hover .moodboard-trigger__hint,
.moodboard-trigger:focus-visible .moodboard-trigger__hint { opacity: 1; }
/* Touch devices have no hover affordance — keep the play button always visible */
@media (hover: none) {
  .moodboard-trigger__hint { opacity: 1; }
}
.moodboard-trigger__play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  transition: transform .3s var(--ease);
}
.moodboard-trigger:hover .moodboard-trigger__play,
.moodboard-trigger:focus-visible .moodboard-trigger__play { transform: scale(1.08); }
.moodboard-trigger__play svg { width: 26px; height: 26px; fill: var(--color-text); margin-left: 3px; }

/* ---------- PDF presentation modal ---------- */
.pdf-modal {
  position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: center; justify-content: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
}
.pdf-modal[hidden] { display: none; }
.pdf-modal__backdrop {
  position: absolute; inset: 0; background: rgba(31,35,38,0.8);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: pdfFade .35s var(--ease);
}
.pdf-modal__dialog {
  position: relative; width: min(1080px, 100%); height: min(90vh, 100%);
  background: var(--color-white); box-shadow: 0 30px 90px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; animation: pdfRise .4s var(--ease);
}
.pdf-modal__pages {
  flex: 1; width: 100%; overflow-y: auto; overflow-x: hidden;
  background: var(--color-bg); padding: clamp(0.75rem, 2.5vw, 1.75rem);
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.pdf-modal__pages canvas {
  display: block; width: 100%; max-width: 900px; height: auto;
  background: var(--color-white); box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.pdf-modal__status {
  margin: auto; padding: 2rem 1rem; text-align: center;
  font-size: 0.95rem; letter-spacing: 0.02em; color: var(--color-text);
  opacity: 0.7;
}
.pdf-modal__open {
  position: absolute; top: -14px; left: 0; padding: 0.5rem 1rem;
  background: var(--color-text); color: var(--color-bg); text-decoration: none;
  font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 500; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35); transition: background .3s var(--ease);
}
.pdf-modal__open:hover { background: var(--color-warm); }
.pdf-modal__close {
  position: absolute; top: -16px; right: -16px; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: var(--color-text); color: var(--color-bg);
  font-size: 1.7rem; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: background .3s var(--ease);
}
.pdf-modal__close:hover { background: var(--color-warm); }
@keyframes pdfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pdfRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .pdf-modal__close { top: 8px; right: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; color: var(--color-white);
}
.hero__media, .hero__media video, .hero__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__poster {
  background: linear-gradient(135deg, #7E8794, #5A6473 60%, #383E42);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40,42,45,0.25), rgba(40,42,45,0.42));
}
.hero__content { position: relative; z-index: 2; padding-inline: var(--gutter); }
.hero h1 { color: var(--color-white); font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 300; }
.hero__sub {
  font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.3em;
  text-transform: uppercase; font-weight: 400; margin-bottom: 1.6rem; opacity: 0.92;
}
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 0.66rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--color-white); opacity: 0.85;
}

/* ---------- Page header (interior pages) ---------- */
.page-head { padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem)); padding-bottom: clamp(2rem, 5vw, 4rem); text-align: center; }
.page-head .eyebrow { margin-inline: auto; }

/* ---------- Tagline band ---------- */
.tagline {
  text-align: center; padding-block: clamp(4rem, 10vw, 9rem);
}
.tagline blockquote {
  margin: 0; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(2.6rem, 6.5vw, 5.25rem); font-weight: 500; line-height: 1.2;
  color: var(--color-text);
}

/* ---------- Split (philosophy / about) ---------- */
.split {
  display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split__text p { color: var(--color-text-soft); }
.split--reverse .split__media { order: -1; }
@media (max-width: 767px) {
  /* the CTA reads as left-hugging once .split collapses to one full-width
     column on mobile — center it between the screen edges there */
  .split__text .btn { display: block; width: fit-content; margin-inline: auto; }
}

/* ---------- Testimonials ---------- */
.testimonials { text-align: center; }
.testi-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 3rem;
}
.testi {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--color-border);
}
.testi p {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.3rem; line-height: 1.5; color: var(--color-text); margin-inline: auto;
}
.testi cite {
  display: block; margin-top: 1.4rem; font-style: normal;
  font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--color-warm); font-weight: 500;
}

/* ---------- Portfolio grid ---------- */
.folio-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2.5rem);
}
.folio-card { display: block; color: var(--color-text); }
.folio-card .ph { transition: transform .6s var(--ease); }
.folio-card:hover .ph { transform: scale(1.03); }
.folio-card__media { overflow: hidden; }
.folio-card__meta { padding-top: 1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.folio-card__name { font-family: var(--font-serif); font-size: 1.5rem; color: var(--color-text); }
.folio-card__tag { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-soft); white-space: nowrap; }
.folio-card:hover .folio-card__name { color: var(--color-warm); }

/* preview (home) */
.preview-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

/* ---------- Project detail blocks (portfolio) ---------- */
.project { margin-bottom: clamp(4rem, 9vw, 7rem); }
.project__intro { display: grid; grid-template-columns: 1fr; gap: 1rem 3rem; margin-bottom: 2rem; align-items: end; }
.project__media-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

/* ---------- Process / freezing points ---------- */
.steps { counter-reset: step; margin-top: 2.5rem; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  padding: 1.4rem 0; border-top: 1px solid var(--color-border);
}
.step:last-child { border-bottom: 1px solid var(--color-border); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--color-warm);
  line-height: 1; min-width: 2.2rem;
}
.step h4 { margin: 0 0 0.2rem; }
.step p { margin: 0; color: var(--color-text-soft); font-size: 0.96rem; }
.step--freeze h4 { color: var(--color-accent); }
.step--freeze::before { color: var(--color-accent); }

/* ---------- Feature list (services) ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem 3rem; margin-top: 2.5rem; }
.feature { padding-top: 1.4rem; border-top: 1px solid var(--color-border); }
.feature h4 { margin-bottom: 0.4rem; }
.feature p { margin: 0; color: var(--color-text-soft); font-size: 0.96rem; }

.tick-list { margin-top: 1.5rem; display: grid; gap: 0.8rem; }
.tick-list li { position: relative; padding-left: 1.8rem; color: var(--color-text-soft); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 0.7rem; height: 1px; background: var(--color-warm);
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; background: var(--color-text); color: var(--color-bg);
  padding-block: clamp(4rem, 9vw, 7rem);
}
.cta-band h2 { color: var(--color-bg); }
.cta-band p { color: rgba(245,239,230,0.78); margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); }
.field { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.field label {
  font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--color-text-soft); margin-bottom: 0.5rem; font-weight: 500;
}
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 1rem; color: var(--color-text);
  background: var(--color-white); border: 1px solid var(--color-border);
  padding: 0.85rem 1rem; border-radius: 0; transition: border-color .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-accent);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.84rem; color: var(--color-text-soft); margin-top: 0.5rem; }
.gmail-note { font-size: 0.84rem; color: var(--color-text-soft); margin-top: 0.75rem; }
.gmail-note a { color: var(--color-warm); text-decoration: underline; text-underline-offset: 2px; }
.gmail-note a:hover { color: var(--color-text); }
.form-success {
  display: none; margin-top: 1.2rem; padding: 1rem 1.2rem;
  background: var(--color-bg-alt); border-left: 2px solid var(--color-warm);
  font-size: 0.95rem; color: var(--color-text);
}

.contact-aside { border-top: 1px solid var(--color-border); }
.contact-aside .contact-item { padding: 1.3rem 0; border-bottom: 1px solid var(--color-border); }
.contact-item .label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-soft); display: block; margin-bottom: 0.3rem; }
.contact-item a, .contact-item span { font-size: 1.05rem; color: var(--color-text); }
.contact-item a:hover { color: var(--color-warm); }

.copy-row { display: inline-flex; align-items: center; gap: 0.6rem; }
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; padding: 0; flex: none;
  border: none; background: transparent;
  color: var(--color-text-soft); cursor: pointer; border-radius: 3px;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.copy-btn:hover { color: var(--color-text); }
.copy-btn.is-copied { color: var(--color-warm); }

.contact-item a.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.9rem; text-align: center;
  background: var(--color-text); color: var(--color-bg); border-color: var(--color-text);
}
.contact-item a.btn-whatsapp:hover { background: var(--color-warm); border-color: var(--color-warm); color: var(--color-white); }

/* ---------- Footer ---------- */
.footer { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.footer__brand .wordmark { font-size: 1.5rem; }
.footer__brand p { font-size: 0.88rem; color: var(--color-text-soft); margin-top: 0.8rem; max-width: 32ch; }
.footer__news h4 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.footer__news p { font-size: 0.88rem; color: var(--color-text-soft); }
.contact-card-btn {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1rem;
  border: none; background: var(--color-text); color: var(--color-bg);
  padding: 0.8rem 1.6rem; cursor: pointer; font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; transition: background .3s var(--ease), color .3s var(--ease);
}
.contact-card-btn:hover { background: var(--color-warm); color: var(--color-white); }
.footer__social { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; gap: 1.6rem; }
.footer__social-icons { display: flex; gap: 1.2rem; align-items: center; }
.footer__social a { display: inline-flex; }
.footer__social svg { width: 22px; height: 22px; }
.footer__logo { transform: translateX(6px); }
.footer__logo img {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  display: block; box-shadow: 0 3px 12px rgba(56,62,66,0.16);
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--color-border);
  font-size: 0.78rem; color: var(--color-text-soft);
}
.footer__bottom nav { display: flex; gap: 1.6rem; }
.footer__bottom a { color: var(--color-text-soft); }
.footer__bottom a:hover { color: var(--color-warm); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile menu container default ---------- */
@media (max-width: 860px) {
  .nav__toggle { display: block; z-index: 110; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    gap: 2rem; background: var(--color-bg);
    transform: translateX(100%); transition: transform .45s var(--ease);
    padding: var(--gutter);
  }
  .nav.open .nav__links { transform: translateX(0); }
  .nav__link { font-size: 1.1rem; letter-spacing: 0.16em; }
  .nav__dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent; padding: 0.6rem 0 0;
    min-width: auto; text-align: center;
  }
  .nav__dropdown a { padding: 0.4rem; font-size: 0.85rem; }
  .nav__item { display: block; text-align: center; }
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .folio-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1.4fr 1fr; }
  .footer__top { grid-template-columns: 1.4fr 1fr auto; }
  .project__intro { grid-template-columns: 2fr 1fr; }
  .project__media-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid--feature { grid-template-columns: 2fr 1fr; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1280px) {
  .folio-grid { grid-template-columns: repeat(3, 1fr); }
  .preview-grid { grid-template-columns: repeat(4, 1fr); }
  .project__media-grid { grid-template-columns: repeat(3, 1fr); }
}

/* span helpers for asymmetric grids */
.span-2 { grid-column: span 2; }
@media (max-width: 767px) { .span-2 { grid-column: span 1; } }


.page[hidden]{display:none!important}

