/* ─── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --red:    #DC2626;
  --black:  #0a0a0a;
  --white:  #ffffff;
  --grey:   #f4f4f2;
  --mid:    #888880;
  --border: #e5e5e0;
}

/* ─── LAYOUT ─────────────────────────────────────── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.rule { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── TYPOGRAPHY ─────────────────────────────────── */
.label-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.label-grey {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--mid);
  font-style: italic;
}

/* ─── BUTTONS ─────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
}
.pill-outline-dark  { border: 1.5px solid var(--black); color: var(--black); background: transparent; }
.pill-outline-dark:hover { background: var(--black); color: #fff; }
.pill-outline-white { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; background: transparent; }
.pill-outline-white:hover { background: #fff; color: var(--black); }
.pill-white { background: #fff; color: var(--black); border: none; }
.pill-white:hover { background: #f0f0f0; }
.pill-red   { background: var(--red); color: #fff; border: none; }
.pill-red:hover { background: #b91c1c; }

.btn-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.btn-icon-dark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--black); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}

/* ─── NAVIGATION ─────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}
.site-header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
}
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.78rem; font-weight: 500;
  color: rgba(255,255,255,0.7); letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; }

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center;
  align-items: center; gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer; background: none; border: none;
  z-index: 1001; padding: 0;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all 0.3s ease; transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE OVERLAY MENU ─────────────────────────── */
.mobile-nav {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0a0a0a;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 40px;
  transition: opacity 0.45s cubic-bezier(0.22,1,0.36,1), visibility 0.45s ease;
}
.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-logo { position: absolute; top: 20px; left: 40px; }
.mobile-nav-logo img { height: 30px; display: block; }
.mobile-nav-close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.5); font-size: 1.6rem;
  display: flex; align-items: center; line-height: 1;
  transition: color 0.2s;
}
.mobile-nav-close:hover { color: #fff; }
.mobile-nav-links {
  display: flex; flex-direction: column; margin-bottom: 40px;
}
.mobile-nav-links li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.mobile-nav-links a {
  display: block;
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.03em;
  /* Force visible white — never let animation override this */
  color: rgba(255,255,255,0.75) !important;
  padding: 14px 0;
  transition: color 0.25s ease;
}
.mobile-nav-links a:hover { color: #ffffff !important; }
.mobile-nav-links li {
  /* Base state — always visible, transitions handled by animations.css */
  opacity: 1;
}
.mobile-nav-cta a {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border-radius: 999px;
  background: #DC2626; color: #fff;
  font-size: 0.92rem; font-weight: 700;
}

/* ─── PAGE HERO (inner pages) ─────────────────────── */
.page-hero {
  background: var(--black);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(220,38,38,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .label-tag { display: block; margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
  max-width: 900px;
  margin-bottom: 28px;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.65;
}

/* ─── SECTION DEFAULTS ────────────────────────────── */
.section    { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--black); }
.section-grey { background: var(--grey); }

/* ─── LEARN MORE LINK ─────────────────────────────── */
.learn-more-link {
  font-size: 0.78rem; font-weight: 600; color: var(--black);
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1.5px solid var(--black); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.learn-more-link:hover { color: var(--red); border-color: var(--red); }

/* ─── FEATURE CARDS ───────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.feature-card { background: #fff; padding: 36px 32px; transition: background 0.2s; }
.feature-card:hover { background: #fafaf8; }
.feature-card-icon {
  width: 44px; height: 44px; border: 1.5px solid var(--border);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 24px; color: #333;
}
.feature-card-icon.accent { background: var(--red); border-color: var(--red); }
.feature-card h4 { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.feature-card p  { font-size: 0.8rem; line-height: 1.65; color: #666660; margin-bottom: 20px; }

/* ─── ACCORDION ───────────────────────────────────── */
.accordion-item { border-top: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: 1px solid var(--border); }
.accordion-header {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 0; cursor: pointer; user-select: none;
}
.accordion-num  { font-size: 0.68rem; font-weight: 700; color: var(--mid); letter-spacing: 0.08em; min-width: 28px; }
.accordion-title { flex: 1; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--black); }
.accordion-icon { font-size: 0.85rem; color: var(--mid); transition: transform 0.25s; width: 20px; text-align: center; }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 0 20px 48px; }
.accordion-item.open .accordion-body { display: block; }
.accordion-body p { font-size: 0.82rem; line-height: 1.7; color: #555550; margin-bottom: 14px; max-width: 420px; }

/* ─── PORTFOLIO ───────────────────────────────────── */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.portfolio-item { position: relative; overflow: hidden; cursor: pointer; }
.portfolio-thumb {
  width: 100%; aspect-ratio: 4/3.2;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.5s ease;
}
.portfolio-item:hover .portfolio-thumb { transform: scale(1.05); }
.portfolio-status {
  position: absolute; bottom: 14px; right: 14px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff;
}
.status-red   { background: var(--red); }
.status-dark  { background: rgba(0,0,0,0.7); }
.status-green { background: #16a34a; }
.portfolio-label-overlay {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  color: #fff; font-size: 0.75rem; font-weight: 600;
  padding: 6px 12px; border-radius: 6px;
}
.portfolio-meta { padding: 16px 0 32px; border-bottom: 1px solid var(--border); }
.portfolio-meta h4 { font-size: 0.9rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.portfolio-meta p  { font-size: 0.75rem; color: var(--mid); }

/* ─── TESTIMONIAL ─────────────────────────────────── */
.testimonial-quote  { font-size: 0.82rem; line-height: 1.7; color: #333330; margin-bottom: 12px; }
.testimonial-credit { font-size: 0.72rem; color: var(--mid); }
.testimonial-credit strong { color: var(--black); }

/* ─── CONTACT FORM ────────────────────────────────── */
.form-field { margin-bottom: 32px; }
.form-label {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 10px;
}
.form-input, .form-textarea, .form-select {
  width: 100%; background: transparent;
  border: none; border-bottom: 1.5px solid var(--border);
  padding: 10px 0; font-family: 'Inter', sans-serif;
  font-size: 1rem; color: var(--black);
  transition: border-color 0.2s; border-radius: 0;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-bottom-color: var(--black);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }

/* ─── FOOTER ──────────────────────────────────────── */
.site-footer { background: #0a0a0a; color: rgba(255,255,255,0.55); padding-top: 60px; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1.8fr 0.8fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col-label { font-size: 0.68rem; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; margin-bottom: 14px; display: block; }
.footer-col p   { font-size: 0.82rem; line-height: 1.7; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 0.82rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-email-link {
  display: block; font-size: clamp(1.1rem, 2.2vw, 2rem);
  font-weight: 900; letter-spacing: -0.03em; color: #fff;
  line-height: 1.2; transition: color 0.2s;
}
.footer-email-link:hover { color: var(--red); }
.footer-social-links { display: flex; gap: 16px; margin-top: 4px; }
.footer-social-links a { font-size: 0.78rem; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-social-links a:hover { color: #fff; }
.footer-bottom-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom-bar span, .footer-bottom-bar a { font-size: 0.7rem; color: rgba(255,255,255,0.25); }
.footer-bottom-bar a:hover { color: rgba(255,255,255,0.6); }
.footer-display { overflow: hidden; padding: 20px 0 0; }
.footer-display-text {
  font-size: clamp(5rem, 16vw, 18rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 0.82;
  color: rgba(255,255,255,0.06); white-space: nowrap;
  user-select: none; margin-bottom: -0.12em;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
  /* Hide desktop nav, show hamburger */
  .nav-links     { display: none !important; }
  .nav-cta       { display: none !important; }
  .nav-hamburger { display: flex !important; }
  /* Page sections */
  .page-hero { padding: 130px 0 60px; }
  .page-hero h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .features-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 56px 0; }
}

/* ─── IMAGE PLACEHOLDERS ─────────────────────────── */
.img-placeholder {
  width: 100%;
  background: linear-gradient(135deg, #f0eeeb 0%, #e8e4df 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #aaa9a0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220,38,38,0.04) 0%, transparent 60%);
}
.img-placeholder i { font-size: 2.2rem; color: #ccc9c0; margin-bottom: 4px; }
.img-placeholder-dark {
  background: linear-gradient(135deg, #1a1a18 0%, #222220 100%);
  color: rgba(255,255,255,0.2);
}
.img-placeholder-dark i { color: rgba(255,255,255,0.15); }
.img-placeholder-dark::before {
  background: linear-gradient(135deg, rgba(220,38,38,0.08) 0%, transparent 60%);
}
.img-ph-hero { aspect-ratio: 16/7; }
.img-ph-square { aspect-ratio: 1/1; }
.img-ph-card  { aspect-ratio: 4/3; }
.img-ph-wide  { aspect-ratio: 16/9; }
.img-ph-tall  { aspect-ratio: 3/4; }

/* ─── SERVICE DETAIL PAGE ────────────────────────── */
.service-detail-hero { padding: 160px 0 80px; background: var(--black); position: relative; overflow: hidden; }
.service-detail-hero::after { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 80% 50%, rgba(220,38,38,0.07) 0%, transparent 60%); pointer-events:none; }
.service-detail-hero .wrap { position: relative; z-index: 1; }

.service-process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-process-step:first-child { border-top: 1px solid var(--border); }
.step-num {
  font-size: 0.68rem; font-weight: 700;
  color: var(--red); letter-spacing: 0.1em;
  padding-top: 3px;
}
.step-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.step-body p  { font-size: 0.85rem; line-height: 1.7; color: #666; }

/* ─── PROJECT DETAIL PAGE ────────────────────────── */
.project-hero { padding: 160px 0 0; background: var(--black); position: relative; }
.project-hero-inner { position: relative; z-index: 1; }
.project-hero h1 { color: #fff; font-size: clamp(2.8rem,6vw,6rem); font-weight:900; letter-spacing:-0.04em; line-height:0.95; margin-bottom:24px; }
.project-meta-row {
  display: flex; align-items: center; gap: 32px;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.09);
  flex-wrap: wrap;
}
.project-meta-item { }
.project-meta-label { font-size: 0.65rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.3); margin-bottom:5px; }
.project-meta-value { font-size: 0.85rem; font-weight:600; color:rgba(255,255,255,0.75); }
.project-meta-value a { color: var(--red); transition: color 0.2s; }
.project-meta-value a:hover { color: #fff; }
.project-hero-img { margin-top: 48px; }

.project-body { padding: 80px 0; }
.project-body-grid { display: grid; grid-template-columns: 320px 1fr; gap: 80px; align-items: start; }
.project-sidebar { position: sticky; top: 100px; }
.project-sidebar-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.project-sidebar-section:last-child { border-bottom: none; }
.project-sidebar-label { font-size: 0.65rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--mid); margin-bottom:14px; display:block; }
.project-sidebar-tag { display:inline-flex; align-items:center; padding:5px 12px; border-radius:999px; background:var(--grey); font-size:0.72rem; font-weight:600; margin:3px; }
.project-content h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight:900; letter-spacing:-0.03em; margin-bottom:20px; }
.project-content p  { font-size:0.92rem; line-height:1.8; color:#555; margin-bottom:20px; }
.project-content h3 { font-size:1.1rem; font-weight:800; letter-spacing:-0.02em; margin:36px 0 14px; }
.project-img-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:36px 0; }

.project-nav-bar {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.project-nav-bar a { font-size:0.82rem; font-weight:700; color:var(--black); display:inline-flex; align-items:center; gap:8px; transition:color 0.2s; }
.project-nav-bar a:hover { color: var(--red); }

@media (max-width: 900px) {
  .project-body-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-sidebar { position: static; }
  .project-img-grid { grid-template-columns: 1fr; }
}
