/* ==========================================================
   Studio Mirmir — Editorial Vertical Landing Stylesheet
   Color System: Warm Ground #F5F4F0, Ink #262626, Accent #802F1F
   Typography: Stardom (Display) & Clash Display (Body/Structure)
   ========================================================== */

@font-face {
  font-family: 'ClashDisplay';
  src: url('fonts/ClashDisplay-Variable.woff2') format('woff2'),
    url('fonts/ClashDisplay-Variable.woff') format('woff');
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Stardom';
  src: url('fonts/Stardom-Regular.woff2') format('woff2'),
    url('fonts/Stardom-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

:root {
  /* Core Brand Tokens */
  --bg: #F5F4F0;
  --ink: #262626;
  --accent: #802F1F;
  --muted: #59554F;
  --line: #D6D1C6;
  --line-soft: #E8E5DD;
  --bg-subtle: #EFECE5;

  /* Interactive States */
  --accent-hover: #662417;
  --accent-active: #4F1B11;
  --focus-ring: #802F1F;
  --color-error: #B43403;

  /* Typography */
  --font-body: 'ClashDisplay', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Stardom', Georgia, serif;

  /* Geometry & Layout */
  --header-h: 4.25rem;
  --max-w: 1240px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --btn-radius: 0px;
}

/* —— Reset & Base —— */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* —— Accessibility & Focus States —— */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.85rem 1.5rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  font-size: 0.95rem;
}

.skip-link:focus-visible {
  left: 1.5rem;
  top: 1.5rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* —— Buttons & Interactive Controls —— */
.btn-rect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.btn-rect:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.btn-rect:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
}

.btn-rect--lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

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

/* —— Shared Header —— */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 1rem clamp(1.5rem, 5vw, 4rem);
  background-color: rgba(245, 244, 240, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background-color: rgba(245, 244, 240, 0.98);
}

.site-logo {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--accent);
}

.header-actions,
.mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.language-switch:hover,
.language-switch[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.2s var(--ease-out);
}

.site-nav a:hover {
  color: var(--accent);
}

/* Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
}

/* —— Shared Section Structural Standards —— */
.landing-section {
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-soft);
}

.section-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Shared Section Title Pattern */
.section-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-index {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}

.section-dash {
  display: inline-block;
  width: clamp(2rem, 5vw, 4rem);
  height: 2px;
  background-color: var(--ink);
  flex-shrink: 0;
}

.section-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* —— 0. Hero Section —— */
.hero {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-kicker {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-bottom: 1.75rem;
}

.hero-lead {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

/* —— 01. Visibility Section —— */
.section-visibility {
  background-color: var(--bg);
}

.vis-intro {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 44rem;
  margin-bottom: 2.75rem;
  line-height: 1.6;
}

.vis-table {
  border-top: 1px solid var(--line);
}

.vis-row {
  display: grid;
  grid-template-columns: 3.5rem 1.2fr 1.8fr 1fr;
  gap: 2rem;
  align-items: baseline;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}

.vis-idx {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.vis-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.vis-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.vis-meta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-left: 1px solid var(--line-soft);
  padding-left: 1.25rem;
  line-height: 1.5;
}

/* —— 02. Strategy Section —— */
.section-strategy {
  background-color: var(--bg-subtle);
}

.strategy-intro {
  margin-bottom: 3.5rem;
}

.strategy-lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.strategy-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 44rem;
  line-height: 1.6;
}

.strategy-diagram-wrap {
  background-color: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3.5rem);
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.strategy-card {
  padding: 1.75rem;
  border: 1px solid var(--line-soft);
  background-color: var(--bg);
  transition: border-color 0.2s var(--ease-out);
}

.strategy-card:hover {
  border-color: var(--ink);
}

.strategy-card-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.strategy-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.strategy-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.strategy-core-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background-color: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}

.strategy-core-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  letter-spacing: 0.02em;
}

.strategy-core-meta {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--line);
}

/* —— 03. Execution Section —— */
.section-execution {
  background-color: var(--bg);
}

.exec-intro {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 44rem;
  margin-bottom: 3.5rem;
}

.exec-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.exec-col {
  display: flex;
  flex-direction: column;
}

.exec-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.exec-col h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.exec-lead {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.exec-body {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.6;
}

.placeholder-container {
  border: 1px solid var(--line);
  background-color: var(--bg-subtle);
  overflow: hidden;
}

.placeholder-container img {
  width: 100%;
  height: auto;
  display: block;
}

.placeholder-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  background-color: var(--bg);
}

/* —— 04. Outcome Section —— */
.section-outcome {
  background-color: var(--bg-subtle);
}

.outcome-header {
  margin-bottom: 3.5rem;
}

.outcome-lead {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 24ch;
  margin-bottom: 1rem;
}

.outcome-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 44rem;
}

.outcome-split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-bottom: 3.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.outcome-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.outcome-step {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.step-content p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.55;
}

.outcome-aside {
  padding: 2rem;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}

.aside-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.aside-quotes {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.aside-quotes p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.4;
  color: var(--ink);
}

/* —— Contact Section —— */
.section-contact {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.contact-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.contact-kicker {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.contact-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-direct {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.contact-direct a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

.contact-direct a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* —— Footer —— */
.site-footer {
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  background-color: var(--bg);
  border-top: 1px solid var(--line-soft);
  font-size: 0.92rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand strong {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-brand span {
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.footer-nav a {
  color: var(--muted);
  transition: color 0.2s var(--ease-out);
}

.footer-nav a:hover {
  color: var(--accent);
}

/* —— Responsive Design & Mobile Breakpoints —— */
@media (max-width: 960px) {
  .vis-row {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem 1.5rem;
  }

  .vis-desc {
    grid-column: 2;
  }

  .vis-meta {
    grid-column: 2;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-top: 0.75rem;
  }

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

  .exec-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .outcome-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .site-header .btn-rect {
    display: none;
  }

  .site-header .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg);
    padding: 2rem 1.5rem 3rem;
    overflow-y: auto;
    z-index: 99;
    border-top: 1px solid var(--line);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  }

  .mobile-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .mobile-nav a {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ink);
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .mobile-nav .btn-rect {
    display: flex;
    width: 100%;
  }

  .mobile-actions {
    align-items: stretch;
  }

  .mobile-actions .language-switch {
    flex: 0 0 4rem;
  }

  .mobile-actions .btn-rect {
    flex: 1;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* —— Prefers Reduced Motion —— */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}