/*
Theme Name: Plate Design Studio
Theme URI: https://platedesignstudio.example.com/
Author: Plate Design Studio
Author URI: https://platedesignstudio.example.com/
Description: Custom theme for Plate Design Studio, a print and design agency in Accra, Ghana. Interactive hero collage, filterable project deck, services with quote form, manifesto band, client logo strip, rotating testimonials and WhatsApp-first contact. Manage projects via the Project post type and site content via ACF options pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plate-design-studio
Tags: portfolio, business, one-column, custom-colors, featured-images
*/

:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f2;
  --ink: #17140f;
  --ink-soft: #4c463c;
  --line: #ddd5c4;
  --cyan: #0090d4;
  --magenta: #e5007e;
  --teal: #00916e;
  --orange: #f06400;
  --blue: #2456e0;
  --coral: #e83a1e;
  --amber: #ffb400;
  --wa: #1faa55;
  --wa-deep: #0e3b24;
  --shadow: 0 18px 44px rgba(23, 20, 15, 0.14);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4.5vw, 44px); }
section { padding: clamp(56px, 9vw, 104px) 0; }
h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.sec-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }

/* WordPress core bits */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal;
}
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--ink-soft); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 84px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 60px; width: auto; }
nav.main { margin-left: auto; display: flex; gap: 22px; }
nav.main a { text-decoration: none; font-weight: 600; font-size: 15px; }
nav.main a:hover { color: var(--magenta); }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15.5px; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 720px) { nav.main { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(600px, 88vh, 840px);
  display: flex; align-items: center;
  padding: clamp(110px, 13vw, 170px) 0 clamp(96px, 11vw, 150px);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; pointer-events: none; }
.hero .wrap a { pointer-events: auto; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(102deg, rgba(255, 255, 255, 0.97) 24%, rgba(255, 255, 255, 0.74) 55%, rgba(255, 255, 255, 0.48) 100%),
    linear-gradient(to top, var(--paper) 0%, rgba(255, 255, 255, 0) 10%);
}
.hero-collage { position: absolute; inset: 0; z-index: 0; }
.h-tile { position: absolute; will-change: transform; }
.h-tile-in {
  border: 5px solid #fff; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 18px 42px rgba(23, 20, 15, 0.24);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.h-tile:hover .h-tile-in { transform: rotate(0deg) scale(1.05); box-shadow: 0 26px 54px rgba(23, 20, 15, 0.3); }
.h-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; animation: kb 16s ease-in-out infinite alternate; }
.h-tile.t1 { width: min(330px, 30vw); right: 3.5%; top: 8%; }
.h-tile.t2 { width: min(215px, 20vw); right: 25%; top: 4%; }
.h-tile.t2 img { animation-duration: 19s; }
.h-tile.t3 { width: min(270px, 25vw); right: 18%; bottom: 5%; }
.h-tile.t3 img { animation-duration: 13s; }
.h-tile.t4 { width: min(235px, 22vw); right: 1.5%; bottom: 17%; }
.h-tile.t4 img { animation-duration: 22s; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.09); } }
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 30%, rgba(255, 255, 255, 0.86) 100%); }
  .h-tile.t1 { width: 46vw; right: 2%; top: 5%; }
  .h-tile.t2, .h-tile.t4 { display: none; }
  .h-tile.t3 { width: 42vw; right: 6%; bottom: 3%; }
}
h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 1.04; letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
}
.hero-sub { max-width: 560px; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); margin: 26px 0 30px; }
.hero-sub strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ticker {
  margin: 0 0 clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 13px 0;
}
.ticker-track { display: flex; gap: 0; width: max-content; animation: tick 30s linear infinite; }
.ticker span {
  font-family: "Poppins", sans-serif; font-size: 13.5px; letter-spacing: 0.03em;
  white-space: nowrap; padding-right: 14px;
}
.ticker b { font-weight: 400; padding-right: 14px; }
.ticker .c1 { color: var(--cyan); } .ticker .c2 { color: var(--magenta); }
.ticker .c3 { color: var(--orange); } .ticker .c4 { color: var(--teal); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- work deck (full-bleed dark green band) ---------- */
section#work { background: var(--wa-deep); color: #eafaf0; padding-bottom: 0; }
.wrap-full { padding: 0 clamp(18px, 4.5vw, 44px); }
#work h2 { color: #fff; white-space: nowrap; }
#work .sec-head { max-width: none; }
#work .card { color: var(--ink); }
#work .sec-head p { color: #c9e8d4; }
#work .chip { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #c9e8d4; }
#work .chip:hover { border-color: #fff; color: #fff; }
#work .chip.on { background: #fff; border-color: #fff; color: var(--wa-deep); }
#work .deck { padding-left: clamp(18px, 4.5vw, 44px); padding-right: clamp(18px, 4.5vw, 44px); }
#work .deck-btn { background: rgba(255, 255, 255, 0.94); border-color: transparent; color: var(--wa-deep); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
#work .deck-btn:hover { background: #fff; }
#work .deck-empty { color: #c9e8d4; padding-left: clamp(18px, 4.5vw, 44px); padding-right: clamp(18px, 4.5vw, 44px); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.chip {
  font-family: inherit; font-weight: 600; font-size: 12.5px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft);
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.deck-shell { position: relative; }
.deck {
  display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 20px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 auto; width: min(300px, 76vw); scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; text-align: left; padding: 0;
  font-family: inherit; color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .ph { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card .ph .tile-fallback {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px;
  background: var(--wa-deep); color: #fff;
  font-family: "Poppins", sans-serif; font-weight: 800; font-size: 26px; line-height: 1.05;
}
.card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 38px 16px 13px; color: #fff; display: block;
  font-weight: 600; font-size: 15.5px; line-height: 1.3; text-align: left;
  background: linear-gradient(to top, rgba(9, 24, 15, 0.74), rgba(9, 24, 15, 0));
  pointer-events: none;
}
.deck-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; font-size: 19px;
  display: grid; place-items: center; transition: all 0.15s ease; font-family: inherit;
}
.deck-btn:hover { border-color: var(--ink); }
.deck-btn.side { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
.deck-btn.side.prev { left: 12px; }
.deck-btn.side.next { right: 12px; }
.deck-empty { display: none; padding: 34px 0 10px; color: var(--ink-soft); }

/* Portfolio page template */
.portfolio-page { padding-top: clamp(38px, 6vw, 76px); padding-bottom: clamp(52px, 7vw, 96px); }
.portfolio-page .sec-head h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; margin: 0; }
.portfolio-intro { color: var(--ink-soft); font-size: 18px; line-height: 1.55; max-width: 660px; margin: 16px 0 0; }
.portfolio-intro p { margin: 0 0 12px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 8px; }
.portfolio-grid .card { flex: none; width: auto; scroll-snap-align: none; }
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

/* ---------- services + quote ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.svc { border-top: 1px solid var(--line); }
.svc-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 2px; border-bottom: 1px solid var(--line); }
.svc-num { font-family: "Poppins", sans-serif; font-size: 13px; padding-top: 4px; }
.svc-item h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.svc-item p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.svc-tags span { font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-soft); background: var(--surface); }
.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 34px); box-shadow: var(--shadow); position: sticky; top: 84px;
}
@media (max-width: 880px) { .quote-card { position: static; } }
.quote-card h3 { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 26px; margin: 0 0 6px; }
.quote-card > p { color: var(--ink-soft); margin: 0 0 20px; font-size: 15.5px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.field { margin-bottom: 15px; }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; appearance: none;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
input::placeholder, textarea::placeholder { color: #a39d8f; opacity: 1; }
select:has(> option[value=""]:checked) { color: #a39d8f; }
select:has(> option[value=""]:checked) option { color: var(--ink); }
textarea { resize: vertical; min-height: 92px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.form-err { display: none; color: var(--coral); font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.form-note { font-size: 13.5px; color: var(--ink-soft); margin: 13px 0 0; text-align: center; }
/* Fluent Forms inherits the theme field styling above; small alignment tweaks */
.ff-el-group { margin-bottom: 15px; }
.ff-el-group label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }

/* ---------- manifesto (full-bleed) ---------- */
.manifesto {
  background-color: #276339;
  padding: clamp(72px, 11vw, 132px) clamp(14px, 3vw, 40px);
}
.manifesto-frame {
  display: flex; align-items: stretch;
  gap: clamp(12px, 3.5vw, 60px);
  max-width: 1240px; margin: 0 auto;
}
.manifesto-arch {
  flex: 0 0 auto; pointer-events: none;
  background-repeat: no-repeat; background-size: contain; background-position: center;
}
.manifesto-arch.left {
  background-image: url("assets/images/manifesto-paren-left.png");
  width: clamp(54px, 12.5vw, 196px);
}
.manifesto-arch.right {
  background-image: url("assets/images/manifesto-paren-right.png");
  width: clamp(30px, 6vw, 84px);
}
.manifesto-slot { flex: 1 1 auto; min-width: 0; align-self: center; text-align: center; color: #fff; }
.manifesto-slot p {
  margin: 0 0 22px; font-size: clamp(16px, 2vw, 20px); line-height: 1.45; font-weight: 400;
  color: rgba(255, 255, 255, 0.94);
}
.manifesto-slot .closing {
  font-size: clamp(22px, 3vw, 32px); font-weight: 400; line-height: 1.25;
  color: #fff; margin: clamp(26px, 3.4vw, 38px) 0 12px;
}
.manifesto-slot .sign {
  font-size: clamp(14px, 1.6vw, 16px); font-weight: 400; letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8); margin: 0;
}

/* ---------- client logos ---------- */
#clients { padding-top: clamp(30px, 5vw, 52px); padding-bottom: clamp(30px, 5vw, 52px); }
.logo-strip {
  display: flex; flex-wrap: nowrap; align-items: center;
  justify-content: safe center;
  gap: clamp(38px, 6vw, 74px);
  overflow-x: auto; padding: 4px 18px 12px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
}
.logo-strip img { height: clamp(48px, 7vw, 70px); width: auto; flex: 0 0 auto; }
.logo-strip img.logo-tall { height: clamp(68px, 10vw, 96px); border-radius: 8px; }

/* ---------- testimonials (single rotating quote) ---------- */
#reviews { background: var(--surface-2); }
.rotator { max-width: 780px; margin: 0 auto; display: grid; text-align: center; }
.rot-slide {
  grid-area: 1 / 1; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.rot-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.rot-slide .qmark {
  display: block; height: 30px; font-size: 68px; line-height: 0.75;
  font-weight: 800; color: var(--wa);
}
.rot-slide .stars { justify-content: center; }
.rot-slide blockquote {
  margin: 0; font-size: clamp(23px, 3.4vw, 33px); line-height: 1.38; font-weight: 500;
}
.rot-slide .who { font-weight: 700; font-size: 16px; display: block; }
.rot-slide .role { color: var(--ink-soft); font-size: 14.5px; display: block; margin-top: 2px; }
.stars { color: var(--amber); display: flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; }
.rot-dots { display: flex; justify-content: center; gap: 9px; margin-top: 34px; }
.rot-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: var(--line); transition: background 0.2s ease, transform 0.2s ease;
}
.rot-dot:hover { background: var(--ink-soft); }
.rot-dot.on { background: var(--wa-deep); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) {
  .rot-slide { transition: none; }
}

/* ---------- footer ---------- */
footer { background: var(--wa-deep); color: #eafaf0; padding: clamp(58px, 8vw, 88px) 0 108px; }
.foot-cta {
  display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between;
  padding-bottom: clamp(30px, 4vw, 42px); border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.foot-big {
  margin: 0; max-width: 640px; color: #fff;
  font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; line-height: 1.06; letter-spacing: -0.01em;
}
.foot-big em { font-style: normal; color: #9fd8b4; }
.foot-btn { background: #fff; border-color: #fff; color: var(--wa-deep); font-size: 17px; padding: 15px 28px; flex: none; }
.foot-btn:hover { background: var(--wa); border-color: var(--wa); color: #fff; }
.foot-meta {
  display: flex; flex-wrap: wrap; gap: 10px 38px; padding-top: 28px;
  font-size: 15.5px; color: #c9e8d4;
}
.foot-meta .k { display: block; font-size: 11.5px; letter-spacing: 0.06em; color: #9fd8b4; margin-bottom: 3px; }
.foot-meta .v { font-weight: 700; font-size: 17px; color: #fff; }
.foot-meta a { text-decoration: none; border-bottom: 2px solid var(--wa); }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; justify-content: space-between;
  padding-top: 30px; font-size: 13.5px; color: #9fd8b4;
}
.foot-base p { margin: 0; }
.foot-base strong { color: #fff; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 29px; height: 29px; }

/* ---------- project dialog: photo lightbox ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.96); padding: 20px;
}
.sheet.open { display: flex; }
.panel {
  background: transparent; color: #fff;
  width: min(94vw, 1000px); max-height: 94vh; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  animation: fadeZoom 0.22s ease;
}
@keyframes fadeZoom { from { transform: scale(0.96); opacity: 0.4; } to { transform: none; opacity: 1; } }
.panel h3 {
  font-family: "Poppins", sans-serif; font-weight: 800; color: #efefef;
  font-size: clamp(24px, 4vw, 34px); line-height: 1.1; margin: 0 0 18px;
}
.panel .ph { display: flex; justify-content: center; width: 100%; }
.panel .ph img {
  max-width: 100%; max-height: 58vh; width: auto; height: auto;
  object-fit: contain; border-radius: 0;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
.panel p.lede {
  font-size: 17px; color: #efefef;
  max-width: 640px; margin: 18px 0 22px;
}
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: center; }
.panel-link { color: rgba(255, 255, 255, 0.62); font-weight: 600; font-size: 16.5px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: rgba(255, 255, 255, 0.45); cursor: pointer; transition: color 0.15s ease; }
.panel-link:hover { color: #fff; text-decoration-thickness: 2px; text-decoration-color: #fff; }
.panel-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 18px;
  display: grid; place-items: center; font-family: inherit;
  transition: background 0.15s ease;
}
.panel-close:hover { background: rgba(255, 255, 255, 0.28); }
.panel-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.94); color: var(--wa-deep); font-size: 19px;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  font-family: inherit; transition: background 0.15s ease;
}
.panel-nav-btn:hover { background: #fff; }
.panel-nav-btn.prev { left: 18px; }
.panel-nav-btn.next { right: 18px; }
@media (max-width: 640px) {
  .panel .ph img { max-height: 46vh; }
  .panel-nav-btn { width: 40px; height: 40px; font-size: 16px; }
  .panel-nav-btn.prev { left: 8px; }
  .panel-nav-btn.next { right: 8px; }
}

/* ---------- single project page ---------- */
.project-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 44px); }
.project-hero img { width: 100%; max-height: 62vh; object-fit: cover; border-radius: var(--radius); }
.project-cat { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; color: var(--wa); margin-bottom: 10px; }
.project-title { font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 14px; }
.project-lede { font-size: 19px; color: var(--ink-soft); max-width: 720px; margin: 0 0 8px; }
.project-body { max-width: 760px; }
.project-body img { border-radius: var(--radius); margin: 22px 0; }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 26px 0; }
.project-gallery img { border-radius: 10px; width: 100%; height: 220px; object-fit: cover; }
.project-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 10px; }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--amber); }

/* ---------- generic page ---------- */
.page-main { padding: clamp(48px, 7vw, 84px) 0; }
.page-title { font-size: clamp(34px, 5vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 20px; }
.page-body { max-width: 780px; }
.page-body img { border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .h-tile img { animation: none; }
  .h-tile-in { transition: none; }
  .panel { animation: none; }
  .card, .btn, .wa-float { transition: none; }
}
