/* ============================================================
   Harisan Rod Group — Design Tokens
   Palette: deep navy + warm metallic gold ("dark luxury / global trade")
   Type: Fraunces (display serif, restrained) + Manrope (body/UI)
   ============================================================ */

:root {
  --error: #b3261e;
  --error-ring: rgba(179, 38, 30, 0.15);
  /* Color */
  --navy-950: #070f1f;
  --navy-900: #0b1b33;
  --navy-800: #10254a;
  --navy-700: #16305e;
  --gold-500: #c9a24b;
  --gold-400: #ddb968;
  --gold-300: #ecd08d;
  --gold-700: #8a6d2f;
  --ivory-100: #f7f4ec;
  --ivory-200: #efe9da;
  --ink-900: #14202f;
  --ink-700: #3a4658;
  --ink-500: #6b7690;

  --bg-page: var(--ivory-100);
  --bg-dark: var(--navy-900);
  --text-onlight: var(--ink-900);
  --text-onlight-muted: var(--ink-700);
  --text-ondark: var(--ivory-100);
  --text-ondark-muted: #b9c2d6;
  --accent: var(--gold-500);
  --accent-strong: var(--gold-400);
  --border-onlight: #e2dbc8;
  --border-ondark: rgba(247, 244, 236, 0.14);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --fs-caption: 0.8125rem;   /* 13 */
  --fs-small: 0.9375rem;     /* 15 */
  --fs-body: 1.0625rem;      /* 17 */
  --fs-lead: 1.25rem;        /* 20 */
  --fs-h3: 1.5rem;           /* 24 */
  --fs-h2: 2.25rem;          /* 36 */
  --fs-h1: 3.5rem;           /* 56 */
  --fs-hero: 4.25rem;        /* 68 */

  /* Space (8pt rhythm, generous for marketing page) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
}

/* ============================================================
   Grain texture — subtle tactile depth on dark sections
   ============================================================ */
.has-grain { position: relative; isolation: isolate; }
.has-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.has-grain > * { position: relative; z-index: 1; }

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-onlight);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (max-width: 640px) {
  .container { padding-inline: var(--space-3); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--gold-500);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--gold-300); }

.section {
  padding-block: var(--space-7);
}
@media (max-width: 780px) {
  .section { padding-block: var(--space-6); }
}
.section--dark {
  background: var(--bg-dark);
  color: var(--text-ondark);
}

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
h2 { font-size: var(--fs-h2); margin-top: var(--space-2); }
h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }

.lede {
  font-size: var(--fs-lead);
  color: var(--text-onlight-muted);
  line-height: 1.6;
  max-width: 46ch;
}
.section--dark .lede { color: var(--text-ondark-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-700));
  color: var(--navy-950);
}
.btn--primary:hover { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-ondark);
  color: var(--text-ondark);
}
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }

.btn--ghost-light {
  background: transparent;
  border-color: var(--border-onlight);
  color: var(--text-onlight);
}
.btn--ghost-light:hover { border-color: var(--gold-500); color: var(--gold-700); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: var(--space-3);
  transition: background var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.site-header.is-scrolled {
  background: rgba(11, 27, 51, 0.92);
  backdrop-filter: blur(10px);
  padding-block: var(--space-2);
  box-shadow: 0 8px 30px rgba(7, 15, 31, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand img {
  height: 72px;
  width: 72px;
  object-fit: cover;
  background: var(--ivory-100);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 2px 10px rgba(7, 15, 31, 0.25);
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-ondark);
  letter-spacing: 0.02em;
}
.brand-word span { color: var(--gold-400); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-links a {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-ondark-muted);
  transition: color var(--dur-fast) var(--ease-out);
  padding: 0.5em 0.1em;
  position: relative;
}
.nav-links a:hover { color: var(--text-ondark); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-ondark);
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 95;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ============================================================
   Language Switcher
   ============================================================ */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-switcher select {
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-ondark);
  color: var(--text-ondark);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 0.4em 1.8em 0.4em 0.8em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8ecf1' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5em center;
  background-size: 14px;
}
[dir="rtl"] .lang-switcher select {
  padding: 0.4em 0.8em 0.4em 1.8em;
  background-position: left 0.5em center;
}
.lang-switcher select:hover { border-color: var(--gold-400); }
/* Fix low-contrast native dropdown options: browsers render the open <select>
   list on their own white popup, ignoring the dark on-page styling, so the
   inherited light text was nearly invisible except for the highlighted item. */
.lang-switcher select option {
  color: var(--ink-900);
  background: #fff;
}
.lang-more-btn {
  background: none;
  border: none;
  color: var(--text-ondark-muted);
  font-size: var(--fs-caption);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.lang-more-btn:hover { color: var(--gold-400); }

/* The "More Languages" button reveals Google Translate's own combo dropdown
   (HORIZONTAL layout — a plain native <select>, not its messy SIMPLE-layout
   full-page language grid) inside this styled box. */
.google-translate-box {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--navy-900);
  border: 1px solid var(--border-ondark);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  z-index: 200;
  min-width: 200px;
  box-shadow: 0 12px 30px rgba(7, 15, 31, 0.4);
}
[dir="rtl"] .google-translate-box { right: auto; left: 0; }
.lang-switcher.is-more-open .google-translate-box { display: block; }

/* Google Translate widget cleanup: hide its default top banner/branding chrome
   and restyle its combo dropdown to match the site's design tokens. */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { font-family: var(--font-body) !important; font-size: 0 !important; color: transparent !important; }
.goog-te-gadget .goog-te-combo {
  font-size: var(--fs-small);
  color: var(--text-ondark);
  background: var(--navy-800);
  border: 1px solid var(--border-ondark);
  border-radius: var(--radius-sm);
  padding: 0.4em 0.6em;
  max-width: 100%;
}
/* Same fix as the primary language <select>: the browser's own open-dropdown
   popup ignores dark on-page styling and needs its own readable colors. */
.goog-te-gadget .goog-te-combo option {
  color: var(--ink-900);
  background: #fff;
}
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--navy-950);
    padding: 6.5rem var(--space-4) var(--space-4);
    gap: var(--space-2);
    z-index: 90;
  }
  .nav-links.is-open a { font-size: 1.25rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-950);
  color: var(--text-ondark);
  padding-top: clamp(5.5rem, 12vw, 7rem);
  padding-bottom: var(--space-7);
  overflow: hidden;
}

/* Video lives in its own banner sized to its true 16:9 footage, entirely
   separate from the text below — the two never occupy the same pixels,
   so captions baked into the footage can never collide with the site's
   own headline. Matching the container to the video's real aspect ratio
   means object-fit: cover neither crops the frame (no cut-off heads) nor
   letterboxes it (no black bars), at any screen width. */
.hero-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid {
  position: relative;
  width: 100%;
  margin-top: var(--space-4);
}

.hero-grid > div {
  max-width: 640px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--space-3);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, var(--fs-hero));
  color: var(--text-ondark);
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}

.hero .lede { margin-top: var(--space-3); max-width: 42ch; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.hero-trust {
  margin-top: var(--space-2);
  font-size: var(--fs-caption);
  color: var(--text-ondark-muted);
  letter-spacing: 0.01em;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-ondark);
}
@media (max-width: 460px) {
  .hero-stats { gap: var(--space-3); margin-top: var(--space-4); }
  .hero-stat b { font-size: 1.35rem; }
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}
.hero-stat span {
  font-size: var(--fs-caption);
  color: var(--text-ondark-muted);
  letter-spacing: 0.03em;
}

.hero-video-toggle {
  position: absolute;
  z-index: 2;
  right: var(--space-3);
  bottom: var(--space-3);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 27, 51, 0.55);
  backdrop-filter: blur(6px);
  color: var(--text-ondark);
  cursor: pointer;
  transition: background var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.hero-video-toggle:hover { background: rgba(11, 27, 51, 0.8); transform: translateY(-2px); }
.hero-video-toggle svg { width: 20px; height: 20px; }

.route-line {
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 6 460;
  stroke-dashoffset: 0;
  opacity: 0.9;
  animation: dash 5.5s var(--ease-out) infinite;
}
.route-line.d2 { animation-delay: 1.1s; }
.route-line.d3 { animation-delay: 2.2s; }
.route-line.d4 { animation-delay: 3.3s; }

@keyframes dash {
  0% { stroke-dashoffset: 460; opacity: 0; }
  8% { opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  85% { opacity: 0.15; }
  100% { stroke-dashoffset: -20; opacity: 0; }
}

.node {
  fill: var(--gold-400);
}
.node.origin { fill: var(--ivory-100); }
.node-pulse {
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1;
  opacity: 0;
  animation: pulse 3.6s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { r: 4; opacity: 0.8; }
  100% { r: 16; opacity: 0; }
}
.globe-outline { stroke: rgba(247,244,236,0.18); fill: none; stroke-width: 1; }
.globe-continent { fill: rgba(247,244,236,0.06); }

@media (prefers-reduced-motion: reduce) {
  .route-line { animation: none; stroke-dasharray: none; opacity: 0.8; }
  .node-pulse { display: none; }
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  box-shadow: 0 30px 60px -30px rgba(11, 27, 51, 0.35);
}

.about-statement {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.25;
  color: var(--text-onlight);
}
.about-statement .accent { color: var(--gold-700); }

.about-copy p + p { margin-top: var(--space-2); }
.about-copy { color: var(--text-onlight-muted); }

.point-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
@media (max-width: 560px) { .point-grid { grid-template-columns: 1fr; } }

.point-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--space-2);
  background: #fff;
  border: 1px solid var(--border-onlight);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-onlight);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.point-chip:hover {
  transform: translateY(-2px);
  border-color: var(--gold-500);
  box-shadow: 0 12px 25px -16px rgba(11, 27, 51, 0.3);
}
.point-chip svg {
  flex: none; width: 22px; height: 22px; color: var(--gold-700);
  transition: transform var(--dur-med) var(--ease-out);
}
.point-chip:hover svg { transform: scale(1.12); }

/* ============================================================
   Services
   ============================================================ */
.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-5);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.card-grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.card-grid > [data-reveal]:nth-child(2) { transition-delay: 60ms; }
.card-grid > [data-reveal]:nth-child(3) { transition-delay: 120ms; }
.card-grid > [data-reveal]:nth-child(4) { transition-delay: 180ms; }

.service-card {
  background: #fff;
  border: 1px solid var(--border-onlight);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px -20px rgba(11, 27, 51, 0.25);
  border-color: var(--gold-500);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
  transition: transform var(--dur-med) var(--ease-out);
}
.service-icon svg { width: 26px; height: 26px; color: var(--gold-400); }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-card h3 { margin-bottom: 0.5em; }
.service-card p { color: var(--text-onlight-muted); font-size: var(--fs-small); }

/* ============================================================
   Project Types (placeholder imagery)
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}
@media (max-width: 1080px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .project-grid { grid-template-columns: 1fr; } }

.project-grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.project-grid > [data-reveal]:nth-child(2) { transition-delay: 60ms; }
.project-grid > [data-reveal]:nth-child(3) { transition-delay: 120ms; }
.project-grid > [data-reveal]:nth-child(4) { transition-delay: 180ms; }
.project-grid > [data-reveal]:nth-child(5) { transition-delay: 240ms; }

.project-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.project-card:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}
.project-card .ph-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(201,162,75,0.35), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.project-card .ph-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: repeating-linear-gradient(115deg, rgba(247,244,236,0.05) 0 2px, transparent 2px 26px);
}
.project-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.project-card:hover .project-photo { transform: scale(1.045); }
.project-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 15, 31, 0.88) 0%, rgba(7, 15, 31, 0.35) 55%, rgba(7, 15, 31, 0.05) 100%);
}
.project-card svg {
  position: relative;
  width: 40px; height: 40px;
  color: var(--gold-300);
  transition: transform var(--dur-med) var(--ease-out);
}
.project-card:hover svg { transform: translateY(-3px) scale(1.05); }
.project-card .project-label {
  position: relative;
  margin-top: auto;
  color: var(--text-ondark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.project-card .project-tag {
  position: relative;
  font-size: var(--fs-caption);
  color: var(--text-ondark-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-card-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3);
  gap: 0.35rem;
  transition: transform var(--dur-med) var(--ease-out);
}
.project-card:hover .project-card-inner { transform: translateY(-3px); }

.project-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--gold-300);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.project-card:hover .project-cta,
.project-card:focus-visible .project-cta { opacity: 1; transform: translateY(0); }

/* ============================================================
   Case Study Modal
   ============================================================ */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
}
.case-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-med) var(--ease-out);
}
.case-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 15, 31, 0.78);
  backdrop-filter: blur(3px);
}
.case-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 940px);
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(7, 15, 31, 0.45);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out);
}
.case-modal.is-open .case-modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.case-modal-scroll { max-height: min(86vh, 940px); overflow-y: auto; }
.case-modal-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(7, 15, 31, 0.55);
  color: var(--text-ondark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background var(--dur-fast) var(--ease-out);
}
.case-modal-close:hover, .case-modal-close:focus-visible { background: var(--gold-500); color: var(--navy-950); }
.case-modal-close svg { width: 18px; height: 18px; }

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}
.case-gallery img, .case-gallery .case-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.case-gallery > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.case-photo-placeholder {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(201,162,75,0.25), transparent 60%),
    repeating-conic-gradient(var(--navy-800) 0% 25%, var(--navy-900) 0% 50%);
  background-size: auto, 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-ondark-muted);
  font-size: var(--fs-caption);
  text-align: center;
  padding: var(--space-2);
}
.case-modal-body { padding: var(--space-4) var(--space-4) var(--space-5); }
.case-modal-body h2 { font-size: var(--fs-h2); margin-top: 0.25em; }
.case-modal-lede { color: var(--text-onlight-muted); margin-top: var(--space-2); font-size: var(--fs-lead); max-width: 62ch; }
.case-modal-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-onlight);
}
@media (max-width: 640px) { .case-modal-cols { grid-template-columns: 1fr; } }
.case-modal-cols h3 { font-size: 1.05rem; margin-bottom: 0.6em; }
.case-list { display: grid; gap: 0.5rem; }
.case-list li {
  position: relative;
  padding-left: 1.3em;
  font-size: var(--fs-small);
  color: var(--text-onlight-muted);
}
.case-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}
.case-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
@media (max-width: 640px) { .case-modal-stats { grid-template-columns: 1fr; } }
.case-stat {
  background: var(--navy-900);
  color: var(--text-ondark);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.case-stat .case-stat-value { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-300); display: block; }
.case-stat .case-stat-label { font-size: var(--fs-caption); color: var(--text-ondark-muted); }

body.case-modal-open { overflow: hidden; }

/* ============================================================
   Why Us
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.why-grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.why-grid > [data-reveal]:nth-child(2) { transition-delay: 60ms; }
.why-grid > [data-reveal]:nth-child(3) { transition-delay: 120ms; }
.why-grid > [data-reveal]:nth-child(4) { transition-delay: 180ms; }

.why-item { border-top: 1px solid var(--border-ondark); padding-top: var(--space-3); }
.why-item h3 { color: var(--text-ondark); font-size: 1.2rem; }
.why-item p { color: var(--text-ondark-muted); font-size: var(--fs-small); margin-top: 0.5em; }
.why-item svg { width: 28px; height: 28px; color: var(--gold-400); margin-bottom: var(--space-2); transition: transform var(--dur-med) var(--ease-out); }
.why-item:hover svg { transform: translateY(-2px) scale(1.08); }

/* ============================================================
   How We Work
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-ondark) 12%, var(--border-ondark) 88%, transparent);
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

.process-grid > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.process-grid > [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.process-grid > [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.process-grid > [data-reveal]:nth-child(4) { transition-delay: 240ms; }

.process-step { position: relative; }
.process-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  width: 2.1rem;
  height: 2.1rem;
  line-height: 2.1rem;
  text-align: center;
  border-radius: 50%;
  margin-bottom: var(--space-3);
  font-variant-numeric: tabular-nums;
}
.process-step h3 { color: var(--text-ondark); font-size: 1.15rem; }
.process-step p { color: var(--text-ondark-muted); font-size: var(--fs-small); margin-top: 0.5em; }


/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-row { display: grid; gap: var(--space-1); margin-bottom: var(--space-3); }
.form-row label {
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-onlight-muted);
}
.form-row input, .form-row select, .form-row textarea {
  border: 1px solid var(--border-onlight);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  background: #fff;
  color: var(--text-onlight);
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
  outline: none;
}
.form-note { font-size: var(--fs-caption); color: var(--text-onlight-muted); margin-top: var(--space-2); }

/* Honeypot: off-screen for people, tempting to bots. Never display:none —
   some bots skip hidden fields, which defeats the trap. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.opt-tag {
  margin-inline-start: 0.5em;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.65;
}

.field-err { font-size: var(--fs-caption); color: var(--error); line-height: 1.4; }
.form-row input.is-invalid,
.form-row textarea.is-invalid { border-color: var(--error); }
.form-row input.is-invalid:focus,
.form-row textarea.is-invalid:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-ring);
}

.privacy-note {
  font-size: var(--fs-caption);
  color: var(--text-onlight-muted);
  opacity: 0.8;
  margin-top: var(--space-2);
}

.btn.is-loading { opacity: 0.7; cursor: progress; }

.form-trust-note {
  font-size: var(--fs-caption);
  color: var(--text-onlight-muted);
  margin-bottom: var(--space-2);
}

.form-success {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border-onlight);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  outline: none;
}
.form-success svg {
  width: 44px;
  height: 44px;
  color: var(--gold-500);
  margin-bottom: var(--space-2);
}
.form-success h3 { margin-bottom: 0.4rem; }
.form-success p { color: var(--text-onlight-muted); }

.contact-card {
  background: var(--navy-900);
  color: var(--text-ondark);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border-ondark);
  font-size: var(--fs-small);
}
.contact-line:last-of-type { border-bottom: none; }
.contact-line svg { width: 20px; height: 20px; color: var(--gold-400); flex: none; }
.contact-line a:hover { color: var(--gold-300); }

.qr-box {
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px dashed var(--border-ondark);
  border-radius: var(--radius-md);
}
.qr-placeholder {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: repeating-conic-gradient(var(--navy-700) 0% 25%, var(--navy-800) 0% 50%);
  background-size: 8px 8px;
  flex: none;
}
.qr-box span { font-size: var(--fs-caption); color: var(--text-ondark-muted); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-950);
  color: var(--text-ondark-muted);
  padding-block: var(--space-4);
  font-size: var(--fs-caption);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text-ondark); font-weight: 600; }
.footer-brand img { height: 56px; width: 56px; object-fit: cover; border-radius: 999px; background: var(--ivory-100); padding: 3px; }

@media (max-width: 640px) {
  .footer-row { flex-direction: column; text-align: center; gap: var(--space-2); }
}

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RTL support (Hebrew / Arabic)
   ============================================================ */
[dir="rtl"] .project-card { text-align: right; }
[dir="rtl"] .case-modal-close { right: auto; left: var(--space-2); }
[dir="rtl"] .case-list li { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .case-list li::before { left: auto; right: 0; }
[dir="rtl"] .hero-tagline,
[dir="rtl"] .eyebrow { direction: rtl; }
[dir="rtl"] .brand { direction: ltr; }
[dir="rtl"] .form-note { text-align: right; }
[dir="rtl"] .field-err,
[dir="rtl"] .privacy-note { text-align: right; }
[dir="rtl"] .hp-field { left: auto !important; right: -9999px !important; }
[dir="rtl"] .footer-brand { direction: ltr; }

/* ============================================================
   Skip link (visually hidden until focused, no off-canvas offset)
   ============================================================ */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  background: #fff;
  color: var(--navy-950);
  padding: 1em;
  z-index: 1000;
  top: 0;
  left: 0;
}
.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}
