/* =========================================================
   JQ Enterprises — main stylesheet
   Minimal, editorial layout. Brand colours from the JQ logo:
   navy #003862, logo dark blue #00477e, logo light blue #0093cc,
   steel gray #71797e
   ========================================================= */
:root {
  --ink: #15191d;
  --navy: #003862;
  --navy-deep: #00111e;
  --blue: #00477e;
  --accent: #0093cc;
  --accent-soft: #7fd0f0;
  --steel: #71797e;
  --steel-dark: #5b6268;
  --mist: #f5f7f8;
  --line: #e3e7ea;
  --muted: #5f676d;
  --white: #fff;
  --max: 1290px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Barlow", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 0.5em; color: inherit; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.8rem, 5.2vw, 4.8rem); }
h2 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 30px; border-radius: 999px; border: 1.5px solid currentColor;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.pill:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-white { background: #fff; border-color: #fff; color: var(--ink); }
.pill-white:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill-light { color: #fff; }
.pill-light:hover, .pill-light.active { background: #fff; border-color: #fff; color: var(--ink); }
.pill-solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill-solid:hover { background: var(--accent); border-color: var(--accent); }
.pill svg { width: 17px; height: 17px; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.35s, box-shadow 0.35s, color 0.35s; color: #fff; }
.header.solid, .header.scrolled { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }

.notice { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 0.84rem; max-height: 80px; overflow: hidden; transition: max-height 0.35s var(--ease); }
.header.scrolled .notice { max-height: 0; }
.notice .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; padding: 6px 0; }
.notice-text { display: flex; align-items: center; gap: 10px; }
.notice-text svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.notice-text strong { font-weight: 700; letter-spacing: 0.02em; color: var(--navy); }
.notice-contact { display: flex; gap: 22px; white-space: nowrap; font-weight: 600; }
.notice-contact a { display: inline-flex; align-items: center; gap: 7px; }
.notice-contact a { color: var(--navy); }
.notice-contact a:hover { color: var(--accent); }
.notice-contact svg { width: 14px; height: 14px; color: var(--accent); }

.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px; padding: 14px 0; transition: padding 0.35s; }
.header.scrolled .bar, .header.solid .bar { padding: 8px 0; }
.logo { position: relative; z-index: 2; display: block; }
.logo img { height: 84px; width: auto; transition: height 0.35s, opacity 0.35s; }
.logo .logo-light { position: absolute; top: 0; left: 0; }
.logo .logo-dark { opacity: 0; }
.header.scrolled .logo .logo-light, .header.solid .logo .logo-light { opacity: 0; }
.header.scrolled .logo .logo-dark, .header.solid .logo .logo-dark { opacity: 1; }
.header.scrolled .logo img, .header.solid .logo img { height: 60px; }

.nav { display: flex; gap: 34px; align-items: center; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav a { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: currentColor; transition: width 0.3s var(--ease); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header.scrolled .nav a:hover, .header.scrolled .nav a.active, .header.solid .nav a.active, .header.solid .nav a:hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; justify-self: end; position: relative; z-index: 2; }
.nav-toggle span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform 0.3s, opacity 0.3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Side social bar + back to top ---------- */
.side-social { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.94); border-radius: 8px 0 0 8px; box-shadow: 0 6px 24px -10px rgba(0, 0, 0, 0.3); overflow: hidden; }
.side-social a { width: 42px; height: 42px; display: grid; place-items: center; color: var(--steel); transition: background 0.2s, color 0.2s; }
.side-social a:hover { background: var(--accent); color: #fff; }
.side-social svg { width: 17px; height: 17px; }
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--accent); background: #fff; color: var(--accent); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s, background 0.2s, color 0.2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #fff; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Hero slideshow ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero-slide.active > img { transform: scale(1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 17, 30, 0.72) 0%, rgba(0, 17, 30, 0.25) 55%, rgba(0, 17, 30, 0.1) 100%), linear-gradient(0deg, rgba(0, 17, 30, 0.5), transparent 40%), linear-gradient(180deg, rgba(0, 17, 30, 0.45), transparent 25%); }
.hero-caption { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(120px, 18vh, 190px); }
.hero-caption h1 { max-width: 17ch; font-size: clamp(2.5rem, 4.2vw, 3.9rem); line-height: 1.08; margin: 0; opacity: 0; transform: translateY(24px); transition: opacity 1s 0.4s, transform 1s 0.4s var(--ease); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.hero-slide.active .hero-caption h1 { opacity: 1; transform: none; }
.hero-caption p { margin: 18px 0 0; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); opacity: 0; transition: opacity 1s 0.8s; }
.hero-slide.active .hero-caption p { opacity: 1; }
.hero-dashes { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dashes button { width: 26px; height: 14px; border: 0; background: none; padding: 0; position: relative; transition: width 0.3s; }
.hero-dashes button::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(255, 255, 255, 0.45); transition: background 0.3s; }
.hero-dashes button.active { width: 46px; }
.hero-dashes button.active::before { background: #fff; }
.scroll-cue { position: absolute; right: 80px; bottom: 50px; z-index: 3; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; writing-mode: vertical-rl; color: rgba(255, 255, 255, 0.75); display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(rgba(255, 255, 255, 0.8), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(10px); } }

/* ---------- Passion (dark photo, text left) ---------- */
.passion { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-deep); }
.passion > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.passion::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 17, 30, 0.9) 0%, rgba(0, 17, 30, 0.6) 50%, rgba(0, 17, 30, 0.3) 100%); }
.passion .container { position: relative; z-index: 1; padding: 120px 0; }
.passion-text { max-width: 560px; }
.passion-text h2 { margin-bottom: 26px; }
.passion-text p { color: rgba(255, 255, 255, 0.86); font-size: 1.02rem; }
.passion-values { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.passion-values span { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; }

/* ---------- Legacy (grayscale fade + Since 2012) ---------- */
.legacy { padding: clamp(80px, 9vw, 120px) 0 0; text-align: center; }
.legacy h2 { max-width: 24ch; margin: 0 auto; position: relative; z-index: 2; color: var(--ink); padding: 0 16px; }
.legacy-visual { position: relative; margin-top: -30px; height: clamp(380px, 46vw, 580px); }
.legacy-visual > img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.legacy-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.55) 28%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.82) 100%); z-index: 1; }
.legacy-year { position: absolute; left: 0; right: 0; bottom: 80px; z-index: 2; }
.legacy-year small { display: block; font-family: var(--serif); font-size: 2rem; color: var(--accent-soft); }
.legacy-year strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(5rem, 11vw, 8.5rem); line-height: 0.95; color: var(--accent-soft); }
.legacy-btn { position: absolute; left: 50%; bottom: -75px; transform: translateX(-50%); z-index: 3; width: 150px; height: 150px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; transition: background 0.3s, color 0.3s; }
.legacy-btn:hover { background: var(--accent); color: #fff; }

/* ---------- Expertise (tabs / image / statement) ---------- */
.expertise { padding: clamp(150px, 14vw, 190px) 0 clamp(80px, 9vw, 120px); }
.expertise-grid { display: grid; grid-template-columns: 1fr 1.25fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.expertise-tabs { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.expertise-tabs button { background: none; border: 0; padding: 6px 0; text-align: left; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.25s; }
.expertise-tabs button:hover { color: var(--ink); }
.expertise-tabs button.active { color: var(--accent); font-weight: 700; }
.expertise-media { position: relative; aspect-ratio: 445 / 380; border-radius: 6px; overflow: hidden; background: var(--mist); }
.expertise-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease, transform 1.2s var(--ease); transform: scale(1.04); }
.expertise-media img.active { opacity: 1; transform: none; }
.expertise-text h2 { font-size: clamp(2rem, 3vw, 2.7rem); margin-bottom: 18px; }
.expertise-text p { color: var(--muted); max-width: 42ch; min-height: 5.1em; margin: 0; }

/* ---------- Showcase (gray band + carousel) ---------- */
.showcase { background: var(--steel); color: #fff; padding: clamp(80px, 9vw, 120px) 0; overflow: hidden; }
.showcase-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.showcase-head h2 { margin: 0; max-width: 17ch; }
.showcase-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.showcase-pills .pill { padding: 9px 20px; font-size: 0.74rem; }
.carousel { position: relative; touch-action: pan-y; }
.carousel-track { display: flex; gap: 50px; transition: transform 0.8s var(--ease); will-change: transform; }
.slide-card { flex: 0 0 clamp(250px, 23vw, 325px); aspect-ratio: 325 / 405; position: relative; overflow: hidden; cursor: pointer; background: var(--steel-dark); border: 0; padding: 0; color: #fff; text-align: left; }
.slide-card img, .slide-card .ph { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.7s, transform 0.9s var(--ease); }
.slide-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 17, 30, 0.78), transparent 55%); opacity: 0; transition: opacity 0.6s; }
.slide-card .caption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; opacity: 0; transform: translateY(12px); transition: opacity 0.6s 0.15s, transform 0.6s 0.15s var(--ease); }
.slide-card .caption h3 { margin: 0 0 6px; font-size: 1.85rem; line-height: 1.05; }
.slide-card .caption span { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.slide-card:hover img { filter: grayscale(0.3); }
.slide-card.active img { filter: none; transform: scale(1.03); }
.slide-card.active::after, .slide-card.active .caption { opacity: 1; transform: none; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 50px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.6); background: none; color: #fff; display: grid; place-items: center; transition: all 0.2s; }
.round-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.round-btn svg { width: 18px; height: 18px; }

/* ---------- Process (zig-zag timeline) ---------- */
.process { padding: clamp(80px, 9vw, 120px) 0; }
.process h2 { text-align: center; max-width: 20ch; margin: 0 auto 70px; }
.timeline { position: relative; max-width: 920px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--ink); transform: translateX(-50%); }
.t-item { width: 50%; padding: 10px 60px 60px; position: relative; }
.t-item:nth-child(odd) { text-align: right; }
.t-item:nth-child(even) { margin-left: 50%; margin-top: -40px; }
.t-item::before { content: ""; position: absolute; top: 34px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px #fff; }
.t-item:nth-child(odd)::before { right: -5.5px; }
.t-item:nth-child(even)::before { left: -5.5px; }
.t-icon { width: 56px; height: 56px; color: var(--accent); display: inline-block; margin-bottom: 12px; }
.t-item h3 { margin: 0 0 8px; font-size: 1.75rem; }
.t-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.t-num { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; color: var(--steel); margin-bottom: 4px; }

/* ---------- Testimonials ---------- */
.voices { padding: 0 0 clamp(80px, 9vw, 120px); }
.voices-grid { display: grid; grid-template-columns: 0.9fr 2.2fr; gap: clamp(30px, 5vw, 60px); }
.voices-side { display: flex; flex-direction: column; }
.voices-side h2 { margin-bottom: 18px; }
.voices-side p { color: var(--muted); }
.voices-side .pill { align-self: flex-start; margin-top: 8px; }
.voices-side .counter { margin-top: auto; font-size: 0.9rem; letter-spacing: 0.05em; padding-top: 30px; }
.voices-wrap { position: relative; }
.voices-viewport { overflow: hidden; }
.voices-track { cursor: pointer; }
.v-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: #fff; border-color: var(--line); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.35); }
.v-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.v-prev { left: -23px; }
.v-next { right: -23px; }
.voices-track { display: flex; gap: 40px; transition: transform 0.7s var(--ease); }
.voice { flex: 0 0 calc(50% - 20px); margin: 0; background: var(--mist); padding: 40px 36px 34px; display: flex; flex-direction: column; min-height: 380px; }
.voice::before { content: "\201C"; font-family: var(--serif); font-size: 6rem; line-height: 0.6; color: var(--accent); height: 44px; display: block; }
.voice blockquote { margin: 0 0 26px; font-family: var(--serif); font-size: 1.42rem; line-height: 1.4; color: var(--ink); flex: 1; }
.voice figcaption strong { display: block; font-weight: 600; letter-spacing: 0.02em; }
.voice figcaption span { font-size: 0.88rem; color: var(--muted); }
.voice .stars { color: var(--accent); letter-spacing: 3px; font-size: 0.85rem; margin-bottom: 6px; }
.dots { display: flex; gap: 8px; margin-top: 26px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #c5cbcf; transition: all 0.3s; }
.dots button.active { width: 28px; background: var(--accent); }

/* ---------- Milestones (pattern band) ---------- */
.milestones { position: relative; background: var(--steel); color: #fff; text-align: center; padding: clamp(70px, 8vw, 100px) 0; overflow: hidden; isolation: isolate; }
.milestones::before { content: ""; position: absolute; inset: -60px; z-index: -1; background: url("../img/logo-white.png") 0 0 / 44px auto repeat; background-repeat: space; opacity: 0.08; transform: rotate(-8deg); }
.milestones h2 { margin-bottom: 36px; }
.ms-stage { position: relative; min-height: 200px; }
.ms-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s; pointer-events: none; }
.ms-slide.active { opacity: 1; pointer-events: auto; }
.ms-slide strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1.05; }
.ms-slide h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 14px 0 8px; }
.ms-slide p { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; margin: 0 auto; max-width: 60ch; }
.ms-wrap { position: relative; padding: 0 90px; }
.ms-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.ms-prev { left: 0; }
.ms-next { right: 0; }
.ms-stage { cursor: pointer; }
.milestones .dots { justify-content: center; margin-top: 30px; }
.milestones .dots button { background: rgba(255, 255, 255, 0.55); }
.milestones .dots button.active { background: #fff; }

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 9vw, 120px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); }
.contact-info p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-list small { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.contact-list a:hover { color: var(--accent); }
.map { margin-top: 32px; height: 220px; background: var(--mist); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1); }

.form h3 { font-size: 2rem; margin-bottom: 4px; }
.form-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin-bottom: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0; font: inherit; font-size: 1rem; color: var(--ink);
  border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; background: transparent; transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 100px; resize: vertical; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.pill-wa { background: #25d366; border-color: #25d366; color: #fff; }
.pill-wa:hover { background: #1fb959; border-color: #1fb959; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 26px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: 30px 50px; align-items: start; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-mark img { width: 300px; max-width: 100%; height: auto; }
.footer-company strong { display: block; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-company p { margin: 4px 0 14px; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.9rem; }
.footer-company a { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.footer-company a:hover, .footer ul a:hover { color: var(--accent); }
.footer-company svg { width: 15px; height: 15px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 0.85rem; color: var(--muted); }
.footer-social { display: flex; gap: 16px; }
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- Inner page hero (projects page) ---------- */
.page-hero { position: relative; height: 62vh; min-height: 440px; color: #fff; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-deep); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 17, 30, 0.82), rgba(0, 17, 30, 0.25)), linear-gradient(0deg, rgba(0, 17, 30, 0.6), transparent 50%); }
.page-hero .container { position: relative; z-index: 1; padding-bottom: 70px; }
.page-hero h1 { margin: 0 0 10px; }
.page-hero p { max-width: 560px; color: rgba(255, 255, 255, 0.86); margin: 0; }
.crumbs { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; color: rgba(255, 255, 255, 0.75); }
.crumbs a:hover { color: #fff; }

.portfolio { padding: 80px 0 110px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 50px; }
.filters .pill { padding: 9px 20px; font-size: 0.74rem; }
.filters .pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 30px; }
.project { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; display: block; width: 100%; }
.project-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.project-media img, .project-media .ph { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.6s, transform 0.9s var(--ease); }
.project:hover .project-media img, .project:focus-visible .project-media img { filter: none; transform: scale(1.04); }
.project-count { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, 0.94); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; display: flex; align-items: center; gap: 6px; }
.project-count svg { width: 13px; height: 13px; }
.project h3 { font-size: 1.75rem; margin: 18px 0 2px; }
.project .meta { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.ph { display: grid; place-items: center; text-align: center; color: var(--steel); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; background: var(--mist); }
.ph svg { display: block; width: 34px; height: 34px; margin: 0 auto 8px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 11, 14, 0.97); display: none; flex-direction: column; color: #fff; }
.lightbox.open { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px; gap: 20px; }
.lb-top h3 { margin: 0; font-size: 1.8rem; }
.lb-top span { color: rgba(255, 255, 255, 0.6); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; }
.lb-close { background: none; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; flex: none; }
.lb-close:hover { background: #fff; color: var(--ink); }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 80px; min-height: 0; }
.lb-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-stage img, .lb-stage video { max-height: 100%; max-width: 100%; object-fit: contain; }
.lb-stage iframe { width: min(1100px, 100%); aspect-ratio: 16 / 9; height: auto; border: 0; }
.lb-stage .ph { width: min(900px, 100%); aspect-ratio: 16 / 10; background: #1d2227; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; z-index: 2; }
.lb-nav:hover { background: #fff; color: var(--ink); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 26px 4px; justify-content: safe center; scrollbar-width: thin; }
.lb-thumbs button { flex: none; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; overflow: hidden; background: none; opacity: 0.5; transition: opacity 0.2s, border-color 0.2s; }
.lb-thumbs button.active, .lb-thumbs button:hover { opacity: 1; border-color: var(--accent); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-bottom { padding: 8px 26px 20px; text-align: center; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

/* ---------- Testimonial form modal ---------- */
.modal { position: fixed; inset: 0; z-index: 110; background: rgba(0, 17, 30, 0.7); display: flex; align-items: flex-start; justify-content: center; padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(640px, 100%); background: #fff; padding: clamp(24px, 3.5vw, 40px); margin: auto; animation: pop 0.25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }
.modal-box h3 { font-size: 2rem; margin-bottom: 6px; }
.modal-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; line-height: 1.55; }
.modal .field { margin-bottom: 14px; }
.modal .field textarea { min-height: 80px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.4rem; line-height: 1; }
.modal-close:hover { background: var(--mist); }
.rating { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.field .rating label { font-size: 1.9rem; line-height: 1; letter-spacing: 0; text-transform: none; font-family: Arial, sans-serif; font-weight: 400; color: #d3dade; cursor: pointer; margin: 0; padding: 0 2px; transition: color 0.15s, transform 0.15s; }
.field .rating label:hover, .field .rating label:hover ~ label, .field .rating input:checked ~ label { color: var(--accent); }
.field .rating label:hover { transform: scale(1.12); }
.rating input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin: 4px 0 18px; line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--navy); }
.review-thanks { text-align: center; padding: 10px 0; }
.review-thanks[hidden] { display: none; }
.thanks-ic { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 16px; }
.review-thanks p { color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide > img { transition: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .nav a { font-size: 0.78rem; letter-spacing: 0.07em; }
  .expertise-grid { grid-template-columns: 1fr 1.3fr; }
  .expertise-text { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-mark { grid-column: 1 / -1; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .bar { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .logo img { height: 58px; }
  .header.scrolled .logo img, .header.solid .logo img { height: 48px; }
  .mobile-nav {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 1; background: #fff; color: var(--ink);
    padding: 150px 30px 40px; gap: 4px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .mobile-nav a:not(.pill) { font-family: var(--serif); font-size: 1.8rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .mobile-nav .pill { margin-top: 26px; }
  .nav-open .mobile-nav { opacity: 1; pointer-events: auto; }
  .nav-open .header { color: var(--ink); }
  .nav-open .logo .logo-light { opacity: 0; }
  .nav-open .logo .logo-dark { opacity: 1; }
  .nav-open { overflow: hidden; }
  .notice-contact { display: none; }
  .side-social { display: none; }
  .scroll-cue { display: none; }
  .voices-grid, .contact-grid { grid-template-columns: 1fr; }
  .voices-side .counter { margin-top: 10px; padding-top: 0; }
  .timeline::before { left: 8px; }
  .t-item, .t-item:nth-child(even) { width: 100%; margin: 0; padding: 0 0 44px 44px; text-align: left !important; }
  .t-item::before { left: 3px !important; right: auto !important; top: 30px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .notice { font-size: 0.78rem; }
  .notice-text { line-height: 1.35; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-tabs { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .expertise-tabs button { font-size: 0.8rem; }
  .carousel-track { gap: 20px; }
  .slide-card { flex-basis: 72vw; }
  .voice { flex-basis: 100%; min-height: 0; padding: 32px 26px 28px; }
  .voice blockquote { font-size: 1.25rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-mark img { width: 250px; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-caption { padding-bottom: 120px; }
  .legacy-btn { width: 124px; height: 124px; bottom: -62px; }
  .lb-stage { padding: 0 8px; }
  .lb-nav { width: 42px; height: 42px; background: rgba(0, 0, 0, 0.5); }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .to-top { right: 16px; bottom: 16px; }
  .ms-wrap { padding: 0 52px; }
  .v-arrow { width: 40px; height: 40px; }
  .v-prev { left: -12px; }
  .v-next { right: -12px; }
  .ms-arrow { width: 40px; height: 40px; }
}

.slide-card:focus-visible, .project:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* grid children may shrink below their content width (prevents sideways overflow on phones) */
.voices-grid > *, .contact-grid > *, .expertise-grid > *, .footer-grid > * { min-width: 0; }

/* swipe areas: let horizontal gestures reach the slider, keep vertical page scrolling */
.hero, .ms-stage, .voices-viewport, .lb-stage { touch-action: pan-y; }
.carousel, .ms-stage, .hero { user-select: none; -webkit-user-select: none; }
.carousel { cursor: grab; }
.carousel:active { cursor: grabbing; }
