/* ============================================================
   TUGUAN — Official Site
   Design system lifted from the company profile deck:
   warm white + ink black + champagne gold, Georgia serif.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F4F1EA;          /* warm cream — PPT secondary surface */
  --ink: #0B0C0F;             /* PPT primary text black */
  --ink-dim: #6E6B64;         /* warm grey for body copy */
  --line: #E7E2D8;            /* warm hairline */
  --gold: #C8A96B;            /* PPT champagne gold */
  --gold-deep: #A8874A;       /* darker gold for small text on white */
  --radius: 4px;              /* tight corners — editorial, not app-like */
  --nav-h: 64px;
  /* fluid type & spacing scale — the whole layout scales with viewport */
  --fs-body: clamp(15px, 0.35vw + 13.5px, 17px);
  --fs-h1: clamp(44px, 7.2vw, 92px);
  --fs-h2: clamp(30px, 3.8vw, 52px);
  --fs-h3: clamp(17px, 1vw, 19px);
  --space-section: clamp(72px, 9vw, 132px);
  --font: Georgia, "Times New Roman", "Songti SC", "Noto Serif", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(200, 169, 107, 0.30); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1200px, 90%);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(200, 169, 107, 0.35);
}
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

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

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: auto;
  height: 40px;
  border-radius: 0;
}
/* dark footer: invert the white-background seal to blend in */
.footer .brand-mark { filter: invert(1); height: 34px; }
.brand-name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.22em;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.nav-cta) {
  font-size: 15px;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta { padding: 9px 24px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 0;
}
.hero-inner { text-align: left; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero-eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.hero-title {
  font-size: var(--fs-h1);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero-sub {
  max-width: 600px;
  margin-top: 30px;
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--ink-dim);
  font-style: italic;
}
.hero-cta {
  margin-top: 42px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: clamp(36px, 7vw, 110px);
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums; /* keep width stable while rolling */
}
.stat span {
  font-size: 13.5px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Full-bleed hero image band */
.hero-media {
  margin: clamp(44px, 6vw, 80px) 0 0;
}
.hero-media img {
  width: 100%;
  height: clamp(300px, 46vw, 580px);
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-media figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-dim);
  text-align: right;
  letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  letter-spacing: 0.26em;
  color: var(--gold-deep);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.section-sub { color: var(--ink-dim); font-style: italic; margin-bottom: clamp(36px, 5vw, 56px); }
.section-sub em { color: var(--ink-dim); font-style: italic; font-size: 0.92em; }

/* ---------- About ---------- */
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  max-width: 1020px;
  color: var(--ink-dim);
  font-size: calc(var(--fs-body) + 1.5px);
  line-height: 1.75;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.about-cols p:first-child { color: var(--ink); }
.about-media { margin: 0; }
.about-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.about-media figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-dim);
  text-align: right;
  letter-spacing: 0.04em;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}
.service {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(11, 12, 15, 0.10);
}
.service-media {
  position: relative;
}
.service-media img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(11, 12, 15, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}
.play-badge svg { width: 20px; height: 20px; margin-left: 3px; }
.service:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.10);
  background: var(--gold-deep);
}
.service-body { padding: 24px 26px 28px; }
.service-num {
  font-size: 15px;
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.service h3 { font-size: clamp(19px, 1.4vw, 23px); font-weight: 700; margin: 10px 0; }
.service p { color: var(--ink-dim); font-size: 15px; }

/* ---------- Culture: studio principle quote ---------- */
.culture-quote {
  margin: clamp(32px, 4vw, 52px) 0 clamp(36px, 4.5vw, 56px);
  padding: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 52px);
  border-left: 3px solid var(--gold);
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.culture-quote blockquote {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.5;
  color: var(--ink);
}
.culture-quote strong {
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}
.culture-quote figcaption {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- Culture ---------- */
.culture-list { border-top: 1px solid var(--line); max-width: 980px; }
.culture-row {
  display: grid;
  grid-template-columns: 88px 220px 1fr;
  gap: clamp(16px, 2.5vw, 36px);
  padding: clamp(22px, 2.8vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.culture-num {
  font-size: clamp(24px, 2.4vw, 34px);
  font-style: italic;
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.culture-row h3 { font-size: clamp(19px, 1.5vw, 24px); font-weight: 700; }
.culture-row p { color: var(--ink-dim); font-size: 15.5px; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.process-step { border-top: 2px solid var(--ink); padding-top: 18px; }
.process-stage {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}
.process-step h3 { font-size: 17px; font-weight: 700; margin: 12px 0 8px; line-height: 1.35; }
.process-step p { color: var(--ink-dim); font-size: 14px; }

/* ---------- Works: 28-project grid & lightbox thumbnails ---------- */
/* Image protection: no selection, no touch callout, no drag ghost */
img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
.case-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.case-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.case-thumb:hover img { transform: scale(1.03); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4.5vw, 60px) clamp(24px, 3vw, 42px);
}
.project-card { margin: 0; }
.project-info { padding: 18px 6px 0; }
.project-partner {
  display: inline-block;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.project-info h3 {
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.project-intro {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-dim);
}
.project-meta {
  display: block;
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* ---------- Case studies ---------- */
.case-study {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.case-study:last-child { margin-bottom: 0; }
.cs-flip .cs-media { order: 2; }
.cs-flip .cs-body { order: 1; }
.cs-media { margin: 0; }
.cs-main img { aspect-ratio: 16 / 9; }
.cs-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.cs-thumbs .case-thumb img { aspect-ratio: 16 / 9; }
.cs-body h3 {
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.25;
}
.cs-body > p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.72; }
.cs-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.cs-facts dt {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 5px;
}
.cs-facts dd { font-size: 14.5px; font-weight: 600; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}
.team-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(1);
  transition: filter 0.35s ease, transform 0.35s ease;
}
.team-card:hover img { filter: none; }
.team-card h3 { font-size: clamp(19px, 1.5vw, 23px); font-weight: 700; margin: 18px 0 5px; }
.team-role {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}
.team-card p { margin-top: 12px; color: var(--ink-dim); font-size: 14px; line-height: 1.7; }

/* ---------- Partners ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.partner-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 20px 14px;
  min-height: 92px;
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.partner-cell:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(200, 169, 107, 0.16);
}
.partner-cell img {
  max-height: 44px;
  width: auto;
  max-width: 82%;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}
.partner-cell:hover img { opacity: 1; }

/* ---------- Videos: horizontal swipe strip ---------- */
.videos-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.videos-head .section-title { margin-bottom: 10px; }
.videos-head .section-sub { margin-bottom: 0; max-width: 620px; }
.strip-arrows { display: flex; gap: 12px; }
.strip-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.strip-arrow:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.strip-arrow svg { width: 20px; height: 20px; }

.video-strip {
  display: flex;
  gap: clamp(16px, 2vw, 26px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.video-strip::-webkit-scrollbar { display: none; }
.video-strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.v-card {
  flex: 0 0 clamp(300px, 26vw, 430px);
  scroll-snap-align: start;
  margin: 0;
}
.v-card .video-frame {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.v-card .video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
  transition: transform 0.45s ease;
}
.v-card:hover .video-frame img { transform: scale(1.04); }
.video-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 0;
}
.video-meta h3 { font-size: 17px; }
.video-meta span { font-size: 13px; color: var(--ink-dim); font-style: italic; white-space: nowrap; }

/* ---------- Video player overlay ---------- */
.video-player {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 12, 15, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.video-player.open { opacity: 1; }
.video-player[hidden] { display: none; }
.vp-stage {
  width: min(1280px, 92vw);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-stage video {
  width: 100%;
  max-height: 82dvh;
  background: #000;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.vp-close { top: 22px; right: 22px; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-info p { color: var(--ink-dim); font-size: calc(var(--fs-body) + 1.5px); margin-bottom: 24px; }
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  font-weight: 600;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.contact-mail:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.contact-mail svg { width: 20px; height: 20px; color: var(--gold-deep); }

.contact-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 15px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #B9B3A6; font-style: italic; text-transform: none; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); outline: none; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form .btn { margin-top: 4px; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--gold-deep); min-height: 1.4em; }

/* Honeypot field — invisible to humans, irresistible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}

/* ---------- Footer (dark, from deck cover palette) ---------- */
.footer {
  background: var(--ink);
  color: #F4F1EA;
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer .brand-name { color: #F4F1EA; }
.footer p { color: rgba(244, 241, 234, 0.62); font-size: 13.5px; }
.footer-center { text-align: center; }
.footer-company {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #F4F1EA;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13.5px; color: rgba(244, 241, 234, 0.62); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   LIGHTBOX — click to view full image, prev/next browsing
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 12, 15, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lb-stage {
  max-width: min(1080px, 86vw);
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lb-img-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: calc(82dvh - 60px);
}
.lb-stage img {
  max-width: 100%;
  max-height: calc(82dvh - 60px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: lbIn 0.3s ease;
}
/* transparent shield sitting exactly over the image — right-click
   never reaches the <img> element */
.lb-shield {
  position: absolute;
  inset: 0;
  cursor: default;
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.975); }
  to { opacity: 1; transform: none; }
}
.lb-stage figcaption {
  color: rgba(244, 241, 234, 0.78);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.02em;
  text-align: center;
}

.lb-btn {
  position: fixed;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.28);
  background: rgba(244, 241, 234, 0.08);
  color: #F4F1EA;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.lb-btn:hover {
  background: rgba(200, 169, 107, 0.30);
  border-color: var(--gold);
  transform: scale(1.06);
}
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; margin-top: -24px; }
.lb-next { right: 22px; top: 50%; margin-top: -24px; }

.lb-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(244, 241, 234, 0.65);
  font-size: 13.5px;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lb-stage img { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-study { grid-template-columns: 1fr; gap: 26px; }
  .cs-flip .cs-media { order: 0; }
  .cs-flip .cs-body { order: 0; }
}

@media (max-width: 768px) {
  .about-cols { grid-template-columns: 1fr; }
  .culture-row { grid-template-columns: 56px 1fr; }
  .culture-row p { grid-column: 2; }
  .contact-wrap { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-eyebrow::before { display: none; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 5% 22px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.nav-cta) { padding: 12px 6px; font-size: 16px; color: var(--ink); }
  .nav-cta { margin-top: 10px; justify-content: center; }

  /* Lightbox compact on touch devices */
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-btn { width: 42px; height: 42px; background: rgba(0, 0, 0, 0.45); }
}

@media (max-width: 560px) {
  .service-grid, .process-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-info h3 { font-size: 18px; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-thumbs { grid-template-columns: 1fr; }
  .cs-facts { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 0; }
  .hero-stats { gap: 30px; }
  .culture-row { grid-template-columns: 1fr; gap: 8px; }
  .culture-row p { grid-column: auto; }
  .hero-media figcaption { text-align: left; }
}
