/* Ahkem — design tokens & shared styles v3 */
:root {
  --cherry: #5C1A1B;
  --cherry-deep: #3E0F11;
  --cherry-soft: #7A2A2B;
  --parchment: #F4EDE0;
  --parchment-warm: #EFE6D4;
  --ivory: #FBF7EE;
  --ink: #1A1410;
  --ink-soft: #4A3F35;
  --gold: #A8895C;
  --gold-pale: #C9B58F;
  --rule: rgba(26, 20, 16, 0.18);
  --rule-strong: rgba(26, 20, 16, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Inter Tight', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.smallcaps {
  font-family: 'Inter Tight', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 500;
}

.oldstyle { font-feature-settings: "onum"; }

/* ——— site frame ——— */
.frame {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ——— top bar ——— */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(62, 15, 17, 0.92);
  border-bottom: 1px solid rgba(244, 237, 224, 0.1);
  box-shadow: 0 8px 24px rgba(26, 20, 16, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body { padding-top: 0; }
.topbar.is-light {
  background: rgba(244, 237, 224, 0.9);
  border-bottom-color: rgba(92, 26, 27, 0.14);
  box-shadow: 0 8px 24px rgba(26, 20, 16, 0.04);
}
.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 55px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.topbar.is-light .brand img {
  filter: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 237, 224, 0.22);
  background: transparent;
  color: var(--parchment);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle::before { top: 13px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 25px; }
.topbar.is-light .nav-toggle {
  color: var(--cherry);
  border-color: rgba(92, 26, 27, 0.22);
}
.topbar.menu-open .nav-toggle span { opacity: 0; }
.topbar.menu-open .nav-toggle::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.topbar.menu-open .nav-toggle::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.76);
  font-weight: 550;
  transition: color .25s ease;
}
.nav a:hover {
  color: var(--parchment);
}
.nav a.active {
  color: var(--parchment);
}
.nav a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 5px;
  height: 1px;
  background: var(--gold-pale);
  border-radius: 999px;
}
.topbar.is-light .nav {
  background: transparent;
  box-shadow: none;
}
.topbar.is-light .nav a {
  color: var(--ink-soft);
}
.topbar.is-light .nav a:hover,
.topbar.is-light .nav a.active {
  color: var(--cherry);
}
.topbar.is-light .nav a.active::after {
  background: var(--cherry);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0 8px;
  border: none;
  border-bottom: 1px solid rgba(244, 237, 224, 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--parchment);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}
.nav-cta .cta-arrow {
  font-size: 12px;
  letter-spacing: 0;
  transition: transform .25s;
}
.nav-cta:hover {
  color: var(--parchment);
  border-color: rgba(201, 181, 143, 0.7);
}
.nav-cta:hover .cta-arrow { transform: translateX(3px); }
.topbar.is-light .nav-cta {
  border-bottom-color: rgba(92, 26, 27, 0.22);
  background: transparent;
  color: var(--cherry);
}
.topbar.is-light .nav-cta:hover {
  color: var(--cherry);
  border-bottom-color: rgba(92, 26, 27, 0.5);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 63px;
  left: 0;
  right: 0;
  z-index: 45;
  padding: 0 18px 18px;
}
.mobile-nav-panel {
  background: rgba(62, 15, 17, 0.98);
  border: 1px solid rgba(244, 237, 224, 0.12);
  box-shadow: 0 20px 40px rgba(26, 20, 16, 0.18);
  padding: 18px;
}
.mobile-nav.is-light .mobile-nav-panel {
  background: rgba(244, 237, 224, 0.98);
  border-color: rgba(92, 26, 27, 0.14);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-links a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 237, 224, 0.12);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment);
  font-weight: 550;
}
.mobile-nav.is-light .mobile-nav-links a {
  color: var(--ink);
  border-bottom-color: rgba(92, 26, 27, 0.12);
}
.mobile-nav-links a.active { color: var(--gold-pale); }
.mobile-nav.is-light .mobile-nav-links a.active { color: var(--cherry); }
.mobile-nav-cta {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .frame { padding: 0 28px; }
  .topbar-inner { padding: 10px 24px; gap: 14px; }
  .mobile-nav {
    padding: 0 24px 24px;
  }
  .mobile-nav-panel {
    padding: 20px;
  }
  .nav,
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: 26px; }
  .mobile-nav.is-open { display: block; }
  .section-mark {
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    flex-wrap: wrap;
  }
  .section-mark .right {
    margin-left: 0;
    width: 100%;
  }
}

/* ——— footer ——— */
.footer {
  position: relative;
  background:
    linear-gradient(180deg, var(--cherry-deep) 0%, rgba(62,15,17,0.92) 30%, rgba(62,15,17,0.92) 70%, var(--cherry-deep) 100%),
    url('desen.jpeg') center/cover no-repeat,
    var(--cherry-deep);
  color: var(--parchment-warm);
  margin-top: 80px;
  padding: 44px 0 18px;
  overflow: hidden;
}
.footer .frame { max-width: 1440px; position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 28px;
}
.footer-grid h4 {
  color: var(--parchment-warm);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer-grid ul a { color: var(--parchment-warm); opacity: 0.78; }
.footer-grid ul a:hover { opacity: 1; color: #fff; }
.footer-mark {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}
.footer-mark img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-tag {
  font-size: 13px;
  line-height: 1.6;
  max-width: 320px;
  opacity: 0.72;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ——— architectural plate placeholder ——— */
.plate {
  position: relative;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(26, 20, 16, 0.04) 0,
      rgba(26, 20, 16, 0.04) 1px,
      transparent 1px,
      transparent 22px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(26, 20, 16, 0.025) 0,
      rgba(26, 20, 16, 0.025) 1px,
      transparent 1px,
      transparent 22px
    ),
    var(--parchment-warm);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.plate::before {
  content: '';
  position: absolute; inset: 14px;
  border: 1px solid var(--rule);
  pointer-events: none;
}
.plate-caption {
  position: absolute;
  left: 24px; bottom: 22px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--parchment);
  padding: 4px 8px;
  border: 1px solid var(--rule);
}
.plate-num {
  position: absolute;
  right: 24px; top: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}
.plate-cherry {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(244, 237, 224, 0.05) 0,
      rgba(244, 237, 224, 0.05) 1px,
      transparent 1px,
      transparent 22px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(244, 237, 224, 0.04) 0,
      rgba(244, 237, 224, 0.04) 1px,
      transparent 1px,
      transparent 22px
    ),
    var(--cherry);
}
.plate-cherry .plate-caption {
  background: var(--cherry-deep);
  color: var(--parchment-warm);
  border-color: rgba(244, 237, 224, 0.2);
}
.plate-cherry::before { border-color: rgba(244, 237, 224, 0.18); }
.plate-cherry .plate-num { color: var(--parchment-warm); }

/* ——— buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  border: none;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--cherry);
  color: var(--parchment);
}
.btn-primary:hover { background: var(--cherry-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--parchment); }
.btn .arrow {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(-1px);
}

/* ——— section markers ——— */
.section-mark {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.section-mark .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.section-mark .right {
  margin-left: auto;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ——— page header (for sub-pages) ——— */
.page-head {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--rule);
}
.page-head .crumb {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.page-head .crumb a { color: var(--ink-soft); }
.page-head .crumb .sep { margin: 0 12px; color: var(--cherry); }
.page-head h1 {
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.page-head--compact {
  border-bottom: none;
  padding-bottom: 32px;
}
.page-head--compact h1 {
  font-size: clamp(40px, 5vw, 72px);
}
.page-head--compact .lede {
  font-size: clamp(18px, 1.45vw, 22px);
  max-width: none;
}
@media (min-width: 1200px) {
  .page-head--compact .lede { white-space: nowrap; }
}
.page-head h1 em {
  font-style: italic;
  color: var(--cherry);
}
.page-head .lede {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.55;
  max-width: 640px;
  color: var(--ink-soft);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
}

@media (max-width: 1080px) {
  .frame { padding: 0 32px; }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .frame { padding: 0 28px; }
  .page-head {
    padding: 74px 0 40px;
  }
  .page-head .crumb,
  .page-head h1,
  .page-head .lede {
    padding-inline: 6px;
  }
  .page-head .crumb {
    margin-bottom: 22px;
    line-height: 1.6;
  }
  .page-head .crumb .sep { margin: 0 8px; }
  .page-head h1 {
    font-size: clamp(28px, 10.5vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.02em;
  }
  .page-head--compact h1 {
    font-size: clamp(24px, 7.5vw, 34px);
  }
  .page-head--compact .lede {
    font-size: 17px;
    white-space: normal;
  }
  .page-head .lede {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.6;
  }
  .section-mark {
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    padding-inline: 6px;
    flex-wrap: wrap;
  }
  .section-mark .right {
    margin-left: 0;
    width: 100%;
  }
  .footer {
    margin-top: 56px;
    padding: 32px 0 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 18px;
  }
  .footer-tag { max-width: none; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}
