:root {
  --ink: #1f2024;
  --muted: #74716d;
  --line: #e4ded7;
  --paper: #f5f0e8;
  --panel: #ffffff;
  --accent: #831b22;
  --accent-2: #b88746;
  --accent-3: #2a2f35;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(24, 32, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(131, 27, 34, 0.10), transparent 34%),
    linear-gradient(315deg, rgba(184, 135, 70, 0.16), transparent 38%),
    var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-rows: 70px minmax(0, 1fr) 54px;
  height: 100%;
  min-height: 100%;
}

.topbar {
  z-index: 20;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) auto;
  gap: 0;
  align-items: stretch;
  padding: 0;
  border-bottom: 0;
  background: #f8f3eb;
  box-shadow: 0 1px 0 rgba(131, 27, 34, 0.12);
}

.brand {
  display: inline-flex;
  justify-content: center;
  gap: 0;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding: 0 18px;
  color: inherit;
  text-decoration: none;
  background: #fffaf3;
}

.brand-logo {
  width: 128px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.brand span,
.brand strong,
.brand small {
  display: none;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.slide-tabs {
  display: flex;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: #f8f3eb;
}

.slide-tabs::-webkit-scrollbar {
  display: none;
}

.slide-tab {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  align-items: center;
  max-width: 180px;
  height: 100%;
  padding: 0 18px;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgba(131, 27, 34, 0.12);
  border-radius: 0;
  color: #5d5550;
  background: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.slide-tab.active {
  color: #fff;
  border-color: transparent;
  background: var(--accent);
  box-shadow: none;
}

.top-actions,
.control-buttons,
.backup-actions,
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.top-actions {
  height: 100%;
  gap: 0;
  align-items: stretch;
  flex-wrap: nowrap;
  background: #f8f3eb;
}

.top-actions .ghost-button,
.top-actions .primary-button {
  min-width: 92px;
  height: 100%;
  border-radius: 0;
  border-top: 0;
  border-bottom: 0;
  border-right: 0;
}

.top-actions .ghost-button {
  background: transparent;
}

.primary-button,
.ghost-button,
.small-button,
.icon-button {
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}

.primary-button {
  padding: 11px 16px;
  color: #fff;
  background: var(--accent);
}

.ghost-button {
  padding: 10px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.ghost-button.danger {
  color: var(--danger);
}

.small-button {
  padding: 8px 11px;
  color: #fff;
  background: var(--accent-3);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: #eef2f5;
  font-size: 24px;
  line-height: 1;
}

.stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: stretch;
  padding: 0;
}

.slide-frame {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: var(--accent);
  box-shadow: none;
}

.pdf-canvas,
.slide-image {
  display: none;
  width: 100%;
  height: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #fff;
}

.modern-slide {
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  color: #fdf8ef;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.13), transparent 26%),
    linear-gradient(135deg, #831b22 0%, #681419 52%, #2a1719 100%);
}

.modern-slide::before {
  position: absolute;
  inset: 24px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  content: "";
}

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-position: center;
  background-size: cover;
  filter: saturate(0.88) contrast(1.06);
}

.slide-bg::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(82, 16, 20, 0.94), rgba(82, 16, 20, 0.68), rgba(42, 47, 53, 0.28));
  content: "";
}

.brand-pattern {
  position: absolute;
  inset: auto -8% -24% auto;
  width: 42%;
  aspect-ratio: 1;
  border: 28px solid rgba(255, 255, 255, 0.045);
  transform: rotate(10deg);
}

.brand-pattern::before,
.brand-pattern::after {
  position: absolute;
  border: 20px solid rgba(255, 255, 255, 0.04);
  content: "";
}

.brand-pattern::before {
  inset: 18% 32% 14% -22%;
}

.brand-pattern::after {
  inset: -18% -12% 34% 44%;
}

.corner-line {
  position: absolute;
  top: 32px;
  right: 40px;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58));
}

.slide-number {
  position: absolute;
  right: 40px;
  bottom: 28px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.slide-logo {
  width: min(235px, 28vw);
  height: auto;
  object-fit: contain;
}

.cover-content,
.section-slide,
.closing-slide {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(720px, 72%);
  padding: clamp(34px, 5vw, 68px);
  align-self: center;
  justify-self: start;
}

.closing-slide {
  width: min(980px, 86%);
  justify-items: center;
  justify-self: center;
  text-align: center;
}

.closing-slide .slide-logo {
  width: min(270px, 30vw);
}

.closing-slide h1 {
  max-width: 900px;
}

.closing-slide p:not(.slide-kicker) {
  max-width: 760px;
}

.closing-slide .contact-row {
  justify-content: center;
}

.cover-content h1,
.section-slide h1,
.closing-slide h1,
.copy-block h1,
.project-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5.8vw, 78px);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.cover-content p,
.section-slide p,
.closing-slide p,
.slide-text,
.project-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 248, 239, 0.82);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.45;
}

.end-aura {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.16), transparent 25%),
    radial-gradient(circle at 50% 52%, rgba(241, 194, 122, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 48%);
}

.end-pattern {
  position: absolute;
  inset: 9% 8%;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.end-pattern::before,
.end-pattern::after {
  position: absolute;
  content: "";
  border: 22px solid rgba(255, 255, 255, 0.045);
  transform: rotate(10deg);
}

.end-pattern::before {
  right: -4%;
  bottom: -15%;
  width: 28%;
  aspect-ratio: 1.45;
}

.end-pattern::after {
  top: -12%;
  left: -6%;
  width: 18%;
  aspect-ratio: 1.2;
}

.end-slide {
  display: grid;
  gap: clamp(18px, 2.8vh, 34px);
  place-items: center;
  width: min(980px, 82vw);
  margin: 0 auto;
  text-align: center;
}

.end-slide .slide-logo {
  width: min(520px, 44vw);
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.28));
}

.end-signature {
  margin: clamp(16px, 3vh, 32px) 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Ortisan Signature", "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(36px, 4.8vw, 66px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  text-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.end-line {
  width: min(500px, 46vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 194, 122, 0.82), transparent);
}

.end-site {
  margin: 0;
  color: rgba(255, 248, 239, 0.92);
  font-size: clamp(14px, 1.35vw, 19px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.34em;
  text-transform: lowercase;
}

.slide-kicker {
  margin: 0;
  color: #f1c27a;
  font-size: clamp(10px, 0.95vw, 13px);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(32px, 5vw, 64px);
}

.copy-block {
  display: grid;
  gap: 14px;
  max-width: 610px;
}

.modern-slide > .copy-block {
  position: absolute;
  top: clamp(34px, 5vw, 64px);
  left: clamp(34px, 5vw, 64px);
  z-index: 2;
  width: min(610px, 52vw);
}

.modern-slide > .copy-block h1 {
  font-size: clamp(32px, 4.8vw, 66px);
}

.center-slide {
  display: grid;
  gap: clamp(28px, 4.2vh, 48px);
  align-content: center;
  justify-items: center;
  width: min(1180px, 86vw);
  height: 100%;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 76px) 0;
  text-align: center;
}

.center-slide .copy-block {
  max-width: none;
  justify-items: center;
}

.center-slide .copy-block h1 {
  max-width: none;
  font-size: clamp(42px, 6vw, 78px);
  white-space: nowrap;
}

.center-slide .slide-text {
  max-width: 760px;
}

.bullet-list {
  display: grid;
  gap: 9px;
  align-self: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  padding: 10px 13px;
  border-left: 3px solid #f1c27a;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 248, 239, 0.9);
  font-weight: 700;
  font-size: clamp(13px, 1.05vw, 16px);
}

.story-slide {
  display: grid;
  grid-template-columns: minmax(440px, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(28px, 4.2vw, 56px);
}

.story-copy {
  display: grid;
  gap: clamp(10px, 1.2vw, 16px);
  align-content: center;
  max-width: 780px;
}

.story-copy .slide-logo {
  width: min(210px, 24vw);
  margin-bottom: clamp(2px, 0.6vw, 8px);
}

.story-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5.3vw, 74px);
  line-height: 0.94;
}

.story-text {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.story-text p {
  margin: 0;
  color: rgba(255, 248, 239, 0.86);
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.48;
}

.story-text strong {
  color: #f1c27a;
  font-weight: 900;
}

.story-portrait {
  justify-self: center;
  width: min(34vw, 460px);
  margin: 0;
}

.story-portrait > img {
  width: 100%;
  max-height: min(72vh, 620px);
  object-fit: contain;
}

.services-slide {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(620px, 1.22fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(34px, 5vw, 64px);
}

.services-intro {
  display: grid;
  gap: 14px;
  align-content: center;
  max-width: 560px;
}

.services-intro h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.92;
  text-wrap: balance;
}

.services-intro p:not(.slide-kicker) {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 248, 239, 0.84);
  font-size: clamp(15px, 1.28vw, 19px);
  line-height: 1.45;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
  height: min(66vh, 560px);
  min-height: 0;
}

.service-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
}

.service-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(39, 11, 14, 0.04) 0%, rgba(39, 11, 14, 0.4) 46%, rgba(39, 11, 14, 0.88) 100%);
  content: "";
}

.service-card > div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: grid;
  gap: 7px;
  padding: 18px;
}

.service-card span {
  color: #fff;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 900;
}

.service-card p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 248, 239, 0.82);
  font-size: clamp(12px, 0.95vw, 15px);
  line-height: 1.38;
}

.culture-slide {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(24px, 4vh, 46px);
  align-content: center;
  width: min(1180px, 86vw);
  height: 100%;
  margin: 0 auto;
  padding: clamp(44px, 5vw, 70px) 0;
}

.culture-heading {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.culture-heading h1 {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.92;
  text-wrap: balance;
}

.culture-heading p:not(.slide-kicker) {
  max-width: 800px;
  margin: 0;
  color: rgba(255, 248, 239, 0.84);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.45;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: clamp(16px, 2vw, 26px);
  align-self: center;
}

.culture-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: clamp(280px, 38vh, 360px);
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.culture-icon {
  display: grid;
  width: clamp(78px, 7vw, 112px);
  height: clamp(78px, 7vw, 112px);
  place-items: center;
  border-radius: 8px;
  background: rgba(241, 194, 122, 0.12);
}

.culture-icon svg {
  width: 72%;
  height: 72%;
  fill: none;
  stroke: #f1c27a;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.culture-card strong {
  color: #fff;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.05;
}

.culture-card p {
  margin: 0;
  color: rgba(255, 248, 239, 0.82);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.42;
}

.operation-slide {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(14px, 2vh, 24px);
  align-content: center;
  width: min(1180px, 86vw);
  height: 100%;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 38px) 0;
}

.operation-heading {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.operation-heading h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.92;
  white-space: nowrap;
}

.operation-heading p:not(.slide-kicker) {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 248, 239, 0.84);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.45;
}

.operation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
  align-self: center;
}

.operation-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: clamp(92px, 12.5vh, 130px);
  padding: clamp(12px, 1.45vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.18);
}

.operation-number {
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(241, 194, 122, 0.48);
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 900;
}

.operation-icon {
  display: grid;
  width: clamp(42px, 4vw, 62px);
  height: clamp(42px, 4vw, 62px);
  place-items: center;
  border-radius: 8px;
  background: rgba(241, 194, 122, 0.12);
}

.operation-icon svg {
  width: 70%;
  height: 70%;
  fill: none;
  stroke: #f1c27a;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.operation-card strong {
  max-width: 280px;
  color: #fff;
  font-size: clamp(16px, 1.25vw, 22px);
  line-height: 1.08;
}

.team-slide {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(22px, 3vh, 34px);
  align-content: center;
  justify-items: center;
  width: min(1180px, 86vw);
  height: 100%;
  margin: 0 auto;
  padding: clamp(42px, 5vw, 66px) 0;
  text-align: center;
}

.team-heading {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: 900px;
}

.team-heading h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.92;
  white-space: nowrap;
}

.team-heading p:not(.slide-kicker) {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 248, 239, 0.84);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.45;
}

.team-photo {
  width: min(82vw, 1040px);
  margin: 0;
  align-self: end;
}

.team-photo > img {
  width: auto;
  max-width: 100%;
  max-height: min(56vh, 500px);
  margin: 0 auto;
}

.image-gallery-slide {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(14px, 2vh, 26px);
  align-content: center;
  justify-items: center;
  width: min(1180px, 86vw);
  height: 100%;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 0;
  text-align: center;
}

.image-gallery-heading {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: 1040px;
}

.image-gallery-heading h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.95;
  text-wrap: balance;
}

.image-gallery-heading p:not(.slide-kicker) {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 248, 239, 0.84);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.45;
}

.image-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.5vh, 16px);
  align-self: end;
  width: min(86vw, 1120px);
  min-height: 0;
  justify-items: center;
}

.image-gallery-photo {
  width: 100%;
  margin: 0;
}

.image-gallery-photo > img {
  width: auto;
  max-width: 100%;
  max-height: min(25vh, 240px);
  margin: 0 auto;
}

.media-panel {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.media-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-natural {
  position: relative;
  overflow: visible;
  background: transparent;
}

.media-natural > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  object-fit: unset;
}

.media-panel.media-portrait {
  width: min(34vw, 390px);
  justify-self: center;
}

.media-panel.media-landscape,
.media-panel.media-standard {
  width: min(44vw, 620px);
}

.media-panel.media-panorama {
  width: min(48vw, 720px);
}

.value-grid,
.stat-grid,
.process-grid {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: clamp(32px, 5vw, 64px);
  align-self: end;
}

.modern-slide > .value-grid,
.modern-slide > .stat-grid,
.modern-slide > .process-grid {
  padding-top: min(255px, 28vh);
}

.modern-slide > .stat-grid {
  align-self: center;
  grid-template-columns: repeat(2, minmax(260px, 420px));
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  padding-top: clamp(210px, 25vh, 280px);
  padding-bottom: clamp(56px, 8vh, 90px);
}

.center-slide > .value-grid,
.center-slide > .stat-grid {
  padding: 0;
  align-self: auto;
}

.center-slide > .stat-grid {
  grid-template-columns: repeat(2, minmax(280px, 420px));
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
}

.center-slide > .value-grid {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
}

.value-grid article,
.stat-grid article,
.process-grid article {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.value-grid article {
  min-height: 150px;
  padding: 18px;
}

.value-grid span {
  display: block;
  margin-bottom: 14px;
  color: #f1c27a;
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 900;
}

.value-grid p {
  margin: 0;
  color: rgba(255, 248, 239, 0.82);
  line-height: 1.42;
  font-size: clamp(13px, 1.05vw, 16px);
}

.stat-grid {
  grid-template-columns: repeat(2, 1fr);
}

.stat-grid article,
.big-metric {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 190px;
  padding: 20px;
  text-align: center;
}

.modern-slide > .stat-grid article {
  min-height: clamp(210px, 28vh, 280px);
}

.center-slide > .stat-grid article {
  min-height: clamp(190px, 25vh, 260px);
}

.stat-grid strong,
.big-metric strong {
  color: #fff;
  font-size: clamp(42px, 6.5vw, 86px);
  line-height: 0.9;
}

.stat-grid span,
.big-metric span {
  max-width: 360px;
  color: rgba(255, 248, 239, 0.78);
  font-weight: 800;
  text-transform: uppercase;
}

.big-metric {
  position: absolute;
  right: clamp(42px, 7vw, 90px);
  bottom: clamp(32px, 5vw, 64px);
  width: min(380px, 32%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.modern-slide > .big-metric {
  top: auto;
}

.metric-slide {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(22px, 3.2vh, 34px);
  align-content: center;
  justify-items: center;
  width: min(1120px, 86vw);
  height: 100%;
  margin: 0 auto;
  padding: clamp(42px, 5vw, 66px) 0;
  text-align: center;
}

.metric-slide .copy-block {
  max-width: 940px;
  justify-items: center;
}

.metric-slide .copy-block h1 {
  font-size: clamp(44px, 6vw, 82px);
  white-space: nowrap;
}

.metric-slide .slide-text {
  max-width: 760px;
}

.metric-chart {
  width: min(82vw, 980px);
  margin: 0;
  align-self: end;
}

.metric-chart > img {
  width: auto;
  max-width: 100%;
  max-height: min(56vh, 520px);
  margin: 0 auto;
}

.metric-media {
  position: absolute;
  right: clamp(34px, 5vw, 64px);
  top: clamp(34px, 5vw, 64px);
  width: min(460px, 36vw);
  height: min(48vh, 420px);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.metric-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.process-grid {
  grid-template-columns: repeat(3, 1fr);
  align-self: center;
  margin-top: 88px;
}

.process-grid article {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  padding: 12px;
}

.process-grid b {
  color: #f1c27a;
  font-size: 20px;
}

.process-grid span {
  color: rgba(255, 248, 239, 0.9);
  font-weight: 800;
  font-size: clamp(12px, 1vw, 15px);
}

.project-slide {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(430px, 1.38fr);
  gap: clamp(18px, 3.2vw, 44px);
  width: 100%;
  height: 100%;
  padding: clamp(32px, 5vw, 64px);
  align-items: center;
}

.project-slide.project-portrait {
  grid-template-columns: minmax(320px, 0.9fr) minmax(280px, 0.72fr);
}

.project-slide.project-panorama {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: center;
}

.project-slide.project-panorama .project-copy {
  max-width: 980px;
}

.project-slide.project-panorama .project-copy h1 {
  font-size: clamp(32px, 4.5vw, 62px);
}

.project-slide.project-panorama .project-media {
  justify-self: stretch;
}

.project-slide.project-large-bottom {
  grid-template-columns: 1fr;
  grid-template-rows: min-content min-content;
  gap: clamp(12px, 2vh, 22px);
  align-content: center;
  padding-top: clamp(18px, 2.4vw, 30px);
  padding-bottom: clamp(14px, 2.4vw, 28px);
}

.project-slide.project-large-bottom .project-copy {
  max-width: 980px;
  align-content: center;
  justify-items: center;
  justify-self: center;
  gap: 6px;
  text-align: center;
}

.project-slide.project-large-bottom .project-copy h1 {
  font-size: clamp(34px, 4.4vw, 60px);
}

.project-slide.project-large-bottom .project-copy p {
  max-width: 820px;
  font-size: clamp(14px, 1.05vw, 17px);
}

.project-slide.project-large-bottom .project-media {
  align-self: center;
  justify-self: stretch;
  align-content: center;
  justify-items: center;
  gap: 8px;
}

.project-slide.project-large-bottom .project-main {
  width: auto;
  max-width: min(86vw, 1120px);
  height: min(52vh, 480px);
  max-height: none;
  justify-self: center;
}

.project-slide.project-large-bottom .project-main > img {
  width: auto;
  max-width: min(86vw, 1120px);
  height: min(52vh, 480px);
  max-height: none;
  object-fit: contain;
}

.project-slide.project-large-bottom .project-thumbs {
  position: static;
  justify-self: end;
  width: min(86vw, 1120px, calc(min(52vh, 480px) * var(--media-ratio)));
  justify-content: flex-end;
  margin-top: 0;
}

.project-copy {
  display: grid;
  gap: 12px;
  align-content: center;
}

.project-copy strong {
  color: #f1c27a;
  font-size: clamp(15px, 1.5vw, 20px);
  text-transform: uppercase;
}

.project-media {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.project-main {
  width: auto;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.project-main.media-portrait {
  height: min(70vh, 640px);
}

.project-main.media-portrait > img {
  width: auto;
  max-width: min(42vw, 520px);
  height: min(70vh, 640px);
}

.project-main.media-landscape,
.project-main.media-standard {
  width: min(58vw, 780px);
}

.project-main.media-panorama {
  width: min(86vw, 1120px);
}

.project-thumbs {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
}

.project-thumbs img {
  width: 108px;
  height: 76px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  object-fit: cover;
}

.contact-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.contact-row span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
}

.fallback-slide {
  display: grid;
  gap: 18px;
  width: min(820px, 92%);
  padding: 64px clamp(24px, 6vw, 72px);
}

.fallback-slide h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.fallback-slide p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 52px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: rgba(32, 35, 39, 0.74);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 26px rgba(24, 32, 42, 0.08);
  font-size: 42px;
  transform: translateY(-50%);
  opacity: 0.58;
  transition: opacity 0.18s ease, background 0.18s ease;
}

.nav-arrow:hover,
.nav-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.42);
  opacity: 0.82;
}

.nav-arrow.left {
  left: clamp(10px, 2vw, 28px);
}

.nav-arrow.right {
  right: clamp(10px, 2vw, 28px);
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 20px;
  background: #f8f3eb;
  box-shadow: 0 -1px 0 rgba(131, 27, 34, 0.12);
}

.progress {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-weight: 700;
}

.progress-track {
  flex: 1;
  max-width: 520px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8dee5;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 220ms ease;
}

.editor-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(460px, 100vw);
  height: 100%;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateX(106%);
  transition: transform 220ms ease;
}

.editor-panel.open {
  transform: translateX(0);
}

.panel-header,
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.modal-header h2,
.editor-section h3 {
  margin: 0;
}

.panel-body {
  overflow: auto;
  padding: 18px 22px 28px;
}

.editor-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-box {
  display: grid;
  gap: 6px;
  padding: 18px;
  margin-top: 12px;
  border: 1px dashed #aeb8c5;
  border-radius: 8px;
  background: #f8fafb;
  cursor: pointer;
}

.upload-box input,
.file-button input {
  display: none;
}

.upload-box span {
  color: var(--accent-3);
  font-weight: 800;
}

.upload-box small,
.helper {
  color: var(--muted);
}

.helper {
  margin: 10px 0 0;
  font-size: 13px;
}

.title-list,
.work-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.title-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: center;
}

.title-row span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent-3);
  font-weight: 800;
}

.work-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.work-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.work-form input,
.work-form textarea,
.work-form select,
.title-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

.work-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.work-thumb {
  width: 56px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
  background: linear-gradient(135deg, #dfe5ec, #f9fafb);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  padding: clamp(14px, 3vw, 38px);
  background: rgba(24, 32, 42, 0.54);
}

.overlay.open {
  display: grid;
  place-items: center;
}

.works-modal {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(1320px, 100%);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.works-layout {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.works-browser {
  position: relative;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: #fbf7f1;
}

.works-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 58px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.work-card {
  display: grid;
  grid-template-rows: 112px auto auto;
  flex: 0 0 clamp(210px, 19vw, 260px) !important;
  min-width: clamp(210px, 19vw, 260px);
  gap: 6px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: #fff;
  scroll-snap-align: center;
}

.work-card.active {
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(131, 27, 34, 0.22);
}

.work-card img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  background: #211417;
}

.work-card span,
.work-card small {
  margin: 0 10px;
}

.work-card span {
  font-weight: 800;
  line-height: 1.15;
  font-size: 15px;
}

.work-card small {
  margin-bottom: 9px;
  color: var(--muted);
  line-height: 1.25;
  font-size: 12px;
}

.works-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(131, 27, 34, 0.16);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(31, 32, 36, 0.14);
  font-size: 34px;
  font-weight: 800;
  transform: translateY(-50%);
}

.works-nav.left {
  left: 12px;
}

.works-nav.right {
  right: 12px;
}

.work-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
  gap: 18px 26px;
  align-items: start;
  min-height: 0;
  overflow: auto;
  padding: 16px clamp(22px, 3vw, 36px);
}

.work-detail-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.work-detail h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.work-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-cover {
  width: 100%;
  height: min(52vh, 520px);
  max-height: none;
  border-radius: 8px;
  object-fit: contain;
  background: #211417;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.gallery-button {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #211417;
}

.gallery-button.active {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(131, 27, 34, 0.22);
}

.gallery-button img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: contain;
}

.slide-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  place-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-weight: 700;
}

.slide-loading.show {
  display: grid;
}

.loader {
  width: 36px;
  height: 36px;
  border: 4px solid #dfe5ec;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent-3);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: 180ms ease;
  pointer-events: none;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .slide-tabs {
    grid-column: 1 / -1;
    order: 3;
  }

  .brand {
    min-width: 0;
  }

  .stage {
    padding: 14px 12px 20px;
  }

  .slide-frame {
    min-height: 58vh;
  }

  .nav-arrow {
    width: 42px;
    height: 58px;
    font-size: 34px;
  }

  .center-slide {
    width: min(92vw, 720px);
  }

  .center-slide .copy-block h1 {
    white-space: normal;
  }

  .center-slide > .value-grid,
  .center-slide > .stat-grid {
    grid-template-columns: 1fr;
  }

  .services-slide {
    grid-template-columns: 1fr;
    align-content: start;
    overflow: auto;
  }

  .services-intro {
    max-width: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .metric-slide {
    width: min(92vw, 720px);
  }

  .metric-slide .copy-block h1 {
    white-space: normal;
  }

  .metric-chart {
    width: min(92vw, 720px);
  }

  .culture-slide {
    width: min(92vw, 720px);
    overflow: auto;
  }

  .culture-grid {
    grid-template-columns: 1fr;
  }

  .culture-card {
    min-height: auto;
  }

  .operation-slide {
    width: min(92vw, 720px);
    overflow: auto;
  }

  .operation-heading h1 {
    white-space: normal;
  }

  .operation-grid {
    grid-template-columns: 1fr;
  }

  .operation-card {
    min-height: auto;
  }

  .team-slide {
    width: min(92vw, 720px);
  }

  .team-heading h1 {
    white-space: normal;
  }

  .team-photo {
    width: min(92vw, 720px);
  }

  .image-gallery-slide {
    width: min(92vw, 720px);
    overflow: auto;
  }

  .image-gallery-grid {
    width: min(92vw, 720px);
  }

  .end-slide {
    width: min(86vw, 680px);
  }

  .end-slide .slide-logo {
    width: min(76vw, 420px);
  }

  .end-signature {
    font-size: clamp(30px, 7vw, 46px);
    white-space: normal;
  }

  .end-site {
    max-width: 86vw;
    letter-spacing: 0.18em;
  }

  .controls {
    display: grid;
  }

  .progress {
    min-width: 0;
  }

  .works-layout {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .works-grid {
    padding-inline: 56px;
  }

  .work-card {
    flex-basis: 230px;
  }

  .work-detail {
    grid-template-columns: 1fr;
  }

  .detail-cover,
  .gallery,
  .work-detail-copy {
    grid-column: auto;
    grid-row: auto;
  }
}
