/* ================================================================
   Noyan Khandokar Portfolio — style.css
   Fonts  : Fraunces (display) · Plus Jakarta Sans (body)
   Colors : Navy #0A2540 · Gold #F5A623 · Gray #F4F6F9 · White #fff
   Breakpoints: 480 · 640 · 768 · 1024 · 1280
================================================================ */

/* ---- RESET -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; color: #0A2540; background: #fff; line-height: 1.65; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: 'Fraunces', Georgia, serif; line-height: 1.15; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
input,select,textarea,button { font-family: inherit; }

/* ---- CUSTOM PROPERTIES ------------------------------------- */
:root {
  --navy:        #0A2540;
  --gold:        #F5A623;
  --gold-alpha:  rgba(245,166,35,.14);
  --gold-glow:   rgba(245,166,35,.28);
  --white:       #ffffff;
  --gray:        #F4F6F9;
  --border:      #e5e8ec;
  --text-muted:  #6b7a8d;
  --green:       #16a34a;
  --r-sm:        10px;
  --r-md:        18px;
  --r-lg:        28px;
  --r-xl:        40px;
  --shadow-xs:   0 1px 6px rgba(10,37,64,.07);
  --shadow-sm:   0 3px 16px rgba(10,37,64,.08);
  --shadow-md:   0 8px 32px rgba(10,37,64,.11);
  --shadow-lg:   0 20px 60px rgba(10,37,64,.15);
  --ease:        cubic-bezier(.4,0,.2,1);
  --t:           .28s;
}

/* ---- LAYOUT ------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.bg-white { background: var(--white); }
.bg-gray  { background: var(--gray); }

/* ---- TYPOGRAPHY UTILITIES ---------------------------------- */
.text-gold    { color: var(--gold); }
.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  background: var(--gold-alpha);
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin-bottom: .75rem; }
.section-header p  { color: var(--text-muted); max-width: 560px; margin-inline: auto; font-size: 1.02rem; }

/* ---- BUTTONS ----------------------------------------------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold); color: var(--navy);
  padding: .75rem 1.8rem;
  border-radius: 999px;
  font-weight: 700; font-size: .92rem;
  box-shadow: 0 6px 22px var(--gold-glow);
  transition: opacity var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
  white-space: nowrap;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 10px 30px var(--gold-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-full { width: 100%; justify-content: center; padding-block: .9rem; }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid var(--navy); color: var(--navy);
  padding: .73rem 1.8rem; border-radius: 999px;
  font-weight: 700; font-size: .92rem;
  transition: background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---- CUSTOM CURSOR ----------------------------------------- */
#nk-cur, #nk-ring { display: none; }

@media (pointer: fine) {
  * { cursor: none !important; }
  #nk-cur {
    width: 10px; height: 10px;
    background: #e87c00; border-radius: 50%;
    position: fixed; z-index: 99999; pointer-events: none;
    left: -100px; top: -100px; transform: translate(-50%,-50%);
    transition: width .18s, height .18s, background .18s;
  }
  #nk-ring {
    width: 36px; height: 36px;
    border: 1.5px solid rgba(232,124,0,.4); border-radius: 50%;
    position: fixed; z-index: 99998; pointer-events: none;
    left: -100px; top: -100px; transform: translate(-50%,-50%);
    transition: width .26s, height .26s, border-color .26s;
  }
  body.nk-hover #nk-cur  { width: 18px; height: 18px; }
  body.nk-hover #nk-ring { width: 52px; height: 52px; border-color: rgba(232,124,0,.65); }
}

/* ---- SCROLL ANIMATIONS ------------------------------------- */
.animate-fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.animate-fade-in {
  opacity: 0; transform: scale(.95);
  transition: opacity .65s var(--ease) .1s, transform .65s var(--ease) .1s;
}
.animate-fade-up.visible, .animate-fade-in.visible { opacity: 1; transform: none; }

/* ================================================================
   NAVIGATION
================================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
#navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }

.nav-inner {
  max-width: 1180px; margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo-fallback {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--navy); color: var(--white);
  border-radius: var(--r-sm);
  font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700;
}

.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
}
.nav-link {
  font-size: .875rem; font-weight: 600; color: var(--navy);
  position: relative; transition: color var(--t);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: width var(--t) var(--ease);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

.btn-hire {
  background: var(--navy); color: var(--white);
  padding: .5rem 1.3rem; border-radius: 999px;
  font-size: .875rem; font-weight: 700;
  transition: background var(--t), color var(--t);
}
.btn-hire:hover { background: var(--gold); color: var(--navy); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; border-radius: var(--r-sm);
  transition: background var(--t);
}
.nav-toggle:hover { background: var(--gray); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
================================================================ */
.hero {
  padding-top: calc(72px + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
  background: linear-gradient(150deg, var(--gray) 0%, var(--white) 55%);
  overflow: hidden;
}

.hero-grid {
  max-width: 1180px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; color: var(--green);
  background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.2);
  padding: .3rem .9rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(.85); }
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.08;
  margin-bottom: 1.1rem;
}
.hero-text h1 em { font-style: italic; }

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--text-muted); line-height: 1.75;
  margin-bottom: 2rem; max-width: 480px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.5rem; }

.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-num {
  font-family: 'Fraunces', serif; font-size: 1.5rem;
  font-weight: 700; color: var(--navy); line-height: 1;
}
.hero-stat-label { font-size: .72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.hero-stat-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* Visual */
.hero-visual { position: relative; }

.hero-img-frame {
  position: relative; z-index: 1;
  border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 1; background: var(--navy);
  box-shadow: var(--shadow-lg);
}
.hero-img-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-img-accent {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, rgba(10,37,64,.35), transparent);
}

/* Floating cards */
.hero-float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .65rem;
  background: var(--white); border-radius: var(--r-md);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-md);
  font-size: .78rem;
}
.hero-float-card svg { color: var(--gold); flex-shrink: 0; }
.hero-float-card strong { display: block; font-size: .85rem; font-weight: 700; line-height: 1.2; color: var(--navy); }
.hero-float-card span { color: var(--text-muted); font-weight: 500; }
.hero-float-1 { bottom: 2rem; left: -1.25rem; }
.hero-float-2 { top: 2rem;    right: -1.25rem; }

.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(50px); z-index: 0; pointer-events: none;
}
.hero-blob-gold { width: 220px; height: 220px; background: var(--gold); bottom: -3rem; right: -3rem; opacity: .12; }
.hero-blob-navy { width: 180px; height: 180px; background: var(--navy); top: -2rem;   left: -2rem;  opacity: .08; }

/* ================================================================
   SERVICES
================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.service-card {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: var(--r-lg); border: 1.5px solid var(--border);
  background: var(--white); cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  display: flex; flex-direction: column; gap: .65rem;
}
.service-card:hover, .service-card:focus-visible {
  border-color: rgba(245,166,35,.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  outline: none;
}
.service-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.service-icon-wrap {
  width: 52px; height: 52px;
  background: var(--gold-alpha); color: var(--gold);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t), background var(--t);
  flex-shrink: 0;
}
.service-card:hover .service-icon-wrap { transform: scale(1.1); background: rgba(245,166,35,.22); }

.service-card h3 {
  font-size: 1rem; font-weight: 700;
  transition: color var(--t); margin-top: .25rem;
}
.service-card:hover h3 { color: var(--gold); }

.service-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; flex: 1; }

.card-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .82rem; font-weight: 700; color: var(--navy);
  transition: color var(--t), gap var(--t);
  margin-top: auto;
}
.service-card:hover .card-arrow { color: var(--gold); gap: 7px; }

/* ================================================================
   MODALS (shared)
================================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(.75rem, 3vw, 1.5rem);
  background: rgba(10,37,64,.65);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
  position: relative; background: var(--white);
  width: 100%; max-width: 680px; max-height: 90vh;
  border-radius: var(--r-xl); overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(.92) translateY(20px);
  transition: transform .32s var(--ease);
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }
.modal-box-wide { max-width: 860px; }

.modal-close {
  position: sticky; top: 1rem; float: right; margin: 1rem 1rem 0 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--gray); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t);
  flex-shrink: 0; z-index: 10;
}
.modal-close:hover { background: var(--gold); }

.modal-body { padding: clamp(1.5rem, 4vw, 2.5rem); padding-top: .5rem; }

.modal-svc-icon { color: var(--gold); margin-bottom: 1rem; }

.modal-box h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700; margin-bottom: .9rem;
}
.modal-desc {
  color: var(--text-muted); line-height: 1.75; margin-bottom: 1.75rem; font-size: .97rem;
}
.modal-section-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gold); margin-bottom: .75rem;
}
.modal-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-bottom: 2rem;
}
.modal-check-list { display: flex; flex-direction: column; gap: .65rem; }
.modal-check-list li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .9rem; color: var(--text-muted); font-weight: 500;
}
.modal-check-list li svg { flex-shrink: 0; margin-top: 1px; }
.check-gold svg  { color: var(--gold); }
.check-star svg  { color: var(--gold); }
.check-green svg { color: var(--green); }

.modal-cta-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.modal-cta-row p { color: var(--text-muted); font-size: .875rem; max-width: 260px; }

/* Project modal */
.modal-proj-hero { position: relative; height: clamp(180px, 30vw, 280px); overflow: hidden; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.modal-proj-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-proj-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,.82) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.modal-proj-hero-overlay h3 { color: var(--white); font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: .2rem; }
.modal-kpi-text { color: var(--gold); font-weight: 700; font-size: 1.05rem; }

.modal-proj-content { padding: clamp(1.25rem, 3vw, 2rem); }
.modal-proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.modal-proj-block + .modal-proj-block { margin-top: 1.5rem; }
.modal-proj-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  background: var(--gray); border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem; margin-top: 1rem;
}
.modal-metric-eyebrow { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .2rem; }
.modal-metric-val { font-size: 1.2rem; font-weight: 700; color: var(--navy); }

/* ================================================================
   ABOUT
================================================================ */
.about-layout {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: start;
}

.about-headline {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 1.75rem;
}
.about-headline em { font-style: italic; }

.about-body p {
  color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 1rem;
}
.about-body p strong { color: var(--navy); font-weight: 700; }

.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }

.pillar { display: flex; align-items: flex-start; gap: .9rem; }
.pillar-icon {
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  background: rgba(10,37,64,.06); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
}
.pillar h4 { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.pillar p  { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* Bento Grid */
.bento {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.bento-card {
  border-radius: var(--r-lg); padding: 1.5rem;
  position: relative; overflow: hidden;
}
.bento-full { grid-column: span 2; }

.bento-dark { background: var(--navy); color: var(--white); }
.bento-light { background: var(--gray); border: 1.5px solid var(--border); }
.bento-gold  { background: var(--gold); color: var(--navy); }
.bento-photo { padding: 0; height: 160px; }
.bento-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }

.bento-num {
  font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 700;
  line-height: 1; margin-bottom: .2rem;
}
.bento-num-sm { font-size: 1.9rem; color: var(--navy); }
.bento-label { font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: .5rem; }
.bento-note  { font-size: .83rem; color: rgba(255,255,255,.5); line-height: 1.55; }
.bento-tag   { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.bento-stack-title { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(10,37,64,.6); margin-bottom: .85rem; }

.skill-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.skill-chips span {
  padding: .35rem .8rem;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; font-size: .72rem; font-weight: 700;
  backdrop-filter: blur(4px);
}

.bento-row-end {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; padding-top: .85rem;
  border-top: 1px solid rgba(10,37,64,.12);
  font-size: .78rem; font-weight: 700;
}
.cert-bubbles { display: flex; }
.cert-bub {
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold); margin-left: -5px;
}
.cert-bub:first-child { margin-left: 0; }

.bento-glow {
  position: absolute; bottom: -2rem; right: -2rem;
  width: 8rem; height: 8rem;
  background: rgba(245,166,35,.1);
  border-radius: 50%; filter: blur(28px); pointer-events: none;
}

/* ================================================================
   PORTFOLIO
================================================================ */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

.portfolio-card {
  background: var(--white); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: box-shadow var(--t), transform var(--t);
}
.portfolio-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.portfolio-thumb {
  position: relative; height: clamp(180px, 22vw, 240px); overflow: hidden;
  background: var(--gray);
}
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.07); }

.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(10,37,64,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.94); color: var(--navy);
  padding: .55rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: .82rem;
  transform: translateY(8px); transition: transform var(--t);
}
.portfolio-card:hover .portfolio-overlay span { transform: translateY(0); }

.portfolio-body { padding: clamp(1.1rem, 2.5vw, 1.6rem); }

.portfolio-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: .5rem; margin-bottom: .6rem;
}
.portfolio-top h3 { font-size: 1.1rem; font-weight: 700; flex: 1; }

.badge-case {
  background: var(--gold-alpha); color: var(--gold);
  padding: .22rem .65rem; border-radius: 999px;
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}

.portfolio-kpi {
  display: flex; align-items: center; gap: .4rem;
  color: var(--green); font-weight: 700; font-size: .95rem;
  margin-bottom: .3rem;
}
.portfolio-meta { color: var(--text-muted); font-size: .82rem; margin-bottom: 1.1rem; }

.btn-card-outline {
  width: 100%; padding: .65rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  font-weight: 700; font-size: .9rem; color: var(--navy);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn-card-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ================================================================
   TESTIMONIALS
================================================================ */
.testimonial-stage {
  max-width: 780px; margin-inline: auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform .52s var(--ease);
  will-change: transform;
}

.testimonial-card {
  min-width: 100%;
  background: var(--gray);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  position: relative; overflow: hidden;
}

.t-quote-icon {
  position: absolute; top: 1.25rem; left: 1.5rem;
  font-size: 5rem; line-height: 1;
  color: rgba(245,166,35,.12);
  font-family: Georgia, serif;
  user-select: none;
}
.t-stars  { color: var(--gold); font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 1.25rem; }
.t-text   { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(1rem, 2.5vw, 1.35rem); color: var(--navy); line-height: 1.65; margin-bottom: 1.75rem; }
.t-author { font-size: 1rem; font-weight: 700; color: var(--navy); }
.t-role   { font-size: .85rem; font-weight: 500; color: var(--gold); margin-top: .2rem; }

.testimonial-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; margin-top: 1.75rem;
}
.t-nav-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: background var(--t), border-color var(--t), color var(--t);
}
.t-nav-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.t-dots { display: flex; align-items: center; gap: .45rem; }
.t-dot {
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--border); transition: all .3s var(--ease);
}
.t-dot.active { background: var(--gold); width: 26px; }

/* ================================================================
   CONTACT
================================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}

.contact-left h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: .85rem; }
.contact-intro { color: var(--text-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 2rem; }

.contact-channels { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.75rem; }

.channel-card {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem;
  background: var(--white); border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  transition: border-color var(--t), box-shadow var(--t);
}
.channel-card:hover { border-color: var(--gold); box-shadow: 0 4px 18px var(--gold-alpha); }
.channel-icon {
  width: 2.7rem; height: 2.7rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); flex-shrink: 0;
  transition: background var(--t);
}
.channel-card:hover .channel-icon { background: var(--gold) !important; }
.channel-icon-navy  { background: var(--navy); }
.channel-icon-green { background: var(--green); }
.channel-label { display: block; font-size: .75rem; color: var(--text-muted); }
.channel-value { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); }

.social-row { display: flex; gap: .65rem; }
.social-icon {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: color var(--t), border-color var(--t);
}
.social-icon:hover { color: var(--gold); border-color: var(--gold); }

/* Form */
.contact-form-card {
  background: var(--white); border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.form-field label { font-size: .82rem; font-weight: 700; color: var(--navy); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: .72rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: .92rem; color: var(--navy); background: var(--white);
  outline: none; transition: border-color var(--t), box-shadow var(--t);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}
.form-field textarea { resize: vertical; min-height: 105px; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 2.5rem; }
.select-arrow {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--text-muted);
}

.form-feedback { font-size: .85rem; margin-top: .75rem; height: 1.2em; transition: color .2s; }
.form-feedback.success { color: var(--green); }

/* ================================================================
   FOOTER
================================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding-block: 2.25rem; }

.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.1rem;
}

.footer-brand img { height: 38px; width: auto; filter: brightness(0) invert(1); }
.footer-brand-text {
  font-family: 'Fraunces', serif; font-size: 1.2rem;
  font-weight: 700; color: var(--white);
}
.footer-copy { font-size: .82rem; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { font-size: .82rem; color: rgba(255,255,255,.55); transition: color var(--t); }
.footer-nav a:hover { color: var(--gold); }

/* ================================================================
   BACK TO TOP
================================================================ */
.back-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 400;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: scale(.5) translateY(10px);
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background var(--t), color var(--t);
}
.back-top.visible { opacity: 1; transform: scale(1) translateY(0); pointer-events: all; }
.back-top:hover { background: var(--navy); color: var(--white); }

/* ================================================================
   RESPONSIVE — 1024px (tablet landscape)
================================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout  { grid-template-columns: 1fr; gap: 3rem; }
  .hero-float-1, .hero-float-2 { display: none; }
}

/* ================================================================
   RESPONSIVE — 768px (tablet portrait)
================================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 1.25rem clamp(1rem, 4vw, 2rem) 1.5rem;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: .25rem; z-index: 499;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link {
    padding: .65rem 0; font-size: .975rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links .nav-link::after { display: none; }
  .nav-links .btn-hire {
    margin-top: .5rem; text-align: center;
    padding: .75rem; border-radius: var(--r-md);
  }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { order: 1; text-align: center; }
  .hero-text .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: 2; max-width: 360px; margin-inline: auto; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* About */
  .about-pillars { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-thumb { height: 220px; }

  /* Modals */
  .modal-two-col    { grid-template-columns: 1fr; }
  .modal-proj-grid  { grid-template-columns: 1fr; }
  .modal-cta-row    { flex-direction: column; align-items: flex-start; }
  .modal-proj-footer{ flex-direction: column; align-items: flex-start; }
  .modal-proj-footer .btn-primary { width: 100%; justify-content: center; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-2   { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav   { justify-content: center; }
}

/* ================================================================
   RESPONSIVE — 640px (large phone)
================================================================ */
@media (max-width: 640px) {
  .hero-text h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero-stats   { gap: 1rem; flex-wrap: wrap; justify-content: center; }

  .bento { grid-template-columns: 1fr; }
  .bento-full { grid-column: span 1; }
  .bento-num  { font-size: 2rem; }

  .testimonial-card { padding: 2rem 1.5rem; }
  .t-quote-icon     { font-size: 3.5rem; top: .75rem; left: 1rem; }

  .section-header h2 { font-size: 1.75rem; }

  .modal-box         { border-radius: var(--r-lg); max-height: 95vh; }
  .modal-proj-hero   { height: 160px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* ================================================================
   RESPONSIVE — 480px (small phone)
================================================================ */
@media (max-width: 480px) {
  .hero-actions   { flex-direction: column; }
  .hero-actions a { width: 100%; justify-content: center; text-align: center; }

  .hero-stats     { gap: .75rem; }
  .hero-stat-num  { font-size: 1.25rem; }

  .service-card   { padding: 1.25rem; }
  .service-icon-wrap { width: 46px; height: 46px; }

  .portfolio-body { padding: 1rem; }
  .portfolio-top h3 { font-size: .98rem; }

  .contact-form-card  { padding: 1.25rem; }
  .contact-left h2    { font-size: 1.65rem; }

  .back-top { bottom: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; }
}

/* ================================================================
   REDUCED MOTION
================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .animate-fade-up, .animate-fade-in { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
