/* =====================================================
   OPES MANAGEMENT GROUP — v8
   Structure: single-page scroll — About Us / Portfolio / Crew
   Palette: Base cream / Charcoal / Warm gray / Camel / Navy
   ===================================================== */

:root {
  --chef: #FAFAF9;        /* base — page background */
  --ink: #2E2E2E;         /* charcoal — headlines, body, dark sections */
  --ink-soft: rgba(46, 46, 46, 0.72); /* body text on light */
  --navy: #21304E;        /* primary — Pantone 289, stability & professionalism */
  --navy-dark: #16213A;   /* navy hover / secondary */
  --gold: #A08965;        /* accent — camel/tan, used on dark backgrounds */
  --steel: #CCCAC6;       /* neutral — warm gray, borders & placeholders */
  --steel-dark: #8F8D8B;
  --paper: #E4E1DC;       /* alt section background */
  --card: #FFFFFF;
  --line: rgba(46, 46, 46, 0.1);

  --font-display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --radius: 16px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--chef);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

/* ---------- Type ---------- */

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

h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }

p { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(33, 48, 78, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(33, 48, 78, 0.14);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}


.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 16px; font-size: 1.05rem; }

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-dark { background: var(--ink); color: var(--chef); }
.btn-dark:hover { background: var(--navy); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

.btn-light { background: var(--chef); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.26); }

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(143, 141, 139, 0.27);
  backdrop-filter: blur(10.5px);
  -webkit-backdrop-filter: blur(10.5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 48px;
  height: 63.2px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--navy); }

.logo {
  display: block;
  height: 25.2px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}
/* header logo reverts to its natural black once the bar goes solid on scroll */
.site-header.scrolled .logo {
  filter: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:not(.btn):hover { color: #fff; }

.site-header.scrolled .site-nav a:not(.btn) { color: var(--ink-soft); }
.site-header.scrolled .site-nav a:not(.btn):hover { color: var(--steel-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-actions .btn {
  padding: 7.65px 15.3px;
  font-size: 0.81rem;
  font-weight: 500;
}

/* header buttons adapt once the bar goes solid on scroll */
.site-header.scrolled .btn-light { background: var(--ink); color: var(--chef); }
.site-header.scrolled .btn-light:hover { background: var(--steel-dark); color: #fff; }

.site-header.scrolled .btn-glass {
  background: rgba(143, 141, 139, 0.08);
  border-color: rgba(143, 141, 139, 0.3);
  color: var(--steel-dark);
}
.site-header.scrolled .btn-glass:hover { background: rgba(143, 141, 139, 0.16); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}

.site-header.scrolled .nav-toggle span { background: var(--ink); }

.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero { padding: 0; }

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 5s ease;
}

.hero-bg-a { opacity: 1; background-image: url("KC-01.jpg"); }
.hero-bg-b { opacity: 0; }

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(13,13,13,0.98) 0%, rgba(33,48,78,0.70) 45%, rgba(33,48,78,0.40) 100%);
}

.hero-media > .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 140px;
  padding-bottom: clamp(24px, 4vw, 48px);
}

.hero-content { max-width: 760px; margin-bottom: 90px; }

.hero-content .eyebrow {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-content h1 { color: var(--chef); margin-top: -20px; margin-bottom: 20px; font-size: clamp(2.16rem, 4.8vw, 3.52rem); font-weight: 400; max-width: 35vw; }

.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.6s ease, transform 1.6s ease;
}
.word-reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .word-reveal { opacity: 1; transform: none; transition: none; }
}

.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.12rem;
  max-width: 35vw;
  margin-bottom: 28px;
}

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-actions .btn {
  padding: 7.65px 15.3px;
  font-size: 0.81rem;
  font-weight: 500;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.hero-stat { display: flex; flex-direction: column; }

.stat-value {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.43rem, 2.42vw, 1.98rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--chef);
  margin-bottom: 10px;
}

.stat-label {
  padding-top: 10px;
  border-top: 1px solid #fff;
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Who We Are / What We Do ---------- */

.about { padding: 70px 0; }

.about-panel {
  position: relative;
  padding: clamp(50px, 7.8vw, 100px) clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--chef);
  background-image:
    linear-gradient(180deg, rgba(13,13,13,0.15) 0%, rgba(13,13,13,0.82) 100%),
    url("KC-19.jpg");
  background-size: cover;
  background-position: center;
}

.about-intro {
  max-width: 640px;
  margin: -25px auto 0;
  text-align: center;
}
.about-intro .eyebrow {
  color: var(--ink);
  background: var(--chef);
  border-color: var(--chef);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  justify-content: center;
}
.about-intro h2 { color: var(--chef); margin-bottom: 14px; }
.about-intro p { color: rgba(255, 255, 255, 0.8); font-size: 1.05rem; }

.what-we-do-inner { margin-top: 137px; text-align: center; }
.what-we-do-inner .eyebrow {
  color: var(--ink);
  background: var(--chef);
  border-color: var(--chef);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  justify-content: center;
  margin-bottom: 20px;
}

.whatwedo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.whatwedo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.whatwedo-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 8px; }
.whatwedo-card p { color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; line-height: 1.5; }

/* ---------- Why We Do It ---------- */

.why {
  padding: 90px 0;
  color: var(--chef);
  background-image:
    linear-gradient(90deg, rgba(50,50,50,0.55) 0%, rgba(30,30,30,0.94) 100%),
    url("KCC-49.jpg");
  background-size: cover;
  background-position: center;
}

.why .eyebrow {
  color: var(--ink);
  background: var(--chef);
  border-color: var(--chef);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.why h2 { color: var(--chef); margin-bottom: 14px; }
.why-col p { color: rgba(252,249,243,0.75); font-size: 1.05rem; }

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---------- Where We Specialize ---------- */

.specialize-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.specialize-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.specialize-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 8px; }
.specialize-card p { color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; line-height: 1.5; }

/* ---------- Our Values ---------- */

.values { padding: 70px 0; background: var(--chef); }

.values-panel {
  position: relative;
  padding: clamp(50px, 7vw, 90px) clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(13,13,13,0.8) 0%, rgba(13,13,13,0.4) 55%, rgba(13,13,13,0) 100%),
    url("KCC-12.jpg");
  background-size: cover;
  background-position: center;
}

.values-content { max-width: 371px; }

.values-content .eyebrow {
  color: var(--ink);
  background: var(--chef);
  border-color: var(--chef);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.values-list { margin-top: 20px; }

.value-row { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.value-row:first-child { border-top: 1px solid rgba(255, 255, 255, 0.18); }

.value-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 10px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.2s ease;
}

.value-row:hover .value-trigger { background: rgba(255, 255, 255, 0.06); }
.value-row:hover .value-plus { background: rgba(255, 255, 255, 0.22); }

.value-trigger h3 { color: #fff; font-size: 1.02rem; margin: 0; }

.value-plus {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease;
}

.value-plus::before,
.value-plus::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s ease;
}
.value-plus::before { top: 50%; left: 5px; right: 5px; height: 2px; transform: translateY(-50%); }
.value-plus::after { left: 50%; top: 5px; bottom: 5px; width: 2px; transform: translateX(-50%); }

.value-row.open .value-plus { background: rgba(255, 255, 255, 0.3); }
.value-row.open .value-plus::after { transform: translateX(-50%) rotate(90deg); }

.value-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.value-row.open .value-panel { grid-template-rows: 1fr; }

.value-panel-inner { overflow: hidden; }

.value-panel-inner p {
  padding: 0 2px 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Portfolio ---------- */

.portfolio {
  position: relative;
  padding: 90px 0;
  color: var(--chef);
  background-image:
    linear-gradient(135deg, rgba(18,26,42,0.92) 0%, rgba(18,26,42,0.76) 45%, rgba(18,26,42,0.75) 100%),
    url("KCC-15.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.portfolio .eyebrow {
  color: var(--steel);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}
.portfolio h2 { color: var(--chef); }
.portfolio .section-head p { color: rgba(252,249,243,0.75); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.portfolio-item:hover {
  transform: translateY(-3px);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.portfolio-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--chef);
}

.portfolio-desc {
  font-size: 0.85rem;
  color: rgba(252, 249, 243, 0.75);
}

/* ---------- Crew ---------- */

.crew { padding: 80px 0; }

.crew .eyebrow { color: var(--navy-dark); }

.crew-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.crew-layout .section-head { margin-bottom: 0; }

.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.crew-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.crew-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crew-photo-bw { filter: grayscale(100%); }

.crew-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,30,30,0.1) 0%, rgba(30,30,30,0.1) 35%, rgba(30,30,30,0.9) 100%);
  pointer-events: none;
}

.crew-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 20px;
}

.crew-overlay h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.crew-overlay a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.crew-overlay a:hover { color: #fff; border-color: #fff; }

/* ---------- Partner Portal ---------- */

.portal-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("KC-03.jpg");
  background-size: cover;
  background-position: center;
}

.portal-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(13,13,13,0.9) 0%, rgba(33,48,78,0.72) 55%, rgba(33,48,78,0.55) 100%);
}

.portal-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 160px 24px 80px;
}

.portal-card {
  width: 100%;
  max-width: 400px;
  padding: 40px 36px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
}

.portal-card .eyebrow {
  color: var(--steel);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.portal-card h1 {
  color: var(--chef);
  font-size: 1.9rem;
  margin-top: 14px;
  margin-bottom: 8px;
}

.portal-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-field span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.portal-field input {
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.portal-field input::placeholder { color: rgba(255, 255, 255, 0.4); }
.portal-field input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.portal-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.portal-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.portal-link:hover { color: #fff; border-color: #fff; }

.portal-submit {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

.portal-footnote {
  margin-top: 24px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

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

.footer-bg {
  background-image: url("KCC-27.jpg");
  background-size: cover;
  background-position: center;
}

.site-footer {
  position: relative;
  color: var(--chef);
  padding: 92px 0 56px;
  background-image: linear-gradient(135deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.35) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 2fr 5fr;
  gap: 48px;
  align-items: start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 0;
}

.footer-logo {
  height: 34px;
  margin-bottom: 32px;
  filter: brightness(0) invert(1);
}

.footer-lede {
  text-align: left;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  max-width: 380px;
}

.footer-address { padding: 32px 0; }
.footer-subscribe { padding: 32px 0; }
.footer-address .footer-lede,
.footer-subscribe .footer-lede { margin-top: 66px; }

.footer-left .footer-lede + .footer-lede { margin-top: 20px; }

.footer-label { color: #fff; }

.footer-address a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.footer-address a:hover { color: #fff; }

.subscribe-form { margin-top: 18px; }

.subscribe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.subscribe-row-email { align-items: center; }

.subscribe-input {
  flex: 1 1 140px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.subscribe-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.subscribe-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.subscribe-btn {
  flex: 0 0 auto;
  background: #fff;
  color: #333333;
  padding: 11px 26px;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
}
.subscribe-btn:hover { background: var(--paper); }

.footer-end {
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 25px 0;
}

.footer-end .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 50px;
}

.footer-end p {
  text-align: left;
  font-size: 0.85rem;
  color: #fff;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

@media (max-width: 900px) {
  .crew-layout { grid-template-columns: 1fr; gap: 32px; }
  .crew-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 8px; }
  .footer-address .footer-lede,
  .footer-subscribe .footer-lede { margin-top: 0; }
  .footer-left, .footer-address, .footer-subscribe { padding: 20px 0; }
  .whatwedo-grid { grid-template-columns: 1fr 1fr; }
  .why-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding: 12px 24px; }

  .site-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open {
    background: rgba(20, 20, 20, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-header.nav-open .site-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-left: 0;
  }

  .site-header.nav-open .site-nav {
    order: 3;
    gap: 4px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .site-header.nav-open .site-nav a:not(.btn) {
    padding: 10px 4px;
    color: #fff;
  }

  .site-header.nav-open .header-actions {
    order: 4;
    gap: 10px;
    padding: 12px 0 16px;
  }

  .site-header.nav-open .header-actions .btn-glass { display: inline-block; }

  .site-header.nav-open .header-actions .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .crew-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-media { min-height: 560px; }
  .hero-content h1, .hero-content p { max-width: 100%; }
  .portfolio { background-attachment: scroll; }
  .whatwedo-grid { grid-template-columns: 1fr; }
  .specialize-grid { grid-template-columns: 1fr; }
}
