/* NARANI Concept 2 — Soft Parallel Flow · Warm human + Quiet tech */
:root {
  --primary: #2A6F7A;
  --coral: #E8A87C;
  --text: #2C3E50;
  --secondary: #7F8C8D;
  --bg: #F7F5F2;
  --white: #ffffff;
  --border: #E8E4DE;
  --now: #2A6F7A;
  --progress: #D4896A;
  --next: #9AA0A6;
  --max: 1140px;
  --header-h: 76px;
  --subnav-h: 52px;
  --radius: 14px;
  --shadow-soft: 0 12px 40px rgba(42, 111, 122, 0.08);
  --font-display: "Spoqa Han Sans Neo", "Noto Sans KR", "Inter", system-ui, sans-serif;
  --font: "Noto Sans KR", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--subnav-h) + 16px);
}

body {
  word-break: keep-all;
  overflow-wrap: break-word;
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--coral); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 500; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 500; }

p { margin: 0 0 1em; color: var(--secondary); }
p.lead { font-size: 1.125rem; color: var(--text); }

.container {
  width: min(100% - 56px, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.92);
  border-bottom: 1px solid transparent;
  overflow: visible;
}

/* Backdrop on a layer so mobile dropdown is not clipped by filter */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 245, 242, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  flex-shrink: 0;
}

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

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.03em;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] { color: var(--primary); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Buttons — soft rounded */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #235e68;
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border-color: rgba(42, 111, 122, 0.35);
}

.btn-secondary:hover {
  border-color: var(--coral);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
}

.btn-ghost:hover { color: var(--coral); transform: none; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  line-height: 1.4;
}

.badge-now { background: rgba(42, 111, 122, 0.12); color: var(--now); }
.badge-progress { background: rgba(232, 168, 124, 0.25); color: #B56E3E; }
.badge-next { background: rgba(154, 160, 166, 0.22); color: #5F6B73; }

.badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

/* Sub-nav */
.sub-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.sub-nav-inner {
  display: flex;
  gap: 8px 22px;
  overflow-x: auto;
  height: var(--subnav-h);
  align-items: center;
  scrollbar-width: none;
}

.sub-nav-inner::-webkit-scrollbar { display: none; }

.sub-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary);
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.sub-nav a:hover,
.sub-nav a.is-active {
  color: var(--primary);
  border-bottom-color: var(--coral);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 128px) 0 clamp(56px, 8vw, 100px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.65;
  animation: softSlide 18s ease-in-out infinite alternate;
}

.hero-bg img,
.hero-bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.35em;
}

.hero .master-msg {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.75em;
}

.framework-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 1.25rem 0;
}

.framework-inline span:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: var(--coral);
  opacity: 0.8;
}

/* Sections */
.section {
  padding: clamp(64px, 9vw, 104px) 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  max-width: 620px;
  margin-bottom: 2.75rem;
}

.section-head p { margin-bottom: 0; }

/* Steps / cards — airy hierarchy */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  position: relative;
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.section-alt .step {
  background: var(--bg);
  box-shadow: none;
}

.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--coral);
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.45em;
}

.step p { margin: 0; font-size: 0.9375rem; }

.flow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 10px;
  margin: 1.5rem 0;
}

.flow-item {
  padding: 14px 22px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.section-alt .flow-item {
  background: var(--bg);
  box-shadow: none;
  border: 1px solid var(--border);
}

.flow-arrow {
  color: var(--coral);
  font-weight: 700;
  font-size: 0.875rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.panel {
  padding: 30px 26px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.section-alt .panel {
  background: var(--bg);
  box-shadow: none;
}

.panel h3 { margin-bottom: 0.5em; color: var(--primary); }
.panel p:last-child { margin-bottom: 0; }

.panel-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.module {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.section-alt .module {
  background: var(--bg);
  box-shadow: none;
}

.module-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 8px;
}

.module p { font-size: 0.875rem; margin: 0; }

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

.status-block {
  padding: 26px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.section-alt .status-block {
  background: var(--bg);
  box-shadow: none;
}

.status-block ul {
  margin: 14px 0 0;
  padding-left: 1.1em;
  color: var(--secondary);
  font-size: 0.9375rem;
}

.status-block li { margin-bottom: 6px; }

.product-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, rgba(42, 111, 122, 0.1), rgba(232, 168, 124, 0.18));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--secondary);
  font-size: 0.875rem;
  text-align: center;
  padding: 24px;
}

.product-placeholder strong {
  color: var(--primary);
  font-size: 1rem;
}

.principle-list { display: grid; gap: 8px; }

.principle-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.section-alt .principle-item {
  background: var(--bg);
  box-shadow: none;
}

.principle-num {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.05em;
}

.principle-item h3 { font-size: 1rem; margin-bottom: 0.25em; }
.principle-item p { margin: 0; font-size: 0.9375rem; }

.personality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.personality-card {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--coral);
}

.section-alt .personality-card {
  background: var(--bg);
  box-shadow: none;
}

.personality-card h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5em;
}

.personality-card p { margin: 0; font-size: 0.9375rem; }

.timeline {
  display: grid;
  gap: 0;
  border-left: 3px solid var(--coral);
  padding-left: 28px;
  margin-left: 8px;
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 4px;
}

.timeline-item h3 { font-size: 1.1rem; margin-bottom: 0.25em; }
.timeline-item p { margin: 0; font-size: 0.9375rem; }

.faq details {
  border: none;
  padding: 18px 22px;
  margin-bottom: 12px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.section-alt .faq details {
  background: var(--bg);
  box-shadow: none;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-weight: 700; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; font-size: 0.9375rem; }

.cta-band {
  padding: clamp(56px, 8vw, 88px) 0;
  background: linear-gradient(135deg, var(--primary) 0%, #3a8590 55%, #4a7a72 100%);
  color: var(--white);
}

.cta-band h2 { color: var(--white); font-family: var(--font-display); }
.cta-band p { color: rgba(255, 255, 255, 0.88); }

.cta-band .btn-primary {
  background: var(--coral);
  color: var(--text);
}

.cta-band .btn-primary:hover {
  background: #f0c0a0;
  color: var(--text);
}

.cta-band .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.cta-band .btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

.form {
  max-width: 560px;
  display: grid;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: var(--coral);
}

.form-group textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.8125rem; color: var(--secondary); margin: 0; }

.form-success {
  display: none;
  padding: 20px 24px;
  background: rgba(232, 168, 124, 0.2);
  border-radius: var(--radius);
  border-left: 4px solid var(--coral);
  color: var(--text);
}

.form-success.is-visible { display: block; }

.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.72);
  padding: 60px 0 32px;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--coral); }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-title {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.name-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
}

.name-node {
  flex: 1;
  min-width: 160px;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.section-alt .name-node {
  background: var(--bg);
  box-shadow: none;
}

.name-node strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.name-node p { margin: 0; font-size: 0.875rem; }
.name-connector {
  display: flex;
  align-items: center;
  color: var(--coral);
  font-weight: 700;
}

@keyframes softSlide {
  0% { transform: translateX(0) translateY(0); opacity: 0.55; }
  100% { transform: translateX(-18px) translateY(-8px); opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 900px) {
  .steps, .grid-2, .grid-3, .status-list, .personality-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .name-connector { display: none; }
}

@media (max-width: 768px) {
  .container { width: min(100% - 32px, var(--max)); }
  .grid-5 { grid-template-columns: 1fr; }

  .flow-row { flex-direction: column; align-items: stretch; }
  .flow-arrow { text-align: center; transform: rotate(90deg); }
  .principle-item { grid-template-columns: 36px 1fr; }
}


/* —— Media / Image layouts —— */
.hero.has-photo {
  display: block;
  padding: 0;
  min-height: 100svh;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  min-height: inherit;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: 24px;
  gap: 32px;
}

.hero-split .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 96px) 0;
  max-width: none;
}

.hero-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius, 4px);
  align-self: stretch;
  margin: clamp(24px, 4vw, 48px) 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.hero-bleed {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bleed .hero-photo {
  position: absolute;
  inset: 0;
}

.hero-bleed .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bleed .hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,245,242,0.96) 0%, rgba(247,245,242,0.88) 42%, rgba(247,245,242,0.35) 70%, rgba(247,245,242,0.15) 100%);
  pointer-events: none;
}

.hero-bleed .hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 9vw, 110px) 0;
}

.hero-bg-motif {
  position: absolute;
  inset: auto 0 0 auto;
  width: 55%;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius, 4px);
  background: var(--border, #e2e8f0);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

.panel-media {
  margin: -28px -24px 20px;
  overflow: hidden;
}

.panel-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.section-media-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-shot {
  overflow: hidden;
  border-radius: var(--radius, 4px);
  border: 1px solid var(--border, #e2e8f0);
}

.product-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .hero-split,
  .section-media-row {
    grid-template-columns: 1fr;
  }
  .hero-media {
    margin: 0 0 24px;
    order: -1;
    min-height: 240px;
  }
  .hero-media img { min-height: 240px; }
  .hero-bleed .hero-scrim {
    background: linear-gradient(180deg, rgba(247,245,242,0.94) 0%, rgba(247,245,242,0.88) 55%, rgba(247,245,242,0.7) 100%);
  }
}

.hero-bleed .hero-scrim {
  background: linear-gradient(105deg, rgba(247,245,242,0.97) 0%, rgba(247,245,242,0.9) 48%, rgba(232,168,124,0.25) 100%);
}
.hero-media, .media-frame, .product-shot { border-radius: 14px; }
.panel-media { margin: -30px -26px 20px; border-radius: 14px 14px 0 0; }
.panel-media img { border-radius: 14px 14px 0 0; }


/* —— Fullscreen hero (edge-to-edge image) —— */
.hero.hero-fullscreen,
.hero-bleed.hero-fullscreen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-fullscreen .hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-fullscreen .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  display: block;
}

.hero-fullscreen .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Wide copy block — fewer mid-sentence wraps */
.hero-fullscreen .hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - clamp(32px, 5vw, 64px), var(--max, 1200px));
  margin-inline: auto;
  padding-block: clamp(5rem, 12vh, 7.5rem);
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.hero-fullscreen .hero-brand,
.hero-fullscreen .badge-label,
.hero-fullscreen .master-msg,
.hero-fullscreen h1,
.hero-fullscreen .lead,
.hero-fullscreen .framework-inline,
.hero-fullscreen .btn-group {
  max-inline-size: none;
  max-width: min(100%, var(--hero-copy-width, 38rem));
}

.hero-fullscreen .master-msg {
  line-height: 1.35;
  margin-bottom: 0.4em;
}

.hero-fullscreen .lead {
  max-width: min(100%, var(--hero-lead-width, 36rem));
  line-height: 1.7;
}

.hero-fullscreen h1 {
  max-width: min(100%, var(--hero-copy-width, 38rem));
  line-height: 1.35;
}

@media (max-width: 768px) {
  .hero.hero-fullscreen,
  .hero-bleed.hero-fullscreen {
    min-height: 100svh;
    min-height: 100dvh;
    align-items: flex-end;
  }

  .hero-fullscreen .hero-content {
    padding-block: clamp(3.5rem, 10vh, 5rem) clamp(2.5rem, 8vh, 4rem);
    width: min(100% - 28px, var(--max, 1200px));
  }

  .hero-fullscreen .hero-brand,
  .hero-fullscreen .badge-label,
  .hero-fullscreen .master-msg,
  .hero-fullscreen h1,
  .hero-fullscreen .lead,
  .hero-fullscreen .framework-inline,
  .hero-fullscreen .btn-group {
    max-width: 100%;
  }

  .hero-fullscreen .hero-photo img {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fullscreen .hero-photo img {
    transform: none;
  }
}

.hero.hero-fullscreen {
  --hero-copy-width: 40rem; --hero-lead-width: 38rem;
  justify-content: flex-start;
}

.hero-fullscreen .hero-content {
  align-items: flex-start;
  text-align: start;
}

.hero-fullscreen .hero-photo img {
  object-position: 72% center;
}

@media (max-width: 768px) {
  .hero-fullscreen .hero-photo img {
    object-position: 75% 30%;
  }
}

.hero-fullscreen .hero-scrim {
  background:
    linear-gradient(100deg, rgba(247,245,242,0.94) 0%, rgba(247,245,242,0.8) 40%, rgba(247,245,242,0.22) 70%, rgba(232,168,124,0.18) 100%),
    linear-gradient(180deg, rgba(247,245,242,0.18) 0%, transparent 32%, transparent 70%, rgba(247,245,242,0.35) 100%);
}
@media (max-width: 768px) {
  .hero-fullscreen .hero-scrim {
    background: linear-gradient(180deg, rgba(247,245,242,0.2) 0%, rgba(247,245,242,0.8) 50%, rgba(247,245,242,0.96) 100%);
  }
}
.hero-fullscreen .master-msg,
.hero-fullscreen h1 {
  text-shadow: 0 1px 18px rgba(247,245,242,0.7);
}


/* —— Per-image hero layouts (page-specific; beats concept defaults) —— */
.hero.hero-fullscreen.hero-layout-left {
  justify-content: flex-start;
  align-items: center;
}
.hero.hero-fullscreen.hero-layout-left .hero-content {
  align-items: flex-start;
}
.hero.hero-fullscreen.hero-layout-left .hero-photo img {
  object-position: 82% center;
}
.hero.hero-fullscreen.hero-layout-left .hero-scrim {
  background:
    linear-gradient(90deg, rgba(247,245,242,0.94) 0%, rgba(247,245,242,0.78) 40%, rgba(247,245,242,0.2) 70%, transparent 100%),
    linear-gradient(180deg, rgba(247,245,242,0.15) 0%, transparent 35%, transparent 70%, rgba(247,245,242,0.25) 100%) !important;
}

.hero.hero-fullscreen.hero-layout-right {
  justify-content: flex-end;
  align-items: center;
}
.hero.hero-fullscreen.hero-layout-right .hero-content {
  align-items: flex-end;
}
.hero.hero-fullscreen.hero-layout-right .hero-photo img {
  object-position: 15% center;
}
.hero.hero-fullscreen.hero-layout-right .hero-scrim {
  background:
    linear-gradient(270deg, rgba(247,245,242,0.94) 0%, rgba(247,245,242,0.78) 40%, rgba(247,245,242,0.2) 70%, transparent 100%),
    linear-gradient(180deg, rgba(247,245,242,0.15) 0%, transparent 35%, transparent 70%, rgba(247,245,242,0.25) 100%) !important;
}

.hero.hero-fullscreen.hero-layout-top {
  justify-content: flex-start;
  align-items: flex-start;
}
.hero.hero-fullscreen.hero-layout-top .hero-content {
  align-items: flex-start;
  padding-top: clamp(5.5rem, 14vh, 7.5rem);
  padding-bottom: clamp(2rem, 6vh, 3rem);
}
.hero.hero-fullscreen.hero-layout-top .hero-photo img {
  object-position: center 85%;
}
.hero.hero-fullscreen.hero-layout-top .hero-scrim {
  background:
    linear-gradient(180deg, rgba(247,245,242,0.92) 0%, rgba(247,245,242,0.72) 38%, rgba(247,245,242,0.2) 62%, transparent 85%) !important;
}


.hero.hero-fullscreen.hero-layout-bottom {
  justify-content: flex-start;
  align-items: flex-end;
}
.hero.hero-fullscreen.hero-layout-bottom .hero-content {
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: clamp(2.5rem, 8vh, 4.5rem);
}
.hero.hero-fullscreen.hero-layout-bottom .hero-photo img {
  object-position: center 22%;
}
.hero.hero-fullscreen.hero-layout-bottom .hero-scrim {
  background:
    linear-gradient(180deg, transparent 26%, rgba(248,250,252,0.4) 55%, rgba(248,250,252,0.94) 100%) !important;
}

.hero.hero-fullscreen.hero-layout-panel-left {
  justify-content: flex-start;
  align-items: center;
}
.hero.hero-fullscreen.hero-layout-panel-left .hero-content {
  align-items: flex-start;
}
.hero.hero-fullscreen.hero-layout-panel-left .hero-photo img {
  object-position: center 35%;
}
.hero.hero-fullscreen.hero-layout-panel-left .hero-scrim {
  background:
    linear-gradient(90deg, rgba(247,245,242,0.96) 0%, rgba(247,245,242,0.88) 36%, rgba(247,245,242,0.35) 58%, rgba(247,245,242,0.12) 100%),
    linear-gradient(180deg, rgba(247,245,242,0.25) 0%, transparent 40%, transparent 65%, rgba(247,245,242,0.4) 100%) !important;
}

@media (max-width: 768px) {
  .hero.hero-fullscreen.hero-layout-left .hero-photo img,
  .hero.hero-fullscreen.hero-layout-right .hero-photo img,
  .hero.hero-fullscreen.hero-layout-panel-left .hero-photo img {
    object-position: center 28%;
  }
  .hero.hero-fullscreen.hero-layout-top .hero-photo img {
    object-position: center 55%;
  }
  .hero.hero-fullscreen.hero-layout-right .hero-content,
  .hero.hero-fullscreen.hero-layout-left .hero-content,
  .hero.hero-fullscreen.hero-layout-panel-left .hero-content,
  .hero.hero-fullscreen.hero-layout-top .hero-content {
    align-items: flex-start;
  }
  .hero.hero-fullscreen.hero-layout-left .hero-scrim,
  .hero.hero-fullscreen.hero-layout-right .hero-scrim,
  .hero.hero-fullscreen.hero-layout-panel-left .hero-scrim,
  .hero.hero-fullscreen.hero-layout-top .hero-scrim,
  .hero.hero-fullscreen.hero-layout-bottom .hero-scrim {
    background: linear-gradient(180deg, rgba(247,245,242,0.35) 0%, rgba(247,245,242,0.82) 48%, rgba(247,245,242,0.96) 100%) !important;
  }
}


/* —— Responsive nav: PC / Tablet / Mobile —— */
@media (min-width: 769px) {
  .nav-toggle {
    display: none !important;
  }
  .nav-main {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .header-cta {
    display: inline-flex;
  }
}


/* Tablet: keep full horizontal menu, slightly tighter */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-toggle {
    display: none !important;
  }
  .nav-main {
    display: flex !important;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 6px 14px;
  }
  .nav-main a {
    font-size: 0.875rem;
    padding-block: 8px;
  }
  .header-cta {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex !important;
  }

  .site-header {
    overflow: visible;
  }

  .header-inner {
    position: static;
  }

  .nav-main {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white, #fff);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    gap: 0;
    box-shadow: var(--shadow-soft, 0 8px 32px rgba(0,0,0,.08));
    z-index: 200;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-main.is-open {
    display: flex !important;
  }

  .nav-main li {
    border-bottom: 1px solid var(--border);
  }

  .nav-main a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 0;
  }

  /* Keep primary CTA visible on tablet/mobile */
  .header-cta {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .nav-main .nav-cta-mobile {
    display: flex;
    margin-top: 12px;
  }
}

@media (max-width: 768px) {
  body.theme-dark .nav-main {
    background: var(--card, #1A222C);
  }
}
