*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --charcoal: #141414;
  --off-white: #F0EEE9;
  --ember: #F26979;
  --ember-dim: rgba(242,105,121,0.10);
  --ember-border: rgba(242,105,121,0.28);
  --steel: #2A4A6B;
  --steel-dim: rgba(42,74,107,0.15);
  --steel-border: rgba(42,74,107,0.32);
  --steel-light: #7BA3C4;
  --grey: #6B7280;
  --grey-light: #9CA3AF;
  --surface: #1A1A1A;
  --surface-2: #202020;
  --surface-3: #282828;
  --border: rgba(240,238,233,0.07);
  --border-mid: rgba(240,238,233,0.13);
  --border-hi: rgba(240,238,233,0.2);
}
html { scroll-behavior: smooth; }
body { background: var(--charcoal); color: var(--off-white); font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.7; overflow-x: hidden; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(20,20,20,0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transform: translateZ(0); -webkit-transform: translateZ(0); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 52px; height: 68px; }
.nav-logo { display: flex; align-items: baseline; text-decoration: none; }
.nav-logo-word { font-size: 19px; font-weight: 800; letter-spacing: -0.035em; color: var(--off-white); }
.nav-logo-ai { color: var(--ember); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--grey); text-decoration: none; padding: 7px 13px; border-radius: 4px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--off-white); background: rgba(255,255,255,0.05); }
.nav-links a:hover { color: var(--off-white); background: rgba(255,255,255,0.05); }
.nav-cta { background: var(--ember) !important; color: var(--off-white) !important; font-weight: 600 !important; border-radius: 4px !important; }
.nav-cta:hover { opacity: 0.85 !important; background: var(--ember) !important; }
.mobile-toggle { display: none; cursor: pointer; color: var(--off-white); width: 28px; height: 28px; }

/* LAYOUT */
section { scroll-margin-top: 68px; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 52px; }
.section-tag { font-family: 'IBM Plex Mono', monospace; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); display: flex; align-items: center; gap: 12px; margin-top: 8px; margin-bottom: 24px; }
.section-tag::after { content: ''; display: block; width: 36px; height: 1px; background: var(--ember-border); }
h2 { font-size: clamp(26px, 3.2vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--off-white); margin-bottom: 14px; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--off-white); margin-bottom: 12px; }
.btn { display: inline-block; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; padding: 13px 30px; border-radius: 4px; border: none; cursor: pointer; text-decoration: none; letter-spacing: 0.02em; transition: opacity 0.2s; }
.btn-primary { background: var(--ember); color: var(--off-white); }
.btn-primary:hover { opacity: 0.84; }
.btn-outline { background: transparent; color: var(--off-white); border: 1px solid var(--border-mid); transition: border-color 0.2s; }
.btn-outline:hover { border-color: var(--border-hi); }

/* HERO */
#hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 68px; }
.hero-grid-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-glow { position: absolute; top: 15%; right: -8%; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(42,74,107,0.16) 0%, transparent 65%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 22px; height: 1.5px; background: var(--ember); }

/* WORD ROTATION */
.hero-h1 { font-size: clamp(36px, 5vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: var(--off-white); }
.rotating-word-wrap { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; height: 1.05em; width: 100%; min-width: 0; }
.rotating-word { display: block; color: var(--ember); font-style: normal; animation: wordIn 0.55s cubic-bezier(0.16,1,0.3,1) both; width: max-content; }
@keyframes wordIn { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: translateY(0); } }
@keyframes wordOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-70%); } }
.rotating-word.leaving { position: absolute; top: 0; left: 0; animation: wordOut 0.38s cubic-bezier(0.4,0,1,1) both; width: max-content; }

.hero-body { font-size: 18px; line-height: 1.75; color: var(--grey-light); max-width: 580px; margin: 28px 0 44px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-content > * { animation: fadeUp 0.65s ease both; }
.hero-eyebrow { animation-delay: 0.08s; }
.hero-h1 { animation-delay: 0.18s; }
.hero-body { animation-delay: 0.28s; }
.hero-actions { animation-delay: 0.38s; }

/* WHAT WE OFFER */
#offer { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 52px; }
.offer-pair { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: 100%; transition: transform 0.3s ease; }
.offer-block { background: var(--surface-2); padding: 36px 28px; transition: background 0.2s; flex: 1 0 auto; display: flex; flex-direction: column; min-height: 280px; }
.offer-image-block { background: var(--surface-2); position: relative; overflow: hidden; height: 180px; border-top: 1px solid var(--border); }
.offer-image-block img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.85) contrast(1.1); transition: transform 0.6s ease; }
.offer-image-block:hover img { transform: scale(1.05); filter: brightness(1); }
.offer-block:hover { background: var(--surface-3); }
.offer-icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.offer-icon svg { width: 26px; height: 26px; }
.offer-title { font-family: 'IBM Plex Mono', monospace; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--off-white); font-weight: 500; margin-bottom: 12px; line-height: 1.6; }
.offer-desc { font-size: 15px; line-height: 1.7; color: var(--grey); }

/* SERVICES */
#services { padding: 100px 0; }
.services-intro { font-size: 16px; color: var(--grey-light); max-width: 600px; margin-bottom: 64px; line-height: 1.75; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.25s; }
.tier:hover { border-color: var(--border-mid); }
.tier-photo { height: 175px; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.tier-photo svg { width: 54px; height: 54px; }
.tier-photo-placeholder { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(240,238,233,0.16); position: absolute; bottom: 12px; left: 14px; }
.tier-body-wrap { padding: 30px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.tier-num { display: none; }
.tier-desc { font-size: 15px; line-height: 1.75; color: var(--grey); margin-bottom: 22px; }
.tier-block { margin-bottom: 18px; }
.tier-block-label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); margin-bottom: 10px; }
.tier-list { list-style: none; }
.tier-list li { font-size: 15px; color: var(--grey); padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.tier-list li:last-child { border-bottom: none; }
.tier-list li::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--ember); margin-top: 7px; flex-shrink: 0; }
.tier-ideal { background: rgba(240,238,233,0.03); border: 1px solid var(--border); border-radius: 6px; padding: 13px 15px; margin-bottom: 24px; }
.tier-ideal-label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); margin-bottom: 6px; }
.tier-ideal p { font-size: 15px; color: var(--grey); line-height: 1.6; }
.tier-cta { display: block; text-align: center; background: var(--ember); color: var(--off-white); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; padding: 13px 24px; border-radius: 4px; border: none; cursor: pointer; text-decoration: none; letter-spacing: 0.02em; transition: opacity 0.2s; margin-top: auto; }
.tier-cta:hover { opacity: 0.82; }

/* TEAM */
#team { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.team-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.team-photo { height: 190px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.team-initials { font-family: 'IBM Plex Mono', monospace; font-size: 28px; font-weight: 500; color: var(--steel-light); opacity: 0.25; }
.team-info { padding: 24px; }
.team-name { font-family: 'IBM Plex Mono', monospace; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--off-white); font-weight: 500; margin-bottom: 3px; }
.team-role { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); margin-bottom: 14px; }
.team-bio { font-size: 15px; color: var(--grey); line-height: 1.65; }

/* STORIES / PROJECTS */
#stories { padding: 100px 0; }
.stories-intro { font-size: 16px; color: var(--grey-light); max-width: 600px; margin-bottom: 32px; line-height: 1.75; }
.projects-wrapper { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
.carousel-track { display: flex; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; align-items: stretch; }
.project-card { flex: 0 0 100%; display: flex; flex-direction: row; align-items: stretch; color: inherit; min-height: 400px; }
.project-img { position: relative; flex: 0 0 55%; max-width: 55%; background: var(--surface-3); overflow: hidden; border-right: 1px solid var(--border); cursor: pointer; }
.project-img::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.project-img:hover::after { opacity: 1; }
.project-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.project-card:hover .project-img img { transform: scale(1.03); }
.project-info { padding: 50px 60px; display: flex; flex-direction: column; justify-content: center; flex: 1; position: relative; }
.project-title { font-size: 28px; font-weight: 700; color: var(--off-white); margin-bottom: 16px; }
.project-desc { font-size: 17px; color: var(--grey-light); line-height: 1.7; max-width: 580px; }
.carousel-controls { position: absolute; bottom: 40px; right: 40px; display: flex; gap: 12px; z-index: 10; padding: 6px; background: var(--surface-2); border-radius: 40px; border: 1px solid var(--border); }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-mid); color: var(--off-white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.carousel-btn:hover:not(:disabled) { background: var(--ember); border-color: var(--ember); transform: scale(1.05); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-btn svg { width: 22px; height: 22px; }

/* LOGOS BAND */
.logo-client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px 40px; align-items: center; justify-items: center; max-width: 1000px; margin: 0 auto; opacity: 0.6; padding: 20px; }
.logo-client-grid img { max-height: 52px; max-width: 180px; object-fit: contain; transition: all 0.3s; }
.logo-client-grid img:hover { transform: scale(1.05); }
@media (max-width: 700px) { .logo-client-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; } }

/* CONTACT */
#contact { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-left h2 { margin-bottom: 16px; }
.contact-left p { font-size: 16px; color: var(--grey-light); line-height: 1.75; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 500; color: var(--grey); letter-spacing: 0.03em; }
.form-input, .form-textarea { background: var(--surface-2); border: 1px solid var(--border-mid); border-radius: 4px; color: var(--off-white); font-family: 'Inter', sans-serif; font-size: 14px; padding: 11px 14px; transition: border-color 0.2s; outline: none; width: 100%; }
.form-input:focus, .form-textarea:focus { border-color: var(--ember); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-submit { display: block; width: 100%; background: var(--ember); color: var(--off-white); font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; padding: 15px 24px; border-radius: 4px; border: none; cursor: pointer; letter-spacing: 0.02em; margin-top: 4px; transition: opacity 0.2s; }
.form-submit:hover { opacity: 0.84; }

/* FAQ */
#faq { padding: 100px 0; }
.faq-list { margin-top: 48px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); background: var(--surface); }
.faq-item:last-child { border-bottom: none; }
.faq-toggle { width: 100%; background: none; border: none; padding: 22px 28px; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: background 0.2s; }
.faq-toggle:hover { background: var(--surface-2); }
.faq-q { font-size: 18px; font-weight: 600; color: var(--off-white); letter-spacing: -0.01em; line-height: 1.4; }
.faq-chevron { width: 16px; height: 16px; flex-shrink: 0; color: var(--grey); transition: transform 0.3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a { padding: 0 28px 22px; font-size: 16px; color: var(--grey); line-height: 1.75; }

/* FOOTER */
footer { background: var(--charcoal); border-top: 1px solid var(--border); padding: 48px 0 36px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 40px; }
.footer-brand-name { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; color: var(--off-white); margin-bottom: 5px; }
.footer-brand-name span { color: var(--ember); }
.footer-brand-sub { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.1em; color: var(--grey); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--grey); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--off-white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 26px; gap: 20px; }
.footer-copy { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em; color: #3a3a3a; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .offer-image-block { min-height: 180px; }
  .tiers, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-card { flex-direction: column; }
  .project-img { position: relative; max-width: 100%; flex: 0 0 auto; aspect-ratio: 16 / 9; border-right: none; border-bottom: 1px solid var(--border); }
  .project-info { padding: 36px; padding-bottom: 100px; justify-content: flex-start; }
  .carousel-controls { bottom: 24px; right: 24px; }
  nav { padding: 0 24px; }
  .container { padding: 0 24px; }
  .mobile-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface-2); flex-direction: column; padding: 0; border-bottom: none; max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: all 0.3s ease; }
  .nav-links.open { padding: 24px 0; max-height: 480px; opacity: 1; pointer-events: auto; border-bottom: 1px solid var(--border); }
  .nav-links li { width: 100%; text-align: center; margin-bottom: 16px; }
  .nav-links li:last-child { margin-bottom: 0; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 600px) {
  .offer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* LIGHTBOX */
.lightbox-modal { position: fixed; inset: 0; background: rgba(10,10,10,0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox-modal.active { opacity: 1; pointer-events: auto; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: scale(0.95); transition: transform 0.3s ease; }
.lightbox-modal.active .lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: var(--off-white); cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(255,255,255,0.08); border-radius: 50%; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.15); }
.lightbox-close svg { width: 24px; height: 24px; }
.expand-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); width: 48px; height: 48px; color: var(--off-white); opacity: 0; transition: all 0.3s ease; z-index: 2; pointer-events: none; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); }
.project-img:hover .expand-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
