/* ==========================================================================
   YUVRAAJ ENTERPRISES — "The Royal Press"
   Dark, premium, print-craft design system
   ========================================================================== */

:root {
  /* Palette adapted from the Hi5Clive v2 theme: navy / amber / coral / white */
  --ink: #0a0e19;          /* page background — deep navy ink */
  --ink-2: #0d1220;
  --panel: #121828;        /* raised panels */
  --panel-2: #182034;
  --line: rgba(255, 184, 32, 0.18);
  --line-soft: rgba(245, 247, 252, 0.08);
  --gold: #ffb820;         /* theme amber — lead accent */
  --gold-bright: #ffcb52;
  --gold-deep: #d99a2b;    /* crest gold, ties the logo in */
  --coral: #ff493b;        /* theme coral — secondary accent */
  --paper: #f5f7fc;        /* primary text — cool white */
  --muted: #8d96ab;        /* secondary text */
  --wa: #25d366;           /* WhatsApp green, kept for recognition */
  --cyan: #ff493b;         /* registration-mark micro accents (coral) */
  --magenta: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --w-content: 1180px;
  --pad-x: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

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

::selection { background: var(--gold); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

/* Page fade transition */
body { opacity: 0; transition: opacity 0.35s ease; }
body.is-loaded { opacity: 1; }
body.is-leaving { opacity: 0; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.08; letter-spacing: -0.01em; }

.display-xl { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.display-lg { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.display-md { font-size: clamp(1.5rem, 3vw, 2.2rem); }

.gold-i { color: var(--gold-bright); font-style: italic; font-weight: 500; }

.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }

/* Job-ticket eyebrow — the press-sheet signature */
.ticket {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.ticket::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
.ticket .tick-dim { color: var(--muted); }

/* ---------- Layout ---------- */

.container { width: 100%; max-width: var(--w-content); margin: 0 auto; padding: 0 var(--pad-x); }

.section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* Press-sheet crop marks framing a section */
.press-sheet {
  position: relative;
}
.press-sheet .crop {
  position: absolute;
  width: 22px; height: 22px;
  pointer-events: none;
  opacity: 0.5;
}
.press-sheet .crop::before,
.press-sheet .crop::after {
  content: "";
  position: absolute;
  background: var(--gold);
}
.press-sheet .crop::before { width: 100%; height: 1px; top: 0; }
.press-sheet .crop::after { width: 1px; height: 100%; left: 0; }
.crop.tl { top: 14px; left: 14px; }
.crop.tr { top: 14px; right: 14px; transform: scaleX(-1); }
.crop.bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.crop.br { bottom: 14px; right: 14px; transform: scale(-1); }

/* Halftone dot field texture */
.halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 184, 32, 0.35) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 14, 25, 0.82);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad-x);
  max-width: 1400px;
  margin: 0 auto;
}
.brand img { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper);
  opacity: 0.85;
  padding: 6px 0;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.main-nav a:hover { opacity: 1; color: var(--gold-bright); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.active { color: var(--gold-bright); opacity: 1; }
.main-nav a.active::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 14px; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px; height: 44px;
  position: relative;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--paper);
  margin: 4px auto;
  transition: transform 0.3s ease, opacity 0.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); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 14, 25, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  padding: 10px 20px;
  color: var(--paper);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.25s ease;
}
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold-bright); }
.mobile-menu .menu-contact {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1c2333;
  box-shadow: 0 6px 24px rgba(255, 184, 32, 0.25);
}
.btn-gold:hover { box-shadow: 0 10px 34px rgba(255, 184, 32, 0.45); transform: translateY(-2px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(245, 247, 252, 0.03);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }

.btn-wa { background: var(--wa); color: #06250f; }
.btn-wa:hover { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  overflow: hidden;
}
.hero .halftone { opacity: 0.65; }

.hero-crest {
  position: absolute;
  top: 50%; right: max(-60px, -6vw);
  transform: translateY(-50%);
  width: clamp(340px, 44vw, 700px);
  opacity: 0.09;
  mix-blend-mode: screen; /* hides the crest asset's dark square background */
  pointer-events: none;
  will-change: transform;
}

.hero-inner { position: relative; z-index: 2; }

.hero-kicker { margin-bottom: 26px; }

.hero h1 { max-width: 15ch; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease-out) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero .lede { margin-top: 26px; opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.5s forwards; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 38px;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.68s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero-regmarks {
  position: absolute;
  top: 110px; left: var(--pad-x);
  display: flex; gap: 10px;
  opacity: 0.55;
}
.hero-regmarks span {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  position: relative;
}
.hero-regmarks span:nth-child(2) { border-color: var(--cyan); }
.hero-regmarks span:nth-child(3) { border-color: var(--magenta); }
.hero-regmarks span::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* Client marquee */
.marquee-band {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.9s forwards;
}
.marquee-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}
.marquee {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll-x 34s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee img {
  height: 156px; width: 156px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.marquee img:hover { transform: translateY(-5px) scale(1.06); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px 28px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}
.card:hover {
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 184, 32, 0.08);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 184, 32, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card .card-icon {
  width: 52px; height: 52px;
  margin-bottom: 22px;
  color: var(--gold);
  transition: transform 0.45s var(--ease-out), color 0.3s ease;
}
.card:hover .card-icon { transform: translateY(-4px) rotate(-4deg); color: var(--gold-bright); }
.card .card-icon svg { width: 100%; height: 100%; }

.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.card .card-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.card:hover .card-link svg { transform: translateX(5px); }

/* Value strip (why choose) */
.value-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.value-cell {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease;
}
.value-cell:hover { background: rgba(255, 184, 32, 0.05); }
.value-cell .v-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--coral);
  display: block;
  margin-bottom: 14px;
}
.value-cell h3 { font-size: 1.15rem; margin-bottom: 8px; font-family: var(--font-body); font-weight: 650; }
.value-cell p { font-size: 0.88rem; color: var(--muted); }
.value-cell::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.value-cell:hover::after { transform: scaleX(1); }

/* ---------- Stats ---------- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  text-align: center;
}
.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 560;
  color: var(--gold-bright);
  line-height: 1;
}
.stat .stat-num sup { font-size: 0.45em; color: var(--coral); }
.stat .stat-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Quote / credo ---------- */

.credo {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.credo blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: var(--paper);
}
.credo blockquote .gold-i { font-style: italic; }
.credo cite {
  display: block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.cta-band {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(255, 184, 32, 0.14), transparent 60%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
  padding: clamp(48px, 7vw, 90px) clamp(28px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { max-width: 20ch; margin: 0 auto 18px; }
.cta-band .lede { margin: 0 auto 34px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-2);
  padding: clamp(48px, 6vw, 80px) 0 0;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img { height: 52px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Floating contact cluster ---------- */

.float-contact {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  position: relative;
}
.float-btn:hover { transform: translateY(-4px) scale(1.06); }
.float-btn svg { width: 24px; height: 24px; }
.float-btn.f-wa { background: var(--wa); color: #06250f; }
.float-btn.f-call { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1c2333; }
.float-btn.f-wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  animation: pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.55; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: clamp(150px, 20vh, 210px) 0 clamp(56px, 8vw, 90px);
  overflow: hidden;
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 20px; }

/* ---------- About page ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split .prose p { margin-bottom: 18px; color: #c9d0e0; }
.split .prose p strong { color: var(--paper); }

.philosophy {
  text-align: center;
  padding: clamp(60px, 9vw, 110px) 0;
}
.philosophy .big-line {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  font-weight: 560;
  line-height: 1.15;
}

.founder-figure {
  position: relative;
  display: flex;
  justify-content: center;
}
.founder-figure::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 82%;
  border-radius: 20px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 184, 32, 0.22), transparent 55%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
}
.founder-figure img {
  position: relative;
  width: min(86%, 420px);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}
.founder-name {
  margin-top: 22px;
  text-align: center;
}
.founder-name strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 560;
}
.founder-name span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.award-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.award-list li:first-child { border-top: 1px solid var(--line-soft); }
.award-list .award-icon { color: var(--gold); flex: none; width: 26px; height: 26px; margin-top: 3px; }
.award-list .award-icon svg { width: 100%; height: 100%; }
.award-list h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 650; }
.award-list p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Services page ---------- */

.services-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}
.services-nav {
  position: sticky;
  top: 110px;
}
.services-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease;
}
.services-nav a .sn-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}
.services-nav a:hover { color: var(--paper); background: rgba(245, 247, 252, 0.04); }
.services-nav a.active { color: var(--gold-bright); background: rgba(255, 184, 32, 0.08); }
.services-nav a.active .sn-num { color: var(--gold); }

.service-block {
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.service-block:first-child { padding-top: 0; }
.service-block:last-child { border-bottom: none; }
.service-block .sb-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 18px;
}
.service-block .sb-icon {
  width: 56px; height: 56px;
  flex: none;
  color: var(--gold);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}
.service-block .sb-icon svg { width: 100%; height: 100%; }
.service-block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service-block .sb-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.service-block > p { color: var(--muted); max-width: 60ch; margin-bottom: 24px; }

.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 0.86rem;
  color: #c9d0e0;
  background: rgba(245, 247, 252, 0.02);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out), background 0.3s ease;
}
.pill:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(255, 184, 32, 0.07);
  transform: translateY(-2px);
}

/* ---------- Clients page ---------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.logo-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
}
.logo-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.logo-tile:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.logo-tile:hover img { transform: scale(1.05); }
.logo-tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgba(10, 14, 25, 0.9));
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--paper);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.logo-tile:hover figcaption { opacity: 1; transform: none; }
.logo-tile.vivid img { filter: none; } /* bold in-house tiles keep their color at rest */
.logo-tile.vivid:hover img { transform: scale(1.05); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.work-ph {
  aspect-ratio: 4 / 3;
  border: 1px dashed rgba(255, 184, 32, 0.3);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.work-ph:hover { border-color: var(--gold); background: rgba(255, 184, 32, 0.04); }
.work-ph svg { width: 30px; height: 30px; color: var(--gold-deep); }

/* ---------- Work lightbox ---------- */

.work-grid .logo-tile { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 25, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.lb-figure {
  position: relative;
  margin: 0;
  max-width: min(1200px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.96);
  transition: transform 0.35s var(--ease-out);
  pointer-events: none;
}
.lightbox.is-open .lb-figure { transform: none; }
.lb-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lb-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold-bright);
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(18, 24, 40, 0.72);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--gold); color: var(--gold-bright); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; margin-top: -23px; }
.lb-next { right: 16px; top: 50%; margin-top: -23px; }
.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }
.lb-close svg, .lb-prev svg, .lb-next svg { width: 20px; height: 20px; }
.lb-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
@media (max-width: 560px) {
  .lb-close, .lb-prev, .lb-next { width: 40px; height: 40px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-img { max-height: 72vh; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lb-figure { transition: none; }
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}

.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  margin-bottom: 16px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--line); }
.contact-card .cc-icon {
  width: 44px; height: 44px;
  flex: none;
  padding: 10px;
  border-radius: 12px;
  color: var(--gold);
  border: 1px solid var(--line);
}
.contact-card .cc-icon svg { width: 100%; height: 100%; }
.contact-card h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-card p, .contact-card a { font-size: 1.02rem; color: var(--paper); }
.contact-card a:hover { color: var(--gold-bright); }
.contact-card .cc-sub { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

.enquiry-form {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 184, 32, 0.08), transparent 55%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
}
.enquiry-form h2 { margin-bottom: 8px; }
.enquiry-form .form-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(10, 14, 25, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--paper);
  font: inherit;
  padding: 13px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 184, 32, 0.15);
}

.map-frame {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  filter: grayscale(0.9) invert(0.92) hue-rotate(190deg) saturate(0.4);
  height: 380px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Cursor glow ---------- */

.cursor-glow {
  position: fixed;
  z-index: 200;
  width: 340px; height: 340px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 184, 32, 0.07), transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}
body.has-cursor .cursor-glow { opacity: 1; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Focus visibility ---------- */

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .main-nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .services-layout { grid-template-columns: 1fr; }
  .services-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .services-nav a { padding: 8px 14px; border: 1px solid var(--line-soft); border-radius: 999px; }
  .hero-crest { opacity: 0.045; right: -30vw; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta .btn { padding: 10px 18px; font-size: 0.85rem; }
  .brand img { height: 38px; }
  .hero { padding-top: 100px; }
  .float-contact { right: 14px; bottom: 14px; }
  .crop { display: none; }
  .marquee img { height: 110px; width: 110px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero h1 .line > span { transform: none; }
  .hero .lede, .hero-actions, .marquee-band { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .cursor-glow { display: none; }
}
