/* 01. Design tokens */
:root {
  --bg: #f4f5f7;
  --surface: rgba(255,255,255,0.76);
  --surface-strong: rgba(255,255,255,0.92);
  --text: #111827;
  --muted: #70757f;
  --line: rgba(17, 24, 39, 0.08);
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: min(1240px, calc(100vw - 32px));

  --container-wide: min(1440px, calc(100vw - 48px));
  --container-content: min(1180px, calc(100vw - 40px));
  --container-reading: min(760px, calc(100vw - 40px));

  --section-space: clamp(72px, 10vw, 144px);
  --section-space-sm: clamp(40px, 6vw, 80px);
  --content-gap: clamp(20px, 3vw, 40px);

  --display-title: clamp(3rem, 7vw, 7rem);
  --section-title: clamp(2rem, 4vw, 4.2rem);
  --body-large: clamp(1.05rem, 1.5vw, 1.3rem);

  --shelf-width: min(1240px, calc(100vw - 64px));
  --hero-title: clamp(2.6rem, 5vw, 4.6rem);
  --icon-size: clamp(82px, 10vw, 120px);
  --icon-gap: clamp(14px, 2vw, 28px);
  --chip-bg: rgba(255,255,255,0.85);
  --chip-text: #111827;
}

/* 02. Theme tokens */
:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: rgba(23, 26, 32, 0.72);
  --surface-strong: rgba(24, 28, 35, 0.92);
  --text: #f3f5f8;
  --muted: #9fa8b7;
  --line: rgba(255,255,255,0.10);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  --chip-bg: rgba(255,255,255,0.08);
  --chip-text: #f3f5f8;
}

/* 03. Reset and global elements */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background 180ms ease, color 180ms ease;
}
:root[data-theme="dark"] body { background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

/* 04. Layout primitives */
.container { width: var(--container); margin-inline: auto; }
.container-wide { width: var(--container-wide); margin-inline: auto; }
.container-content { width: var(--container-content); margin-inline: auto; }
.container-reading { width: var(--container-reading); margin-inline: auto; }

.info-page {
  width: 100%;
  display: grid;
  gap: var(--section-space-sm);
  padding-bottom: var(--section-space-sm);
}
.info-section {
  width: 100%;
  padding-block: var(--section-space);
}
.info-section--compact {
  padding-block: var(--section-space-sm);
}
.info-grid {
  display: grid;
  gap: var(--content-gap);
}
.info-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-stack {
  display: grid;
  gap: var(--content-gap);
}
.info-copy { min-width: 0; }
.info-visual { min-width: 0; }
.info-reading {
  width: 100%;
  max-width: var(--container-reading);
  line-height: 1.8;
}

/* 05. Shared typography */
.display-title {
  margin: 0;
  font-size: var(--display-title);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.section-title {
  margin: 0;
  font-size: var(--section-title);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.body-large {
  margin: 0;
  color: var(--muted);
  font-size: var(--body-large);
  line-height: 1.75;
}

/* 06. Shared buttons and controls */
.top-link { color: var(--muted); font-weight: 600; }
.top-chip,
.subscribe-button,
.portal-cta,
.portal-chip,
.mini-btn {
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 700;
  border: 1px solid var(--line);
}
.top-chip {
  background: var(--chip-bg);
  color: var(--chip-text);
  box-shadow: var(--shadow);
}
.subscribe-button {
  border: 0;
  background: #151515;
  color: #fff;
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .subscribe-button { background: #fafafa; color: #111827; }

.search-box {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--surface-strong) 100%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.search-box input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  color: var(--text);
}
.search-icon,
.search-shortcut { color: var(--muted); }

/* 07. App interface modules */
.page-home { padding-bottom: 48px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 78px;
}
.header-left,
.header-right { display: flex; align-items: center; gap: 12px; }
.brand-switch {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}
.brand-switch-active { color: var(--text); }
.brand-count,
.soon { font-size: 0.76rem; opacity: 0.72; }

.hero {
  position: relative;
  padding: 64px 0 34px;
}
.hero-inner {
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}
.hero h1 {
  margin: 0;
  font-size: var(--hero-title);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 920px;
}
.hero p {
  margin: 10px;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}
.hero-subscribe {
  display: grid;
  grid-template-columns: minmax(220px, 340px) auto;
  gap: 12px;
  width: min(100%, 540px);
  margin-top: 12px;
}
.hero-subscribe input {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 100%, transparent);
  color: var(--text);
  padding: 0 18px;
  outline: none;
}
.hero-subscribe button {
  min-height: 54px;
  border-radius: 18px;
  border: 0;
  background: #171717;
  color: #fff;
  font-weight: 700;
  padding: 0 18px;
}
:root[data-theme="dark"] .hero-subscribe button { background: #fafafa; color: #111827; }
.hero-meta { color: #8a8f99; font-weight: 500; }
.hero-floating {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.floating-icon {
  position: absolute;
  width: clamp(60px, 7vw, 92px);
  aspect-ratio: 1;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  object-fit: cover;
}
.floating-1 { left: 8%; top: 28%; transform: rotate(-12deg); }
.floating-2 { left: 14%; top: 54%; transform: rotate(9deg); }
.floating-3 { right: 14%; top: 26%; transform: rotate(-11deg); }
.floating-4 { right: 8%; top: 44%; transform: rotate(7deg); }
.floating-5 { left: 18%; top: 8%; width: clamp(52px, 6vw, 78px); transform: rotate(8deg); }
.floating-6 { right: 18%; top: 8%; width: clamp(52px, 6vw, 78px); transform: rotate(-9deg); }

.shelves-wrap { display: grid; gap: 28px; margin-top: 24px; }
.shelf-section { position: relative; }
.shelf-track {
  width: var(--shelf-width);
  margin-inline: auto;
  display: flex;
  gap: var(--icon-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 14px 18px;
  scrollbar-width: none;
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-base {
  width: var(--shelf-width);
  height: 18px;
  margin: -8px auto 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(203,210,217,0.6), rgba(235,238,242,1));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 6px 14px rgba(15, 23, 42, 0.08);
}
:root[data-theme="dark"] .shelf-base {
  background: linear-gradient(180deg, rgba(83,92,107,0.74), rgba(40,46,56,1));
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 8px 18px rgba(0,0,0,0.28);
}

.app-card {
  position: relative;
  flex: 0 0 auto;
  width: var(--icon-size);
  display: grid;
  gap: 10px;
  justify-items: center;
}
.app-icon {
  width: var(--icon-size);
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-strong) 100%, transparent);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 18px 24px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.app-card:hover .app-icon,
.app-card:focus-within .app-icon {
  transform: translateY(-6px);
  box-shadow: 0 22px 30px rgba(15, 23, 42, 0.14);
}
.app-card img { width: 100%; height: 100%; object-fit: cover; }
.app-reflection {
  width: 88%;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(157,165,177,0.28), rgba(255,255,255,0));
  filter: blur(3px);
}
:root[data-theme="dark"] .app-reflection {
  background: radial-gradient(ellipse at center, rgba(58,66,80,0.52), rgba(255,255,255,0));
}
.app-meta {
  position: absolute;
  inset: auto 50% calc(100% + 8px) auto;
  transform: translateX(50%);
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(17,24,39,0.88);
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  text-align: center;
}
.app-card:hover .app-meta,
.app-card:focus-within .app-meta { opacity: 1; }
.app-title { font-size: 0.88rem; font-weight: 700; }
.app-subtitle { font-size: 0.72rem; opacity: 0.74; margin-top: 2px; }
.app-badge {
  display: none;
  width: min(100%, 110px);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
}

.app-card,
.mini-card,
.portal-app-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.empty-state {
  width: var(--shelf-width);
  margin-inline: auto;
  border-radius: 22px;
  border: 1px dashed var(--line);
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.mini-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.mini-main {
  display: grid;
  place-items: center;
  padding: 32px 16px 56px;
}
.mini-card {
  width: min(720px, 100%);
  background: color-mix(in srgb, var(--surface-strong) 100%, transparent);
  border: 1px solid var(--line);
  padding: clamp(22px, 4vw, 42px);
  text-align: center;
}
.mini-card img {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin: 0 auto 18px;
}
.mini-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.mini-btn {
  min-height: 46px;
  background: color-mix(in srgb, var(--surface-strong) 100%, transparent);
  color: var(--text);
}
.mini-btn-primary {
  background: #171717;
  color: white;
  border-color: #171717;
}
:root[data-theme="dark"] .mini-btn-primary { background: #fafafa; color: #111827; border-color: #fafafa; }

/* 08. Information page modules */
.info-header {
  position: sticky;
  top: 0;
  z-index: 36;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.info-header__inner {
  width: var(--container-content);
  margin-inline: auto;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}
.info-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.info-nav__link {
  color: var(--muted);
  font-weight: 600;
  padding: 8px 6px;
}
.info-nav__link:hover,
.info-nav__link--active { color: var(--text); }

.info-hero {
  width: var(--container-wide);
  margin-inline: auto;
  padding-block: var(--section-space);
  display: grid;
  gap: var(--content-gap);
}
.info-hero--split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}
.info-hero__copy {
  max-width: 860px;
  display: grid;
  gap: 18px;
}
.info-hero__eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.info-hero__title {
  margin: 0;
  font-size: var(--display-title);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.info-hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: var(--body-large);
  line-height: 1.72;
  max-width: 72ch;
}
.info-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.info-hero__visual {
  min-height: 320px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 100%, transparent);
}

.info-section__header {
  width: var(--container-content);
  margin-inline: auto;
  display: grid;
  gap: 14px;
  margin-bottom: var(--content-gap);
}
.info-section__eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.info-section__title {
  margin: 0;
  font-size: var(--section-title);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.info-section__intro {
  margin: 0;
  max-width: var(--container-reading);
  color: var(--muted);
  font-size: var(--body-large);
  line-height: 1.75;
}

.info-service-grid {
  width: var(--container-content);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--content-gap);
}
.info-service {
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}
.info-service:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--line) 55%, var(--text) 45%);
}
.info-service__index {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.info-service__title {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.info-service__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.info-service__link {
  font-weight: 700;
  color: var(--text);
}

.info-project-grid {
  width: var(--container-content);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--content-gap);
}
.info-project-card {
  display: grid;
  gap: 12px;
  padding: 0;
}
.info-project-card__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 0;
  background: color-mix(in srgb, var(--surface) 100%, transparent);
  overflow: hidden;
}
.info-project-card__meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.info-project-card__title {
  margin: 0;
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.2;
}
.info-project-card__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.prose {
  width: 100%;
  max-width: var(--container-reading);
  margin-inline: auto;
  color: var(--text);
  line-height: 1.78;
}
.prose-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: var(--body-large);
  line-height: 1.78;
}
.prose h2 {
  margin: 56px 0 16px;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.prose h3 {
  margin: 36px 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.2;
}
.prose p {
  margin: 0 0 18px;
  color: var(--text);
  opacity: 0.95;
}
.prose ul {
  margin: 0 0 22px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.prose blockquote {
  margin: 26px 0;
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}
.prose figure {
  margin: 26px 0;
}
.prose figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.info-cta {
  width: var(--container-content);
  margin-inline: auto;
  border: 0;
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 100%, transparent);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  gap: 18px;
}
.info-cta__copy {
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.75;
}
.info-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.info-card {
  background: color-mix(in srgb, var(--surface) 100%, transparent);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: clamp(20px, 2.4vw, 34px);
  display: grid;
  gap: 12px;
}

/* 09. Header and navigation (portal compatibility) */
.portal-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  margin-top: 18px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}
.portal-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.portal-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.portal-brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: transparent url("../assets/iAppLap-logo-color.png") center/contain no-repeat;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.portal-brand__copy { display: grid; gap: 2px; }
.portal-brand__copy strong { font-size: 1rem; line-height: 1; }
.portal-brand__copy small { font-size: 0.75rem; color: var(--muted); }
.portal-topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.portal-topnav a { font-size: 0.88rem; }
.portal-topnav a,
.portal-footer__links a,
.portal-text-link { color: var(--muted); font-weight: 700; }
.portal-topnav a.is-active,
.portal-footer__links a.is-active,
.portal-topnav a:hover,
.portal-footer__links a:hover,
.portal-text-link:hover { color: var(--text); }
.portal-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.portal-cta {
  border: 0;
  border-radius: 14px;
  min-height: 44px;
  background: linear-gradient(180deg, #10bacb 0%, #0fa8b8 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15,168,184,.22);
  font-weight: 800;
  padding: 0 16px;
}
.portal-chip {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(21,33,43,.08);
  background: rgba(255,255,255,.78);
  color: var(--text);
  font-weight: 800;
  padding: 0 16px;
}
:root[data-theme="dark"] .portal-cta {
  background: linear-gradient(180deg, #3ed2df 0%, #1cb8c7 100%);
  color: #0f1115;
}
:root[data-theme="dark"] .portal-chip {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.portal-page {
  padding-bottom: 64px;
}
.portal-hero {
  margin-top: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
  border-radius: 34px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0;
  box-shadow: none;
}
.portal-hero__copy,
.portal-hero__panel,
.portal-card,
.portal-app-card {
  background: color-mix(in srgb, var(--surface) 100%, transparent);
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.portal-hero__copy {
  border-radius: 32px;
  padding: 32px;
}
.portal-hero__copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 5.2vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.portal-lead {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.7;
}
.portal-lead--sm { max-width: 920px; }
.portal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.portal-hero__panel { border-radius: 28px; padding: 20px; display: grid; gap: 14px; }
.portal-stat {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.42);
  border: 0;
  display: grid;
  gap: 4px;
}
.portal-stat[href] { text-decoration: none; color: inherit; }
:root[data-theme="dark"] .portal-stat { background: rgba(255,255,255,.03); }
.portal-stat strong { font-size: 1.6rem; }
.portal-stat span { color: var(--muted); }
.portal-section { display: grid; gap: 22px; padding: 74px 0 0; }
.portal-section--first { padding-top: 42px; }
.portal-section--compact { padding-top: 34px; }
.portal-section__head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.portal-eyebrow {
  margin: 0 0 8px;
  color: #ff5a7a;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.portal-section__head h1,
.portal-section__head h2 { margin: 0; letter-spacing: -0.04em; }
.portal-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.portal-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: 28px;
  color: var(--text);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}
.portal-card:hover,
.portal-app-card:hover { transform: translateY(-2px); }
.portal-card h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.08; }
.portal-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.portal-card span { font-weight: 800; }
.portal-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}
.portal-card li { line-height: 1.55; }
.portal-card--cta { grid-template-columns: 1fr; align-items: start; }
.portal-card--cta .portal-actions { margin-top: 8px; }
.portal-app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.portal-app-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  color: var(--text);
}
.portal-app-card--wide { grid-template-columns: 72px 1fr; }
.portal-app-card__icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(127,127,127,.08);
  display: grid;
  place-items: center;
}
.portal-app-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.portal-app-card strong { display: block; margin-bottom: 4px; }
.portal-app-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* 10. Footer */
.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 100%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
  padding: 28px 0 42px;
}
.footer-grid h3,
.footer-grid h4 { margin: 0 0 12px; }
.footer-grid p,
.footer-grid li { color: var(--muted); }
.footer-grid ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }

.portal-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: #f7f7f5;
  color: var(--text);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.portal-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  padding: 46px 0;
}
.portal-footer__grid h3,
.portal-footer__grid h4 { margin: 0 0 10px; color: var(--text); }
.portal-footer__grid p { margin: 0; color: var(--muted); line-height: 1.7; }
.portal-footer__links { display: grid; gap: 10px; }
.portal-footer__links a { color: var(--muted); }

/* 11. Utilities */
.u-mx-auto { margin-inline: auto; }
.u-text-muted { color: var(--muted); }
.u-reading-width { max-width: var(--container-reading); }
.u-surface {
  background: color-mix(in srgb, var(--surface) 100%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.u-shadow-soft { box-shadow: var(--shadow); }

/* 12. Responsive rules */
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: 1fr; padding: 14px 0; }
  .header-left,
  .header-right { justify-content: space-between; }
  .hero { padding-top: 36px; }
  .floating-1,
  .floating-2,
  .floating-3,
  .floating-4 { display: none; }
  .footer-grid { grid-template-columns: 1fr; }

  .info-header__inner { grid-template-columns: 1fr; align-items: start; gap: 12px; padding: 14px 0; }
  .info-hero--split { grid-template-columns: 1fr; }
  .info-grid--3,
  .info-service-grid,
  .info-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-section { padding-block: clamp(56px, 8vw, 96px); }

  .portal-header { top: 10px; border-radius: 24px; }
  .portal-header__inner { grid-template-columns: 1fr; align-items: start; padding: 12px 14px; }
  .portal-header__actions { justify-content: flex-start; }
  .portal-hero { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .portal-card-grid { grid-template-columns: 1fr 1fr; }
  .portal-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 20px, 100vw - 20px);
    --container-wide: min(100vw - 20px, 100vw - 20px);
    --container-content: min(100vw - 20px, 100vw - 20px);
    --container-reading: min(100vw - 20px, 100vw - 20px);
    --shelf-width: min(100vw - 20px, 100vw - 20px);
    --icon-size: calc((100vw - 58px) / 3);
    --icon-gap: 8px;
  }

  .hero h1 { max-width: 14ch; }
  .hero-subscribe { grid-template-columns: 1fr; }
  .header-left,
  .header-right { gap: 10px; flex-wrap: wrap; }
  .search-box { min-height: 48px; }
  .subscribe-button,
  .top-chip { min-height: 42px; padding-inline: 14px; }

  .app-meta { display: none; }
  .app-badge { display: block; }
  .shelf-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
    overflow: visible;
    padding-inline: 0;
  }
  .app-card { width: 100%; }
  .app-icon { width: 100%; border-radius: 22px; }
  .shelf-base { margin-top: 6px; }

  .info-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .info-grid--2,
  .info-grid--3,
  .info-service-grid,
  .info-project-grid { grid-template-columns: 1fr; }
  .info-hero { padding-block: var(--section-space-sm); }
  .info-hero__actions { flex-direction: column; align-items: stretch; }

  .portal-topnav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }
  .portal-card-grid,
  .portal-app-grid { grid-template-columns: 1fr; }
  .portal-hero__copy { padding: 24px; }
  .portal-hero__copy h1 { max-width: 12ch; }
  .portal-cta,
  .portal-chip { width: 100%; justify-content: center; }
  .portal-app-card { grid-template-columns: 60px 1fr; }
  .portal-app-card__icon { width: 60px; height: 60px; }
}

/* 13. Homepage landing layout */
body.home-landing-mode #site-footer {
  display: block;
}

.landing-home {
  background: #f7f7f5;
  color: #171717;
}

.landing-section {
  padding: clamp(64px, 9vw, 116px) 0;
}

.landing-section__header {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.landing-section__header h2,
.landing-manifesto h2,
.landing-about h2,
.landing-cta h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.landing-section__header p,
.landing-manifesto p,
.landing-about p,
.landing-cta p {
  margin: 0;
  color: #4c4c4c;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.8;
}

.landing-hero {
  position: relative;
  min-height: 92vh;
  isolation: isolate;
  display: grid;
  align-items: stretch;
  background-image: url("../demo/profile-anhdophin/assets/main_bg_1.webp");
  background-size: cover;
  background-position: center;
}

.landing-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, rgba(10, 13, 20, 0.78) 0%, rgba(10, 13, 20, 0.64) 56%, rgba(10, 13, 20, 0.56) 100%),
    radial-gradient(circle at 78% 12%, rgba(26, 124, 138, 0.32), transparent 40%);
}

.landing-hero__content {
  width: var(--container-wide);
  margin-inline: auto;
  min-height: 92vh;
  display: grid;
  grid-template-rows: 1fr;
  padding: 26px 0 52px;
  color: #fbfcfe;
}

.landing-hero__center {
  width: min(920px, 100%);
  margin: auto;
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.landing-hero__label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.landing-hero__sub {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7.2vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.landing-hero p {
  margin: 0;
  max-width: 72ch;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.72;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, opacity 180ms ease;
}

.landing-btn:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

.landing-btn--light {
  border-color: #f8f8f8;
  background: #f8f8f8;
  color: #0f1115;
}

.landing-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.landing-card {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.14);
  padding: clamp(22px, 2.8vw, 34px);
}

.landing-service {
  display: grid;
  gap: 14px;
  transition: transform 180ms ease;
}

.landing-service:hover {
  transform: translateY(-4px);
}

.landing-service__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #565656;
  font-weight: 700;
  text-transform: uppercase;
}

.landing-service__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.landing-service__description {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.72;
}

.landing-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-tags li {
  font-size: 0.78rem;
  border: 1px solid rgba(17, 17, 17, 0.14);
  padding: 6px 10px;
}

.landing-link {
  color: #111;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.landing-manifesto {
  min-height: 64vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: #ffffff;
}

.landing-manifesto__quote {
  margin: 0 0 6px;
  font-size: clamp(4.5rem, 10vw, 8rem);
  line-height: 0.8;
  color: #cfcfcf;
}

.landing-manifesto__line {
  margin-top: 10px;
  font-weight: 600;
  color: #222;
}

.landing-manifesto__signature {
  margin-top: 26px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.landing-manifesto__sub {
  color: #5d5d5d;
}

.landing-projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.landing-project {
  display: grid;
  gap: 0;
  overflow: hidden;
  transition: background-color 200ms ease;
}

.landing-project:hover {
  background: #f0f0ed;
}

.landing-project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
}

.landing-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.landing-project:hover .landing-project__media img {
  transform: scale(1.04);
}

.landing-project__arrow {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.landing-project:hover .landing-project__arrow {
  opacity: 1;
  transform: translateY(0);
}

.landing-project__body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.landing-project__category {
  margin: 0;
  color: #5b5b5b;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.landing-project__body h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  line-height: 1.08;
}

.landing-project__body p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.66;
}

.landing-apps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.landing-app {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 260px;
  transition: transform 180ms ease;
}

.landing-app:hover {
  transform: translateY(-4px);
}

.landing-app.is-featured {
  background: #111;
  color: #f6f6f6;
}

.landing-app.is-featured p,
.landing-app.is-featured .landing-link {
  color: #e6e6e6;
}

.landing-app h3 {
  margin: 0;
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  line-height: 1.15;
}

.landing-app p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.68;
}

.landing-section__cta {
  display: inline-block;
  margin-top: 18px;
}

.landing-about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
}

.landing-about__media {
  min-height: 100%;
  overflow: hidden;
}

.landing-about__media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.landing-about__copy {
  display: grid;
  gap: 16px;
  align-content: center;
}

.landing-about__copy h3 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.landing-cta {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: #0f1115;
  color: #f8f8f8;
}

.landing-cta p {
  color: rgba(248, 248, 248, 0.84);
}

.landing-footer {
  background: #f4f4f2;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  padding: 44px 0;
}

.landing-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 24px;
}

.landing-footer__brand {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.landing-footer__links {
  display: grid;
  gap: 8px;
}

.landing-footer p {
  margin: 0 0 8px;
  color: #4b4b4b;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

body.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease, transform 560ms ease;
}

body.reveal-ready [data-reveal].is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .landing-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-apps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 820px) {
  .landing-hero,
  .landing-hero__content {
    min-height: 86vh;
  }

  .landing-projects__grid,
  .landing-services__grid,
  .landing-apps__grid,
  .landing-about,
  .landing-footer__grid {
    grid-template-columns: 1fr;
  }

  .landing-about__media {
    order: -1;
  }

  .landing-about__media img {
    min-height: 360px;
  }

}

@media (max-width: 560px) {
  .landing-hero__content {
    padding-top: 18px;
    padding-bottom: 34px;
  }

  .landing-btn {
    width: 100%;
  }

  .landing-card {
    padding: 18px;
  }
}

/* 14. About landing page */
.about-landing {
  background: #f7f7f5;
  color: #171717;
  padding-bottom: 0;
}

.about-landing .container-content,
.about-landing .container-reading {
  width: min(1180px, calc(100vw - 40px));
  margin-inline: auto;
}

.about-landing .container-reading {
  width: min(760px, calc(100vw - 40px));
}

.about-fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.about-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .about-fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.about-label {
  margin: 0;
  color: #b8d832;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  padding: clamp(52px, 8vw, 110px) 0 clamp(44px, 7vw, 88px);
}

.about-hero__copy {
  display: grid;
  gap: 16px;
}

.about-hero__copy h1,
.about-overview h2,
.about-philosophy h2,
.about-timeline h2,
.about-cta h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.about-hero__copy p,
.about-overview p,
.about-philosophy p,
.about-timeline p,
.about-cta p,
.about-metadata dd,
.about-list li {
  margin: 0;
  color: #4f4f4f;
  line-height: 1.75;
}

.about-metadata {
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

.about-metadata div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.about-metadata dt {
  margin: 0;
  color: #171717;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-hero__media {
  margin: 0;
  border: 10px solid #f0efe7;
  background: #f6f6f2;
  overflow: hidden;
}

.about-hero__media img {
  width: 100%;
  height: min(66vh, 680px);
  object-fit: cover;
  display: block;
}

.about-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(32px, 5vw, 66px) 0;
}

.about-panel {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.14);
  padding: clamp(20px, 2.6vw, 30px);
  display: grid;
  gap: 16px;
}

.about-panel h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.06;
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-list--timeline li,
.about-list--featured li {
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  padding-top: 12px;
}

.about-kicker {
  margin: 0;
  color: #b8d832;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-panel h3,
.about-visual-card h3,
.about-timeline__track h3 {
  margin: 6px 0;
  color: #171717;
  font-size: 1.04rem;
  line-height: 1.28;
}

.about-skill-groups {
  display: grid;
  gap: 14px;
}

.about-skill-groups h3 {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #171717;
}

.about-philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 36px);
  align-items: start;
  padding: clamp(44px, 7vw, 88px) 0;
}

.about-philosophy__copy {
  display: grid;
  gap: 14px;
}

.about-philosophy__copy h2 {
  font-size: clamp(2rem, 3.6vw, 3.6rem);
}

.about-philosophy__visuals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-visual-card {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.14);
  overflow: hidden;
}

.about-visual-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 220ms ease;
}

.about-visual-card:hover img {
  transform: scale(1.03);
}

.about-visual-card h3 {
  margin: 10px 12px 14px;
}

.about-timeline {
  padding: clamp(40px, 6vw, 80px) 0;
  display: grid;
  gap: 20px;
}

.about-timeline h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.about-timeline__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.about-timeline__track li {
  padding: 16px 14px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.14);
  position: relative;
}

.about-timeline__track li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: #b8d832;
  transition: width 220ms ease;
}

.about-timeline__track li:hover::before {
  width: 100%;
}

.about-cta {
  padding: clamp(68px, 11vw, 140px) 0;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
}

.about-cta h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.about-cta__actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.about-cta__actions a {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 17, 17, 0.3);
  color: #171717;
  font-weight: 700;
}

.about-cta__actions a:hover {
  border-color: #b8d832;
  color: #b8d832;
}

@media (max-width: 1080px) {
  .about-overview {
    grid-template-columns: 1fr;
  }

  .about-philosophy {
    grid-template-columns: 1fr;
  }

  .about-philosophy__visuals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-timeline__track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero__media {
    order: -1;
  }

  .about-metadata div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .about-philosophy__visuals {
    grid-template-columns: 1fr;
  }
}

/* 15. Works page */
.works-page {
  background: #f7f7f5;
  padding-bottom: 72px;
  display: grid;
  gap: 0;
}

.works-hero {
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 16px;
  padding-block: clamp(40px, 7vw, 84px);
}

.works-hero__eyebrow,
.works-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.works-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.works-hero__lead {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

.works-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.works-featured {
  padding-block: clamp(24px, 4vw, 56px) clamp(50px, 8vw, 90px);
}

.works-featured__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
}

.works-featured-card {
  display: grid;
  gap: 16px;
}

.works-featured-card--offset {
  margin-top: clamp(18px, 3vw, 42px);
}

.works-featured-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.works-featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-featured-card__number {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 100%, transparent);
  padding: 2px 8px;
}

.works-featured-card__body {
  display: grid;
  gap: 10px;
}

.works-featured-card__body h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.08;
}

.works-featured-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.works-meta {
  font-size: 0.9rem;
}

.works-inline-link {
  color: var(--text);
  font-weight: 700;
}

.works-intro {
  text-align: center;
  padding-block: clamp(46px, 7vw, 88px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 100%, transparent);
}

.works-intro h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.06;
}

.works-intro p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.works-gallery {
  padding-block: clamp(38px, 6vw, 84px);
}

.works-modules {
  padding-block: clamp(38px, 6vw, 84px);
}

.works-modules__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.works-module-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: clamp(18px, 2.3vw, 28px);
  display: grid;
  gap: 16px;
}

.works-module-card__head {
  display: grid;
  gap: 10px;
}

.works-module-card__head h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.works-module-card__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.works-module-tabs {
  display: grid;
  gap: 10px;
}

.works-module-tab {
  min-height: 72px;
  border: 1px solid var(--line);
  background: #f9fafb;
  color: var(--text);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  font-weight: 700;
  transition: border-color 180ms ease, transform 180ms ease;
}

.works-module-tab__thumb {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  background: #ffffff;
  overflow: hidden;
}

.works-module-tab__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-module-tab__label {
  min-width: 0;
  line-height: 1.35;
}

.works-module-tab__arrow {
  color: var(--muted);
}

.works-module-tab:hover {
  border-color: color-mix(in srgb, var(--line) 50%, var(--text) 50%);
  transform: translateY(-2px);
}

.works-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.works-gallery-card {
  display: grid;
  gap: 10px;
  color: inherit;
}

.works-gallery-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.works-gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.works-gallery-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  transform: translateY(100%);
  transition: transform 180ms ease;
}

.works-gallery-card__overlay strong,
.works-gallery-card__meta strong {
  font-size: 1rem;
  line-height: 1.35;
}

.works-gallery-card__overlay em,
.works-gallery-card__meta em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.86rem;
}

.works-gallery-card:hover .works-gallery-card__media img {
  transform: scale(1.03);
}

.works-gallery-card:hover .works-gallery-card__overlay {
  transform: translateY(0);
}

.works-gallery-card__meta {
  display: none;
  gap: 2px;
}

.works-cta {
  padding-block: clamp(62px, 10vw, 120px);
  border-top: 1px solid var(--line);
}

.works-cta__inner {
  display: grid;
  gap: 14px;
  text-align: center;
}

.works-cta__inner h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.works-cta__inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.works-cta__actions {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1180px) {
  .works-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .works-featured__grid,
  .works-gallery__grid,
  .works-modules__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-featured-card--offset {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .works-featured__grid,
  .works-gallery__grid,
  .works-modules__grid {
    grid-template-columns: 1fr;
  }

  .works-gallery-card__overlay {
    display: none;
  }

  .works-gallery-card__meta {
    display: grid;
  }

  .works-module-tab {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 7px 10px;
  }

  .works-module-tab__thumb {
    width: 48px;
    height: 48px;
  }
}

/* 16. Services page */
.services-page {
  background: #f7f7f5;
  padding-bottom: 72px;
}

.services-section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.services-section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.services-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 76ch;
}

.services-hero {
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding-block: clamp(34px, 6vw, 72px);
}

.services-hero__eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.services-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 13ch;
}

.services-hero__lead,
.services-hero__direction {
  margin: 0;
  color: var(--muted);
  max-width: 74ch;
  line-height: 1.74;
}

.services-hero__direction {
  font-weight: 700;
  color: var(--text);
}

.services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.services-core,
.services-workshops,
.services-menu {
  padding-block: clamp(52px, 8vw, 96px);
}

.services-core__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.services-core-group {
  background: color-mix(in srgb, var(--surface) 100%, transparent);
  border: 1px solid var(--line);
  padding: 18px;
  display: grid;
  gap: 10px;
}

.services-core-group__number {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  font-weight: 800;
}

.services-core-group h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.services-core-group p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.services-core-group__price {
  color: var(--text);
  font-weight: 800;
}

.services-core-group ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.services-workshops__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.services-workshop-item {
  background: color-mix(in srgb, var(--surface) 100%, transparent);
  border: 1px solid var(--line);
  display: grid;
}

.services-workshop-item__media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.services-workshop-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.services-workshop-item:hover .services-workshop-item__media img {
  transform: scale(1.03);
}

.services-workshop-item__body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.services-workshop-item__body h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.2;
}

.services-workshop-item__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.services-workshop-item__meta {
  font-size: 0.9rem;
}

.services-workshop-item__price {
  color: var(--text);
  font-weight: 800;
}

.services-banner {
  min-height: clamp(280px, 36vw, 400px);
  display: grid;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 100%, transparent);
}

.services-banner__inner {
  text-align: center;
  display: grid;
  gap: 10px;
}

.services-banner__inner h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.services-banner__inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.services-menu-group {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.services-menu-group__head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.services-menu-group__head h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.05;
}

.services-menu-group__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.services-menu-rows {
  display: grid;
  gap: 10px;
}

.services-menu-row {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 100%, transparent);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) minmax(220px, 1.3fr) minmax(120px, 0.8fr) minmax(160px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.services-menu-row h4 {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.2;
}

.services-menu-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.services-menu-row__fit {
  margin-top: 6px;
}

.services-menu-row__label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.services-menu-row__deliverables ul {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.services-menu-row__price {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.services-menu-row__price-value {
  color: var(--text);
  font-weight: 800;
}

.services-price-note {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.services-contact-cta {
  padding-block: clamp(66px, 10vw, 128px);
  border-top: 1px solid var(--line);
}

.services-contact-cta__inner {
  text-align: center;
  display: grid;
  gap: 14px;
}

.services-contact-cta__inner h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.services-contact-cta__inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.74;
}

.services-contact-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1180px) {
  .services-workshops__grid,
  .services-core__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-menu-row {
    grid-template-columns: 1.4fr 1.2fr 0.9fr;
  }

  .services-menu-row__price {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
}

@media (max-width: 760px) {
  .services-core__grid,
  .services-workshops__grid {
    grid-template-columns: 1fr;
  }

  .services-menu-row {
    grid-template-columns: 1fr;
  }

  .services-menu-row__deliverables ul {
    margin-top: 4px;
  }

  .services-contact-cta__actions .portal-cta,
  .services-contact-cta__actions .portal-chip,
  .services-hero__actions .portal-cta,
  .services-hero__actions .portal-chip {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-workshop-item__media img {
    transition: none;
  }

  .services-workshop-item:hover .services-workshop-item__media img {
    transform: none;
  }
}

/* 17. Project case template */
.project-case-page {
  background: #f7f7f5;
  padding-bottom: 72px;
}

.project-hero {
  padding-block: clamp(40px, 6vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

.project-hero__copy {
  display: grid;
  gap: 12px;
}

.project-hero__copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.project-hero__copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.project-hero__subtitle {
  color: var(--text);
  font-weight: 700;
}

.project-hero__subtitle--vi {
  color: var(--muted);
  font-style: italic;
}

.project-meta {
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

.project-meta div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.project-meta dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.project-meta dd {
  margin: 0;
  color: var(--muted);
}

.project-hero__media {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 0.32fr);
  gap: 12px;
  align-items: end;
}

.project-hero__media-main,
.project-hero__media-secondary {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 100%, transparent);
}

.project-hero__media-main {
  aspect-ratio: 4 / 5;
}

.project-hero__media-secondary {
  aspect-ratio: 4 / 5;
  transform: translateY(36px);
}

.project-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-experience {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 88%, transparent) 0%, color-mix(in srgb, var(--surface) 92%, transparent) 100%),
    var(--project-banner-image) center/cover no-repeat;
}

.project-experience__inner {
  padding-block: clamp(54px, 8vw, 100px);
  max-width: 680px;
  margin-left: auto;
  display: grid;
  gap: 12px;
}

.project-experience h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.project-experience p {
  margin: 0;
  color: var(--muted);
  line-height: 1.74;
}

.project-experience__message {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.project-experience__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-overview,
.project-outcome {
  padding-block: clamp(52px, 8vw, 96px);
}

.project-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.project-section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.project-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.project-overview__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-overview__grid article {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.project-overview__grid strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 6px;
}

.project-overview__grid p {
  margin: 0;
  color: var(--muted);
}

.project-overview__note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--muted);
  font-style: italic;
}

.project-detail {
  padding-block: clamp(42px, 6vw, 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.project-detail.is-reverse .project-detail__media {
  order: 2;
}

.project-detail.is-reverse .project-detail__copy {
  order: 1;
}

.project-detail__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}

.project-detail__copy {
  display: grid;
  gap: 12px;
}

.project-detail__copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 0.98;
}

.project-detail__copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.74;
}

.project-detail__copy ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.project-detail__message {
  color: var(--text);
  font-weight: 700;
}

.project-spreads {
  padding-block: clamp(40px, 6vw, 80px);
}

.project-spreads figure {
  margin: 0;
}

.project-spreads figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-spreads__full {
  margin-bottom: 14px;
}

.project-spreads__full img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

.project-spreads__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.project-spreads__split img,
.project-spreads__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.project-spreads__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-core {
  padding-block: clamp(44px, 6.5vw, 84px);
}

.project-core__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-core__grid article {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 6px;
}

.project-core__grid h3,
.project-core__support h3,
.project-core__support h4 {
  margin: 0;
}

.project-core__grid p,
.project-core__support p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.project-core__support {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.project-core__support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-core__support-grid article {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 100%, transparent);
  padding: 10px;
  display: grid;
  gap: 5px;
}

.project-core__message {
  margin: 16px 0 0;
  font-weight: 700;
  color: var(--text);
}

.project-outcome p {
  margin: 0;
  color: var(--muted);
  line-height: 1.74;
}

.project-outcome ul {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.project-testimonial {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 24px;
  display: grid;
  gap: 8px;
}

.project-testimonial blockquote {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.45;
}

.project-testimonial p {
  margin: 0;
  color: var(--muted);
}

.project-final-cta {
  padding-block: clamp(66px, 10vw, 120px);
  border-top: 1px solid var(--line);
}

.project-final-cta__inner {
  display: grid;
  gap: 12px;
  text-align: center;
}

.project-final-cta__inner h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 0.96;
}

.project-final-cta__inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.project-final-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.project-next {
  padding-bottom: 20px;
}

.project-next__card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 100%, transparent);
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.project-next__thumb {
  width: 88px;
  height: 88px;
  overflow: hidden;
}

.project-next__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-next__meta {
  display: grid;
  gap: 4px;
}

.project-next__arrow {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .project-hero,
  .project-detail,
  .project-overview__grid,
  .project-core__grid,
  .project-core__support-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .project-hero,
  .project-detail,
  .project-overview__grid,
  .project-spreads__split,
  .project-spreads__grid,
  .project-core__grid,
  .project-core__support-grid {
    grid-template-columns: 1fr;
  }

  .project-hero__media-secondary {
    transform: none;
  }

  .project-meta div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-detail.is-reverse .project-detail__media,
  .project-detail.is-reverse .project-detail__copy {
    order: initial;
  }

  .project-detail__media {
    order: 2;
  }

  .project-detail__copy {
    order: 1;
  }

  .project-experience__actions .portal-cta,
  .project-experience__actions .portal-chip,
  .project-final-cta__actions .portal-cta,
  .project-final-cta__actions .portal-chip {
    width: 100%;
    justify-content: center;
  }

  .project-next__card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .project-next__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* 99. Homepage smart-profile overrides */
.landing-home {
  background: linear-gradient(180deg, #f7faf9 0%, var(--bg) 100%);
  color: var(--text);
}

.lbt-module {
  position: relative;
}

.lbt-module.lbt-inline {
  padding-top: 34px;
}

.lbt-module.lbt-compact {
  padding-top: 30px;
}

.lbt-controls {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  gap: 6px;
  z-index: 3;
}

.lbt-btn.portal-chip {
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  font-weight: 700;
  opacity: 0.72;
}

.lbt-btn[aria-pressed="true"] {
  opacity: 1;
}

.lbt-content[hidden] {
  display: none;
}

.lbt-module.lbt-inline .lbt-content p + p {
  margin-top: 8px;
}

.landing-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.landing-section {
  padding: clamp(64px, 9vw, 116px) 0;
}

.landing-hero {
  position: relative;
  min-height: min(100vh, 980px);
  overflow: hidden;
  padding: 24px 0 0;
  background: #0b1422;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 84% 26%, rgba(53, 97, 136, 0.34) 0%, rgba(11, 20, 34, 0.14) 42%, rgba(11, 20, 34, 0) 66%),
    linear-gradient(96deg, rgba(5, 10, 20, 0.94) 0%, rgba(7, 15, 27, 0.9) 43%, rgba(10, 19, 32, 0.62) 68%, rgba(12, 24, 39, 0.38) 100%),
    linear-gradient(180deg, rgba(3, 8, 18, 0.4) 0%, rgba(3, 8, 18, 0.76) 100%);
  z-index: -2;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 9, 18, 0.78) 0%, rgba(4, 9, 18, 0.6) 38%, rgba(4, 9, 18, 0.22) 66%, rgba(4, 9, 18, 0) 84%);
  z-index: -1;
}

.landing-hero__curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(88px, 13vw, 156px);
  z-index: 1;
  pointer-events: none;
}

.landing-hero__curve svg {
  width: 100%;
  height: 100%;
  display: block;
}

.landing-hero__curve path {
  fill: #f7faf9;
  filter: drop-shadow(0 -10px 16px rgba(6, 13, 25, 0.15));
}

.landing-hero__content {
  width: var(--container-content);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  min-height: min(92vh, 860px);
  position: relative;
  z-index: 2;
  padding-bottom: 120px;
}

.landing-hero__copy,
.landing-smart-profile__copy,
.landing-audience__intro,
.landing-about__copy,
.landing-contact__copy {
  display: grid;
  gap: 12px;
}

.landing-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: clamp(18px, 2.8vw, 34px);
  border-radius: 18px;
  background: linear-gradient(108deg, rgba(6, 12, 24, 0.86) 0%, rgba(8, 16, 30, 0.74) 62%, rgba(9, 18, 32, 0.22) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 56px rgba(4, 10, 20, 0.36);
}

.landing-hero__lbt {
  padding-top: 34px;
}

.landing-hero__copy .lbt-btn.portal-chip {
  background: rgba(240, 248, 255, 0.08);
  color: rgba(248, 251, 255, 0.9);
  border-color: rgba(240, 248, 255, 0.28);
}

.landing-hero__copy .lbt-btn[aria-pressed="true"] {
  background: rgba(248, 251, 255, 0.96);
  color: #111827;
  border-color: rgba(248, 251, 255, 0.96);
}

.landing-hero__label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(235, 243, 252, 0.86);
  font-weight: 800;
}

.landing-hero__sub {
  margin: 0;
  color: rgba(235, 243, 252, 0.8);
  font-weight: 600;
}

.landing-hero h1,
.landing-section__header h2,
.landing-smart-profile__copy h2,
.landing-audience__intro h2,
.landing-about__copy h2,
.landing-contact__copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.landing-hero h1,
.landing-hero h2 {
  color: #f8fbff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.landing-hero h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.landing-hero__lead,
.landing-hero__body,
.landing-hero__capabilities,
.landing-section__header p,
.landing-card p,
.landing-about__copy p,
.landing-contact__copy p,
.landing-footer p,
.landing-content-card li,
.landing-process-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.landing-hero__lead,
.landing-hero__body,
.landing-hero__capabilities {
  color: rgba(238, 246, 255, 0.9);
}

.landing-hero__capabilities {
  opacity: 0.92;
}

.landing-hero__actions,
.landing-contact__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: #111827;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, opacity 180ms ease;
}

.landing-btn:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

.landing-btn--secondary,
.landing-btn--secondary-light {
  background: rgba(240, 248, 255, 0.12);
  color: #f8fbff;
  border-color: rgba(240, 248, 255, 0.3);
}

.landing-btn--light {
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  border-color: rgba(255, 255, 255, 0.42);
}

.landing-hero__visual {
  position: relative;
  min-height: clamp(380px, 54vh, 620px);
  display: grid;
  place-items: center;
  filter: saturate(1.05) contrast(1.03);
}

.landing-doc {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 44px rgba(4, 10, 20, 0.42);
  background: var(--surface-strong);
}

.landing-doc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(1.06) contrast(1.06);
}

.landing-doc--main {
  width: min(92%, 540px);
  height: clamp(320px, 48vh, 520px);
}

.landing-doc--float-a {
  width: min(48%, 280px);
  height: clamp(160px, 24vh, 220px);
  left: 0;
  top: 10%;
  transform: translateX(-10%) rotate(-5deg);
}

.landing-doc--float-b {
  width: min(42%, 240px);
  height: clamp(140px, 22vh, 210px);
  right: 2%;
  bottom: 4%;
  transform: rotate(6deg);
}

.landing-smart-profile__grid,
.landing-audience,
.landing-about,
.landing-contact__grid {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
}

.landing-smart-profile__grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.landing-smart-profile__visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 420px;
}

.landing-smart-profile__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-mini-label {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
}

.landing-mini-label:nth-of-type(1) { top: 12px; left: 12px; }
.landing-mini-label:nth-of-type(2) { top: 12px; right: 12px; }
.landing-mini-label:nth-of-type(3) { bottom: 12px; left: 12px; }
.landing-mini-label:nth-of-type(4) { bottom: 12px; right: 12px; }

.landing-smart-profile__copy ul,
.landing-content-card ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 8px;
}

.landing-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(18px, 2.3vw, 28px);
}

.landing-audience {
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
}

.landing-audience__grid,
.landing-projects__grid,
.landing-outputs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.landing-audience-card:nth-child(2),
.landing-audience-card:nth-child(4),
.landing-project--compact {
  transform: translateY(14px);
}

.landing-audience-card:hover,
.landing-project:hover {
  transform: translateY(-4px);
}

.landing-content-system__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.landing-content-card:nth-child(-n + 3) { grid-column: span 2; }
.landing-content-card:nth-child(n + 4) { grid-column: span 3; }

.landing-content-card__order,
.landing-process-card__order {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--text) 58%, var(--muted));
}

.landing-process {
  position: relative;
}

.landing-process__timeline {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(clamp(64px, 9vw, 116px) + 150px);
  height: 1px;
  background: var(--line);
}

.landing-process__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.landing-process-card {
  position: relative;
}

.landing-process-card::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 22%, var(--muted));
}

.landing-project {
  padding: 0;
  overflow: hidden;
}

.landing-project__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.landing-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.landing-project:hover .landing-project__media img {
  transform: scale(1.03);
}

.landing-project__body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.landing-project__category {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.landing-link {
  color: var(--text);
  font-weight: 700;
}

.landing-outputs__map {
  display: grid;
  gap: 16px;
}

.landing-output-master {
  text-align: center;
  background: rgba(217, 245, 248, 0.5);
}

.landing-output-card {
  min-height: 88px;
  display: grid;
  place-items: center;
  text-align: center;
}

.landing-about {
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  align-items: center;
}

.landing-about__media {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.landing-about__media img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
}

.landing-about__caps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-about__caps span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.landing-contact {
  margin-top: 28px;
  border-radius: 44px 44px 0 0;
  background: #111827;
  color: #f7f8fa;
}

.landing-contact .landing-eyebrow,
.landing-contact p,
.landing-contact .landing-btn--secondary-light {
  color: rgba(247, 248, 250, 0.84);
}

.landing-contact__grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.landing-contact__form {
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.landing-contact__form label {
  display: grid;
  gap: 7px;
}

.landing-contact__form span {
  font-size: 0.82rem;
}

.landing-contact__form input,
.landing-contact__form textarea {
  width: 100%;
  border: 1px solid rgba(247, 248, 250, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #f7f8fa;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
}

.landing-contact__form .landing-btn {
  width: 100%;
}

.landing-footer {
  background: #f3f5f4;
  border-top: 1px solid var(--line);
  padding: 44px 0 54px;
}

.landing-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 24px;
}

.landing-footer__links {
  display: grid;
  gap: 8px;
}

@media (max-width: 1180px) {
  .landing-process__timeline,
  .landing-process-card::before {
    display: none;
  }

  .landing-process__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-content-system__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-content-card:nth-child(-n + 5) {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .landing-hero__content,
  .landing-smart-profile__grid,
  .landing-audience,
  .landing-about,
  .landing-contact__grid,
  .landing-footer__grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-hero__content {
    min-height: auto;
    padding-bottom: 90px;
  }

  .landing-hero__visual {
    min-height: 360px;
    order: 2;
  }

  .landing-hero__copy {
    background: linear-gradient(110deg, rgba(6, 12, 24, 0.9) 0%, rgba(8, 16, 30, 0.82) 70%, rgba(10, 18, 31, 0.38) 100%);
  }

  .landing-audience-card:nth-child(2),
  .landing-audience-card:nth-child(4),
  .landing-project--compact {
    transform: none;
  }
}

@media (max-width: 640px) {
  .landing-hero__actions,
  .landing-contact__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-btn,
  .landing-btn--secondary,
  .landing-btn--light,
  .landing-btn--secondary-light {
    width: 100%;
  }

  .landing-doc--main {
    width: 100%;
  }

  .landing-doc--float-a,
  .landing-doc--float-b {
    width: 42%;
    height: 120px;
  }

  .landing-audience__grid,
  .landing-projects__grid,
  .landing-outputs__grid,
  .landing-process__grid,
  .landing-content-system__grid {
    grid-template-columns: 1fr;
  }

  .landing-card {
    padding: 16px;
  }

  .landing-hero__copy {
    padding: 16px;
    border-radius: 14px;
  }

  .landing-hero__lbt {
    padding-top: 30px;
  }

  .landing-hero::after {
    background: linear-gradient(90deg, rgba(4, 9, 18, 0.82) 0%, rgba(4, 9, 18, 0.72) 62%, rgba(4, 9, 18, 0.28) 100%);
  }
}

/* 100. Perspective homepage overrides */
.landing-home--perspective .landing-hero__content {
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: clamp(28px, 5vw, 72px);
}

.landing-home--perspective .landing-hero__copy {
  max-width: 640px;
}

.landing-home--perspective .landing-hero h1 {
  font-size: clamp(2.8rem, 6.2vw, 6.3rem);
}

.landing-home--perspective .landing-hero__visual {
  min-height: min(82vh, 760px);
  align-self: stretch;
}

.landing-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 44px rgba(4, 10, 20, 0.42);
  filter: brightness(0.84) saturate(1.05) contrast(1.04);
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.landing-split--reverse .landing-split__visual {
  order: 1;
}

.landing-split--reverse .landing-split__copy {
  order: 2;
}

.landing-split__copy {
  display: grid;
  gap: 14px;
}

.landing-split__copy--headline h2,
.landing-split__copy--offset h2,
.landing-philosophy h2,
.landing-outputs--editorial h2,
.landing-final-cta h2,
.landing-about .landing-split__copy h2,
.landing-process--editorial h2,
.landing-perspectives-grid h2,
.landing-selected-work h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.landing-split__support {
  display: grid;
  gap: 18px;
}

.landing-split__visual {
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.landing-split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-aio {
  background: rgba(255, 255, 255, 0.42);
}

.landing-split--wide {
  align-items: start;
}

.landing-split__copy--offset {
  padding-top: clamp(24px, 8vw, 92px);
}

.landing-section__header--narrow {
  max-width: 780px;
}

.landing-perspectives-grid__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-perspective-card {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 12px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.landing-perspective-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--line) 50%, var(--text) 50%);
  box-shadow: var(--shadow);
}

.landing-perspective-card__label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--muted);
}

.landing-bullet-list,
.landing-output-list {
  margin: 6px 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 10px;
}

.landing-bullet-list li,
.landing-output-list li {
  line-height: 1.65;
}

.landing-process--editorial .landing-process__flow {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.landing-process-step {
  width: min(100%, 420px);
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  position: relative;
}

.landing-process-step::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 14px;
  background: var(--line);
}

.landing-process-step:last-child::after {
  display: none;
}

.landing-process-step.is-right {
  margin-left: auto;
}

.landing-process-step__order {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.landing-process-step h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.08;
}

.landing-selected-work__grid {
  column-count: 2;
  column-gap: 18px;
}

.landing-work-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  break-inside: avoid;
}

.landing-work-card__media {
  display: block;
  overflow: hidden;
}

.landing-work-card--tall .landing-work-card__media {
  aspect-ratio: 4 / 5;
}

.landing-work-card--short .landing-work-card__media {
  aspect-ratio: 4 / 3;
}

.landing-work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.landing-work-card:hover .landing-work-card__media img {
  transform: scale(1.03);
}

.landing-work-card__body {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.landing-work-card__body h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.landing-outputs--editorial .landing-split {
  align-items: start;
}

.landing-split__visual--outputs,
.landing-split__visual--portrait,
.landing-split__visual--tall,
.landing-split__visual--framed {
  min-height: 560px;
}

.landing-final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 12vw, 160px) 0;
  color: #f7f8fa;
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.76) 0%, rgba(5, 10, 20, 0.84) 100%),
    url('../demo/profile-anhdophin/assets/main_bg_2.webp') center / cover no-repeat;
}

.landing-final-cta__inner {
  text-align: center;
  display: grid;
  gap: 18px;
}

.landing-final-cta .landing-final-cta__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-final-cta .lbt-btn.portal-chip {
  background: rgba(240, 248, 255, 0.08);
  color: rgba(248, 251, 255, 0.9);
  border-color: rgba(240, 248, 255, 0.28);
}

.landing-final-cta .lbt-btn[aria-pressed="true"] {
  background: rgba(248, 251, 255, 0.96);
  color: #111827;
}

.landing-final-cta p,
.landing-final-cta h2 {
  color: #f7f8fa;
}

@media (max-width: 980px) {
  .landing-home--perspective .landing-hero__content,
  .landing-split {
    grid-template-columns: 1fr;
  }

  .landing-split--reverse .landing-split__visual,
  .landing-split--reverse .landing-split__copy {
    order: initial;
  }

  .landing-split__copy--offset {
    padding-top: 0;
  }

  .landing-perspectives-grid__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-selected-work__grid {
    column-count: 1;
  }

  .landing-split__visual,
  .landing-split__visual--outputs,
  .landing-split__visual--portrait,
  .landing-split__visual--tall,
  .landing-split__visual--framed {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .landing-home--perspective .landing-hero__visual {
    min-height: 320px;
  }

  .landing-perspectives-grid__items {
    grid-template-columns: 1fr;
  }

  .landing-process-step,
  .landing-process-step.is-right {
    width: 100%;
    margin-left: 0;
  }

  .landing-final-cta .landing-final-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
