:root {
  --ink: #0b1a3a;
  --ink-2: #15284f;
  --paper: #f5f3ee;
  --white: #ffffff;
  --muted: #5c626a;
  --muted-on-dark: #b4bfd3;
  --line: #dedad1;
  --line-dark: #2a3c63;
  --accent: #e3a92b;
  --accent-ink: #1b1608;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--head);
  font-stretch: 112%;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 21px; font-stretch: 100%; font-weight: 700; letter-spacing: 0; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 58ch; margin: 16px 0 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f0b938; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,26,58,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font: 800 20px/1 var(--head); font-stretch: 112%;
}
.brand-name { font: 800 19px/1 var(--head); font-stretch: 125%; letter-spacing: .06em; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-sub { display: block; font: 500 12.5px/1 var(--body); letter-spacing: .03em; color: var(--muted-on-dark); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; color: #d6dcea; }
.nav a:not(.btn):hover { color: var(--white); }
.menu-btn {
  display: none; place-items: center; width: 44px; height: 44px; margin-right: -8px;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px;
  position: relative; transition: transform .2s ease, background-color .2s ease; content: "";
}
.menu-btn span::before { position: absolute; top: -7px; }
.menu-btn span::after { position: absolute; top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }
.nav a[aria-current] { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (max-width: 900px) {
  .site-head .wrap { position: relative; }
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 20px; box-shadow: 0 20px 30px -10px rgba(0,0,0,.5);
  }
  .menu-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line-dark); }
  .nav a[aria-current] { text-decoration: none; color: var(--accent); }
  .nav .btn { margin-top: 16px; justify-content: center; min-height: 50px; font-size: 16px; }
}

/* Hero */
.hero { background: var(--ink); color: var(--white); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 88px);
}
.hero h1 { font-size: clamp(44px, 6.6vw, 86px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #c9d1e2; font-size: clamp(17px, 1.7vw, 20px); max-width: 46ch; margin: 22px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 40px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--line-dark); list-style: none; color: var(--muted-on-dark); font-size: 15px;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.hero-photo {
  position: relative; margin: 0; border-radius: 20px; overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(11,26,58,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 1 / 1; order: -1; }
  .hero-photo img { object-position: 50% 10%; }
}

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 40px; }

/* Work gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.gallery a {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--line); text-decoration: none;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .cap {
  position: absolute; inset: auto 0 0 0; padding: 48px 18px 16px;
  background: linear-gradient(to top, rgba(6,14,32,.82), transparent);
  color: var(--white); font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.gallery .cap svg { width: 22px; height: 22px; opacity: .85; flex: none; }
.gallery-note { margin: -6px 0 18px; color: var(--muted); font-size: 15px; }
.gallery-head { margin: 0 0 18px; }
.gallery + .gallery-head { margin-top: 56px; }
.gallery-designs { grid-template-columns: repeat(4, 1fr); }
.gallery-designs .cap { justify-content: flex-end; padding-top: 36px; }
.gallery .tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(11,26,58,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--white); padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
@media (max-width: 880px) { .gallery, .gallery-designs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .gallery, .gallery-designs { grid-template-columns: 1fr; }
}

/* Approach */
.approach { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper); }
.pillar-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 22px;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide {
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.guide:hover { border-color: var(--ink); transform: translateY(-2px); }
.guide h3 { font-size: 21px; line-height: 1.2; }
.guide p { margin: 0; color: var(--muted); font-size: 16px; }
.guide .more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.guide .more svg { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 880px) { .guides { grid-template-columns: 1fr; } }

/* FAQ */
.faq-section { background: var(--white); border-top: 1px solid var(--line); }
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font: 700 19px/1.35 var(--head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--paper)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 72ch; }
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { color: var(--ink); font-weight: 600; }

/* Article pages */
.article-hero { background: var(--ink); color: var(--white); padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.article-hero h1 { font-size: clamp(36px, 5.2vw, 62px); max-width: 18ch; }
.article-hero .dek { color: #c9d1e2; font-size: clamp(18px, 1.8vw, 21px); max-width: 52ch; margin: 20px 0 0; }
.article-meta { margin: 28px 0 0; color: var(--muted-on-dark); font-size: 15px; }
.article { padding: clamp(48px, 6vw, 80px) 0; }
.prose { max-width: 720px; font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 48px 0 16px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose blockquote {
  margin: 32px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent);
  font: 600 22px/1.45 var(--head); color: var(--ink);
}
.takeaways { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 0 0 40px; }
.takeaways h2 { font-size: 20px; margin: 0 0 12px; font-stretch: 100%; }
.takeaways ul { margin: 0; padding-left: 20px; }
.article-cta { background: var(--ink); color: var(--white); border-radius: 20px; padding: clamp(28px, 4vw, 44px); margin-top: 56px; max-width: 720px; }
.article-cta h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 12px; }
.article-cta p { color: #c9d1e2; margin: 0 0 24px; }
.related { margin-top: 56px; max-width: 720px; }
.related h2 { font-size: 22px; margin: 0 0 16px; font-stretch: 100%; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related a { font-weight: 600; }

/* Contact */
.contact { background: var(--ink); color: var(--white); }
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact .lede { color: #c9d1e2; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.contact-list a { color: var(--white); text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.hours { margin: 32px 0 0; border-top: 1px solid var(--line-dark); padding-top: 24px; max-width: 360px; }
.hours h3 { font-size: 17px; margin-bottom: 12px; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 0; color: var(--muted-on-dark); font-size: 15px; }
.hours dd { margin: 0; color: var(--white); }

.form-card { background: var(--white); color: var(--ink); border-radius: 20px; padding: clamp(24px, 3.5vw, 40px); }
.form-card h3 { font-size: 24px; font-stretch: 112%; margin-bottom: 6px; }
.form-card > p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field input[type=file] { padding: 10px; font-size: 14px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 22px; }
.form-status { margin: 14px 0 0; font-size: 15px; min-height: 1.6em; }
.form-status.ok { color: #1f7a45; font-weight: 600; }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 880px) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: #0f1113; color: var(--muted-on-dark); font-size: 14px; padding: 28px 0; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-foot a { color: var(--white); text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.site-foot a:hover { text-decoration-color: var(--accent); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(6,14,32,.96); color: var(--white); overflow: hidden;
}
.lightbox::backdrop { background: rgba(6,14,32,.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 15px; color: var(--muted-on-dark); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lb-stage img {
  max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain;
  border-radius: 8px; user-select: none; -webkit-user-drag: none;
}
.lb-cap { text-align: center; padding: 16px 16px 24px; font-weight: 600; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: var(--white); display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -64px; transform: none; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-cap { padding: 22px 76px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
