:root {
  --ink: #16140f;
  --muted: #5e584e;
  --paper: #f3efe6;
  --card: #fffdf8;
  --line: rgba(22, 20, 15, 0.14);
  --teal: #0c6e66;
  --teal-deep: #084841;
  --gold: #7c5a16;
  --shop: #9d1c2e;
  --shadow: 0 24px 50px rgba(22, 20, 15, 0.08);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 380;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }

#work, #apps, #offer, #start, #sliders, #tours, #station { scroll-margin-top: 96px; }
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 6vw;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 72px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 480;
}
.site-nav a:hover { color: var(--teal); }
.nav-start {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  min-height: 44px;
}

.hero, .work, .apps, .offer, .start, .foot {
  padding-left: 6vw;
  padding-right: 6vw;
}
.hero { padding-top: 4.5rem; padding-bottom: 3.5rem; max-width: 1180px; }
.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 560;
}
.hero h1 { font-size: clamp(4.4rem, 11vw, 8.4rem); }
.lede { max-width: 42rem; margin-top: 1.2rem; font-size: 1.2rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 560;
}
.btn-solid { background: var(--teal-deep); color: #f6f3ea; border-color: var(--teal-deep); }
.btn-solid:hover { background: var(--teal); }
.btn-line:hover { background: white; }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 3rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.hero-facts div { margin: 0; }
.hero-facts dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.hero-facts dd { margin: 0.25rem 0 0; font-family: var(--serif); font-size: 1.35rem; }

.section-head { max-width: 40rem; margin-bottom: 1.8rem; }
.section-head h2, .start h2, .case h3, .app h3, .paths h3, .stack h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.section-note { margin-top: 0.8rem; color: var(--muted); }

.work { padding-bottom: 2rem; }
.case {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}
.case-no { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 560; }
.case h3 { margin: 0.35rem 0 0.8rem; }
.case p { color: var(--muted); max-width: 40rem; }
.pieces { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 1.1rem 0; list-style: none; }
.pieces li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.88rem;
}
.text-link, .case-copy a { color: var(--teal-deep); font-weight: 560; }
.text-link:hover { color: var(--shop); }

.browser, .desk-card {
  background: #1b1914;
  color: #f6f1e6;
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
}
.browser-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.8rem;
  background: #2a261f;
}
.browser-top span { width: 8px; height: 8px; border-radius: 50%; background: #8d8372; }
.browser-top p { margin: 0 0 0 0.5rem; font-size: 0.75rem; color: #c8bfae; }
.shop-face { padding: 1.3rem 1.2rem 1.1rem; }
.mini-kicker { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #e7c27a; }
.mini-title { font-family: var(--serif); font-size: 2rem; margin: 0.4rem 0 0.9rem; line-height: 1; }
.mini-title em { font-style: italic; color: #f0d7a2; }
.mini-btn {
  display: inline-block;
  background: var(--shop);
  color: white;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}
.bay-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; list-style: none; padding: 1rem 0 0; margin: 0; }
.bay-row li { background: #2c2822; border-radius: 10px; padding: 0.55rem 0.4rem; font-size: 0.75rem; color: #d9d0c2; }
.bay-row b { display: block; font-family: var(--serif); font-size: 1.2rem; color: white; }

.desk-card { padding: 1.1rem 1rem 0.6rem; }
.desk-label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #e7c27a; }
.desk-card ul { list-style: none; padding: 0.4rem 0 0; margin: 0; }
.desk-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(246, 241, 230, 0.12);
}
.desk-card li span { min-width: 0; }
.desk-card em { flex: none; font-style: normal; color: #9ddecf; font-size: 0.88rem; }

.menu-names { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 1rem 0 0.55rem; }
.menu-names li { border: 1px solid var(--line); border-radius: 999px; padding: 0.28rem 0.7rem; font-size: 0.88rem; color: var(--ink); }
.menu-note { font-size: 0.95rem; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; }
.shots figure:first-child { grid-column: 1 / -1; }
.shots figure:first-child img { height: 280px; }

.phone {
  width: min(100%, 320px);
  margin-left: auto;
  background: #17140f;
  color: #f6f1e6;
  border-radius: 28px;
  padding: 1rem 0.9rem 0.7rem;
}
.phone-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.82rem; color: #e7c27a; }
.phone-top b { font-family: var(--serif); font-size: 1.35rem; color: white; font-weight: 560; }
.phone-h { font-family: var(--serif); font-size: 1.8rem; margin: 0.7rem 0 0.55rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chips span { border: 1px solid rgba(246, 241, 230, 0.2); border-radius: 999px; padding: 0.2rem 0.55rem; font-size: 0.75rem; }
.chips .on { background: #9d1c2e; border-color: #9d1c2e; }
.slots { list-style: none; padding: 0.4rem 0 0; margin: 0; }
.slots li { display: grid; grid-template-columns: 4.6rem 1fr auto; gap: 0.4rem; align-items: baseline; padding: 0.65rem 0; border-top: 1px solid rgba(246, 241, 230, 0.12); font-size: 0.86rem; }
.slots em { font-style: normal; color: #9ddecf; }
.tour-btn { margin-top: 0.8rem; background: #0c6e66; }
.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.2rem; margin-top: 0.9rem; padding-top: 0.55rem; border-top: 1px solid rgba(246, 241, 230, 0.12); font-size: 0.68rem; color: #c8bfae; text-align: center; }
.tabbar .on { color: white; font-weight: 560; }
.tabbar.tabbar-3 { grid-template-columns: repeat(3, 1fr); }
.station-btn { background: #c2410c; }

.apps { padding-top: 2.5rem; padding-bottom: 1rem; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.app {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.3rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.app p { color: var(--muted); flex: 1; }
.mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.mark svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.mark-nurse { background: #e5f4f1; color: var(--teal-deep); }
.mark-trap { background: #f8ecd4; color: #8a5a12; }
.mark-atlas { background: #f8e4e7; color: var(--shop); }

.offer { padding-top: 3.2rem; padding-bottom: 2rem; }
.stack {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.stack li, .paths article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.1rem;
}
.stack span { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.12em; }
.stack h3, .paths h3 { font-size: 1.7rem; margin: 0.35rem 0 0.45rem; }
.stack p, .paths p, .limits { color: var(--muted); }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.limits { margin: 1.2rem 0 0; padding-left: 1.1rem; }
.limits li + li { margin-top: 0.25rem; }

.start {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
  align-items: start;
}
.start address { font-style: normal; display: grid; gap: 0.35rem; margin-top: 1.2rem; }
.start address a { color: var(--teal-deep); font-weight: 560; text-decoration: none; font-size: 1.15rem; }
.lead {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.2rem;
  display: grid;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}
.lead label { display: grid; gap: 0.3rem; font-size: 0.92rem; font-weight: 480; }
.lead input, .lead select, .lead textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  min-height: 46px;
}
.lead textarea { min-height: 110px; resize: vertical; }
.lead input:focus, .lead select:focus, .lead textarea:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}
.hp { position: absolute; left: -9999px; }
.form-note { min-height: 1.2rem; color: var(--teal-deep); font-weight: 560; }
.form-note.is-error { color: var(--shop); }

.foot {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  padding-bottom: 2rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot p { margin: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 6vw 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); min-height: 44px; }
  .nav-start { border: 0; padding-left: 0; }
  .hero-facts, .case, .app-grid, .stack, .paths, .start, .shots { grid-template-columns: 1fr; }
  .shots figure:first-child { grid-column: auto; }
  .shots figure:first-child img, .shots img { height: 210px; }
  .hero { padding-top: 2.4rem; }
  .bay-row { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
