/* ============================================================
   LTV — SWISS BRUTALIST EDITORIAL v3
   Aesthetic: Architectural precision, editorial ink, mechanical grid
   Fonts: DM Serif Display (editorial) + IBM Plex Mono (data)
   Palette: Pure white ground, heavy black ink, mid-grey structure
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=IBM+Plex+Mono:wght@300;400;500;600;700&family=Barlow:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --ink:         #0a0a0a;
  --ink2:        #1a1a1a;
  --ink3:        #2e2e2e;
  --mid:         #6b6b6b;
  --rule:        #d0d0d0;
  --rule-hi:     #b0b0b0;
  --surface:     #f5f5f3;
  --white:       #ffffff;
  --off:         #f0f0ee;

  --max:         1200px;
  --font-head:   'DM Serif Display', Georgia, serif;
  --font-body:   'Barlow', system-ui, sans-serif;
  --font-mono:   'IBM Plex Mono', 'Courier New', monospace;

  --ease:        cubic-bezier(.25,.46,.45,.94);
  --ease-sharp:  cubic-bezier(.77,0,.175,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ========================= NAV ========================= */
.nav {
  position: sticky;
  top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 2px solid var(--ink);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-right: auto;
}

.nav__logo {
  width: 28px; height: 28px;
}

.nav__name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: stretch;
  height: 60px;
}

.nav__links a {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--mid);
  padding: 0 16px;
  letter-spacing: 0.3px;
  border-left: 1px solid var(--rule);
  transition: color .12s, background .12s;
  position: relative;
}

.nav__links a:hover {
  color: var(--ink);
  background: var(--off);
}

.nav__cta {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--white);
  border-left: 2px solid var(--ink);
  transition: background .12s;
  height: 60px;
  text-transform: uppercase;
}

.nav__cta:hover { background: var(--ink3); }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.nav__burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .2s var(--ease), opacity .2s;
}

.nav__burger span:first-child { top: 13px; }
.nav__burger span:last-child  { top: 24px; }
.nav__burger.open span:first-child { transform: translateY(5.5px) rotate(45deg); }
.nav__burger.open span:last-child  { transform: translateY(-5.5px) rotate(-45deg); }

/* ========================= DRAWER ========================= */
.drawer {
  position: fixed;
  inset: 60px 0 0;
  z-index: 199;
  background: var(--white);
  border-top: 2px solid var(--ink);
  overflow-y: auto;
}

.drawer__inner {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.drawer__link {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  padding: 18px 28px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  letter-spacing: 0.2px;
  transition: background .12s, padding-left .15s var(--ease);
}

.drawer__link:hover { background: var(--off); padding-left: 40px; }
.drawer__link--dim { color: var(--mid); font-size: 13px; }
.drawer__rule { height: 2px; background: var(--rule); }

/* ========================= BUTTONS ========================= */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background .12s, color .12s;
}

.btn-solid:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background .12s, color .12s;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background .12s, color .12s;
}

.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-pill { border-radius: 100px; }

.btn-sm-solid {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.btn-sm-solid:hover { background: var(--white); color: var(--ink); }

.btn-sm-ghost {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1.5px solid var(--rule-hi);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.btn-sm-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* ========================= HERO ========================= */
.hero {
  position: relative;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}

/* Large typographic index number */
.hero__bg-num {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: clamp(280px, 28vw, 440px);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero__wrap {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 88vh;
}

.hero__copy {
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: '';
  width: 32px; height: 1.5px;
  background: var(--ink);
}

.hero__dot { display: none; }

.hero__h1 {
  font-family: var(--font-head);
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -2px;
  margin-bottom: 32px;
  color: var(--ink);
}

.hero__h1 em {
  font-style: italic;
  color: var(--ink);
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--mid);
  max-width: 44ch;
  line-height: 1.78;
  margin-bottom: 40px;
  border-left: 3px solid var(--ink);
  padding-left: 18px;
}

.hero__actions {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__actions .btn-solid { border-right: none; }

.hero__stats {
  display: flex;
  gap: 0;
  border-top: 1.5px solid var(--rule);
  padding-top: 28px;
}

.hero__stat {
  flex: 1;
  padding-right: 24px;
  border-right: 1px solid var(--rule);
  margin-right: 24px;
}

.hero__stat:last-child { border-right: none; margin-right: 0; }

.hero__stat-val {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--mid);
}

/* Terminal panel */
.hero__panel {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.panel {
  flex: 1;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.panel__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.panel__dots { display: flex; gap: 7px; }
.panel__dots i {
  display: block; width: 9px; height: 9px; border-radius: 50%;
}
.panel__dots i:nth-child(1) { background: #ff5f56; }
.panel__dots i:nth-child(2) { background: #ffbd2e; }
.panel__dots i:nth-child(3) { background: #27c93f; }

.panel__title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,.4);
  margin-left: 4px;
}

.panel__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  font-family: var(--font-mono);
}

.panel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .15s;
}

.panel__row:hover { background: rgba(255,255,255,.08); }

.panel__k {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  font-weight: 400;
}

.panel__k::before {
  content: '$ ';
  color: rgba(255,255,255,.2);
}

.panel__v {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}

.panel__v--ok {
  background: var(--white);
  color: var(--ink);
  padding: 2px 10px;
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.panel__foot {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel__track {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
}

.panel__fill {
  height: 100%;
  background: var(--white);
  animation: prog 3s ease-in-out infinite;
}

@keyframes prog {
  0%   { width: 40%; opacity: .5; }
  50%  { width: 80%; opacity: 1; }
  100% { width: 40%; opacity: .5; }
}

.panel__foot-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,.3);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* ========================= SECTIONS ========================= */
.sec {
  padding: 96px 0;
  border-top: 2px solid var(--ink);
}

.sec--tinted { background: var(--off); }
.sec--dark { background: var(--ink); color: var(--white); }

.sec__head { margin-bottom: 56px; }

.sec__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 14px;
}

.sec--dark .sec__label { color: rgba(255,255,255,.45); }

.sec__label::before {
  content: '';
  width: 28px; height: 1.5px;
  background: var(--ink);
}

.sec--dark .sec__label::before { background: rgba(255,255,255,.4); }

.sec__head h2 {
  font-family: var(--font-head);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.0;
  margin-bottom: 16px;
  color: var(--ink);
}

.sec--dark .sec__head h2 { color: var(--white); }

.sec__sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--mid);
  max-width: 52ch;
  line-height: 1.72;
}

/* ========================= SERVICES ========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
  overflow: hidden;
}

.services-grid--quad {
  grid-template-columns: repeat(4, 1fr);
}

.svc-card {
  padding: 40px 32px 44px;
  background: var(--white);
  border-right: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
  transition: background .2s;
}

.svc-card:last-child { border-right: none; }

/* Large ghost number */
.svc-card:hover { background: var(--off); }

.svc-card__num {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 24px;
}

.svc-card__icon {
  width: 48px; height: 48px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--ink);
  background: var(--white);
}

.svc-card__icon svg { width: 20px; height: 20px; }

.svc-card h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--ink);
}

.svc-card p {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.72;
  margin-bottom: 24px;
}

.svc-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.svc-card ul li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink3);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  padding-left: 18px;
  position: relative;
}

.svc-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--mid);
  font-size: 11px;
}

.svc-card__link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.svc-card__link:hover { opacity: .65; }

/* ========================= DEALS ========================= */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.deal-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--ink);
}

.deal-card__img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--off);
  border-bottom: 2px solid var(--ink);
}

.deal-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.05);
  transition: transform .5s var(--ease), filter .3s;
}

.deal-card:hover .deal-card__img img {
  transform: scale(1.06);
  filter: saturate(1.4) contrast(1.08) brightness(1.03);
}

.deal-card__badge {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--white);
}

.deal-card__body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.deal-card__body h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.deal-card__body p {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--mid);
  flex: 1;
  line-height: 1.6;
}

.deal-card__actions {
  display: flex;
  gap: 0;
  margin-top: 8px;
  border-top: 2px solid var(--ink);
}

.deal-card__actions .btn-sm-solid {
  flex: 1;
  justify-content: center;
  border: none;
  border-right: 2px solid var(--ink);
}

.deal-card__actions .btn-sm-ghost {
  flex: 1;
  justify-content: center;
  border: none;
}

.disclosure {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--mid);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  letter-spacing: 0.2px;
}

/* ========================= APP SHOWCASE ========================= */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--white);
}

.app-showcase__left {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 2px solid var(--ink);
}

.app-showcase__badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-showcase__title {
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin: 0;
  line-height: 1;
}

.app-showcase__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0;
}

.app-showcase__url {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--mid);
  opacity: 0.6;
  margin-top: 4px;
}

.app-showcase__right {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.app-showcase__launch {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  transition: background .15s, color .15s;
  gap: 16px;
}

.app-showcase__launch:hover {
  background: var(--white);
  color: var(--ink);
}

.app-showcase__arrow {
  font-size: 20px;
  font-weight: 400;
  transition: transform .15s;
}

.app-showcase__launch:hover .app-showcase__arrow {
  transform: translate(3px, -3px);
}

.app-showcase__copy {
  flex: 1;
  padding: 0 32px;
  background: transparent;
  color: var(--ink);
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
  min-height: 60px;
}

.app-showcase__copy:hover { background: var(--off); }


.app-card {
  border: 2px solid var(--ink);
  background: var(--white);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 0;
  overflow: hidden;
  transition: background .15s;
}

.app-card:hover { background: var(--off); }

.app-card__icon {
  width: 80px;
  align-self: stretch;
  border-right: 2px solid var(--ink);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.app-card__icon svg { width: 28px; height: 28px; }

.app-card__info {
  min-width: 0;
  padding: 32px 36px;
  border-right: 2px solid var(--ink);
}

.app-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 3px 10px;
}

.live-dot::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #27c93f;
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:.2 } }

.app-card__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
}

.app-card__title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 8px;
}

.app-card__desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 52ch;
}

.app-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
  align-self: stretch;
}

.app-card__actions .btn-solid,
.app-card__actions .btn-ghost {
  flex: 1;
  justify-content: center;
  border: none;
  border-bottom: 2px solid var(--ink);
}
.app-card__actions .btn-ghost { border-bottom: none; }

/* ========================= GALLERY ========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
  overflow: hidden;
}

.gallery__item {
  margin: 0;
  background: var(--off);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  border-right: 2px solid var(--ink);
}

.gallery__item:last-child { border-right: none; }

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform .6s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .22s, transform .22s var(--ease);
  padding: 10px 14px;
}

.gallery__item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= VISIT ========================= */
.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  border: 2px solid var(--ink);
  overflow: hidden;
}

.visit-layout__left {
  padding: 48px 44px;
  border-right: 2px solid var(--ink);
}

.visit-layout__left h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  color: var(--ink);
}

.visit-sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--mid);
  margin-bottom: 32px;
  max-width: 40ch;
  line-height: 1.7;
}

.visit-blocks {
  border: 2px solid var(--ink);
  margin-bottom: 28px;
  overflow: hidden;
}

.visit-block {
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule);
}

.visit-block:last-child { border-bottom: none; }

.visit-block__label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 7px;
}

.visit-block__text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
}

.map-wrap {
  border: none;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}

.map-wrap iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
  filter: saturate(1.4) contrast(1.05) brightness(1.02);
}

/* ========================= CONTACT ========================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
  overflow: hidden;
}

.contact-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  border-right: 2px solid var(--ink);
  transition: background .15s;
  position: relative;
}

.contact-card:last-child { border-right: none; }
.contact-card:hover { background: var(--off); }

.contact-card__label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0;
}

.contact-card__value {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  transition: text-decoration .15s;
}

a.contact-card__value:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-card__btn-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ========================= FOOTER ========================= */
.footer {
  border-top: 2px solid var(--ink);
  padding: 0;
  background: var(--ink);
  color: var(--white);
}

.footer__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  height: 60px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,.15);
}

.footer__brand img {
  filter: none;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.35);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.footer__links {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.45);
  font-weight: 500;
  letter-spacing: 0.3px;
  border-left: 1px solid rgba(255,255,255,.12);
  padding: 0 20px;
  display: flex;
  align-items: center;
  transition: color .12s, background .12s;
}

.footer__links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.07);
}

.footer__portal-link { opacity: .35; }
.footer__portal-link:hover { opacity: 1; }

/* ========================= TOAST ========================= */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: var(--white);
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 2px solid var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
  max-width: min(440px, calc(100vw - 32px));
  white-space: nowrap;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================= PRIVACY / TERMS ========================= */
.top-strip {
  border-bottom: 2px solid var(--ink);
  background: var(--white);
  padding: 0;
}

.top-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  height: 52px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid);
}

.top-right a {
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--rule);
  transition: background .12s, color .12s;
}

.top-right a:hover { background: var(--off); color: var(--ink); }
.sep { display: none; }

.pill-mini {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: var(--white);
}

.top-note {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.3px;
}

.muted { color: var(--mid); }

.card {
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 52px 56px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.card h1 {
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 400;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 32px 0 12px;
  color: var(--ink);
}

.card p {
  font-family: var(--font-body);
  color: var(--mid);
  font-size: 15px;
  line-height: 1.78;
  margin-bottom: 14px;
}

.card a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card a:hover { opacity: 0.7; }

.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
}

.bullets {
  padding-left: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.bullets li {
  font-family: var(--font-body);
  color: var(--mid);
  font-size: 14px;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--rule);
  line-height: 1.65;
  position: relative;
}

.bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--rule-hi);
}

/* ========================= BUILD ENTRY ========================= */
.build-entry { border: 2px solid var(--ink); }

.build-entry__photos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 340px;
  gap: 0;
}

.build-entry__main,
.build-entry__side {
  margin: 0;
  overflow: hidden;
  height: 340px;
}

.build-entry__side { border-left: 2px solid var(--ink); }

.build-entry__main img,
.build-entry__side img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .4s var(--ease);
}

.build-entry__main:hover img,
.build-entry__side:hover img { transform: scale(1.03); }

.build-entry__caption {
  display: flex; align-items: center;
  padding: 14px 20px;
  border-top: 2px solid var(--ink);
  background: var(--ink);
}

.build-entry__label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--white);
}

/* ========================= CONTACT — OPTION E ========================= */
.contact-e {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--ink);
  overflow: hidden;
}

.contact-e__left {
  background: var(--ink);
  color: var(--white);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 380px;
}

.contact-e__eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

.contact-e__h {
  font-family: var(--font-head);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 400;
  letter-spacing: -2.5px;
  line-height: .95;
  color: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-e__h em {
  font-style: italic;
  color: rgba(255,255,255,.4);
}

.contact-e__addr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: .3px;
  word-break: break-all;
}

.contact-e__cta {
  display: inline-block;
  align-self: flex-start;
  padding: 13px 24px;
  border: 1.5px solid rgba(255,255,255,.35);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.contact-e__cta:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

.contact-e__right {
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.contact-e__item {
  flex: 1;
  padding: 28px 40px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s;
}

.contact-e__item:last-child { border-bottom: none; }
a.contact-e__item:hover { background: var(--off); }

.contact-e__item-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}

.contact-e__item-val {
  font-family: var(--font-head);
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--ink);
  line-height: 1.2;
}

.contact-e__item-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid);
  margin-top: 5px;
  letter-spacing: .3px;
}

.contact-e__arrow {
  opacity: .35;
  transition: opacity .15s, transform .15s;
}

a.contact-e__item:hover .contact-e__arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

.contact-e__item--legal { cursor: default; gap: 20px; }

.contact-e__legal-links {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.contact-e__legal-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.contact-e__legal-btn:hover {
  background: var(--ink);
  color: var(--white);
}

@media (min-width: 1001px) and (max-width: 1300px) {
  .services-grid--quad { grid-template-columns: repeat(2, 1fr); }
  .services-grid--quad .svc-card:nth-child(2) { border-right: none; }
  .services-grid--quad .svc-card:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1000px) {
  .hero__wrap { grid-template-columns: 1fr; }
  .hero__copy { border-right: none; border-bottom: 2px solid var(--ink); padding: 60px 0 60px; }
  .hero__panel { min-height: 320px; }
  .panel { flex: none; width: 100%; }
  .hero { min-height: unset; }

  .services-grid { grid-template-columns: 1fr; }
  .svc-card { border-right: none; border-bottom: 2px solid var(--ink); }
  .svc-card:last-child { border-bottom: none; }

  .deals-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item:last-child { border-right: none; border-top: 2px solid var(--ink); }
  .visit-layout { grid-template-columns: 1fr; }
  .visit-layout__left { border-right: none; border-bottom: 2px solid var(--ink); }
  .map-wrap { min-height: 300px; }
  .contact-e { grid-template-columns: 1fr; }
  .contact-e__left { padding: 40px 28px; min-height: unset; }
  .contact-e__item { padding: 24px 28px; }
  .contact-e__item--legal { flex-direction: column; align-items: flex-start; gap: 14px; }
  .build-entry__photos { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; }
  .build-entry__main { grid-column: 1 / -1; height: 220px; border-bottom: 2px solid var(--ink); }
  .build-entry__side { height: 220px; }
  .build-entry__side:first-of-type { border-left: none; }

  .app-showcase { grid-template-columns: 1fr; }
  .app-showcase__left { border-right: none; border-bottom: 2px solid var(--ink); padding: 32px 24px; }
  .app-showcase__right { flex-direction: row; min-width: unset; }
  .app-showcase__launch { flex: 1; padding: 20px 24px; min-height: 60px; border-bottom: none; border-right: 2px solid var(--ink); }
  .app-showcase__copy { flex: 1; }
  .app-card { grid-template-columns: 80px 1fr; grid-template-rows: auto auto; }
  .app-card__info { border-right: none; border-bottom: 2px solid var(--ink); }
  .app-card__actions { grid-column: 1/-1; flex-direction: row; }
  .app-card__actions .btn-solid,
  .app-card__actions .btn-ghost { flex: 1; border-bottom: none; border-right: 2px solid var(--ink); }
  .app-card__actions .btn-ghost { border-right: none; }

  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .footer__inner { flex-wrap: wrap; height: auto; padding: 20px 0; gap: 0; }
  .footer__brand { padding: 12px 24px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); width: 100%; }
  .footer__copy { padding: 12px 24px; }
  .footer__links { margin-left: 0; border-top: 1px solid rgba(255,255,255,.1); width: 100%; }
  .footer__links a { flex: 1; justify-content: center; border-left: none; border-right: 1px solid rgba(255,255,255,.12); padding: 12px 10px; }
  .footer__links a:last-child { border-right: none; }
}

@media (max-width: 600px) {
  .deals-grid { grid-template-columns: 1fr; gap: 16px; }
  .deal-card { border-right: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item { border-right: none; border-top: 2px solid var(--ink); }
  .gallery__item:first-child { border-top: none; }
  .sec { padding: 60px 0; }
  .card { padding: 28px 22px; }
  .app-card { grid-template-columns: 1fr; }
  .app-card__icon { width: 100%; height: 60px; border-right: none; border-bottom: 2px solid var(--ink); }
  .wrap { width: calc(100% - 32px); }
  .hero__bg-num { display: none; }
}

/* Teaser banner (index.html deals section) */
.teaser-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 2px solid var(--ink);
  padding: 32px 36px;
  background: var(--white);
}
.teaser-banner__text h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin: 0 0 8px;
}
.teaser-banner__text p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--mid);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .teaser-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px;
  }
  .teaser-banner .btn-solid { width: 100%; text-align: center; }
}
