/* In:arch Commercial — shared system */

:root {
  --bone: #FAFAF8;
  --bone-2: #F1F0EC;
  --bone-3: #E4E2DC;
  --ink: #0E1014;
  --ink-2: #232527;
  --mid: #6E7177;
  --mid-2: #A1A4AA;
  --hairline: #E2E1DB;
  --navy: #0047AB;
  --terra: #0047AB;
  --paper: #FFFFFF;

  --maxw: 1440px;
  --gutter: clamp(20px, 4vw, 56px);

  --fs-display: clamp(48px, 8vw, 132px);
  --fs-h1: clamp(40px, 5.6vw, 88px);
  --fs-h2: clamp(32px, 4vw, 64px);
  --fs-h3: clamp(22px, 2.2vw, 32px);
  --fs-lede: clamp(18px, 1.4vw, 22px);
  --fs-body: 16px;
  --fs-small: 13px;
  --fs-micro: 11px;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: 'Mulish', 'Avenir Next', 'Helvetica Neue', -apple-system, system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ================== TYPOGRAPHY ================== */
.serif { font-family: 'Mulish', 'Avenir Next', sans-serif; font-weight: 600; letter-spacing: -0.02em; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
}

h1, h2, h3, h4, p { margin: 0; }

.display {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.h1 { font-family: 'Mulish', sans-serif; font-weight: 700; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.032em; }
.h2 { font-family: 'Mulish', sans-serif; font-weight: 700; font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.028em; }
.h3 { font-family: 'Mulish', sans-serif; font-weight: 600; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.018em; }
.lede { font-size: var(--fs-lede); line-height: 1.45; color: var(--ink-2); max-width: 60ch; }

.italic { font-style: italic; }
.hyphen { color: var(--mid-2); font-weight: 300; }

/* keep accent text ink-colored — accent reserved for tags/dots/borders */
h1 em, h2 em, h3 em, .display em, .h1 em, .h2 em, .h3 em, .hero-headline em, .footer__cta em { color: inherit !important; font-style: italic; font-weight: inherit; }

/* ================== LAYOUT ================== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: clamp(80px, 10vw, 160px); padding-bottom: clamp(80px, 10vw, 160px); }
.section--sm { padding-top: clamp(60px, 7vw, 100px); padding-bottom: clamp(60px, 7vw, 100px); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--bone); }
.section--ink .lede { color: var(--bone-3); }
.section--ink .eyebrow { color: var(--mid-2); }
.section--ink .hr { background: rgba(255,255,255,0.14); }

/* CTA STRIP */
.cta-strip { background: var(--ink); color: var(--bone); padding: clamp(80px, 10vw, 160px) 0; position: relative; overflow: hidden; }
.cta-strip h2 em { color: var(--terra); }

.hr { height: 1px; background: var(--hairline); width: 100%; }
.hr--ink { background: rgba(0,0,0,0.85); }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-12 { grid-template-columns: repeat(12, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .g-12 { grid-template-columns: repeat(6, 1fr); }
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.gap-64 { gap: 64px; }
.between { justify-content: space-between; }
.center { align-items: center; }
.end { align-items: flex-end; }

/* ================== HEADER ================== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bone);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--hairline); background: rgba(242, 239, 232, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.logo__mark { height: 22px; width: auto; display: block; }
.logo__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mid);
  border-left: 1px solid var(--hairline);
  padding-left: 10px;
  align-self: center;
  line-height: 1;
  padding-top: 1px;
}
.nav { display: flex; gap: 32px; align-items: center; }
.nav__link {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

.header__right { display: flex; align-items: center; gap: 16px; }
.tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.tel::before {
  content: "";
  width: 12px; height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.37 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.33 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.37 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.33 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") no-repeat center / contain;
  flex-shrink: 0;
}
.tel:hover { background: var(--ink); color: var(--bone); transform: translateY(-2px); }

.menu-btn { display: none; }
@media (max-width: 1100px) {
  .tel { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--hairline); border-radius: 2px; }
  .menu-btn span { width: 16px; height: 1px; background: var(--ink); position: relative; }
  .menu-btn span::before, .menu-btn span::after { content:""; position:absolute; left:0; right:0; height:1px; background:var(--ink); }
  .menu-btn span::before { top: -5px; }
  .menu-btn span::after { top: 5px; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bone); padding: 24px var(--gutter);
  transform: translateY(-100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateY(0); }
.drawer__nav { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.drawer__nav a { font-family: 'Mulish', sans-serif; font-weight: 700; font-size: 32px; letter-spacing: -0.03em; }
.drawer__close { align-self: flex-end; width: 40px; height: 40px; border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; }

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  transition: transform .25s var(--ease), background .25s var(--ease);
  font-weight: 500;
}
.btn:hover { transform: translateY(-2px); background: var(--navy); }
.btn--ghost { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--ghost-light { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: var(--bone); }
.btn--ghost-light:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn .arrow { width: 12px; height: 12px; flex-shrink: 0; }
.btn .arrow path { stroke: currentColor; stroke-width: 1.4; fill: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap .25s var(--ease);
}
.link-arrow:hover { gap: 16px; }

/* ================== PLACEHOLDER IMAGES ================== */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(20,19,15,0.04) 0 1px, transparent 1px 8px),
    var(--bone-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--mid);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ph::before, .ph::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--mid-2);
}
.ph::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.ph::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.ph__label {
  position: relative; z-index: 1;
  background: var(--bone);
  padding: 4px 8px;
  border: 1px solid var(--hairline);
  white-space: nowrap;
}
.ph--dark { background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 8px),
    #1F1E1A; color: var(--mid-2); }
.ph--dark::before, .ph--dark::after { border-color: rgba(255,255,255,0.2); }
.ph--dark .ph__label { background: #1F1E1A; border-color: rgba(255,255,255,0.18); color: var(--bone-3); }

.ph--photo { background: #14130F; overflow: hidden; }
.ph--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ph--photo::before, .ph--photo::after { display: none; }
.ph--photo .ph__label {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(14,16,20,0.7);
  color: var(--bone);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* ================== ANIMATION / SCROLL REVEAL ================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal--stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal--stagger.is-in > * { opacity: 1; transform: translateY(0); }
.reveal--stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.reveal--stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
.reveal--stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
.reveal--stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
.reveal--stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
.reveal--stagger.is-in > *:nth-child(6) { transition-delay: 400ms; }

/* hero word reveal */
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.is-in .line > span { transform: translateY(0); }

/* ================== FOOTER ================== */
.footer {
  background: var(--ink);
  color: var(--bone-3);
  padding: clamp(60px, 7vw, 100px) 0 32px;
}
.footer .wrap > * + * { margin-top: 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid-2); margin-bottom: 20px; font-weight: 500; }
.footer__col a { display: block; padding: 6px 0; color: var(--bone); font-size: 14px; transition: color .2s; }
.footer__col a:hover { color: var(--terra); }
.footer__cta { font-family: 'Mulish', sans-serif; font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -0.025em; color: var(--bone); max-width: 14ch; }
.footer__cta a { display: inline-block; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 4px; transition: border-color .3s; }
.footer__cta a:hover { border-color: var(--terra); }
.footer__bot { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--mid-2); text-transform: uppercase; }

/* ================== UTIL ================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }

.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-5 { grid-column: span 5; }
.col-span-8 { grid-column: span 8; }
.col-span-4 { grid-column: span 4; }
.col-span-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .col-span-6, .col-span-7, .col-span-5, .col-span-8, .col-span-4 { grid-column: span 6; }
}

/* page-marker — running header strip on every page */
.page-marker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.page-marker span:nth-child(2) { color: var(--ink); }

/* ================== MOBILE FIXES ================== */
@media (max-width: 900px) {
  .header__inner { gap: 12px; }
  .header__right { gap: 8px; }
  .header__right .btn { display: none; } /* CTA lives in drawer; menu-btn is enough */
  .logo__sub { display: none; }
  .logo__mark { height: 20px; }

  .hero__strip { grid-template-columns: repeat(2, 1fr); }
  .hero__strip > div { padding: 18px 16px; border-bottom: 1px solid var(--hairline); }
  .hero__strip > div:nth-child(2) { border-right: 0; }
  .hero__strip > div:nth-last-child(-n+2) { border-bottom: 0; }
  .hero__strip dd { font-size: 24px; }

  .page-marker { font-size: 9px; gap: 8px; flex-wrap: wrap; }
  .page-marker span { white-space: nowrap; }

  .hero__head { padding-top: 24px; padding-bottom: 28px; }
  .hero__meta { max-width: 100%; }
  .hero__caption { left: 12px; bottom: 12px; padding: 10px 12px; font-size: 10px; gap: 10px; }
}

@media (max-width: 540px) {
  .footer__top { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .hero-headline { font-size: 28px; }
  .drawer__nav a { font-size: 26px; }
}
