/*
Theme Name: Keystone Advisory Pro
Theme URI: https://keystoneadvisory.ca
Author: Keystone Advisory
Author URI: https://keystoneadvisory.ca
Description: Custom theme for Keystone Advisory — enterprise deal advisory and execution.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: keystone-v3
Tags: business, consulting, one-page, minimal
*/

/* ═══════════════════════════════════════════════
   TOKENS & RESET
═══════════════════════════════════════════════ */
:root {
  --navy:        #0B1929;
  --navy-mid:    #132238;
  --navy-light:  #1C3050;
  --gold:        #C49A38;
  --gold-light:  #DDB84E;
  --gold-pale:   #EDD090;
  --cream:       #F4EFE6;
  --parchment:   #EDE5D8;
  --white:       #FAFAF8;
  --slate:       #8A9BB5;
  --slate-light: #B8C6D8;
  --text-body:   #E8E0D4;
  --text-muted:  #7A8FA8;

  --ff-serif:  'Cormorant Garamond', Georgia, serif;
  --ff-sans:   'Montserrat', sans-serif;
  --ff-stamp:  'Cinzel', serif;

  --max-w: 1160px;
  --section-pad: 120px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--navy);
  color: var(--text-body);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  mix-blend-mode: normal;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  opacity: 0.5;
}
body:hover .cursor { opacity: 1; }
a:hover ~ .cursor, button:hover ~ .cursor { width: 14px; height: 14px; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ═══════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
═══════════════════════════════════════════════ */
.serif   { font-family: var(--ff-serif); }
.stamp   { font-family: var(--ff-stamp); }
.gold    { color: var(--gold); }
.muted   { color: var(--text-muted); }
.upper   { text-transform: uppercase; letter-spacing: 0.2em; }
.eyebrow {
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

section { position: relative; }

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition);
}
#site-nav.scrolled {
  background: rgba(11, 25, 41, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 48px;
  border-bottom: 1px solid rgba(196, 154, 56, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-logo .logo-text {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}
.nav-logo .logo-sub {
  font-family: var(--ff-sans);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--slate-light);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  border: 1px solid rgba(196, 154, 56, 0.4);
  padding: 10px 22px;
  border-radius: 1px;
  transition: background var(--transition), color var(--transition), border-color var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-color: var(--gold) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--white);
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

/* Subtle animated grain overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: -200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  animation: grain 8s steps(10) infinite;
  pointer-events: none;
}

@keyframes grain {
  0%,100%{transform:translate(0,0)}
  10%{transform:translate(-2%,-3%)}
  20%{transform:translate(3%,2%)}
  30%{transform:translate(-1%,4%)}
  40%{transform:translate(2%,-1%)}
  50%{transform:translate(-3%,3%)}
  60%{transform:translate(1%,-2%)}
  70%{transform:translate(-2%,1%)}
  80%{transform:translate(3%,-3%)}
  90%{transform:translate(-1%,2%)}
}

/* Radial glow behind emblem */
#hero::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(196,154,56,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 120px 40px 80px;
}

/* Thin horizontal rule above hero eyebrow */
.hero-rule-top {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
  margin-bottom: 40px;
}

.hero-emblem {
  opacity: 0;
  animation: fadeUp 1.2s ease 0.6s forwards;
  margin-bottom: 48px;
}

.hero-headline {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.15;
  max-width: 820px;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.8s forwards;
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--slate-light);
  max-width: 520px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1.2s ease 1s forwards;
  margin-bottom: 52px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: fadeUp 1.2s ease 1.2s forwards;
}

.btn-primary {
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 16px 36px;
  border: 1px solid var(--gold);
  border-radius: 1px;
  cursor: none;
  transition: background var(--transition), color var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  padding: 16px 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1px;
  cursor: none;
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.hero-rule-bottom {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin-top: 52px;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s ease 1.8s forwards;
}
.scroll-cue span {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-cue-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   INTRO STRIP
═══════════════════════════════════════════════ */
#intro {
  background: var(--navy-mid);
  border-top: 1px solid rgba(196,154,56,0.15);
  border-bottom: 1px solid rgba(196,154,56,0.15);
  padding: 64px 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  align-items: center;
}
.intro-stat {
  text-align: center;
  padding: 16px 40px;
}
.intro-stat .number {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 48px;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1;
  display: block;
}
.intro-stat .label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 8px;
  display: block;
}
.intro-divider {
  width: 1px;
  height: 60px;
  background: rgba(196,154,56,0.2);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
#services {
  padding: var(--section-pad) 0;
  background: var(--navy);
}

.section-header {
  margin-bottom: 72px;
}
.section-header .eyebrow { margin-bottom: 16px; }
.section-title {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.2;
  max-width: 600px;
}
.section-title em {
  font-style: italic;
  color: var(--gold-light);
}

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

.service-card {
  background: var(--navy-mid);
  padding: 52px 40px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  border: 1px solid rgba(196,154,56,0.08);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover { background: #162848; }
.service-card:hover::before { transform: scaleX(1); }

.service-number {
  font-family: var(--ff-serif);
  font-size: 64px;
  font-weight: 300;
  color: rgba(196,154,56,0.12);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
  transition: color var(--transition);
}
.service-card:hover .service-number { color: rgba(196,154,56,0.22); }

.service-icon {
  margin-bottom: 28px;
}

.service-title {
  font-family: var(--ff-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.service-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--slate-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.service-details {
  border-top: 1px solid rgba(196,154,56,0.15);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--slate);
  font-weight: 300;
}
.service-detail-item::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
  font-size: 10px;
  margin-top: 2px;
}

.service-pricing {
  margin-top: 32px;
  padding: 16px 20px;
  background: rgba(196,154,56,0.06);
  border-left: 2px solid var(--gold);
}
.service-pricing .price-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.service-pricing .price-value {
  font-family: var(--ff-serif);
  font-size: 18px;
  color: var(--white);
}

/* ═══════════════════════════════════════════════
   APPROACH / HOW IT WORKS
═══════════════════════════════════════════════ */
#approach {
  padding: var(--section-pad) 0;
  background: var(--navy-mid);
  border-top: 1px solid rgba(196,154,56,0.1);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.approach-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(196,154,56,0.1);
  position: relative;
}
.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--ff-stamp);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  padding-top: 4px;
}
.step-content {}
.step-title {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.step-text {
  font-size: 13px;
  font-weight: 300;
  color: var(--slate-light);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
#about {
  padding: var(--section-pad) 0;
  background: var(--navy);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: center;
}

.about-visual {
  position: relative;
}
.about-emblem-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-emblem-wrap::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(196,154,56,0.08) 0%, transparent 70%);
  z-index: 0;
}
.about-emblem-wrap svg { position: relative; z-index: 1; }

.about-content {}
.about-content .eyebrow { margin-bottom: 20px; }

.about-name {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(32px, 3.5vw, 48px);
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.about-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.about-body {
  font-size: 14px;
  font-weight: 300;
  color: var(--slate-light);
  line-height: 1.9;
  margin-bottom: 40px;
}
.about-body p + p { margin-top: 16px; }

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.credential {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--slate);
  font-weight: 300;
  line-height: 1.5;
}
.credential::before {
  content: '◆';
  color: var(--gold);
  font-size: 7px;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
#contact {
  padding: var(--section-pad) 0;
  background: var(--navy-mid);
  border-top: 1px solid rgba(196,154,56,0.15);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left .eyebrow { margin-bottom: 20px; }
.contact-headline {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(30px, 3.5vw, 48px);
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-bottom: 24px;
}
.contact-headline em {
  font-style: italic;
  color: var(--gold-light);
}
.contact-note {
  font-size: 13px;
  font-weight: 300;
  color: var(--slate-light);
  line-height: 1.8;
  margin-bottom: 40px;
}
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--slate-light);
}
.contact-meta-item .meta-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 60px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,154,56,0.2);
  border-radius: 1px;
  color: var(--white);
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 300;
  padding: 14px 18px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  resize: none;
  cursor: none;
  width: 100%;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(196,154,56,0.6);
  background: rgba(255,255,255,0.06);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select option { background: var(--navy-mid); color: var(--white); }

.form-submit {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: none;
  padding: 18px 40px;
  border-radius: 1px;
  cursor: none;
  transition: background var(--transition);
  align-self: flex-start;
}
.form-submit:hover { background: var(--gold-light); }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
#site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(196,154,56,0.12);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--ff-serif);
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-logo span { color: var(--gold); }
.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — COMPREHENSIVE
   Breakpoints:
   1440px+ → Large screens / wide monitors
   1024–1440px → Laptops
   768–1024px  → Tablets
   480–768px   → Large mobile
   <480px      → Small mobile
═══════════════════════════════════════════════ */

/* ── Large Screens (1440px+) ── */
@media (min-width: 1440px) {
  :root { --max-w: 1320px; --section-pad: 140px; }

  .hero-headline { font-size: 80px; }
  .hero-sub { font-size: 18px; max-width: 620px; }

  .section-title { font-size: 58px; }

  .service-card { padding: 64px 52px; }
  .service-title { font-size: 30px; }
  .service-desc { font-size: 16px; }
  .service-detail-item { font-size: 15px; }

  .about-name { font-size: 56px; }
  .about-body { font-size: 17px; }

  .about-photo-wrap { width: 360px; height: 360px; }
  .about-photo-link { width: 336px; height: 336px; }

  .step-title { font-size: 24px; }
  .step-text { font-size: 16px; }

  .contact-headline { font-size: 56px; }
  .contact-note { font-size: 17px; }

  .intro-stat .number { font-size: 56px; }
}

/* ── Standard Laptops (1024–1440px) ── */
@media (max-width: 1439px) and (min-width: 1025px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 1.4fr; gap: 72px; }
  .approach-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ── Tablets & Small Laptops (768–1024px) ── */
@media (max-width: 1024px) {
  :root { --section-pad: 96px; }

  /* Nav */
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 11px; }

  /* Hero */
  .hero-headline { font-size: clamp(36px, 5vw, 56px); }
  .hero-emblem svg { width: 170px; height: 170px; }

  /* Intro strip */
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .intro-divider:last-of-type { display: none; }
  .intro-stat { padding: 24px 20px; }
  .intro-stat .number { font-size: 40px; }

  /* Services — 2 columns on tablet */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .service-card { padding: 40px 32px; }
  .service-title { font-size: 22px; }

  /* Approach — stack on tablet */
  .approach-grid { grid-template-columns: 1fr; gap: 48px; }
  .approach-visual { display: none; } /* hide large emblem on tablet to save space */

  /* About — stack on tablet */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-wrap { width: 240px; height: 240px; }
  .about-photo-link { width: 220px; height: 220px; }
  .about-name { font-size: 36px; }
  .about-credentials { grid-template-columns: 1fr 1fr; }

  /* Contact — stack on tablet */
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-headline { font-size: 36px; }

  /* Footer */
  .footer-inner { gap: 20px; }
}

/* ── Large Mobile / Landscape Phone (600–768px) ── */
@media (max-width: 768px) {
  :root { --section-pad: 72px; }

  /* Nav */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  #site-nav { padding: 18px 20px; }
  #site-nav.scrolled { padding: 14px 20px; }

  /* Container */
  .container { padding: 0 20px; }

  /* Hero */
  .hero-inner { padding: 100px 20px 64px; }
  .hero-headline { font-size: clamp(30px, 7vw, 44px); }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 14px; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 280px; text-align: center; }
  .hero-emblem svg { width: 150px; height: 150px; }
  .hero-rule-top { height: 40px; }
  .hero-rule-bottom { height: 40px; }

  /* Intro strip */
  .intro-grid { grid-template-columns: 1fr; }
  .intro-divider { display: none; }
  .intro-stat { padding: 20px; }
  .intro-stat .number { font-size: 36px; }

  /* Services — single column */
  .services-grid { grid-template-columns: 1fr; gap: 2px; }
  .service-card { padding: 36px 28px; }
  .service-number { font-size: 48px; }
  .service-title { font-size: 22px; }
  .service-desc { font-size: 14px; }

  /* Section headers */
  .section-title { font-size: clamp(26px, 6vw, 36px); }
  .section-header { margin-bottom: 48px; }

  /* Approach */
  .approach-grid { grid-template-columns: 1fr; gap: 40px; }
  .approach-visual { display: none; }
  .step { grid-template-columns: 36px 1fr; gap: 16px; padding: 24px 0; }
  .step-title { font-size: 18px; }
  .step-text { font-size: 14px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo-wrap { width: 200px; height: 200px; }
  .about-photo-link { width: 180px; height: 180px; }
  .about-name { font-size: 30px; }
  .about-title { font-size: 11px; }
  .about-body { font-size: 14px; }
  .about-credentials { grid-template-columns: 1fr; gap: 10px; }
  .credential { font-size: 13px; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-headline { font-size: clamp(26px, 6vw, 36px); }
  .contact-note { font-size: 14px; }
  .contact-meta-item { font-size: 13px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; } /* prevents iOS zoom on focus */
  .form-submit { width: 100%; text-align: center; padding: 18px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-copy { font-size: 10px; }

  /* Cursor off on touch */
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* ── Small Mobile (< 480px) ── */
@media (max-width: 480px) {
  :root { --section-pad: 60px; }

  .container { padding: 0 16px; }

  /* Nav */
  #site-nav { padding: 16px; }
  .nav-logo .logo-text { font-size: 20px; }
  .nav-logo .logo-sub { font-size: 8px; }
  .nav-logo svg { width: 32px; height: 32px; }

  /* Hero */
  .hero-inner { padding: 90px 16px 56px; }
  .hero-headline { font-size: 28px; line-height: 1.2; }
  .hero-sub { font-size: 14px; }
  .hero-emblem svg { width: 130px; height: 130px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.2em; }

  /* Intro */
  .intro-stat .number { font-size: 32px; }
  .intro-stat .label { font-size: 9px; }

  /* Services */
  .service-card { padding: 28px 20px; }
  .service-title { font-size: 20px; }
  .service-desc { font-size: 13px; }
  .service-number { font-size: 40px; margin-bottom: 16px; }

  /* Section titles */
  .section-title { font-size: 24px; }

  /* Steps */
  .step { grid-template-columns: 30px 1fr; gap: 12px; }
  .step-num { font-size: 10px; }
  .step-title { font-size: 17px; }
  .step-text { font-size: 13px; }

  /* About */
  .about-photo-wrap { width: 160px; height: 160px; }
  .about-photo-link { width: 144px; height: 144px; }
  .about-name { font-size: 26px; }
  .about-body { font-size: 13px; }
  .credential { font-size: 12px; }

  /* Contact */
  .contact-headline { font-size: 24px; }
  .contact-note { font-size: 13px; }
  .btn-primary, .btn-ghost { padding: 14px 24px; font-size: 10px; }

  /* Footer */
  .footer-logo { font-size: 16px; }
  .footer-links a { font-size: 9px; }
}

/* ── Touch device hover fix ── */
@media (hover: none) {
  .about-photo-overlay { display: none; }
  .service-card::before { display: none; }
  .nav-links a::after { display: none; }
}


/* ═══════════════════════════════════════════════
   ABOUT PHOTO
═══════════════════════════════════════════════ */
.about-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.about-photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(196, 154, 56, 0.4);
  pointer-events: none;
}
.about-photo-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(196, 154, 56, 0.15);
}

.about-photo-link {
  display: block;
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(196, 154, 56, 0.5);
  transition: border-color 0.4s ease, transform 0.4s ease;
  flex-shrink: 0;
}
.about-photo-link:hover {
  border-color: #C49A38;
  transform: scale(1.03);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.about-photo-link:hover .about-photo {
  transform: scale(1.05);
}

.about-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 25, 41, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FAFAF8;
  border-radius: 50%;
}
.about-photo-link:hover .about-photo-overlay {
  opacity: 1;
}

@media (max-width: 1024px) {
  .about-photo-wrap { width: 220px; height: 220px; margin-bottom: 32px; }
  .about-photo-link { width: 200px; height: 200px; }
}

@media (max-width: 768px) {
  .about-photo-wrap { width: 180px; height: 180px; }
  .about-photo-link { width: 160px; height: 160px; }
}
.footer-fineprint {
  border-top: 1px solid rgba(196, 154, 56, 0.1);
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
}
.footer-fineprint p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto;
  font-style: italic;
  letter-spacing: 0.02em;
}