/* ============================================
   METAMATRIX V4 — LIGHT LUXURY THEME
   Off-white + Peach + Dark Navy accents
   GrydCo structure · Light editorial feel
============================================ */

:root {
  /* LIGHT PALETTE */
  --bg:       #f5f0ea;       /* warm off-white */
  --bg2:      #ede8e0;       /* slightly darker warm white */
  --bg3:      #e8e0d6;       /* section alt */
  --peach:    #e8b89a;       /* peach accent */
  --peach2:   #d4956f;       /* darker peach */
  --peach3:   rgba(232,184,154,0.18);
  --navy:     #0f1623;       /* dark text / headings */
  --navy2:    #1e2d45;       /* secondary dark */
  --grey:     #6b6560;       /* body text */
  --grey2:    #9a9590;       /* lighter grey */
  --border:   rgba(15,22,35,0.1);
  --border2:  rgba(15,22,35,0.06);

  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body:    'Outfit', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--navy); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--peach2); }

/* SCROLL PROGRESS */
#sprogress { position: fixed; top: 0; left: 0; height: 3px; background: var(--peach2); z-index: 9999; width: 0%; transition: width 0.08s linear; }

/* CURSOR */
#cursor { width: 8px; height: 8px; background: var(--peach2); border-radius: 50%; position: fixed; pointer-events: none; z-index: 99999; transform: translate(-50%,-50%); }
#cursor-ring { width: 32px; height: 32px; border: 1px solid rgba(212,149,111,0.5); border-radius: 50%; position: fixed; pointer-events: none; z-index: 99998; transform: translate(-50%,-50%); transition: left 0.1s var(--ease), top 0.1s var(--ease); }

/* PAGE VEIL */
.page-veil { position: fixed; inset: 0; z-index: 88888; background: var(--navy); transform: scaleY(0); transform-origin: top; transition: transform 0.5s var(--ease); pointer-events: none; }
.page-veil.active { transform: scaleY(1); pointer-events: all; }

/* CONTAINER */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 48px; }

/* ============ NAVBAR ============ */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 24px 0; transition: padding 0.4s var(--ease), background 0.4s, box-shadow 0.4s; }
.navbar.scrolled { padding: 14px 0; background: rgba(245,240,234,0.96); backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.nav-logo img { height: 52px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--grey); transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--peach2); transition: width 0.3s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta-btn { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border: 1px solid var(--navy); color: var(--navy); padding: 11px 26px; transition: all 0.3s var(--ease); }
.nav-cta-btn:hover { background: var(--navy); color: var(--bg); }
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 26px; height: 1px; background: var(--navy); transition: all 0.3s; display: block; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============ HERO ============ */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 80px; position: relative; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.22); transform: scale(1.06); animation: slow-zoom 18s ease-in-out infinite alternate; }
@keyframes slow-zoom { to { transform: scale(1); } }
.hero-bg-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--navy) 0%, rgba(15,22,35,0.6) 40%, rgba(15,22,35,0.1) 100%); }
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--peach); margin-bottom: 20px; display: block; }
.hero h1 { font-family: var(--font-display); font-size: clamp(72px, 12vw, 180px); line-height: 0.88; margin-bottom: 48px; color: var(--bg); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: block; transform: translateY(110%); animation: line-up 0.9s var(--ease) forwards; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.24s; }
@keyframes line-up { to { transform: translateY(0); } }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero-desc { max-width: 400px; font-size: 16px; color: rgba(245,240,234,0.7); line-height: 1.8; animation: fade-in 1s 0.5s var(--ease) both; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; animation: fade-in 1s 0.6s var(--ease) both; }
.hero-stat { text-align: right; }
.hero-stat .n { font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--peach); }
.hero-stat .l { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(245,240,234,0.5); }
@keyframes fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; padding: 15px 32px; transition: all 0.35s var(--ease); cursor: pointer; font-family: var(--font-body); border: none; }
.btn-primary { background: var(--peach2); color: #fff; }
.btn-primary:hover { background: var(--peach); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(212,149,111,0.3); }
.btn-dark { background: var(--navy); color: var(--bg); }
.btn-dark:hover { background: var(--navy2); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--border); color: var(--navy); background: transparent; }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: var(--bg); }
.btn-outline-light { border: 1px solid rgba(245,240,234,0.3); color: var(--bg); background: transparent; }
.btn-outline-light:hover { border-color: var(--peach); color: var(--peach); }

/* ============ SECTION BASE ============ */
section { padding: 120px 0; }
.s-label { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--peach2); margin-bottom: 16px; display: block; }
.s-title { font-family: var(--font-display); font-size: clamp(52px, 8vw, 120px); line-height: 0.9; margin-bottom: 32px; color: var(--navy); }
.s-sub { font-size: 16px; color: var(--grey); line-height: 1.8; max-width: 500px; }

/* ============ MARQUEE ============ */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; background: var(--bg2); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 18px; font-family: var(--font-display); font-size: 20px; letter-spacing: 3px; color: var(--grey2); white-space: nowrap; }
.marquee-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--peach2); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ STATS ============ */
.stats-bar { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--border); background: var(--bg2); }
.stat-cell { padding: 48px 36px; border-right: 1px solid var(--border); transition: background 0.3s; }
.stat-cell:hover { background: var(--bg3); }
.stat-cell:last-child { border-right: none; }
.stat-cell .n { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--peach2); display: block; }
.stat-cell .l { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--grey2); margin-top: 8px; display: block; }

/* ============ SERVICES LIST ============ */
.services-list { border-top: 1px solid var(--border); }
.service-row { display: grid; grid-template-columns: 72px 1fr 48px; align-items: center; gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; overflow: hidden; transition: padding-left 0.4s var(--ease); }
.service-row::before { content: ''; position: absolute; inset: 0; background: var(--bg2); transform: translateX(-101%); transition: transform 0.4s var(--ease); z-index: 0; }
.service-row:hover { padding-left: 16px; }
.service-row:hover::before { transform: translateX(0); }
.service-row > * { position: relative; z-index: 1; }
.service-num { font-family: var(--font-display); font-size: 13px; color: var(--peach2); letter-spacing: 2px; }
.service-name { font-family: var(--font-display); font-size: clamp(26px, 4vw, 52px); letter-spacing: 1px; line-height: 1; color: var(--navy); transition: color 0.3s; }
.service-row:hover .service-name { color: var(--peach2); }
.service-arrow { font-size: 24px; color: var(--grey2); transition: transform 0.4s var(--ease), color 0.3s; text-align: right; }
.service-row:hover .service-arrow { transform: translate(4px,-4px); color: var(--peach2); }

/* ============ WORK GRID ============ */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.work-card { position: relative; overflow: hidden; background: var(--bg3); cursor: pointer; }
.work-thumb { width: 100%; overflow: hidden; min-height: 320px; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); transition: transform 0.8s var(--ease), filter 0.5s; }
.work-card:hover .work-thumb img { transform: scale(1.05); filter: brightness(0.55); }
.work-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; background: linear-gradient(to top, rgba(15,22,35,0.9) 0%, transparent 60%); opacity: 0; transition: opacity 0.4s; }
.work-card:hover .work-overlay { opacity: 1; }
.work-tag { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--peach); margin-bottom: 8px; }
.work-title { font-family: var(--font-display); font-size: clamp(20px, 3vw, 36px); line-height: 1; color: var(--bg); }
.work-info { padding: 20px 0 4px; background: var(--bg); }
.work-info .cat { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--peach2); margin-bottom: 5px; }
.work-info h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: 1px; line-height: 1.2; color: var(--navy); }

/* ============ ABOUT SPLIT ============ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.about-img { overflow: hidden; background: var(--bg3); }
.about-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); transition: transform 0.8s var(--ease); }
.about-split:hover .about-img img { transform: scale(1.03); }
.about-content { background: var(--bg2); padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--border); }
.about-content h2 { font-family: var(--font-display); font-size: clamp(44px, 6vw, 80px); line-height: 0.92; margin-bottom: 24px; color: var(--navy); }
.about-content p { color: var(--grey); font-size: 15px; line-height: 1.85; margin-bottom: 16px; }
.about-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.about-list li { display: flex; gap: 12px; font-size: 14px; color: var(--grey); }
.about-list li::before { content: '—'; color: var(--peach2); flex-shrink: 0; }

/* ============ CASE STUDIES ============ */
.cs-item { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); min-height: 540px; }
.cs-item:nth-child(even) .cs-visual { order: 1; }
.cs-visual { overflow: hidden; background: var(--bg3); }
.cs-visual img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); transition: transform 0.8s var(--ease); }
.cs-item:hover .cs-visual img { transform: scale(1.04); }
.cs-content { padding: 72px 60px; display: flex; flex-direction: column; justify-content: center; background: var(--bg2); }
.cs-item:nth-child(odd) .cs-content { border-right: 1px solid var(--border); }
.cs-item:nth-child(even) .cs-content { border-left: 1px solid var(--border); }
.cs-num { font-family: var(--font-display); font-size: 100px; line-height: 1; color: rgba(15,22,35,0.05); margin-bottom: -16px; display: block; }
.cs-content h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 58px); line-height: 1; margin-bottom: 16px; color: var(--navy); }
.cs-content p { color: var(--grey); font-size: 15px; line-height: 1.8; margin-bottom: 28px; }
.cs-results { display: flex; gap: 28px; margin-bottom: 28px; flex-wrap: wrap; }
.cs-result .rn { font-family: var(--font-display); font-size: 48px; color: var(--peach2); line-height: 1; }
.cs-result .rl { font-size: 11px; letter-spacing: 1px; color: var(--grey2); text-transform: uppercase; }
.cs-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; border: 1px solid var(--border); color: var(--grey); padding: 6px 12px; }

/* ============ BLOG ============ */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.blog-card { background: var(--bg2); padding: 48px; border: 1px solid var(--border); transition: background 0.3s; }
.blog-card:first-child { grid-column: span 2; background: var(--bg3); }
.blog-card:hover { background: var(--bg3); }
.blog-cat { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--peach2); margin-bottom: 16px; display: block; }
.blog-card h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 52px); line-height: 1; margin-bottom: 16px; color: var(--navy); }
.blog-card h3 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 36px); line-height: 1; margin-bottom: 14px; color: var(--navy); }
.blog-card p { color: var(--grey); font-size: 15px; line-height: 1.7; }
.blog-insight { background: var(--peach3); border-left: 2px solid var(--peach2); padding: 14px 18px; margin: 16px 0; font-size: 14px; color: var(--peach2); font-style: italic; }

/* ============ PORTFOLIO ============ */
.port-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 3px; }
.port-card { position: relative; overflow: hidden; background: var(--bg3); cursor: pointer; aspect-ratio: 4/3; }
.port-card:first-child { grid-column: span 2; aspect-ratio: 21/7; }
.port-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); transition: transform 0.8s var(--ease), filter 0.4s; }
.port-card:hover img { transform: scale(1.05); filter: brightness(0.5); }
.port-overlay { position: absolute; inset: 0; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(to top, rgba(15,22,35,0.88) 0%, transparent 55%); opacity: 0; transition: opacity 0.4s; }
.port-card:hover .port-overlay { opacity: 1; }
.port-cat { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--peach); margin-bottom: 8px; }
.port-title { font-family: var(--font-display); font-size: clamp(20px, 3vw, 36px); line-height: 1; color: var(--bg); }

/* ============ CONTACT ============ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); }
.contact-left { padding: 72px; background: var(--navy); color: var(--bg); }
.contact-right { padding: 72px; background: var(--bg2); border-left: 1px solid var(--border); }
.contact-left h2 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 80px); line-height: 0.9; margin-bottom: 24px; color: var(--bg); }
.contact-left .s-label { color: var(--peach); }
.contact-left p { color: rgba(245,240,234,0.65); font-size: 15px; line-height: 1.8; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-detail .label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--peach); display: block; margin-bottom: 6px; }
.contact-detail a, .contact-detail p { color: rgba(245,240,234,0.8); font-size: 15px; line-height: 1.6; display: block; transition: color 0.3s; }
.contact-detail a:hover { color: var(--peach); }
.contact-right h3 { font-family: var(--font-display); font-size: 36px; margin-bottom: 8px; color: var(--navy); }
.contact-right > p { color: var(--grey); font-size: 14px; margin-bottom: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--navy); padding: 13px 16px; font-family: var(--font-body); font-size: 14px; transition: border-color 0.3s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--peach2); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--grey2); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============ PAGE HEADER ============ */
.page-header { padding: 180px 0 90px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; background: var(--navy); }
.page-header-img { position: absolute; inset: 0; }
.page-header-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.08; }
.page-header > .wrap { position: relative; z-index: 1; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(60px, 10vw, 148px); line-height: 0.9; margin-bottom: 24px; color: var(--bg); }
.page-header p { color: rgba(245,240,234,0.65); font-size: 17px; max-width: 520px; line-height: 1.8; }
.page-header .s-label { color: var(--peach); }

/* ============ MAP ============ */
.map-wrap { height: 400px; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 100%; border: none; filter: grayscale(20%) contrast(1.05); }

/* ============ FOOTER ============ */
footer { background: var(--navy); color: var(--bg); padding: 72px 0 36px; border-top: 1px solid rgba(245,240,234,0.08); }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-logo-wrap img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-tagline { color: rgba(245,240,234,0.5); font-size: 14px; line-height: 1.7; }
.footer-col h5 { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--peach); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(245,240,234,0.5); font-size: 14px; transition: color 0.3s, padding-left 0.3s; display: block; }
.footer-col ul li a:hover { color: var(--bg); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(245,240,234,0.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { color: rgba(245,240,234,0.4); font-size: 12px; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { color: rgba(245,240,234,0.4); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s; }
.footer-socials a:hover { color: var(--peach); }

/* ============ TOAST ============ */
.toast { position: fixed; bottom: 32px; right: 32px; background: var(--peach2); color: #fff; padding: 14px 24px; font-weight: 600; font-size: 13px; transform: translateY(80px); opacity: 0; transition: 0.4s var(--ease); z-index: 99997; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ============ SERVICE DETAIL (services page) ============ */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); min-height: 500px; }
.svc-detail:nth-child(even) .svc-img { order: -1; }
.svc-img { overflow: hidden; background: var(--bg3); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); transition: transform 0.8s var(--ease); }
.svc-detail:hover .svc-img img { transform: scale(1.04); }
.svc-body { padding: 72px 56px; display: flex; flex-direction: column; justify-content: center; background: var(--bg2); border-left: 1px solid var(--border); }
.svc-detail:nth-child(even) .svc-body { border-left: none; border-right: 1px solid var(--border); }
.svc-num { font-family: var(--font-display); font-size: 90px; line-height: 1; color: rgba(15,22,35,0.05); margin-bottom: -10px; display: block; }
.svc-body h2 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 64px); line-height: 0.95; margin-bottom: 18px; color: var(--navy); }
.svc-body p { color: var(--grey); font-size: 15px; line-height: 1.85; margin-bottom: 24px; }
.svc-features { display: flex; flex-direction: column; gap: 10px; }
.svc-feat { display: flex; gap: 12px; font-size: 14px; color: var(--grey); align-items: flex-start; }
.svc-feat::before { content: '—'; color: var(--peach2); flex-shrink: 0; }

/* ============ REVEAL ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal-right.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media(max-width:1024px) {
  .wrap { padding: 0 32px; }
  .nav-inner { padding: 0 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1),.stat-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  .cs-item { grid-template-columns: 1fr; }
  .cs-item:nth-child(even) .cs-visual { order: 0; }
  .cs-visual { min-height: 300px; }
  .cs-content { padding: 52px 40px; }
  .cs-item:nth-child(even) .cs-content { border-left: none; border-top: 1px solid var(--border); }
  .about-split { grid-template-columns: 1fr; }
  .about-img { min-height: 360px; }
  .about-content { padding: 56px 48px; border-left: none; border-top: 1px solid var(--border); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-right { border-left: none; border-top: 1px solid var(--border); }
  .svc-detail { grid-template-columns: 1fr; min-height: auto; }
  .svc-detail:nth-child(even) .svc-img { order: 0; }
  .svc-img { min-height: 280px; }
  .svc-body { padding: 48px 40px; border-left: none; border-top: 1px solid var(--border); }
  .svc-detail:nth-child(even) .svc-body { border-right: none; border-top: 1px solid var(--border); }
  .work-grid { grid-template-columns: 1fr; }
}
@media(max-width:768px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: flex; flex-direction: column; position: fixed; top: 68px; right: 0; bottom: auto; left: auto; width: min(320px, 86vw); background: var(--bg); padding: 24px 20px; gap: 0; z-index: 999; border-top: 1px solid var(--border); border-left: 1px solid var(--border); box-shadow: -24px 24px 60px rgba(15,22,35,0.16); opacity: 0; pointer-events: none; transform: translateX(110%); transition: opacity 0.25s var(--ease), transform 0.35s var(--ease); }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateX(0); }
  .nav-links.open a { padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--navy); }
  .hamburger { display: flex; }
  section { padding: 72px 0; }
  .hero h1 { font-size: clamp(56px, 14vw, 100px); }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-actions { align-items: flex-start; }
  .blog-grid,.blog-card:first-child { grid-column: span 1; grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card:first-child { grid-column: span 1; }
  .port-grid { grid-template-columns: 1fr; }
  .port-card:first-child { grid-column: span 1; aspect-ratio: 4/3; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-left,.contact-right { padding: 40px 20px; }
  .cs-content { padding: 40px 20px; }
  .about-content { padding: 48px 24px; }
  .cs-item:nth-child(odd) .cs-content { border-right: none; }
}

/* ================================================
   MOBILE & TABLET RESPONSIVE — FINAL FIX
================================================ */

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .wrap { padding: 0 32px !important; }
  .nav-inner { padding: 0 32px !important; }
  .about-split, .cs-item, .contact-layout, .svc-detail { grid-template-columns: 1fr !important; }
  .about-img { min-height: 380px !important; }
  .about-content { padding: 52px 40px !important; border-left: none !important; border-top: 1px solid var(--border) !important; }
  .cs-visual { min-height: 300px !important; }
  .cs-content { padding: 44px 36px !important; border-right: none !important; border-top: 1px solid var(--border) !important; }
  .cs-item:nth-child(even) .cs-content { border-left: none !important; border-top: 1px solid var(--border) !important; }
  .cs-item:nth-child(even) .cs-visual { order: 0 !important; }
  .contact-right { border-left: none !important; border-top: 1px solid var(--border) !important; padding: 52px 40px !important; }
  .contact-left { padding: 52px 40px !important; }
  .svc-img { min-height: 260px !important; }
  .svc-body { border-left: none !important; border-top: 1px solid var(--border) !important; padding: 44px 36px !important; }
  .svc-detail:nth-child(even) .svc-img { order: 0 !important; }
  .svc-detail:nth-child(even) .svc-body { border-right: none !important; border-top: 1px solid var(--border) !important; }
  .work-grid { grid-template-columns: 1fr !important; }
  .stats-bar { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-cell:nth-child(2) { border-right: none !important; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--border) !important; }
  .footer-top { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .blog-card:first-child { grid-column: span 1 !important; }
  .port-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  body { overflow-x: hidden !important; }
  #cursor,
  #cursor-ring {
    display: none !important;
  }
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .wrap { padding: 0 18px !important; }
  .nav-inner { padding: 0 18px !important; }
  .navbar { padding: 12px 0 !important; }
  .nav-logo img { height: 52px; width: auto; max-width: 220px; object-fit: contain; display: block; }
  .nav-links {
    display: flex !important; flex-direction: column !important;
    position: fixed !important; top: 64px !important; left: auto !important; right: 0 !important; bottom: auto !important;
    width: min(320px, 86vw) !important; background: var(--bg) !important; padding: 20px 18px !important;
    gap: 0 !important; z-index: 9999 !important; overflow-y: auto !important;
    border-left: 1px solid var(--border) !important; border-top: 1px solid var(--border) !important;
    box-shadow: -24px 24px 60px rgba(15,22,35,0.16) !important;
    opacity: 0 !important; pointer-events: none !important; transform: translateX(110%) !important;
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease) !important;
  }
  .nav-links.open { opacity: 1 !important; pointer-events: auto !important; transform: translateX(0) !important; }
  .nav-links.open a { padding: 14px 0 !important; border-bottom: 1px solid var(--border) !important; font-size: 14px !important; color: var(--navy) !important; display: block !important; }
  .hamburger { display: flex !important; }
  .nav-cta-btn { display: none !important; }
  section { padding: 64px 0 !important; }
  .hero { padding-bottom: 48px !important; }
  .hero h1 { font-size: clamp(44px, 12vw, 72px) !important; margin-bottom: 24px !important; }
  .hero-bottom { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }
  .hero-actions { align-items: flex-start !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 12px !important; }
  .hero-stat .n { font-size: 38px !important; }
  .stats-bar { grid-template-columns: 1fr 1fr !important; }
  .stat-cell { padding: 24px 14px !important; }
  .stat-cell:nth-child(2) { border-right: none !important; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--border) !important; }
  .stat-cell .n { font-size: 40px !important; }
  .service-row { grid-template-columns: 44px 1fr 28px !important; gap: 10px !important; padding: 18px 0 !important; }
  .service-name { font-size: clamp(16px, 5vw, 26px) !important; }
  .work-grid { grid-template-columns: 1fr !important; }
  .work-card.tall { grid-row: auto !important; }
  .work-card.tall .work-img, .work-card:not(.tall) .work-img { min-height: 240px !important; height: 240px !important; }
  .about-split { grid-template-columns: 1fr !important; }
  .about-img { min-height: 280px !important; order: -1 !important; }
  .about-content { padding: 36px 18px !important; border-left: none !important; border-top: 1px solid var(--border) !important; }
  .about-content h2 { font-size: clamp(32px, 9vw, 52px) !important; }
  .cs-item { grid-template-columns: 1fr !important; }
  .cs-item:nth-child(even) .cs-visual { order: 0 !important; }
  .cs-visual { min-height: 240px !important; }
  .cs-content { padding: 32px 18px !important; border-right: none !important; border-top: 1px solid var(--border) !important; }
  .cs-item:nth-child(even) .cs-content { border-left: none !important; }
  .cs-num { font-size: 56px !important; }
  .cs-content h2 { font-size: clamp(26px, 7vw, 40px) !important; }
  .cs-result .rn { font-size: 34px !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .blog-card:first-child { grid-column: span 1 !important; padding: 28px 18px !important; }
  .blog-card { padding: 24px 18px !important; }
  .port-grid { grid-template-columns: 1fr !important; }
  .port-card:first-child { grid-column: span 1 !important; aspect-ratio: 4/3 !important; }
  .contact-layout { grid-template-columns: 1fr !important; }
  .contact-left { padding: 36px 18px !important; }
  .contact-right { padding: 36px 18px !important; border-left: none !important; border-top: 1px solid var(--border) !important; }
  .contact-left h2 { font-size: clamp(32px, 9vw, 52px) !important; }
  .form-row-2 { grid-template-columns: 1fr !important; }
  .svc-detail { grid-template-columns: 1fr !important; min-height: auto !important; }
  .svc-detail:nth-child(even) .svc-img { order: 0 !important; }
  .svc-img { min-height: 220px !important; }
  .svc-body { padding: 32px 18px !important; border-left: none !important; border-top: 1px solid var(--border) !important; }
  .svc-detail:nth-child(even) .svc-body { border-right: none !important; border-top: 1px solid var(--border) !important; }
  .svc-body h2 { font-size: clamp(26px, 7vw, 40px) !important; }
  .footer-top { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column !important; text-align: center !important; }
  .footer-socials { justify-content: center !important; }
  .page-header { padding: 110px 0 52px !important; }
  .page-header h1 { font-size: clamp(40px, 11vw, 64px) !important; }
  .s-title { font-size: clamp(36px, 10vw, 64px) !important; }
  .map-wrap { height: 280px !important; }
  .btn { padding: 12px 20px !important; font-size: 11px !important; }
  .cta-section { padding: 48px 18px !important; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: clamp(38px, 12vw, 56px) !important; }
  .stat-cell .n { font-size: 32px !important; }
}

.svc-link { display: block; text-decoration: none; color: inherit; }
