/* ==========================================================================
   Highrise Design Global — site styles
   Palette and type ported from the original design.
   ========================================================================== */

:root {
  --gold:        #f2b21c;
  --gold-light:  #ffd77a;
  --gold-deep:   #a97a10;
  --ink:         #080705;
  --ink-2:       #100d09;
  --ink-3:       #141009;
  --text:        #e9e2d4;
  --muted:       #a2967f;
  --muted-2:     #b9ae9a;
  --cream:       #efe7d8;
  --line:        rgba(242, 178, 28, .2);
  --line-soft:   rgba(242, 178, 28, .14);
  --line-strong: rgba(242, 178, 28, .6);
  --glass:       linear-gradient(160deg, rgba(255,247,232,.06), rgba(255,255,255,.015));
  --shadow:      0 26px 60px rgba(0,0,0,.5);
  --font-head:   Montserrat, system-ui, sans-serif;
  --font-body:   Poppins, system-ui, sans-serif;
  --pad-x:       clamp(14px, 4vw, 48px);
  --wrap:        1340px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-head); }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap-sm { max-width: 1120px; margin: 0 auto; }

.section { padding: clamp(60px, 8vw, 110px) var(--pad-x); }
.section-tight { padding: clamp(44px, 5vw, 70px) var(--pad-x); }

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

/* ------------------------------------------------------------- headings */

.kicker {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .3em;
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
}

.head-2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(27px, 4.2vw, 46px);
  color: #fff;
  margin: 14px 0 0;
  line-height: 1.12;
}

.rule { width: 64px; height: 2px; background: var(--gold); margin: 20px auto 0; }
.rule-left { margin-left: 0; }

.section-head { text-align: center; margin-bottom: 50px; }

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 15px 28px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  transition: filter .25s ease, background .25s ease, transform .25s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #15120c;
  box-shadow: 0 18px 36px rgba(242, 178, 28, .3);
}
.btn-gold:hover { filter: brightness(1.08); color: #15120c; }

.btn-ghost {
  border: 1px solid rgba(242, 178, 28, .45);
  color: #f7ecd6;
  font-weight: 700;
  background: transparent;
}
.btn-ghost:hover { background: rgba(242, 178, 28, .16); color: #f7ecd6; }

/* --------------------------------------------------------------- header */

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 90; }
.site-header.static { position: relative; }

.topbar {
  background: rgba(10, 9, 7, .42);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(242, 178, 28, .16);
  color: #d9cfbc;
  font-size: 12.5px;
  padding: 9px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  transition: background .4s ease;
}
.topbar.scrolled { background: rgba(10, 9, 7, .78); }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
.topbar-social { display: flex; gap: 9px; align-items: center; }

.social-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(242, 178, 28, .35);
  color: #e8dcc4;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  transition: background .25s ease, color .25s ease;
}
.social-dot:hover { background: var(--gold); color: #12100b; }

.navbar {
  background: rgba(10, 9, 7, .28);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .4s ease, box-shadow .4s ease;
}
.navbar.scrolled {
  background: rgba(10, 9, 7, .72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px clamp(14px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: .1em;
}
.nav-links a {
  padding: 9px 0;
  border-bottom: 1.5px solid transparent;
  color: var(--cream);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #15120c;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .08em;
  padding: 13px 22px;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(242, 178, 28, .28);
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.08); color: #15120c; }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(242, 178, 28, .35);
  border-radius: 4px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--gold);
  margin: 4px 0; transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  /* The nav row wraps: logo + CTA + burger on line 1, links below. */
  .nav-inner { flex-wrap: wrap; row-gap: 0; }
  .nav-logo { order: 1; margin-right: auto; }
  .nav-cta { order: 2; padding: 11px 16px; font-size: 11.5px; }
  .nav-toggle { display: block; order: 3; }
  .nav-links {
    order: 4;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a {
    padding: 13px 2px;
    width: 100%;
    border-bottom: 1px solid rgba(242, 178, 28, .1);
  }
  .nav-links a:last-child { border-bottom: none; }
  /* Underline the active item on its left edge instead of the full row. */
  .nav-links a.active { border-bottom-color: var(--gold); }
  /* Hide only the long address on small screens — the phone stays. */
  .topbar-address { display: none; }
}

@media (max-width: 560px) {
  .topbar { font-size: 11.5px; justify-content: center; }
  .nav-logo img { height: 38px; }
}

/* ------------------------------------------------- call / WhatsApp icons */

/* Sits immediately after a phone number, everywhere one appears. */
.contact-icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;            /* space between the call and WhatsApp icons */
  margin-left: 12px;    /* space after the phone number */
  vertical-align: middle;
  white-space: nowrap;
}

/* Number + icons share one centred baseline. */
.phone-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  line-height: 1;
}
.phone-line .phone-num { line-height: 1; }

.contact-icons .ci {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--gold);
  border: 1px solid rgba(242, 178, 28, .4);
  background: rgba(242, 178, 28, .1);
  line-height: 0;
  flex-shrink: 0;
  transition: background .25s ease, color .25s ease,
              border-color .25s ease, transform .25s ease;
}

.contact-icons .ci:hover,
.contact-icons .ci:focus-visible {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold);
  color: #15120c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(242, 178, 28, .32);
}

.contact-icons .ci:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* Tighter variant for the dense top bar. */
.topbar-phone { display: inline-flex; align-items: center; }
.topbar .contact-icons { gap: 8px; margin-left: 10px; }
.topbar .contact-icons .ci { width: 22px; height: 22px; }

/* The number itself keeps the surrounding text colour in the footer. */
.footer-contact .phone-num { color: var(--gold); }

/* ----------------------------------------------------------- page heros */

.page-hero {
  position: relative;
  padding: clamp(88px, 10vw, 130px) var(--pad-x) clamp(40px, 5vw, 60px);
  background: radial-gradient(130% 95% at 50% 0%, #241d12, var(--ink));
  color: #fff;
  overflow: hidden;
}
.page-hero h1 {
  font-weight: 900;
  font-size: clamp(30px, 5vw, 58px);
  margin: 12px 0 0;
  line-height: 1.05;
}
.page-hero p {
  max-width: 720px;
  color: #d8cdb9;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.8;
  margin: 20px 0 0;
}
.page-hero .gold { color: var(--gold); }

/* Floating wireframe cubes used as hero decoration. */
.orbit-cube {
  position: absolute;
  transform-style: preserve-3d;
  animation: hdgOrbit 20s linear infinite;
  pointer-events: none;
}
.orbit-cube i {
  position: absolute; inset: 0;
  border: 1px solid rgba(242, 178, 28, .4);
  border-radius: 18px;
  display: block;
}

@keyframes hdgOrbit {
  from { transform: rotateX(-20deg) rotateY(0deg); }
  to   { transform: rotateX(-20deg) rotateY(360deg); }
}
@keyframes hdgFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -9px); }
}

/* ------------------------------------------------------------ home hero */

#build { position: relative; height: 400vh; background: var(--ink); }

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 1700px;
  perspective-origin: 50% 48%;
  background: radial-gradient(140% 90% at 50% 8%, #221c14 0%, #0d0b08 52%, #050403 100%);
}

.hero-grid {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(242,178,28,.05) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(0deg,  rgba(242,178,28,.05) 0 1px, transparent 1px 110px);
  -webkit-mask-image: radial-gradient(62% 62% at 50% 50%, #000, transparent);
          mask-image: radial-gradient(62% 62% at 50% 50%, #000, transparent);
}

.hero-glow {
  position: absolute; left: 50%; top: 52%;
  width: min(1100px, 130vw); height: min(700px, 80vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(242,178,28,.13) 0%, transparent 66%);
  filter: blur(14px);
}

.hero-scene-wrap { position: absolute; inset: 0; display: grid; place-items: center; }

.hero-scene {
  position: relative; width: 0; height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-ground {
  position: absolute; left: -460px; top: 0;
  width: 920px; height: 640px;
  transform: rotateX(90deg) translateZ(10px);
  background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.65) 0%, rgba(0,0,0,.25) 45%, transparent 72%);
}

/* One 3D box of the villa. Faces are positioned from CSS vars set in JS. */
.part {
  position: absolute; left: 0; top: 0;
  transform-style: preserve-3d;
  will-change: transform;
  --w: 200px; --h: 60px; --d: 120px;
  --f: #d8d2c6; --s: #b3ab9c; --t: #efeade;
}
.part i {
  position: absolute;
  display: block;
}
.part .f-front  { left: calc(var(--w) / -2); top: calc(var(--h) / -2); width: var(--w); height: var(--h); background: var(--f); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); transform: translateZ(calc(var(--d) / 2)); }
.part .f-back   { left: calc(var(--w) / -2); top: calc(var(--h) / -2); width: var(--w); height: var(--h); background: var(--s); filter: brightness(.82); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.part .f-right  { left: calc(var(--d) / -2); top: calc(var(--h) / -2); width: var(--d); height: var(--h); background: var(--s); transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.part .f-left   { left: calc(var(--d) / -2); top: calc(var(--h) / -2); width: var(--d); height: var(--h); background: var(--s); filter: brightness(.72); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.part .f-top    { left: calc(var(--w) / -2); top: calc(var(--d) / -2); width: var(--w); height: var(--d); background: var(--t); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.part .f-bottom { left: calc(var(--w) / -2); top: calc(var(--d) / -2); width: var(--w); height: var(--d); background: #0a0906; transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }

.hero-lead {
  position: absolute;
  top: clamp(96px, 15vh, 150px);
  left: 0; right: 0;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  z-index: 5;
}
.hero-lead-kicker {
  font-family: var(--font-head); font-weight: 700;
  letter-spacing: .36em; font-size: 11px; color: var(--gold);
}
.hero-lead-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(28px, 4.8vw, 58px);
  letter-spacing: -.015em; line-height: 1;
  margin-top: 10px;
  text-shadow: 0 18px 40px rgba(0,0,0,.7);
}
.hero-lead-sub {
  color: #b7ab95;
  font-size: clamp(12px, 1.4vw, 15px);
  margin-top: 12px;
  letter-spacing: .04em;
}

.hero-copy {
  position: relative;
  z-index: 6;
  text-align: center;
  padding: clamp(24px, 3vw, 38px) clamp(20px, 3vw, 40px);
  color: #fff;
  max-width: 660px;
  border-radius: 2px;
  border: 1px solid rgba(242, 178, 28, .3);
  background: linear-gradient(160deg, #1a150e, #0b0906);
  box-shadow: 0 50px 110px rgba(0, 0, 0, .6);
  opacity: 0;
  will-change: transform, opacity;
}
.hero-copy img { width: min(300px, 66vw); filter: drop-shadow(0 22px 44px rgba(0,0,0,.7)); }
.hero-copy-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(22px, 3.2vw, 36px); line-height: 1.05; letter-spacing: -.01em;
}
.hero-copy-tag {
  font-family: var(--font-head); font-weight: 600;
  letter-spacing: .32em; font-size: clamp(9.5px, 1.3vw, 12px);
  color: #cbbfa8; margin-top: 12px; text-transform: uppercase;
}
.hero-copy-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-top: 24px;
}

.hero-hint {
  position: absolute; bottom: 18px; left: 50%;
  transform: translate(-50%, 0);
  color: #8d816d; font-size: 10px; letter-spacing: .34em;
  font-family: var(--font-head);
  animation: hdgFloat 2.4s ease-in-out infinite;
}

/* Without JS, or with reduced motion, show the card and drop the tall scroll. */
.no-js #build, .reduced-motion #build { height: auto; }
.no-js .hero-stage, .reduced-motion .hero-stage { position: relative; height: auto; min-height: 100vh; padding: 120px 20px 80px; }
.no-js .hero-copy, .reduced-motion .hero-copy { opacity: 1; }
.no-js .hero-scene-wrap, .no-js .hero-hint { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-hint, .orbit-cube { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- stats */

.stats {
  background: var(--ink-2);
  padding: 10px var(--pad-x) clamp(46px, 6vw, 70px);
  color: #fff;
}
.stats-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  text-align: center;
}
.stat {
  padding: 26px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(255,247,232,.05), rgba(255,255,255,.01));
  backdrop-filter: blur(10px);
}
.stat-value {
  display: flex; align-items: baseline; justify-content: center;
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(30px, 4vw, 50px); color: var(--gold);
}
.stat-label {
  font-size: 12px; letter-spacing: .2em; color: var(--muted);
  text-transform: uppercase; margin-top: 8px;
}

/* ------------------------------------------------------------- services */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  perspective: 1300px;
}
/*
 * With seven cards the last row holds three, and auto-fit would stretch them
 * across the full width. Fixed tracks plus centred justification leaves the
 * remainder centred on the page instead. Desktop only — the narrow
 * breakpoints below set their own column counts.
 */
@media (min-width: 981px) {
  .svc-grid {
    grid-template-columns: repeat(4, minmax(0, 290px));
    justify-content: center;
  }
}
.svc-card {
  display: block;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: border-color .3s ease, box-shadow .3s ease, transform .4s ease;
  color: inherit;
}
.svc-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .5);
  color: inherit;
}
.svc-card h3 {
  font-weight: 800; font-size: 20px; color: #fff;
  margin: 22px 0 10px; transform: translateZ(24px);
}
.svc-card p {
  color: var(--muted); font-size: 15px; line-height: 1.75;
  margin: 0; transform: translateZ(14px);
}
.svc-icon { height: 56px; position: relative; transform: translateZ(40px); }

/* Numbered icon tile used on the services page. */
.svc-row {
  display: grid;
  grid-template-columns: minmax(130px, 200px) 1fr;
  gap: 26px;
  align-items: center;
  background: rgba(255, 247, 232, .06);
  border: 1px solid rgba(242, 178, 28, .22);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform .3s ease, box-shadow .3s ease;
}
.svc-row-num {
  width: clamp(130px, 16vw, 180px);
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(242,178,28,.85), rgba(255,215,122,.45));
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(38px, 5vw, 56px);
  color: #15120c;
  box-shadow: 0 26px 50px rgba(242,178,28,.28), inset 0 2px 0 rgba(255,247,232,.06);
  transform: translateZ(50px);
  overflow: hidden;
}
.svc-row-num img { width: 100%; height: 100%; object-fit: cover; }
.svc-row h2 {
  font-weight: 900; font-size: clamp(22px, 3vw, 32px);
  color: #fff; margin: 8px 0 12px;
}
.svc-row p { color: var(--muted); font-size: 16px; line-height: 1.85; margin: 0; }
.svc-row-kicker {
  font-family: var(--font-head); font-weight: 800;
  font-size: 11.5px; letter-spacing: .2em; color: var(--gold);
}
@media (max-width: 640px) {
  .svc-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  border: 1px solid rgba(242, 178, 28, .3);
  background: rgba(242, 178, 28, .12);
  color: var(--gold);
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ------------------------------------------------------------ why cards */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
/* Same reasoning as .svc-grid: centre the short final row on desktop. */
@media (min-width: 981px) {
  .why-grid {
    grid-template-columns: repeat(5, minmax(0, 250px));
    justify-content: center;
  }
}
.why-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: linear-gradient(160deg, rgba(255,247,232,.05), rgba(255,255,255,.012));
  border: 1px solid rgba(242, 178, 28, .16);
  border-radius: 4px;
  padding: 30px 24px;
  backdrop-filter: blur(10px);
  transition: border-color .3s ease, transform .3s ease;
}
.why-card:hover { border-color: rgba(242, 178, 28, .55); transform: translateY(-5px); }
.why-bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.why-bars i { display: block; width: 5px; }
.why-bars i:nth-child(1) { height: 14px; background: rgba(242,178,28,.5); }
.why-bars i:nth-child(2) { height: 24px; background: rgba(242,178,28,.75); }
.why-bars i:nth-child(3) { height: 34px; background: var(--gold); }
.why-num {
  font-family: var(--font-head); font-weight: 800; font-size: 11px;
  letter-spacing: .24em; color: var(--gold); margin-top: 14px;
}
.why-title {
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px;
  color: #fff; margin-top: 18px;
}
.why-card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 10px 0 0; }

/* ------------------------------------------------------------- projects */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.proj-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #0d0b08;
  transition: border-color .3s ease, transform .3s ease;
}
.proj-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.proj-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0b0906; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-body {
  padding: 18px 20px; text-align: center;
  background: linear-gradient(180deg, rgba(20,16,9,.4), rgba(8,7,5,.9));
}
.proj-title { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: #fff; }
.proj-tag { color: var(--gold); font-size: 12px; letter-spacing: .14em; margin-top: 5px; }

/* Portfolio page: overlay style card */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  perspective: 1300px;
}
/*
 * Six across on desktop, with any short final row centred. The cards get
 * appreciably narrower at this count, so the caption is scaled to match.
 * Scoped above 980px — the 720px rules below still set two per row.
 */
/* Tablet band: auto-fit's 290px minimum only fits two here, which wastes
   the width. Three reads better between the mobile pair and the desktop grid. */
@media (min-width: 721px) and (max-width: 980px) {
  .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 981px) {
  .pf-grid {
    /* Four across in the 981–1279px band; six would leave the cards too
       narrow to read at these widths. */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: center;
    gap: 18px;
  }
  .pf-grid .pf-body { padding: 15px 14px; }
  .pf-grid .pf-body .t { font-size: 15px; line-height: 1.25; }
  .pf-grid .pf-body .s { font-size: 10.5px; letter-spacing: .06em; margin-top: 3px; }
}

@media (min-width: 1280px) {
  .pf-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
  .pf-grid .pf-body { padding: 13px 12px; }
  .pf-grid .pf-body .t { font-size: 14px; }
  .pf-grid .pf-body .s { font-size: 10px; }
}
.pf-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(242, 178, 28, .22);
  background: #0d0b08;
  backdrop-filter: blur(12px);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  transform-style: preserve-3d;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.pf-card > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.pf-body {
  position: relative; width: 100%; padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(20,17,12,.9));
  color: #fff;
  transform: translateZ(24px);
}
.pf-body .t { font-family: var(--font-head); font-weight: 800; font-size: 19px; }
.pf-body .s { color: var(--gold); font-size: 12.5px; letter-spacing: .1em; margin-top: 4px; }

.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 38px;
}
.filter-btn {
  border: 1px solid rgba(242, 178, 28, .3);
  background: rgba(255, 247, 232, .06);
  backdrop-filter: blur(10px);
  color: var(--muted);
  border-radius: 99px;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-weight: 700; font-size: 12.5px; letter-spacing: .08em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1b1610;
}

/* ---------------------------------------------------------------- teams */

.team-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px; }
.team-card { text-align: center; }
.team-frame {
  padding: 1.5px;
  background: linear-gradient(145deg, var(--gold), #6b4f10 50%, var(--gold-light));
  box-shadow: 0 26px 54px rgba(0, 0, 0, .5);
}
.team-frame-inner { padding: 8px; background: linear-gradient(180deg, #15120c, #0b0906); }
.team-photo { width: 190px; height: 240px; overflow: hidden; background: #0b0906; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.team-name {
  margin-top: 22px; font-family: var(--font-head); font-weight: 900;
  font-size: 21px; color: #fff; letter-spacing: .02em; text-transform: uppercase;
}
.team-role {
  display: inline-block; margin-top: 8px; padding: 6px 16px;
  border: 1px solid rgba(242, 178, 28, .4);
  color: var(--gold); font-size: 11px; letter-spacing: .24em; font-weight: 600;
}

/* About-page team card variant */
.team-card-boxed {
  width: 250px;
  background: rgba(255, 247, 232, .08);
  border: 1px solid rgba(242, 178, 28, .25);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}
.team-card-boxed .ph {
  width: 150px; height: 190px; margin: 0 auto;
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(242, 178, 28, .4);
}
.team-card-boxed .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-card-boxed .n { font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-top: 16px; color: #fff; }
.team-card-boxed .r { color: var(--gold); font-size: 12px; letter-spacing: .16em; margin-top: 5px; font-weight: 600; }

/* --------------------------------------------------------- testimonials */

.testi-stage {
  position: relative; perspective: 1300px; height: 340px;
  display: grid; place-items: center; padding: 0 16px;
}
.testi-card {
  position: absolute;
  width: min(580px, 90vw);
  padding: 36px 34px;
  border: 1px solid rgba(242, 178, 28, .28);
  background: linear-gradient(160deg, rgba(255,247,232,.08), rgba(8,7,5,.6));
  backdrop-filter: blur(18px);
  box-shadow: 0 46px 90px rgba(0, 0, 0, .55);
  text-align: center;
  transition: transform .8s cubic-bezier(.22,.8,.3,1), opacity .8s ease;
  will-change: transform, opacity;
}
.testi-stars { font-size: 22px; color: var(--gold); letter-spacing: .3em; }
.testi-card p {
  font-size: clamp(15px, 1.8vw, 18.5px);
  line-height: 1.8; margin: 18px 0 0; color: var(--cream);
}
.testi-name { font-family: var(--font-head); font-weight: 800; margin-top: 22px; letter-spacing: .04em; }
.testi-role { color: var(--muted); font-size: 12px; letter-spacing: .18em; margin-top: 6px; }

.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.testi-dot {
  width: 10px; height: 10px; border-radius: 6px; border: none;
  background: rgba(242, 178, 28, .3); cursor: pointer; padding: 0;
  transition: all .4s ease;
}
.testi-dot.active { background: var(--gold); width: 28px; }

/* Fallback: if JS is off the cards stack readably instead of overlapping. */
.no-js .testi-stage { height: auto; display: grid; gap: 20px; }
.no-js .testi-card { position: relative; opacity: 1; }
.no-js .testi-dots { display: none; }

/* ---------------------------------------------------------------- forms */

.form-card {
  border: 1px solid rgba(242, 178, 28, .28);
  background: linear-gradient(160deg, rgba(255,247,232,.07), rgba(255,255,255,.015));
  backdrop-filter: blur(16px);
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  gap: 14px;
  align-content: start;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.form-card h2, .form-title {
  font-family: var(--font-head); font-weight: 900; font-size: 21px;
  color: #fff; margin: 0;
}

.field {
  border: 1px solid rgba(242, 178, 28, .22);
  background: rgba(255, 255, 255, .04);
  color: #f3ecdd;
  border-radius: 2px;
  padding: 15px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  width: 100%;
  transition: border-color .2s ease;
}
.field::placeholder { color: #8d816d; }
.field:focus { border-color: var(--gold); }
textarea.field { resize: vertical; }
select.field { color: #d8cdb9; }
select.field option { background: #15120c; color: #f3ecdd; }

.field-error { border-color: #e06d5f; }
.err-text { color: #f0917f; font-size: 13px; margin: -6px 0 0; }

/* Hidden field used to catch bots. Must stay invisible but focusable-free. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0;
}

.alert {
  border-radius: 3px;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.6;
  border: 1px solid;
}
.alert-success { background: rgba(76, 175, 110, .12); border-color: rgba(76, 175, 110, .45); color: #a8e6c0; }
.alert-error   { background: rgba(224, 109, 95, .12); border-color: rgba(224, 109, 95, .45); color: #f0917f; }

/* ------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.map-box {
  flex: 1; min-height: 300px;
  border: 1px solid rgba(242, 178, 28, .22);
  overflow: hidden;
}
.map-box iframe {
  width: 100%; height: 100%; min-height: 300px; border: 0;
  filter: grayscale(.4) contrast(1.05) brightness(.85);
  display: block;
}
.info-box {
  border: 1px solid rgba(242, 178, 28, .22);
  background: var(--glass);
  backdrop-filter: blur(12px);
  padding: 26px;
  display: block;
  transition: border-color .3s ease;
}
a.info-box:hover { border-color: var(--line-strong); }
.info-label {
  font-family: var(--font-head); font-weight: 800;
  font-size: 11.5px; letter-spacing: .22em; color: var(--gold);
}
.info-value { margin-top: 10px; color: #fff; font-size: 19px; font-weight: 600; }
.info-text { margin-top: 10px; color: #cfc3ad; line-height: 1.8; font-size: 15px; }

/* ---------------------------------------------------------------- cards */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.pillar {
  background: rgba(255, 247, 232, .06);
  border: 1px solid rgba(242, 178, 28, .22);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .5);
}
.pillar h3 { font-weight: 800; font-size: 19px; color: #fff; margin: 0 0 8px; }
.pillar p { color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0; }

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  align-items: center;
}

/* Slider variant: a single scrollable row that can auto-pan.
   Used once there are more logos than fit comfortably. */
.client-grid.is-slider {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  /* No scroll-snap here: snapping cancels the 1px auto-pan steps. */
  scrollbar-width: none;
  padding-bottom: 4px;
}
.client-grid.is-slider::-webkit-scrollbar { display: none; }
.client-grid.is-slider > * {
  flex: 0 0 clamp(150px, 16vw, 200px);
}

/* The team row scrolls too, once the members overflow one line. */
.team-row {
  overflow-x: auto;
  scrollbar-width: none;
}
.team-row::-webkit-scrollbar { display: none; }
.client-logo {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  padding: 22px 18px;
  display: grid;
  place-items: center;
  min-height: 110px;
  transition: border-color .3s ease;
}
.client-logo:hover { border-color: var(--line-strong); }
.client-logo img { max-height: 62px; width: auto; object-fit: contain; filter: brightness(1.05); }
.client-logo .nm {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: var(--muted-2); text-align: center; letter-spacing: .06em;
}

/* -------------------------------------------------------------- process */

.process-row {
  position: relative;
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: flex-start;
}
.flowline {
  position: absolute; left: 9%; right: 9%; top: 44px; height: 2px;
  background: linear-gradient(90deg, rgba(242,178,28,0), rgba(242,178,28,.5) 12%, rgba(242,178,28,.5) 88%, rgba(242,178,28,0));
}
.flowfill {
  position: absolute; left: 9%; top: 44px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 16px rgba(242, 178, 28, .6);
  transition: width 1.6s cubic-bezier(.22,.8,.3,1);
}
.process-step {
  position: relative; flex: 1 1 190px; max-width: 250px;
  text-align: center; padding: 0 10px;
}
.fnode {
  position: relative;
  width: 88px; height: 88px; margin: 0 auto;
  border: 1px solid rgba(242, 178, 28, .45);
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255,247,232,.07), rgba(8,7,5,.75));
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  color: var(--gold);
  transition: border-color .4s ease, background .4s ease, box-shadow .4s ease;
}

/* Step number, as a small badge on the node's corner. */
.fnode-num {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #15120c;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(242, 178, 28, .35);
}
.process-step:hover .fnode {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(242,178,28,.2), rgba(8,7,5,.7));
}
.process-title { font-family: var(--font-head); font-weight: 800; font-size: 16.5px; margin-top: 24px; color: #fff; }
.process-step p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 8px 0 0; }

@media (max-width: 900px) { .flowline, .flowfill { display: none; } }

/* --------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, rgba(12,10,8,.92), rgba(8,7,5,.98));
  color: var(--muted-2);
  padding: clamp(46px, 6vw, 74px) var(--pad-x) 28px;
  border-top: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.footer-glow {
  position: absolute; left: 50%; top: -140px;
  width: min(900px, 120vw); height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(242,178,28,.14), transparent 65%);
  pointer-events: none;
}
.footer-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 38px;
  position: relative;
}
.footer-grid img { height: 78px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.footer-about { font-size: 14px; line-height: 1.8; margin: 16px 0 0; max-width: 330px; }
.footer-tag {
  font-family: var(--font-head); letter-spacing: .22em;
  font-size: 11px; color: var(--gold); margin-top: 18px;
}
.footer-head {
  font-family: var(--font-head); font-weight: 800; color: #fff;
  font-size: 13px; letter-spacing: .18em; margin-bottom: 18px;
}
.footer-links { display: grid; gap: 11px; font-size: 14.5px; }
.footer-links a, .footer-contact a { color: var(--muted-2); }
.footer-links a:hover { color: var(--gold); }
.footer-contact { display: grid; gap: 12px; font-size: 14.5px; line-height: 1.65; }
.footer-contact a { color: var(--gold); }
.footer-bottom {
  max-width: var(--wrap); margin: 38px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 178, 28, .14);
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  justify-content: space-between; font-size: 13px; position: relative;
}
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom span:last-child { display: flex; gap: 18px; }

/* ------------------------------------------------------------------ CTA */

.cta-band {
  padding: clamp(44px, 5vw, 70px) var(--pad-x);
  background: radial-gradient(130% 95% at 50% 0%, #241d12, var(--ink));
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  font-weight: 900; font-size: clamp(24px, 3.6vw, 38px); margin: 0;
}
.cta-band p { color: #c9bfae; margin: 14px 0 26px; }

/* Empty-state note shown when the admin has no rows yet. */
.empty-note {
  border: 1px dashed rgba(242, 178, 28, .3);
  border-radius: 6px;
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  grid-column: 1 / -1;
}

/* =========================================================================
   MOBILE LAYOUT
   Two cards per row instead of one, so the page is not an endless column.
   ========================================================================= */

@media (max-width: 720px) {
  /* Core services, why-choose-us, projects and clients: 2 per row. */
  .svc-grid,
  .why-grid,
  .proj-grid,
  .pf-grid,
  .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* Tighter padding + type so two cards actually fit a 360px screen. */
  .svc-card { padding: 20px 15px; }
  .svc-card h3 { font-size: 15.5px; margin: 14px 0 7px; }
  .svc-card p { font-size: 13px; line-height: 1.6; }
  .svc-icon { height: 40px; transform: none; }
  .svc-icon > div { height: 40px !important; }

  .why-card { padding: 20px 13px; }
  .why-title { font-size: 14.5px; margin-top: 12px; }
  .why-card p { font-size: 12.5px; line-height: 1.6; }
  .why-num { margin-top: 10px; }

  .proj-body { padding: 12px 10px; }
  .proj-title { font-size: 14.5px; }
  .proj-tag { font-size: 10.5px; letter-spacing: .1em; }

  .pf-body { padding: 13px 11px; }
  .pf-body .t { font-size: 14.5px; }
  .pf-body .s { font-size: 10.5px; }

  .client-logo { min-height: 84px; padding: 14px 10px; }

  .section-head { margin-bottom: 32px; }

  /* Stats read better as a 2x2 block. */
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 18px 8px; }
  .stat-label { font-size: 10px; letter-spacing: .12em; }
}

/* Very narrow phones: keep two columns but shrink further. */
@media (max-width: 400px) {
  .svc-grid, .why-grid, .proj-grid, .pf-grid { gap: 9px; }
  .svc-card { padding: 16px 11px; }
  .svc-card h3 { font-size: 14px; }
  .why-card { padding: 16px 10px; }
}

/* ------------------------------------------------------- process (mobile) */

/* The desktop version is a horizontal flow line with numbered nodes.
   On mobile that collapses into lonely squares, so switch to a compact
   vertical list with a connecting rail. */
@media (max-width: 720px) {
  .process-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
    padding-left: 4px;
  }
  .process-step {
    max-width: none;
    width: 100%;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 15px;
    text-align: left;
    padding: 0 0 22px;
    position: relative;
  }
  /* Node spans both rows; title and copy stack in the right column. */
  .process-step .fnode { grid-column: 1; grid-row: 1 / span 2; }
  .process-step .process-title { grid-column: 2; grid-row: 1; }
  .process-step p { grid-column: 2; grid-row: 2; }
  .process-step:last-child { padding-bottom: 0; }

  /* Rail joining one step to the next. */
  .process-step::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 52px;
    bottom: -4px;
    width: 2px;
    background: linear-gradient(180deg, rgba(242,178,28,.5), rgba(242,178,28,.12));
  }
  .process-step:last-child::before { display: none; }

  .fnode {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 17px;
    margin: 0;
    position: relative;
    z-index: 1;
  }
  .fnode-num { width: 20px; height: 20px; font-size: 11px; right: -3px; bottom: -3px; }
  .process-title { margin-top: 0; font-size: 15.5px; padding-top: 14px; }
  .process-step p { font-size: 13px; margin-top: 5px; }
}

/* ------------------------------------------------------ sliders (mobile) */

/* Team and clients become swipeable rows: one card at a time, snapping. */
@media (max-width: 720px) {
  .team-row,
  .client-grid.is-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 14px;
    padding: 4px 2px 14px;
    margin: 0 calc(var(--pad-x) * -1);
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .team-row::-webkit-scrollbar,
  .client-grid.is-slider::-webkit-scrollbar { display: none; }

  .team-row > * {
    flex: 0 0 min(78%, 280px);
  }
  .team-card-boxed { width: auto; }

  .client-grid.is-slider > * {
    flex: 0 0 44%;
  }
}

/* --------------------------------------------------------- footer (mobile) */

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .footer-grid img { margin: 0 auto; }
  .footer-about { margin-left: auto; margin-right: auto; }
  .footer-links,
  .footer-contact { justify-items: center; }
  .footer-contact span,
  .footer-contact a { text-align: center; }
  .footer-contact .phone-line { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom span:last-child { justify-content: center; flex-wrap: wrap; }
}

/* =========================================================================
   PRODUCTS
   Square image tiles. The name appears on hover, but only when one is set —
   an unnamed product shows the image alone with no hover effect.
   ========================================================================= */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
/* Six across on desktop, with any short final row centred. */
@media (min-width: 981px) {
  .prod-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-content: center;
  }
}

.prod-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;          /* catalogue shots are on white */
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.prod-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  display: block;
  transition: transform .4s ease;
}

/* Hover treatment only for tiles that have a name to reveal. */
.prod-tile.has-name:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .5);
}
.prod-tile.has-name:hover img { transform: scale(1.06); }

.prod-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 13px;
  background: linear-gradient(180deg, transparent, rgba(8, 7, 5, .93));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.prod-tile.has-name:hover .prod-name,
.prod-tile.has-name:focus-visible .prod-name {
  opacity: 1;
  transform: none;
}

/* Touch devices have no hover, so keep the name permanently visible. */
@media (hover: none) {
  .prod-tile.has-name .prod-name { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prod-name { font-size: 12px; padding: 20px 8px 10px; }
}

/* ------------------------------------------------- project detail page */
.proj-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}
.proj-detail-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.proj-detail-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.proj-detail-desc {
  color: var(--muted-2);
  font-size: 15.5px;
  line-height: 1.9;
  margin: 0 0 30px;
}
.proj-detail-h {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: .02em;
  margin: 0 0 22px;
}

/* Gold chevron markers instead of default discs. */
.proj-points { list-style: none; margin: 0 0 34px; padding: 0; }
.proj-points li {
  position: relative;
  padding: 0 0 0 30px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}
.proj-points li::before {
  content: "";
  position: absolute;
  left: 4px; top: .55em;
  width: 7px; height: 7px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.proj-detail-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* The "more projects" cards are links, so kill the inherited underline. */
a.pf-card { text-decoration: none; color: inherit; }

@media (max-width: 900px) {
  .proj-detail { grid-template-columns: 1fr; }
}
a.proj-card { text-decoration: none; color: inherit; display: block; }

/* ------------------------------------------- "More pages" nav dropdown */
/* Custom pages collapse in here past the first, so the bar keeps its width. */
.nav-more { position: relative; }
.nav-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 0;
  border: 0; border-bottom: 1.5px solid transparent;
  background: none; cursor: pointer;
  color: var(--cream);
  font: inherit; letter-spacing: inherit;
  white-space: nowrap;
}
.nav-more-btn svg { transition: transform .2s ease; }
.nav-more.open .nav-more-btn,
.nav-more-btn:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-more.open .nav-more-btn svg { transform: rotate(180deg); }

.nav-more-panel {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  min-width: 260px;
  padding: 10px;
  /* Two columns so a long page list stays compact. */
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 2px 10px;
  background: #0f0c08;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.nav-more.open .nav-more-panel { display: grid; }
.nav-more-panel a {
  padding: 9px 11px;
  border-radius: 7px;
  border-bottom: 0;
  font-size: 12px;
  white-space: normal;
  line-height: 1.35;
}
.nav-more-panel a:hover,
.nav-more-panel a.active { background: rgba(242, 178, 28, .1); border-bottom: 0; }

/* On mobile the bar is already a stacked drawer, so show the list inline. */
@media (max-width: 980px) {
  .nav-more { width: 100%; }
  .nav-more-btn { display: none; }
  .nav-more-panel {
    display: grid; position: static; transform: none;
    min-width: 0; padding: 0; gap: 0;
    background: none; border: 0; box-shadow: none;
    grid-template-columns: 1fr;
  }
  .nav-more-panel a { padding: 9px 0; font-size: 12.5px; }
}
