:root {
  --navy: #2A3547;
  --navy-deep: #1B2433;
  --navy-ink: #121926;
  --accent: #F2A541;
  --accent-dark: #D98A22;
  --paper: #F6F4EF;
  --white: #FFFFFF;
  --text: #2A3547;
  --muted: #5E6878;
  --line: rgba(42, 53, 71, .12);
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(18, 25, 38, .35);
  --head: "Outfit", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

.eyebrow { font-family: var(--head); font-weight: 600; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow.dark { color: var(--accent-dark); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 999px; background: var(--accent); color: var(--navy-ink); font-family: var(--head); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--white); border-color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn.full { width: 100%; }

/* HEADER */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(246, 244, 239, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 58px; width: auto; }
.brand .brand-dark { display: none; }
.site-header.scrolled .brand-light { display: none; }
.site-header.scrolled .brand-dark { display: block; }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--accent); transition: width .25s; }
.nav-menu a:not(.btn):hover::after { width: 100%; }
.site-header.scrolled .nav-menu a:not(.btn) { color: var(--navy); }
.site-header.scrolled .btn-sm:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .3s, opacity .3s; }
.site-header.scrolled .nav-toggle span { background: var(--navy); }

/* HERO */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--navy-ink); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.06); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,25,38,.94) 0%, rgba(27,36,51,.82) 42%, rgba(27,36,51,.2) 100%); }
.hero-content { position: relative; padding: 120px 0 80px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 800; max-width: 12ch; margin-bottom: 24px; }
.hl { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 540px; color: rgba(255,255,255,.82); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--white); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* TICKER */
.ticker { background: var(--accent); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--navy-ink); text-transform: uppercase; letter-spacing: .04em; padding-left: 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.ticker span::after { content: "✦"; font-size: .8rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* SERVICES */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .35s, box-shadow .35s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-img { aspect-ratio: 16 / 10; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service:hover .service-img img { transform: scale(1.06); }
.service-body { padding: 26px 26px 30px; }
.service-body p { color: var(--muted); margin: 0; }
.num { font-family: var(--head); font-weight: 700; color: var(--accent-dark); font-size: .9rem; letter-spacing: .1em; display: block; margin-bottom: 8px; }

/* WORK */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter { font: 500 .92rem var(--body); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); cursor: pointer; transition: all .2s; }
.filter:hover { border-color: var(--navy); }
.filter.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.tile { position: relative; margin: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--navy-deep); }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.tile figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; color: var(--white); font-family: var(--head); font-weight: 500; background: linear-gradient(transparent, rgba(18,25,38,.85)); opacity: 0; transform: translateY(8px); transition: all .3s; }
.tile:hover img { transform: scale(1.06); }
.tile:hover figcaption, .tile:focus-visible figcaption { opacity: 1; transform: none; }
.tile.hide { display: none; }

/* FEATURED */
.pairs { display: grid; gap: 40px; }
.pair h3 { margin-bottom: 14px; }
.pair-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair-imgs figure { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-deep); }
.pair-imgs img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 12px; left: 12px; background: rgba(18,25,38,.85); color: var(--white); font: 600 .78rem var(--head); letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.tag.built { background: var(--accent); color: var(--navy-ink); }

/* STUDIO */
.studio { background: var(--navy-ink) url("assets/texture.jpg") center / cover; color: var(--white); position: relative; }
.studio::before { content: ""; position: absolute; inset: 0; background: rgba(18,25,38,.82); }
.studio-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.studio-copy > p { color: rgba(255,255,255,.75); font-size: 1.08rem; }
.capabilities { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 4px; }
.capabilities li { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.capabilities strong { font-family: var(--head); font-weight: 600; color: var(--accent); }
.capabilities span { color: rgba(255,255,255,.72); font-size: .95rem; }
.studio-media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.studio-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.m1 { grid-row: span 2; }

/* PROCESS */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { padding: 32px 26px; background: var(--white); border-radius: var(--radius); position: relative; border-top: 4px solid var(--navy); }
.steps li span { font-family: var(--head); font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; display: block; margin-bottom: 18px; }
.steps p { color: var(--muted); margin: 0; }

/* CONTACT */
.contact { background: var(--navy); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-list span { color: var(--accent); font-family: var(--head); font-weight: 500; font-size: .9rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.contact-form { background: var(--white); color: var(--text); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .contact-form .btn { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--text); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242,165,65,.35); }
.contact-form .btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.form-note { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--navy); font-weight: 600; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* FOOTER */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,.6); padding: 48px 0; font-size: .9rem; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo { height: 56px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.copy { margin: 0; width: 100%; border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,17,26,.95); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: var(--white); text-align: center; margin-top: 14px; font-family: var(--head); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: var(--white); border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: var(--accent); color: var(--navy-ink); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .studio-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 8px 16px 24px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s; }
  .nav-menu.open { transform: none; opacity: 1; visibility: visible; }
  .nav-menu a:not(.btn) { color: var(--navy); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { margin-top: 18px; }
  .site-header.menu-open { background: var(--paper); }
  .site-header.menu-open .brand-light { display: none; }
  .site-header.menu-open .brand-dark { display: block; }
  .site-header.menu-open .nav-toggle span { background: var(--navy); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .brand img { height: 42px; }
  .services, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
  .tile figcaption { opacity: 1; transform: none; font-size: .85rem; padding: 28px 10px 10px; }
  .hero-shade { background: linear-gradient(180deg, rgba(18,25,38,.7) 0%, rgba(18,25,38,.92) 70%); }
  .hero-cta .btn { flex: 1 1 100%; }
  .capabilities li { grid-template-columns: 1fr; gap: 4px; }
  .studio-media { grid-template-rows: 160px 160px; gap: 10px; }
  .contact-form { grid-template-columns: 1fr; }
  .pair-imgs { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
