/* ==========================================================================
   Mac Nattapong — Modern Personal Brand & Portfolio Stylesheet
   Domain: https://www.macntp.com/
   Typography: Bricolage Grotesque (Display/Latin) + IBM Plex Sans Thai (Thai)
   Aesthetic: Contemporary Editorial, Tech-Forward, Clean Humanist Navy & Yellow
   ========================================================================== */

:root {
  --navy: #111c34;
  --navy-deep: #0a1120;
  --navy-light: #1b2a4d;
  --yellow: #ffd000;
  --yellow-hover: #f5c400;
  --yellow-light: #fff8cc;
  --yellow-glow: rgba(255, 208, 0, 0.25);
  
  --paper: #ffffff;
  --soft: #f8fafc;
  --soft-card: #f1f5f9;
  --soft-hover: #e9eef5;
  
  --muted: #5e6d82;
  --muted-light: #8e9bb0;
  --line: #e2e8f0;
  --line-dark: #24324d;
  
  --thai: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', var(--thai);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(17, 28, 52, 0.05);
  --shadow-md: 0 10px 28px rgba(17, 28, 52, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 28, 52, 0.12);
  --shadow-yellow: 0 10px 25px rgba(255, 208, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family: var(--thai);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body:has(dialog[open]) {
  overflow: hidden;
}

::selection {
  background: var(--yellow);
  color: var(--navy-deep);
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd {
  margin: 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--navy);
}

h1 {
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: -0.04em;
  line-height: 1.18;
}

h2 {
  font-size: clamp(28px, 4.2vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

p {
  max-width: 68ch;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

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

button {
  cursor: pointer;
  border: 0;
  background: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button, a, summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #2585cf;
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
}

button svg {
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

/* Layout Utilities */
.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(60px, 8.5vw, 110px);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font: 600 12px/1.5 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1.4 var(--display);
  letter-spacing: 0.08em;
  color: var(--navy);
  text-transform: uppercase;
  background: var(--yellow-light);
  border: 1px solid rgba(255, 208, 0, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.lead {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.7;
  color: var(--navy);
}

.marker {
  position: relative;
  border-bottom: 4px solid var(--yellow);
  padding-bottom: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.highlight {
  background: var(--yellow);
  padding: 2px 8px;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Accessibility Skip Link */
.skip,
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  transform: translateY(-180%);
  z-index: 1000;
  background: var(--yellow);
  color: var(--navy-deep);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease);
}

.skip:focus,
.skip-link:focus {
  transform: translateY(0);
}

/* Reading Progress Bar */
.read-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--yellow);
  z-index: 999;
  transform: scaleX(0);
  transform-origin: left;
}

/* Buttons & Links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--yellow);
  color: var(--navy-deep);
  padding: 14px 26px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(17, 28, 52, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
  min-height: 48px;
}

.button:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}

.button-secondary {
  background: var(--soft-card);
  color: var(--navy);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: var(--soft-hover);
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  width: fit-content;
  align-self: flex-start;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
  transition: all 0.2s var(--ease);
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  border-bottom-color: var(--navy);
}

.text-link:hover svg {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font: 800 32px/1 var(--display);
  letter-spacing: -0.05em;
  color: var(--navy);
}

.wordmark span {
  color: var(--yellow);
}

.site-header nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.site-header nav a {
  position: relative;
  padding: 6px 0;
  color: var(--navy);
  transition: color 0.2s;
}

.site-header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-header nav a:hover::after {
  transform: scaleX(1);
}

.site-header .nav-contact {
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.25s var(--ease);
}

.site-header .nav-contact::after {
  display: none;
}

.site-header .nav-contact:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--soft-card);
  border: 1px solid var(--line);
}

.mobile-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: none;
  color: var(--navy);
  font-weight: 700;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  max-width: 1100px;
  margin-inline: auto;
  padding-top: clamp(35px, 5vw, 65px);
  padding-bottom: clamp(30px, 4vw, 50px);
  min-height: calc(85vh - 74px);
  position: relative;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.hero-name {
  display: inline-block;
  font: 700 16px/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.hero h1 .hero-sub {
  display: block;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-top: 8px;
}

.identity {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}

.hero-bio {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 54ch;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  background: var(--soft-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--navy);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Hero Showcase Visual & Polaroid Collage */
.hero-collage {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: center;
  padding: 38px 0 28px 42px;
}

.hero-card-accent {
  position: absolute;
  top: 54px;
  left: 60px;
  right: -12px;
  bottom: 20px;
  background: var(--yellow);
  border: 1px solid var(--navy);
  border-radius: var(--radius-lg);
  transform: rotate(3deg);
  z-index: 1;
}

.hero-note {
  display: none;
}

.hero-main-card {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy);
  box-shadow: 0 16px 36px rgba(17, 28, 52, 0.16);
  transition: transform 0.4s var(--ease);
}

.hero-main-card:hover { transform: scale(1.01); }

.hero-main-card img {
  width: 100%;
  aspect-ratio: 4 / 3.8;
  object-fit: cover;
  object-position: left center;
  border-radius: var(--radius-md);
}

.hero-main-card figcaption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 20px 2px;
  font: 600 12px/1.4 var(--display);
  color: var(--navy);
}

.hero-polaroid {
  position: absolute;
  z-index: 3;
  background: #fff;
  padding: 7px 7px 10px;
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(17, 28, 52, 0.18);
  transition: transform 0.3s var(--ease);
}

.hero-polaroid img { display: block; object-fit: cover; border-radius: 2px; }

.hero-polaroid span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--navy);
}

.hero-polaroid-travel,
.hero-polaroid-workshop { top: 16px; left: -22px; right: auto; transform: rotate(-6deg); }
.hero-polaroid-travel img,
.hero-polaroid-workshop img { width: 132px; height: 99px; }
.hero-polaroid-mic { bottom: 16px; left: -26px; right: auto; transform: rotate(4deg); }
.hero-polaroid-mic img { width: 116px; height: 134px; }
.hero-polaroid:hover { transform: scale(1.05) rotate(0deg); z-index: 5; }

.hero-link-more {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--duration-fast);
}

.hero-link-more:hover {
  color: var(--gold-dark);
}

.hero-foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

#replay-intro {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

#replay-intro:hover {
  color: var(--navy);
}

/* ==========================================================================
   Story Section
   ========================================================================== */
.intro {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}

.intro-grid h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.25;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.intro-text p {
  font-size: 16px;
  color: var(--navy);
}

.intro-text p.lead {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
}

/* ==========================================================================
   Mindset & 4 Pillars (The Generalist Superpower)
   ========================================================================== */
.mindset {
  border-bottom: 1px solid var(--line);
}

.mindset-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.mindset-heading h2 {
  font-size: clamp(30px, 3.8vw, 48px);
}

.mindset-heading p {
  color: var(--muted);
  font-size: 16px;
}

.lens-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.lens-switches {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lens-switches button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  background: var(--soft-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease);
  min-height: 54px;
}

.lens-switches button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--yellow);
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.lens-switches button:hover:not([aria-pressed="true"]) {
  background: var(--soft-hover);
  border-color: var(--muted-light);
  transform: translateX(3px);
}

.lens-panels {
  min-height: 380px;
}

.lens-panel {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 35px;
  align-items: center;
  min-height: 380px;
}

.lens-copy h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  margin-bottom: 16px;
}

.lens-copy p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.8;
}

.lens-panel figure {
  display: block;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.lens-panel img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.lens-panel figcaption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.lens-panel.lens-active {
  animation: lens-reveal 0.4s var(--ease);
}

@keyframes lens-reveal {
  from { opacity: 0.4; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Chapter Navigation (Quick Jump Pills - Non-Sticky)
   ========================================================================== */
.chapter-nav {
  position: relative;
  background: #fff;
  border-block: 1px solid var(--line);
  padding: 12px 0;
}

.chapter-nav .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chapter-nav .wrap::-webkit-scrollbar {
  display: none;
}

.chapter-nav a {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-full);
  background: var(--soft);
  color: var(--navy);
  border: 1px solid var(--line);
  transition: all 0.2s var(--ease);
}

.chapter-nav a:hover {
  background: var(--yellow-light);
  border-color: var(--yellow);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.chapter-nav a[aria-current="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy-deep);
  font-weight: 700;
}

/* ==========================================================================
   Chapter 1: Tech, AI & Product Building
   ========================================================================== */
.building {
  padding-bottom: 80px;
}

.building-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 45px;
}

.building-intro h2 {
  font-size: clamp(30px, 3.8vw, 48px);
}

.building-intro .lead {
  font-size: 20px;
  margin-bottom: 12px;
}

.building-intro p+p {
  color: var(--muted);
  font-size: 15px;
}

.build-feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.tool-screen {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tool-screen:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tool-screen img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  background: #fff;
}

.tool-screen>span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border-top: 1px solid var(--line);
}

.build-caption h3 {
  font: 700 clamp(24px, 3vw, 36px)/1.2 var(--display);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.build-credit {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.build-caption p:not(.build-credit) {
  font-size: 15px;
  line-height: 1.8;
  color: var(--navy);
}

.role-note {
  font-size: 13px !important;
  color: var(--muted) !important;
  background: var(--paper);
  border-left: 3px solid var(--yellow);
  padding: 8px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-block: 16px !important;
}

.build-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.build-related {
  display: grid;
  grid-template-columns: 120px 1fr 20px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease);
}

.build-related:hover {
  background: #fff;
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.build-related img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.build-related strong {
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.build-related small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  display: block;
}

.tech-tools {
  border-block: 1px solid var(--line);
  margin-top: 40px;
  padding-block: 22px;
}

.tech-tools summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}

.tech-tools summary::-webkit-details-marker {
  display: none;
}

.tech-tools summary span {
  font-size: 13px;
  color: var(--muted);
}

.tech-tools dl {
  margin-top: 24px;
}

.tech-tools dl>div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 14px;
}

.tech-tools dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.tech-tools dd {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.tech-bridge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: var(--yellow);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  margin-top: 40px;
  box-shadow: var(--shadow-yellow);
}

.tech-bridge p {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--navy-deep);
}

.tech-bridge .button {
  background: var(--navy);
  color: #fff;
  border: none;
  white-space: nowrap;
}

.tech-bridge .button:hover {
  background: #000;
  color: var(--yellow);
}

/* ==========================================================================
   Chapter 2: Camera & Content Storytelling
   ========================================================================== */
.chapter-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.chapter-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

.camera-spread {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 32px;
  align-items: center;
}

.video-feature {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.video-feature img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.video-feature:hover img {
  transform: scale(1.02);
}

.play-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: var(--shadow-yellow);
  transition: transform 0.25s var(--ease);
}

.video-feature:hover .play-disc {
  transform: translate(-50%, -50%) scale(1.12);
}

.feature-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.feature-caption span {
  color: var(--muted);
  font-weight: 400;
}

.camera-side {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.camera-side img {
  max-height: 280px;
  aspect-ratio: 9/16;
  object-fit: cover;
  margin-inline: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.camera-side p {
  font-size: 20px;
  font-weight: 600;
  margin-block: 16px 12px;
}

/* ==========================================================================
   Chapter 3: Voice-Over Story
   ========================================================================== */
.voice-story {
  background: var(--navy-deep);
  color: #fff;
}

.voice-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: center;
}

.studio-photo {
  position: relative;
  background: #1e293b;
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
}

.studio-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-md);
}

.studio-photo figcaption {
  font-size: 12px;
  color: var(--muted-light);
  padding-top: 10px;
  text-align: center;
}

.voice-copy h2 {
  color: #fff;
  font-size: clamp(34px, 4.5vw, 56px);
  margin-bottom: 16px;
}

.voice-copy .lead {
  color: var(--yellow);
  font-weight: 500;
  margin-bottom: 10px;
}

.voice-copy p:not(.lead) {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.8;
}

.voice-examples {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.voice-examples a {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: all 0.25s var(--ease);
}

.voice-examples a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--yellow);
  transform: translateX(4px);
}

.voice-examples img {
  width: 60px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
}

.voice-examples span {
  display: grid;
  gap: 2px;
  font: 600 17px/1.4 var(--display);
  color: #fff;
}

.voice-examples small {
  font-size: 11px;
  color: var(--muted-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voice-examples b {
  font: 400 13px/1.6 var(--thai);
  color: var(--yellow);
}

/* ==========================================================================
   Chapter 4: People & Community
   ========================================================================== */
.community-wide {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.community-wide img {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
}

.community-wide figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.community-wide strong {
  font: 700 18px/1.3 var(--display);
}

.community-wide span {
  color: var(--muted);
  font-size: 14px;
}

.community-wide a {
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  border-bottom: 2px solid var(--yellow);
}

.people-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.people-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.people-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.people-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.people-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.people-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ==========================================================================
   Portfolio Archive (All 32 Items)
   ========================================================================== */
.portfolio {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

/* Featured Works Header (Bounded & Proportioned) */
.featured-heading {
  max-width: 640px;
  margin-bottom: 36px;
}

.featured-heading .section-label {
  margin-bottom: 8px;
}

.featured-heading h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-block: 8px 12px;
  letter-spacing: -0.02em;
}

.featured-heading .section-desc {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.featured-heading .text-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.featured-heading .text-link:hover {
  color: var(--navy-light);
}

.archive-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 35px;
}

.archive-heading h2 {
  font-size: clamp(30px, 3.8vw, 48px);
}

.archive-heading p {
  color: var(--muted);
  font-size: 16px;
}

.archive-toolbar {
  border-block: 1px solid var(--line);
  padding-block: 16px;
  margin-bottom: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.2s var(--ease);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filters button span {
  font: 700 11px/1 var(--display);
  background: var(--soft-card);
  padding: 3px 7px;
  border-radius: var(--radius-full);
  color: var(--muted);
}

.filters button:hover {
  border-color: var(--navy);
  background: var(--soft-card);
}

.filters button.active {
  background: var(--navy);
  color: var(--yellow);
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.filters button.active span {
  background: rgba(255, 208, 0, 0.2);
  color: var(--yellow);
}

.result-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.group-heading h2, .group-heading h3 {
  font-size: 22px;
  font-weight: 700;
}

.group-heading span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.work-group + .work-group {
  margin-top: 60px;
}

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

.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.work-image {
  position: relative;
  display: block;
  background: var(--soft-card);
  overflow: hidden;
}

.work-cover {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

#skooldio .work-cover {
  aspect-ratio: 4/3;
  object-position: 50% 8%;
}

.work-image:hover .work-cover {
  transform: scale(1.04);
}

.work-image.vertical-preview .work-cover {
  object-fit: contain;
  aspect-ratio: 4/4.5;
  background: #f1f5f9;
}

.work-image.source-screen .work-cover {
  object-fit: contain;
  background: #fff;
}

.image-arrow {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  background: var(--yellow);
  color: var(--navy-deep);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease);
}

.work-image:hover .image-arrow {
  transform: scale(1.1);
}

.work-copy {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.work-copy h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.work-copy p:not(.work-brand) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  flex-grow: 1;
}

.work-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.watch-button:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
}

/* Case Details Accordion inside Card */
.case-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.case-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}

.case-details summary::-webkit-details-marker {
  display: none;
}

.case-details summary span {
  font-size: 11px;
  color: var(--muted);
}

.case-details-content {
  margin-top: 14px;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.7;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.photo-button {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--soft-card);
}

.photo-button img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-button:hover img {
  transform: scale(1.05);
}

.zoom-symbol {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

/* ==========================================================================
   Experience Section (Journey Timeline)
   ========================================================================== */
.experience {
  border-top: 1px solid var(--line);
}

.experience-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.experience-heading h2 {
  font-size: clamp(30px, 3.8vw, 48px);
}

.experience-heading p {
  color: var(--muted);
  font-size: 16px;
}

.experience-list {
  display: flex;
  flex-direction: column;
}

.experience-list article {
  display: grid;
  grid-template-columns: 180px 1fr 140px;
  gap: 30px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-block: 28px;
  transition: background 0.2s;
}

.experience-list article:hover {
  background: var(--soft);
}

.experience-date {
  font: 700 15px/1.6 var(--display);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.experience-list h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.experience-list p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.experience-list a {
  justify-self: end;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ==========================================================================
   Life & Off-Screen Exploration
   ========================================================================== */
.life {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.life-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.travel-photo {
  position: relative;
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}

.travel-photo img {
  width: 100%;
  aspect-ratio: 4/4.5;
  object-fit: cover;
  object-position: 40% center;
  border-radius: var(--radius-md);
}

.travel-photo figcaption {
  font-size: 12px;
  font-weight: 600;
  padding: 10px 4px 2px;
  color: var(--navy);
}

.travel-stamp {
  position: absolute;
  bottom: 8%;
  right: -12px;
  background: var(--yellow);
  color: var(--navy-deep);
  padding: 12px 18px;
  font: 800 20px/1 var(--display);
  letter-spacing: -0.04em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy);
  box-shadow: var(--shadow-md);
  transform: rotate(6deg);
}

.life-copy h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  margin-bottom: 16px;
}

.life-copy .lead {
  font-size: 19px;
  margin-bottom: 24px;
}

.life-notes {
  display: flex;
  flex-direction: column;
}

.life-notes>div {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 18px;
}

.life-notes span {
  font: 700 14px/1 var(--display);
  color: var(--yellow-hover);
  background: var(--yellow-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.life-notes h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.life-notes p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   MacSolute Section (Business & Tech Studio)
   ========================================================================== */
.projects {
  background: #fff;
  border-top: 1px solid var(--line);
}

.project-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.project-feature h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.25;
}

.project-feature h2 span {
  font-family: var(--display);
  color: var(--navy);
}

.project-feature p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 18px;
  margin-bottom: 24px;
  line-height: 1.8;
}

.macsolute-mark {
  display: block;
  padding: 36px 32px;
  background: var(--yellow);
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: transform 0.3s var(--ease);
}

.macsolute-mark:hover {
  transform: translateY(-4px);
}

.macsolute-mark span {
  display: block;
  font: 800 clamp(48px, 6vw, 76px)/0.95 var(--display);
  letter-spacing: -0.06em;
  color: var(--navy-deep);
}

.macsolute-mark small {
  font: 700 11px var(--display);
  display: block;
  margin-top: 24px;
  letter-spacing: 0.1em;
  color: var(--navy);
}

.project-notes {
  margin-top: 45px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-notes details {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.project-notes summary {
  font: 600 18px/1.4 var(--thai);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.project-notes summary::-webkit-details-marker {
  display: none;
}

.project-notes summary span {
  font-size: 13px;
  color: var(--muted);
}

.project-notes details p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 14px;
}

/* ==========================================================================
   Contact & AI FAQ Section
   ========================================================================== */
.contact {
  border-top: 1px solid var(--line);
}

.contact h2 {
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.25;
}

.contact-bottom {
  margin-top: 35px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-bottom p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}

.contact-bottom a:not(.contact-email) {
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--yellow);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 700 clamp(20px, 2.8vw, 32px)/1.4 var(--display);
  letter-spacing: -0.03em;
  background: var(--yellow);
  color: var(--navy-deep);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-yellow);
  transition: all 0.25s var(--ease);
}

.contact-email:hover {
  background: var(--yellow-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 208, 0, 0.4);
}

/* ==========================================================================
   FAQ Section (Bounded Card Component)
   ========================================================================== */
.faq-card-section {
  max-width: 860px;
  margin: 60px auto 0;
  padding: 44px 48px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl, 24px);
  box-shadow: 0 4px 24px rgba(17, 28, 52, 0.04);
}

.faq-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}

.faq-header .section-label {
  display: inline-block;
  margin-bottom: 8px;
}

.faq-header h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.faq-header .section-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft, #f8fafc);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.faq-item[open] {
  background: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(17, 28, 52, 0.06);
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  flex: 1;
  line-height: 1.45;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.faq-item:hover .faq-icon {
  border-color: var(--navy);
}

.faq-item[open] .faq-icon {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 18px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.faq-answer a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: var(--navy-light);
}

@media (max-width: 600px) {
  .faq-card-section {
    padding: 24px 18px;
    margin-top: 40px;
    border-radius: 18px;
  }

  .faq-header {
    margin-bottom: 24px;
    text-align: left;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 14.5px;
  }

  .faq-answer {
    padding: 0 16px 16px;
    padding-top: 12px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy-deep);
  color: #fff;
  padding-block: 48px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  width: 100%;
}

.footer-nav strong {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 12px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2.1;
  font-size: 14px;
}

.footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--duration-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 13px;
  color: #64748b;
  width: 100%;
}

@media (max-width: 768px) {
  .footer-nav {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.footer p span {
  font-family: var(--display);
  color: #64748b;
  font-size: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer .text-link {
  font-size: 13px;
  color: #cbd5e1;
  border-bottom-color: rgba(255, 208, 0, 0.5);
}

.footer .text-link:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* ==========================================================================
   Media Dialog Modal
   ========================================================================== */
dialog {
  width: min(1000px, calc(100% - 32px));
  max-height: 92dvh;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--navy-deep);
  color: #fff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

dialog::backdrop {
  background: rgba(10, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

dialog[open] {
  animation: dialog-in 0.3s var(--ease);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dialog-head h2 {
  color: #fff;
  font: 500 16px/1.5 var(--thai);
  letter-spacing: 0;
}

.dialog-close {
  background: #fff;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.dialog-close:hover {
  background: var(--yellow);
}

#media-content {
  display: grid;
  place-items: center;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 16px;
  min-height: 240px;
}

#media-content>img {
  max-height: 70dvh;
  width: 100%;
  object-fit: contain;
}

#media-content>iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  font-size: 13px;
}

.gallery-controls button {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: all 0.2s;
}

.gallery-controls button:hover:not(:disabled) {
  background: var(--yellow);
  color: var(--navy);
}

/* ==========================================================================
   Animations & Micro-interactions
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.seen, .reveal:not(.ready) {
  opacity: 1;
  transform: translateY(0);
}

.work-group.filter-enter {
  animation: filter-in 0.35s var(--ease);
}

@keyframes filter-in {
  from { opacity: 0.3; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive Breakpoints  (Desktop > 1100 | Tablet 641-900 | Mobile <= 640)
   ========================================================================== */
@media (max-width: 1100px) {
  .hero { gap: 28px; }
  .hero-collage { max-width: 460px; padding: 36px 0 28px 36px; }
  .hero-polaroid-travel,
  .hero-polaroid-workshop { top: 14px; left: -18px; right: auto; transform: rotate(-6deg); }
  .hero-polaroid-travel img,
  .hero-polaroid-workshop img { width: 118px; height: 88px; }
  .hero-polaroid-mic { bottom: 14px; left: -22px; right: auto; transform: rotate(4deg); }
  .hero-polaroid-mic img { width: 104px; height: 120px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 901px) {
  .site-header .mobile-menu { display: none !important; }
}

@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }

  /* --- Header: hamburger instead of inline nav --- */
  .header-inner { height: 64px; }
  .wordmark { font-size: 28px; }
  .site-header .header-inner > nav { display: none; }
  .menu-button { display: inline-flex; }

  .site-header .mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 6px 20px 22px;
    font-size: 16px;
  }
  .site-header .mobile-menu a {
    padding: 14px 0;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  .site-header .mobile-menu a::after { display: none; }
  .site-header .mobile-menu a.active {
    font-weight: 700;
    padding-left: 12px;
    box-shadow: inset 3px 0 0 var(--yellow);
  }
  .site-header .mobile-menu a:last-child {
    margin-top: 16px;
    padding: 14px 20px;
    border-bottom: 0;
    border-radius: var(--radius-full);
    background: var(--navy);
    color: #fff;
    text-align: center;
    font-weight: 600;
    box-shadow: none;
  }

  /* --- Hero: stacked journey (title > photos > bio > buttons) --- */
  .hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .hero-copy { display: contents; }
  .hero-name { order: 1; font-size: 14px; }
  .hero h1 { order: 2; font-size: clamp(40px, 11vw, 64px); line-height: 1.15; }
  .hero h1 .hero-sub { font-size: clamp(22px, 5.5vw, 30px); margin-top: 4px; }
  .hero-collage { order: 3; margin: 26px auto 14px; max-width: 440px; justify-self: auto; padding: 36px 0 28px 32px; }
  .hero-card-accent { top: 50px; left: 44px; right: -8px; bottom: 16px; transform: rotate(3deg); }
  .identity { order: 4; font-size: 18px; margin-top: 4px; }
  .hero-bio { order: 5; font-size: 15px; line-height: 1.7; }
  .hero-actions { order: 6; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
  .hero-foot { order: 7; }

  /* --- Home sections --- */
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .lens-panel { grid-template-columns: 1fr; padding: 24px; gap: 20px; min-height: 0; }
  .lens-panel figure { display: block !important; }
  .lens-panel img { aspect-ratio: 16/9; }
  .build-feature { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .build-bottom { grid-template-columns: 1fr; gap: 14px; }
  .build-related { grid-template-columns: 90px 1fr; }
  .build-related svg { display: none; }
  .tech-bridge { flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; }
  .tech-bridge .button { width: 100%; }
  .people-pair { grid-template-columns: 1fr; gap: 20px; }
  .experience-list article { grid-template-columns: 1fr; gap: 8px; padding-block: 20px; }
  .experience-list a { justify-self: start; margin-top: 6px; }
  .life-layout { grid-template-columns: 1fr; gap: 32px; }
  .travel-photo { transform: none; }
  .travel-stamp { position: static; transform: none; display: inline-block; margin-top: 10px; font-size: 16px; padding: 8px 14px; }
  .project-feature { grid-template-columns: 1fr; gap: 28px; }
  .project-notes { grid-template-columns: 1fr; gap: 14px; }
  .contact-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .contact-email { width: 100%; justify-content: center; font-size: 18px; }
  .footer .wrap { gap: 24px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .work-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-collage { max-width: 350px; padding: 32px 0 24px 28px; }
  .hero-polaroid { padding: 5px 5px 8px; }
  .hero-polaroid span { font-size: 9.5px; }
  .hero-polaroid-travel,
  .hero-polaroid-workshop { top: 12px; left: -14px; right: auto; transform: rotate(-6deg); }
  .hero-polaroid-travel img,
  .hero-polaroid-workshop img { width: 100px; height: 75px; }
  .hero-polaroid-mic { bottom: 12px; left: -16px; right: auto; transform: rotate(4deg); }
  .hero-polaroid-mic img { width: 88px; height: 102px; }
  .hero-actions .button { padding: 12px 22px; }
  .group-heading h2, .group-heading h3 { font-size: 19px; }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero-main-card, .travel-photo {
    transform: none !important;
  }
}


/* ==========================================================================
   Inner Pages Specific Styles (About, Works, Experiences)
   ========================================================================== */

/* Page Hero Banner */
.page-hero {
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(30px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-hero h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.2;
}

.page-hero .lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  max-width: 60ch;
}

/* Nav Active Link Indicator */
.site-header nav a.active {
  color: var(--navy);
  font-weight: 700;
}

.site-header nav a.active::after {
  transform: scaleX(1);
}

/* Experiences Detailed Cards */
.exp-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.exp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.exp-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--yellow);
}

.exp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.exp-title-group h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  color: var(--navy);
  margin-bottom: 6px;
}

.exp-company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 15px/1.4 var(--display);
  color: var(--navy-light);
}

.exp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.exp-period {
  font: 700 14px/1 var(--display);
  background: var(--navy);
  color: var(--yellow);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.exp-location {
  font-size: 13px;
  color: var(--muted);
}

.exp-metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.exp-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow-light);
  border: 1px solid rgba(255, 208, 0, 0.5);
  color: var(--navy-deep);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

.exp-body {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.85;
}

.exp-body p {
  margin-bottom: 16px;
}

.exp-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 12px;
}

.exp-list {
  padding-left: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-list li {
  line-height: 1.75;
  color: var(--navy);
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.exp-tag {
  font-size: 12px;
  background: var(--soft-card);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
}

/* About Page Specific Layout */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 50px;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.about-profile-card img {
  width: 100%;
  aspect-ratio: 4/4.5;
  object-fit: cover;
  object-position: 45% center;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  border: 1px solid var(--navy);
}

.about-profile-card h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.about-profile-card .about-role {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.about-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 16px;
  font-size: 13px;
}

.about-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}

.about-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.about-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.about-block h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 18px;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 10px;
  display: inline-block;
}

.about-block p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-block p:last-child {
  margin-bottom: 0;
}

/* Education Cards */
.edu-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.edu-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  border-left: 4px solid var(--navy);
}

.edu-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.edu-degree {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.edu-thesis {
  font-size: 14px;
  color: var(--navy);
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-top: 10px;
}

/* Skills Matrix */
.skills-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.skill-category {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}

.skill-category h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-pill {
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  color: var(--navy);
}

/* Works Deep Case Modal */
#work-detail-dialog {
  width: min(900px, calc(100% - 32px));
  max-height: 90dvh;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

#work-detail-dialog::backdrop {
  background: rgba(10, 17, 32, 0.85);
  backdrop-filter: blur(8px);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  max-height: calc(90dvh - 70px);
}

.modal-img-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 24px;
  background: var(--soft-card);
}

.modal-img-container img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

.modal-meta-item small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}

.modal-meta-item strong {
  font-size: 14px;
  color: var(--navy);
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.modal-section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--navy);
}

.modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Works Search & Filter Bar */
.works-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  width: min(450px, 100%);
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.works-search-bar input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
}

/* Responsive Overrides for Inner Pages */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .about-sidebar {
    position: static;
  }
  
  .skills-matrix {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .exp-card {
    padding: 24px 20px;
  }
  
  .exp-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .exp-meta {
    align-items: flex-start;
  }
  
  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .modal-body {
    padding: 20px;
  }
}

/* Works Gallery Card Enhancements */
.work-card-item {
  cursor: pointer;
}

.work-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(17, 28, 52, 0.08);
  border-color: rgba(199, 138, 30, 0.4);
}

.work-card-item:hover .work-card-media img {
  transform: scale(1.04);
}

.filter-pill {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.filter-pill:hover {
  border-color: var(--navy);
  background: var(--soft);
}

.filter-pill.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.filter-pill.active .pill-count {
  color: var(--gold);
}

.btn-detail-trigger:hover {
  background: #fff4d6 !important;
  border-color: var(--gold-dark) !important;
  transform: translateY(-1px);
}

.btn-work-link:hover {
  background: #1e3a8a !important;
  color: #fff !important;
  transform: translateY(-1px);
}

#works-search-input:focus {
  border-color: var(--navy) !important;
  box-shadow: 0 0 0 3px rgba(17, 28, 52, 0.12) !important;
}



/* ==========================================================================
   About Me — Journey layout
   ========================================================================== */
.ab-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 84px);
}
.ab-hero h1 { font-size: clamp(38px, 5.6vw, 64px); margin-bottom: 6px; }
.ab-name { margin: 10px 0 18px; font: 600 clamp(16px, 2vw, 19px)/1.5 var(--display); color: var(--muted); }
.ab-intro p { margin-top: 14px; color: #334155; }
.ab-intro .lead { color: var(--navy); }
.ab-pull {
  margin-top: 24px;
  padding: 6px 0 6px 18px;
  border-left: 4px solid var(--yellow);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);
}
.ab-quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ab-portrait {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 440px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}
.ab-portrait img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 46% center; border-radius: var(--radius-md); }
.ab-portrait figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px 2px; font: 600 12px/1.4 var(--display); }

.ab-toc {
  position: sticky;
  top: 74px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.ab-toc .wrap { display: flex; gap: 8px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.ab-toc .wrap::-webkit-scrollbar { display: none; }
.ab-toc a { flex: none; padding: 7px 14px; font: 600 13px/1.4 var(--display); white-space: nowrap; border: 1px solid var(--line); border-radius: var(--radius-full); transition: all 0.2s var(--ease); }
.ab-toc a:hover { background: var(--yellow-light); border-color: var(--yellow); }

.ab-chapter {
  display: grid;
  grid-template-columns: minmax(200px, 290px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 130px;
}
.ab-chapter:last-of-type { border-bottom: 0; }
.ab-head { position: sticky; top: 140px; align-self: start; }
.ab-num { display: inline-block; font: 800 clamp(44px, 6vw, 68px)/1 var(--display); letter-spacing: -0.04em; }
.ab-num::after { content: ''; display: block; width: 44px; height: 6px; margin-top: 10px; border-radius: 3px; background: var(--yellow); }
.ab-head h2 { margin-top: 16px; font-size: clamp(24px, 3vw, 32px); }
.ab-sub { margin-top: 10px; font: 500 14px/1.7 var(--thai); color: var(--muted); }
.ab-body > p, .ab-body .ab-text p { color: #334155; max-width: 64ch; }
.ab-body > p + p, .ab-text p + p { margin-top: 14px; }
.ab-body h3 { font-size: 19px; margin: 28px 0 10px; }
.ab-body > h3:first-child { margin-top: 0; }
.ab-body strong { color: var(--navy); }

.ab-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.ab-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ab-card h3 { margin: 0 0 8px; font-size: 18px; }
.ab-card p { font-size: 15px; line-height: 1.75; color: #475569; }
.ab-card .tag { display: inline-block; margin-bottom: 8px; font: 600 11px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.ab-edu { display: grid; gap: 16px; margin-top: 8px; }
.ab-edu-card { padding: 24px; background: var(--soft); border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: var(--radius-md); }
.ab-edu-card h3 { margin: 0 0 4px; font-size: 20px; }
.ab-edu-card .deg { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.ab-edu-card p { font-size: 15px; color: #475569; }
.ab-thesis { margin-top: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; line-height: 1.7; }
.ab-thesis a { font-weight: 700; border-bottom: 2px solid var(--yellow); }
.ab-thesis a:hover { background: var(--yellow-light); }

.ab-steps { margin-top: 24px; }
.ab-step { position: relative; padding: 0 0 28px 28px; border-left: 2px solid var(--line); }
.ab-step:last-child { padding-bottom: 0; }
.ab-step::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--navy); }
.ab-step h3 { margin: 0 0 6px; font-size: 18px; }
.ab-step p { font-size: 15px; color: #475569; }
.ab-step p + p { margin-top: 10px; }
.ab-note { margin-top: 24px; padding: 18px 20px; background: var(--yellow-light); border: 1px solid rgba(255, 208, 0, 0.5); border-radius: var(--radius-md); font-weight: 500; color: var(--navy); }
.ab-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; border-bottom: 2px solid var(--yellow); }

.ab-cta { padding: clamp(28px, 5vw, 52px); background: var(--navy); color: #fff; border-radius: var(--radius-lg); }
.ab-cta h2, .ab-cta h3 { color: #fff; }
.ab-cta p { color: #cbd5e1; max-width: 60ch; }
.ab-cta p + p { margin-top: 12px; }
.ab-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 26px 0 8px; }
.ab-contact a, .ab-contact div { display: block; padding: 14px 16px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-md); font-size: 15px; font-weight: 600; color: #fff; word-break: break-word; }
.ab-contact small { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); }
.ab-contact a:hover { background: rgba(255, 255, 255, 0.14); }
.ab-sign { margin-top: 18px; font: 700 22px/1.3 var(--display); color: var(--yellow); }

/* Content-led reading and portfolio navigation. */
.section-label {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.hero-bio { max-width: 50ch; line-height: 1.85; }
.ab-intro p, .ab-body p, .exp-summary, .page-inner .lead { text-wrap: pretty; }
.intro-text p { max-width: 56ch; }
.page-inner .lead { line-height: 1.85; }
.works-archive .archive-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-block: 24px;
  margin-bottom: 36px;
}
.works-search-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.works-search-wrapper { flex: 1 1 320px; max-width: 580px; }
.works-search-wrapper label {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}
.works-search-wrapper input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #aeb9c7;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: #fff;
  font-size: 16px;
}
.works-search-wrapper input::placeholder { color: var(--muted); opacity: 1; }
.works-search-wrapper input:focus-visible { border-color: var(--navy); }
.works-search-row .text-link { align-self: end; min-height: 44px; }
.works-archive .filters { gap: 10px; }
.works-archive .filters button { min-height: 44px; }
.works-archive .result-count { margin: 0; }
.work-empty {
  padding: clamp(28px, 6vw, 64px) 20px;
  margin-bottom: 32px;
  text-align: center;
  background: var(--soft);
  border-radius: var(--radius-md);
}
.work-empty h2 { font-size: 24px; }
.work-empty p { margin: 12px auto 24px; color: var(--muted); }
.case-body { display: grid; gap: 16px; padding-top: 20px; font-size: 15px; line-height: 1.85; color: #334155; }
.case-body strong { display: block; margin-bottom: 4px; color: var(--navy); font-weight: 600; }
.case-details summary { gap: 16px; min-height: 44px; }
.case-details summary > span { font-size: 12px; white-space: nowrap; }
.exp-summary { max-width: 65ch; margin-bottom: 24px; font-size: 17px; line-height: 1.9; color: #334155; }
.exp-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: 20px;
  margin-bottom: 24px;
  border-block: 1px solid var(--line);
}
.exp-metric-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.metric-num { font: 600 clamp(21px, 2.5vw, 28px)/1.4 var(--display); overflow-wrap: anywhere; }
.metric-label { color: var(--muted); font-size: 14px; line-height: 1.75; }
.exp-badge { color: var(--navy); font-size: 13px; padding: 3px 10px; border-radius: var(--radius-full); background: var(--yellow-light); }
.exp-details h3 { margin: 24px 0 12px; font-size: 18px; }
.exp-details li { margin-bottom: 12px; line-height: 1.85; }
.exp-time { color: var(--muted); font-size: 14px; }
.faq-card-section { max-width: 850px; }
.faq-answer p { max-width: 62ch; }

@media (max-width: 640px) {
  .works-search-wrapper { flex-basis: 100%; max-width: none; }
  .works-archive .filters { gap: 8px; }
  .works-archive .filters button { padding: 8px 12px; }
  .exp-summary { font-size: 16px; }
  .exp-metrics { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 900px) {
  .ab-hero { grid-template-columns: 1fr; gap: 32px; }
  .ab-portrait { justify-self: center; max-width: 400px; }
  .ab-toc { top: 64px; }
  .ab-chapter { grid-template-columns: 1fr; gap: 18px; scroll-margin-top: 120px; }
  .ab-head { position: static; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .ab-num { font-size: 44px; }
  .ab-num::after { display: none; }
  .ab-head h2 { margin-top: 0; flex: 1 1 220px; }
  .ab-sub { flex-basis: 100%; margin-top: 0; }
}
@media (max-width: 640px) {
  .ab-cards { grid-template-columns: 1fr; }
}
