:root {
  --navy: #000b3d;
  --navy-2: #00145c;
  --ink: #12141a;
  --muted: #5c6170;
  --line: rgba(0, 11, 61, 0.12);
  --cream: #f3efe6;
  --paper: #faf8f3;
  --white: #ffffff;
  --gold: #e8a317;
  --green: #2e7d32;
  --pink: #c2185b;
  --shadow: 0 24px 60px rgba(0, 11, 61, 0.16);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { font-family: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}
.logo-extended {
  display: block;
  height: clamp(48px, 8vw, 72px);
  width: auto;
  max-width: min(100%, 340px);
  object-fit: contain;
  margin: 0 0 18px;
}
.logo-pos {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.offer .logo-pos { height: 40px; margin-bottom: 16px; }
.device-bar .logo-pos {
  height: 22px;
  border-radius: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
}
.nav a:hover { color: var(--navy); }
.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}
.lang button.on {
  background: var(--navy);
  color: #fff;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero {
  padding: 72px 0 48px;
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 16px;
}
.hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--navy);
  max-width: 16ch;
}
.hero p.lede {
  max-width: 42ch;
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: end;
}

.section {
  padding: 88px 0;
}
.section h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 12px;
}
.section .intro {
  max-width: 58ch;
  color: var(--muted);
  margin: 0 0 36px;
}

.profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.portrait {
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 28px 24px 24px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.portrait .mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.portrait h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  margin: 0 0 6px;
  font-weight: 500;
}
.portrait p { margin: 0; color: rgba(255,255,255,0.72); font-size: 14px; }
.bio p { margin: 0 0 16px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--paper);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.offer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 220px;
}
.offer .num {
  font-family: Fraunces, Georgia, serif;
  color: var(--gold);
  font-size: 28px;
  margin-bottom: 18px;
}
.offer h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.offer p { margin: 0; color: var(--muted); font-size: 14px; }

.navy-band {
  background: var(--navy);
  color: #fff;
  border-radius: 32px;
  padding: 48px;
}
.navy-band h2 { color: #fff; }
.navy-band .intro { color: rgba(255,255,255,0.7); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.work-grid h3 { margin: 0 0 8px; font-size: 16px; }
.work-grid p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.68); }

.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.tabs {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}
.tabs button.on { background: var(--navy); color: #fff; }

.stage { display: none; }
.stage.on { display: block; }

.device {
  background: #1a1c22;
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.device-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9aa0ad;
  font-size: 12px;
  padding: 0 8px 12px;
  gap: 10px;
}
.pos {
  display: grid;
  grid-template-columns: 0.95fr 0.32fr 1.55fr;
  min-height: 430px;
  background: #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  font-size: 12px;
}
.pos-order {
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ddd;
}
.pos-order h4 { margin: 0 0 10px; font-size: 13px; }
.line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.pos-total {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
.pos-cats {
  background: #d9d9d9;
  display: flex;
  flex-direction: column;
}
.pos-cats button {
  border: 0;
  background: transparent;
  padding: 14px 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #333;
}
.pos-cats button.on { background: var(--navy); color: #fff; }
.pos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  align-content: start;
}
.tile {
  background: #fff;
  border-radius: 8px;
  min-height: 78px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.tile b { font-size: 12px; }
.tile span { color: var(--muted); font-size: 11px; }
.tile:nth-child(3n) { background: #fff8e8; }

.dash {
  background: #fff;
  border-radius: 12px;
  min-height: 430px;
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  font-size: 12px;
}
.dash-side {
  border-right: 1px solid #e5e7eb;
  padding: 16px 12px;
}
.dash-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  font-weight: 700;
}
.dash-brand img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.dash-nav { color: #6b7280; display: grid; gap: 6px; }
.dash-nav span {
  padding: 8px 10px;
  border-radius: 8px;
}
.dash-nav .active {
  background: var(--navy);
  color: #fff;
}
.dash-main { padding: 16px; }
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.kpi {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}
.kpi small { color: #6b7280; }
.kpi strong { display: block; font-size: 16px; margin-top: 4px; color: var(--navy); }
.chart {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  height: 220px;
}
.bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 160px;
  padding-top: 12px;
}
.bars i {
  flex: 1;
  background: var(--navy);
  border-radius: 6px 6px 0 0;
  display: block;
  opacity: 0.85;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.portfolio-head .logo-pos {
  height: 52px;
  max-width: 240px;
  margin: 0 0 10px;
}
.product-line {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.caption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  max-width: 72ch;
}

.feat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.feat-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink);
  font-size: 14px;
}
.feat-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 7px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}
.contact-card a.plain {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.contact-card a.plain:hover { text-decoration: underline; }
.fields { display: grid; gap: 10px; }
.fields input, .fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
.note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

footer {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-brand img {
  height: 28px;
  width: 28px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .hero-grid, .profile, .offer-grid, .work-grid, .contact-card, .dash, .pos {
    grid-template-columns: 1fr;
  }
  .pos { min-height: auto; }
  .pos-cats { flex-direction: row; overflow-x: auto; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .navy-band { padding: 28px; }
}
