/* ==========================================================================
   2. DECK & SLIDE LAYOUT SYSTEM (layout.css)
   ========================================================================== */

.deck {
  height: 100vh;
  height: 100svh;
  overflow-y: hidden;
  overflow-x: hidden;
  overscroll-behavior: none;
  scrollbar-width: none;
  position: relative;
}

.deck::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.slide:nth-child(even) {
  background: var(--bg2);
}

/* Subtle architectural grid background */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(118, 151, 200, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 151, 200, 0.065) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* Top gold accent bar per slide */
.slide::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: max(64px, calc((100% - 1220px) / 2));
  width: min(32vw, 380px);
  height: 3px;
  background: var(--gold);
}

.inner {
  width: min(1220px, calc(100% - 140px));
  height: 100%;
  margin: 0 auto;
  padding: 54px 0 64px;
  display: grid;
  align-items: center;
}

.mark {
  position: absolute;
  top: 24px;
  left: max(64px, calc((100% - 1220px) / 2));
  margin: 0;
  color: var(--gold);
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 5;
}

/* Typography Hierarchy */
h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  letter-spacing: -0.035em;
}

h1 {
  max-width: 740px;
  margin-bottom: 14px;
  font-size: clamp(38px, 4.7vw, 66px);
  line-height: 1.02;
}

h2 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.2;
}

.accent {
  color: var(--gold);
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(14.5px, 1.2vw, 17.5px);
  line-height: 1.55;
}

.mono {
  font-family: var(--font-mono);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(232, 168, 56, 0.08);
  color: var(--gold2);
  font: 500 10.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* Slide 1: Hero Grid (No Overlap with Portrait!) */
.hero {
  grid-template-columns: minmax(0, 1.32fr) minmax(290px, 0.68fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.capabilities {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.capability {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-glass);
}

.capability span {
  display: block;
  color: var(--gold);
  font: 500 10px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.capability strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.capability small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 0.7fr 1.15fr 1.15fr;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.hero-stat {
  padding: 11px 14px 0;
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat + .hero-stat {
  border-left: 1px solid var(--line);
}

.hero-stat strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}

.hero-stat span {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font: 9.5px var(--font-mono);
  text-transform: uppercase;
}

/* Dedicated Portrait Card in Hero Right Column */
.hero-portrait-card {
  position: relative;
  z-index: 2;
  max-width: 340px;
  width: 100%;
  justify-self: end;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg2) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-portrait-frame {
  width: 100%;
  height: min(46vh, 370px);
  overflow: hidden;
  position: relative;
  background: #060d18;
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-portrait-card:hover .hero-portrait-frame img {
  transform: scale(1.03);
}

.hero-portrait-info {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: rgba(10, 22, 40, 0.92);
}

.hero-portrait-info strong {
  display: block;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.hero-portrait-info span {
  display: block;
  margin-top: 3px;
  color: var(--gold2);
  font: 500 9.5px/1.4 var(--font-mono);
  text-transform: uppercase;
}

/* Slide 2: Profile Split Layout */
.split {
  grid-template-columns: 1.18fr 0.82fr;
  gap: 5vw;
  align-items: center;
}

.body-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(13.5px, 1.15vw, 16.5px);
  line-height: 1.6;
}

.body-copy:first-of-type {
  color: var(--text);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.45;
}

.body-copy + .body-copy {
  margin-top: 10px;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
  background: rgba(15, 32, 64, 0.45);
  padding: 4px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.facts div:last-child {
  border-bottom: none;
}

.facts dt {
  color: var(--gold);
  font: 500 10px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.facts dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

/* Slide 3: Capabilities / Services */
.services {
  grid-template-columns: 0.62fr 1.38fr;
  gap: 4.5vw;
  align-items: center;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.service-card {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.service-card:first-child {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.service-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 600 11px var(--font-mono);
  margin-bottom: 16px;
}

.service-card h3 {
  margin-top: auto;
  margin-bottom: 8px;
  font-size: 17.5px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.service-card:first-child p {
  color: rgba(25, 19, 9, 0.82);
}

.toolstrip {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10.5px/1.75 var(--font-mono);
}

.toolstrip strong {
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
}

/* Slide 4: Flagship Project Main */
.project-main {
  grid-template-columns: 0.78fr 1.22fr;
  gap: 4vw;
  align-items: center;
}

/* Slide 5 & Slide 7: Section Head & 3-Column Grids */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding-right: 112px;
}

.workflow-layout h2 {
  font-size: clamp(24px, 2.75vw, 38px);
  line-height: 1.08;
  margin-bottom: 10px;
}

.workflow-layout .lead {
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.48;
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.work-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* Slide 6: 3D Akar Companion Showcase */
.akar-slide {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 4.5vw;
  align-items: center;
}

.akar-space {
  min-height: 54vh;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(232, 168, 56, 0.28);
  background: radial-gradient(circle at center, rgba(232, 168, 56, 0.08) 0%, transparent 70%);
  display: grid;
  place-items: center;
  position: relative;
}

.akar-prompt {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--gold2);
  font: 11px/1.5 var(--font-mono);
}

/* Slide 8: Automation Workflows Layout */
.workflow-layout {
  grid-template-columns: 0.58fr 1.42fr;
  gap: 4.5vw;
  align-items: center;
}

.workflow-list {
  border-top: 1px solid var(--line);
}

.workflow {
  display: grid;
  grid-template-columns: 46px 92px minmax(155px, 0.72fr) 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.workflow:hover {
  background: rgba(255, 255, 255, 0.04);
}

.workflow img {
  width: 92px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.workflow b {
  font-size: 13.5px;
  color: var(--text);
}

.workflow p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.workflow .index {
  margin: 0;
}

/* Slide 9: Updates & Principle 2-Column Layout */
.updates {
  grid-template-columns: 0.88fr 1.12fr;
  gap: 5vw;
  align-items: center;
}

.updates-list {
  border-top: 1px solid var(--line);
}

.update {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.update time {
  color: var(--gold);
  font: 500 10px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.update strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 4px;
  color: var(--text);
}

.update p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.principle {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  align-items: center;
  margin: 18px 0 0;
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.principle img {
  width: 124px;
  height: 108px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius-sm);
  display: block;
}

.principle blockquote {
  margin: 0;
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.38;
  font-weight: 500;
  color: var(--text);
}

.principle cite {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font: 500 9.5px var(--font-mono);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Slide 10: Contact 2-Column Layout */
.contact {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5.5vw;
  align-items: center;
}

.contact h2 {
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.02;
}

.direct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.direct a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.direct a:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.direct a:first-child {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.direct a:first-child span {
  color: rgba(25, 19, 9, 0.72);
}

.direct span {
  color: var(--gold);
  font: 500 9.5px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.direct strong {
  font-size: 13.5px;
  word-break: break-all;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.socials a {
  padding: 0 12px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: 500 10px var(--font-mono);
  text-decoration: none;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .inner {
    width: min(100% - 84px, 820px);
  }
  .mark, .slide::after {
    left: 42px;
  }
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
  }
  .services, .project-main, .workflow-layout, .updates, .contact {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .service-card {
    min-height: 190px;
  }
}

@media (max-height: 740px) and (min-width: 681px) {
  .inner {
    padding: 42px 0 54px;
  }
  .mark {
    top: 18px;
  }
  h1 {
    font-size: clamp(34px, 4.2vw, 54px);
    margin-bottom: 10px;
  }
  h2 {
    font-size: clamp(26px, 3.3vw, 44px);
    margin-bottom: 10px;
  }
  .hero-portrait-frame {
    height: min(40vh, 300px);
  }
  .service-card {
    min-height: 210px;
    padding: 16px;
  }
  .work-visual {
    height: 145px !important;
  }
  .design-preview-link {
    height: 155px !important;
  }
  .workflow {
    padding: 6px 8px;
  }
  .update {
    padding: 10px 0;
  }
}

/* Print / PDF Export Stylesheet (16:9 Widescreen Presentation Deck) */
@media print {
  @page {
    size: 338.67mm 190.5mm;
    margin: 0;
  }
  html, body {
    width: 338.67mm;
    height: auto !important;
    overflow: visible !important;
    background: #0a1628 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .deck {
    height: auto !important;
    overflow: visible !important;
  }
  .slide {
    width: 338.67mm !important;
    height: 190.5mm !important;
    min-height: 190.5mm !important;
    page-break-after: always;
    break-after: page;
    overflow: hidden !important;
  }
  .ppt-toolbar,
  .ppt-timer-bar,
  .navdots,
  .progress,
  .lightbox-modal {
    display: none !important;
  }
}


