/* =========================================================
   GYOKOI DIGITAL HOME — V1.1
   Day / Night / Device theme ready
   ========================================================= */

:root {
  color-scheme: light;

  --bg: #f8f6ff;
  --bg-strong: #f1edfb;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-soft: #f4f0fb;
  --text: #1f2034;
  --text-soft: #696a7b;
  --line: rgba(53, 47, 90, 0.12);
  --line-strong: rgba(95, 72, 168, 0.22);
  --accent: #7d5ce0;
  --accent-soft: #e8defe;
  --accent-deep: #49308f;
  --success: #2d7d5c;
  --shadow: 0 24px 70px rgba(54, 40, 103, 0.11);
  --header: rgba(248, 246, 255, 0.78);
  --footer: #201c35;
  --footer-text: #f6f2ff;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --page: min(1240px, calc(100% - 40px));
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #12111a;
  --bg-strong: #181522;
  --surface: rgba(30, 27, 42, 0.75);
  --surface-solid: #1d1a28;
  --surface-soft: #242031;
  --text: #f4f0fb;
  --text-soft: #aaa4b9;
  --line: rgba(237, 228, 255, 0.11);
  --line-strong: rgba(177, 143, 255, 0.24);
  --accent: #ae8cff;
  --accent-soft: #2d2541;
  --accent-deep: #d6c5ff;
  --success: #70d1a6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  --header: rgba(18, 17, 26, 0.78);
  --footer: #0c0b11;
  --footer-text: #f6f2ff;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    color-scheme: dark;

    --bg: #12111a;
    --bg-strong: #181522;
    --surface: rgba(30, 27, 42, 0.75);
    --surface-solid: #1d1a28;
    --surface-soft: #242031;
    --text: #f4f0fb;
    --text-soft: #aaa4b9;
    --line: rgba(237, 228, 255, 0.11);
    --line-strong: rgba(177, 143, 255, 0.24);
    --accent: #ae8cff;
    --accent-soft: #2d2541;
    --accent-deep: #d6c5ff;
    --success: #70d1a6;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
    --header: rgba(18, 17, 26, 0.78);
    --footer: #0c0b11;
    --footer-text: #f6f2ff;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 3%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 30%),
    radial-gradient(circle at 92% 20%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Thai", sans-serif;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  top: 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0 0;
}

.nav-shell {
  width: var(--page);
  min-height: 64px;
  margin: 0 auto;
  padding: 9px 10px 9px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--header);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 36px rgba(29, 23, 58, 0.08);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--accent);
  font-family: "DM Serif Display", serif;
  font-size: 1.05rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-soft);
  font-family: "Manrope", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--accent);
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-switcher {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.theme-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.theme-button.active {
  background: var(--surface-solid);
  color: var(--accent);
  box-shadow: 0 3px 12px rgba(40, 28, 80, 0.12);
}

.connect-button {
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-family: "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.menu-button span {
  width: 16px;
  height: 1.5px;
  display: block;
  margin: 4px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
}

/* Hero */

.hero {
  width: var(--page);
  min-height: 680px;
  margin: 0 auto;
  padding: 74px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.eyebrow,
.section-label,
.project-group-label {
  margin: 0;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-family: "DM Serif Display", serif;
  font-size: clamp(3.8rem, 6.7vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.93;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero-intro {
  max-width: 650px;
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.hero blockquote {
  margin: 0 0 30px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.primary-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hero-visual {
  position: relative;
  height: min(60vh, 590px);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 42px 42px 170px 42px;
  background:
    linear-gradient(180deg, transparent 60%, rgba(20, 15, 37, 0.58)),
    linear-gradient(135deg, var(--surface-soft), var(--accent-soft));
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 36%;
  opacity: 0.82;
  filter: saturate(0.9) contrast(0.96);
}

.portrait-glow {
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  right: -12%;
  top: 4%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  filter: blur(70px);
  z-index: 0;
}

.hero-visual img,
.hero-note {
  position: relative;
  z-index: 1;
}

.portrait-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  text-align: center;
  color: var(--text-soft);
}

.portrait-fallback strong,
.portrait-fallback span {
  display: block;
}

.hero-visual.image-missing .portrait-fallback {
  display: grid;
}

.hero-note {
  position: absolute;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 15px;
  background: rgba(15, 12, 27, 0.58);
  color: white;
  backdrop-filter: blur(14px);
}

.hero-note small,
.hero-note strong {
  display: block;
}

.hero-note small {
  opacity: 0.68;
  font-size: 0.68rem;
}

.hero-note strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
}

.note-one {
  left: 20px;
  bottom: 22px;
}

.note-two {
  right: 20px;
  top: 20px;
}

/* Shared sections */

.section-shell {
  width: var(--page);
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  margin-bottom: 42px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 470px);
  align-items: end;
  gap: 44px;
}

.section-heading h2,
footer h2,
.modal-copy h2 {
  margin: 8px 0 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-heading > p {
  margin: 0;
  color: var(--text-soft);
}

/* Journey */

.compact-heading {
  margin-bottom: 58px;
}

.roadmap {
  position: relative;
  margin: 0 0 38px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.roadmap::before {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  top: 46px;
  height: 1px;
  background: var(--line-strong);
}

.roadmap-stop {
  position: relative;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.roadmap-year {
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.roadmap-dot {
  width: 14px;
  height: 14px;
  z-index: 1;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.roadmap-title {
  font-size: 0.86rem;
  font-weight: 600;
}

.roadmap-stop.active {
  color: var(--accent);
}

.roadmap-stop.active .roadmap-dot {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.journey-detail {
  min-height: 330px;
  padding: 20px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journey-visual {
  min-height: 270px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent),
    var(--surface-soft);
  color: var(--text-soft);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-copy {
  max-width: 600px;
}

.journey-period {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.journey-copy h3 {
  margin: 0 0 16px;
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
}

.journey-copy > p:not(.journey-period) {
  margin: 0;
  color: var(--text-soft);
}

.journey-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.journey-tags span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 600;
}

/* Projects */

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  align-items: start;
  gap: 30px;
}

.project-group-label {
  margin-bottom: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: block;
  border: 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
    var(--surface-soft);
  color: var(--text-soft);
  cursor: pointer;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.015);
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.project-image img:not([src=""]) + .image-placeholder,
.modal-image img:not([src=""]) + .image-placeholder {
  z-index: -1;
}

.project-content {
  padding: 20px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

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

.status.live {
  color: var(--success);
}

.status.private {
  color: var(--accent);
}

.status.building {
  color: #b66b18;
}

.project-content h3 {
  margin: 12px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 1.16rem;
}

.project-content p {
  min-height: 52px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.project-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.8rem;
  font-weight: 700;
}

.project-links a,
.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  cursor: pointer;
}

.muted-link {
  color: var(--text-soft);
  font-weight: 500;
}

.recognition {
  position: sticky;
  top: 106px;
}

.recognition-card {
  padding: 19px 0;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.recognition-card:last-child {
  border-bottom: 1px solid var(--line);
}

.recognition-card p,
.recognition-card strong {
  display: block;
  margin: 0;
}

.recognition-card p {
  font-size: 0.84rem;
  font-weight: 700;
}

.recognition-card strong {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 500;
}

.recognition-icon,
.recognition-number {
  color: var(--accent);
  font-family: "DM Serif Display", serif;
  font-size: 1.42rem;
}

/* Moments */

.moment-preview {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-auto-rows: 190px;
  gap: 14px;
}

.moment-tile {
  padding: 20px;
  display: flex;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, transparent, rgba(23, 18, 40, 0.18)),
    var(--surface-soft);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.moment-tile.large {
  grid-row: span 2;
}

.moment-tile.wide {
  grid-column: span 2;
}

/* Footer */

footer {
  margin-top: 80px;
  padding: 90px max(20px, calc((100vw - 1240px) / 2)) 34px;
  background: var(--footer);
  color: var(--footer-text);
}

.footer-main {
  padding-bottom: 68px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 60px;
}

.footer-main h2 {
  max-width: 720px;
  font-size: clamp(4rem, 8vw, 8rem);
}

.footer-main p:not(.section-label) {
  max-width: 580px;
  color: rgba(246, 242, 255, 0.68);
}

.footer-links {
  align-self: end;
  display: grid;
  gap: 12px;
}

.footer-links a {
  padding: 13px 0;
  border-bottom: 1px solid rgba(246, 242, 255, 0.16);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(246, 242, 255, 0.14);
  color: rgba(246, 242, 255, 0.58);
  font-size: 0.76rem;
}

/* Modal */

.preview-modal {
  width: min(900px, calc(100% - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow);
}

.preview-modal::backdrop {
  background: rgba(10, 8, 18, 0.72);
  backdrop-filter: blur(8px);
}

.modal-close {
  width: 42px;
  height: 42px;
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(12, 10, 20, 0.56);
  color: white;
  font-size: 1.35rem;
  cursor: pointer;
}

.modal-image {
  min-height: 460px;
  position: relative;
  background: var(--surface-soft);
}

.modal-image img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.modal-copy {
  padding: 32px;
}

.modal-copy h2 {
  font-size: 3.5rem;
}

.modal-copy p:last-child {
  max-width: 620px;
  color: var(--text-soft);
}

/* Responsive */

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

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .hero {
    grid-template-columns: 1fr minmax(330px, 0.72fr);
    gap: 38px;
  }

  .project-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  :root {
    --page: min(100% - 24px, 1240px);
  }

  .site-header {
    padding-top: 10px;
  }

  .theme-switcher {
    display: flex;
    padding: 3px;
  }

  .theme-button {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .connect-button {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav {
    width: var(--page);
    margin: 8px auto 0;
    padding: 18px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--header);
    backdrop-filter: blur(18px);
  }

  .site-header.menu-open .mobile-nav {
    display: grid;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    height: 520px;
    min-height: auto;
    border-radius: 30px 30px 100px 30px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 15vw, 6rem);
  }

  .section-shell {
    padding: 82px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .roadmap {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    padding-bottom: 12px;
  }

  .roadmap::before {
    left: 64px;
    right: 64px;
  }

  .journey-detail {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

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

  .moment-preview {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .moment-tile.large {
    grid-row: span 1;
    grid-column: span 2;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    display: none;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-visual {
    height: 430px;
  }

  .note-two {
    display: none;
  }

  .journey-detail {
    padding-inline: 0;
  }

  .journey-visual {
    min-height: 220px;
  }

  .moment-preview {
    grid-template-columns: 1fr;
  }

  .moment-tile.large,
  .moment-tile.wide {
    grid-column: auto;
  }

  footer {
    padding-top: 70px;
  }

  .footer-main h2 {
    font-size: 4rem;
  }

  .modal-image,
  .modal-image img {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* =========================================================
   V1.2 — Hero copy & project explorer
   ========================================================= */

.hero h1 {
  font-size: clamp(3.25rem, 5.6vw, 6rem);
  max-width: 680px;
  margin-bottom: 28px;
}

.hero-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 30px;
}

.hero-summary p {
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.55;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.featured-project {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
  box-shadow: 0 16px 48px rgba(54, 40, 103, 0.08);
}

.featured-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-copy {
  padding: 26px;
}

.featured-copy h3 {
  margin: 12px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.featured-copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
}

.project-explorer {
  display: grid;
  gap: 8px;
}

.project-mini {
  width: 100%;
  padding: 10px;
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-mini:hover,
.project-mini.active {
  border-color: var(--line);
  background: var(--surface);
  transform: translateX(-2px);
}

.project-mini-thumb {
  width: 68px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.project-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-mini strong,
.project-mini small {
  display: block;
}

.project-mini strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.84rem;
}

.project-mini small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.7rem;
}

.recognition-strip {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

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

.recognition-inline article {
  min-width: 0;
  padding: 16px 0;
}

.recognition-inline span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "DM Serif Display", serif;
  font-size: 1.45rem;
}

.recognition-inline p,
.recognition-inline small {
  display: block;
  margin: 0;
}

.recognition-inline p {
  font-weight: 700;
}

.recognition-inline small {
  margin-top: 3px;
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .project-showcase {
    grid-template-columns: 1fr;
  }

  .project-explorer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recognition-inline {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .project-explorer {
    grid-template-columns: 1fr;
  }

  .project-mini {
    grid-template-columns: 82px 1fr;
  }

  .project-mini-thumb {
    width: 82px;
  }
}


/* =========================================================
   V1.3 — Journey, Contact Icons & Spacing Pass
   ========================================================= */

:root {
  --space-xs: 16px;
  --space-sm: 28px;
  --space-md: 56px;
  --space-lg: 76px;
  --space-xl: 96px;
}

.hero {
  min-height: auto;
  padding-top: 62px;
  padding-bottom: 46px;
}

.section-shell {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.journey.section-shell {
  padding-top: 58px;
}

.projects.section-shell {
  padding-top: 72px;
}

.moments.section-shell {
  padding-top: 68px;
  padding-bottom: 84px;
}

.section-heading,
.compact-heading {
  margin-bottom: 28px;
}

.section-heading {
  gap: 32px;
}

.section-label {
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.roadmap {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 24px;
}

.roadmap::before {
  left: 9%;
  right: 9%;
}

.roadmap-title {
  max-width: 150px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.journey-detail {
  min-height: 300px;
  padding: 18px 0;
  gap: 34px;
}

.journey-copy h3 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.journey-summary {
  margin: 0 0 12px !important;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.focus-block {
  margin-top: 22px;
}

.focus-block > span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recognition-strip {
  margin-top: 38px;
}

footer {
  margin-top: 72px;
  padding-top: 76px;
}

.footer-main {
  padding-bottom: 54px;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  gap: 54px;
}

.footer-copy h2 {
  font-size: clamp(4rem, 7vw, 7.2rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-card {
  min-height: 108px;
  padding: 18px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(246, 242, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(174, 140, 255, 0.55);
  background: rgba(174, 140, 255, 0.11);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 242, 255, 0.18);
  border-radius: 15px;
  color: #c9b6ff;
}

.contact-icon svg {
  width: 23px;
  height: 23px;
}

.text-icon {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.contact-card strong,
.contact-card small {
  display: block;
}

.contact-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
}

.contact-card small {
  margin-top: 4px;
  color: rgba(246, 242, 255, 0.58);
  font-size: 0.74rem;
}

@media (max-width: 980px) {
  .roadmap {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    padding-bottom: 12px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 44px;
    padding-bottom: 36px;
  }

  .section-shell {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .journey.section-shell {
    padding-top: 48px;
  }

  .projects.section-shell,
  .moments.section-shell {
    padding-top: 58px;
  }

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

  .contact-card {
    min-height: 128px;
    grid-template-columns: 1fr;
    align-content: center;
    text-align: center;
  }

  .contact-icon {
    margin: 0 auto;
  }

  footer {
    margin-top: 52px;
  }
}

@media (max-width: 420px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.status-badge{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;font-size:.65rem;font-weight:700;letter-spacing:.04em}
.status-badge.live{background:#1f5132;color:#c9ffd8}
.status-badge.demo{background:#4b3b7a;color:#efe5ff}
.status-badge.coming{background:#5b4b1d;color:#ffe8a6}


/* =========================================================
   V1.6 — Honest project access & selected highlights
   ========================================================= */

.status.demo {
  color: var(--accent);
}

.status.preview {
  color: #7f73a6;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a.project-cta:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.project-cta.disabled,
.project-cta.subtle {
  cursor: default;
  color: var(--text-soft);
  border-color: var(--line);
  background: var(--surface-soft);
}

.status-badge.internal {
  background: #413852;
  color: #e9def8;
}

.status-badge.preview {
  background: #e8e2f5;
  color: #5e5376;
}

html[data-theme="dark"] .status-badge.preview {
  background: #332c41;
  color: #d9cced;
}

.recognition-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.recognition-mini {
  min-height: 132px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.recognition-mark {
  display: block;
  color: var(--accent);
  font-family: "DM Serif Display", serif;
  font-size: 1.35rem;
  line-height: 1;
}

.recognition-mini p,
.recognition-mini small {
  display: block;
  margin: 0;
}

.recognition-mini p {
  font-family: "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.recognition-mini small {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 0.7rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .recognition-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .recognition-cards {
    grid-template-columns: 1fr;
  }
}


/* V1.7 — Selected Highlights icon polish */
.recognition-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.recognition-icon svg {
  width: 24px;
  height: 24px;
}

.section-heading:has(> div:only-child) {
  grid-template-columns: 1fr;
}


/* =========================================================
   V1.8.1 — Dynamic project explorer thumbnail fix
   portfolio-projects.js renders .project-mini-media
   ========================================================= */

.project-mini {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
}

.project-mini-media,
.project-mini-thumb {
  width: 92px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  flex-shrink: 0;
}

.project-mini-media img,
.project-mini-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-origin: center;
}

@media (max-width: 620px) {
  .project-mini {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .project-mini-media,
  .project-mini-thumb {
    width: 84px;
  }
}


/* =========================================================
   V1.9 — Journey imagery, marketing carousel & mobile theme
   ========================================================= */

.journey-visual {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  background: var(--surface-soft);
  text-transform: none;
}

.journey-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.22s ease, transform 0.45s ease;
}

.journey-visual.is-changing img {
  opacity: 0;
  transform: scale(1.015);
}

.moments-heading {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.moment-controls {
  display: flex;
  gap: 8px;
}

.moment-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.moment-arrow:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

.moment-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 38%);
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.moment-carousel::-webkit-scrollbar {
  display: none;
}

.moment-card {
  min-width: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  scroll-snap-align: start;
}

.moment-card-featured {
  grid-row: auto;
}

.moment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.moment-card:hover img {
  transform: scale(1.025);
}

.moment-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 58px 18px 18px;
  background: linear-gradient(to top, rgba(13, 10, 24, 0.82), transparent);
  color: #fff;
}

.moment-caption span,
.moment-caption strong {
  display: block;
}

.moment-caption span {
  margin-bottom: 4px;
  color: rgba(255,255,255,.66);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.moment-caption strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.94rem;
  line-height: 1.35;
}

.moment-progress {
  height: 2px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.moment-progress span {
  width: 14%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.15s linear;
}

@media (max-width: 780px) {
  .nav-actions {
    gap: 7px;
  }

  .moments-heading {
    grid-template-columns: 1fr auto;
  }

  .moment-carousel {
    grid-auto-columns: minmax(250px, 76vw);
  }

  .journey-visual {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    padding-left: 12px;
    gap: 8px;
  }

  .theme-switcher {
    margin-left: auto;
  }

  .theme-button {
    width: 28px;
    height: 28px;
  }

  .moments-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .moment-controls {
    justify-self: start;
  }

  .moment-carousel {
    grid-auto-columns: 84vw;
  }
}


/* =========================================================
   V2 — Dynamic Moments crop + fullscreen lightbox
   ========================================================= */
.moment-card{
  cursor:zoom-in;
  touch-action:pan-y;
}
.moment-card:focus-visible{
  outline:3px solid color-mix(in srgb,var(--accent) 45%,transparent);
  outline-offset:4px;
}
.moment-card img{
  transform-origin:center;
  will-change:transform,object-position;
}

.moment-lightbox{
  width:100vw;
  max-width:none;
  height:100dvh;
  max-height:none;
  margin:0;
  padding:0;
  overflow:hidden;
  border:0;
  background:#09080d;
  color:#fff;
}
.moment-lightbox::backdrop{background:#09080d}
.lightbox-toolbar{
  height:74px;
  position:absolute;
  inset:0 0 auto;
  z-index:5;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:linear-gradient(to bottom,rgba(7,6,10,.9),transparent);
}
.lightbox-toolbar small,.lightbox-toolbar strong{display:block}
.lightbox-toolbar small{color:rgba(255,255,255,.58);font-size:.68rem;text-transform:uppercase;letter-spacing:.06em}
.lightbox-toolbar strong{margin-top:3px;font-family:"Manrope",sans-serif;font-size:.9rem}
.lightbox-actions{display:flex;gap:7px}
.lightbox-actions button,.lightbox-nav{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(20,18,27,.66);
  color:#fff;
  backdrop-filter:blur(14px);
  cursor:pointer;
}
.lightbox-actions button{
  min-width:42px;
  height:42px;
  border-radius:999px;
  font-size:1rem;
}
.lightbox-stage{
  width:100%;
  height:100%;
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  cursor:grab;
  touch-action:none;
}
.lightbox-stage:active{cursor:grabbing}
.lightbox-stage img{
  max-width:92vw;
  max-height:88dvh;
  width:auto;
  height:auto;
  object-fit:contain;
  user-select:none;
  pointer-events:none;
  transform-origin:center;
  will-change:transform;
}
.lightbox-nav{
  width:48px;
  height:48px;
  position:absolute;
  top:50%;
  z-index:6;
  border-radius:50%;
  transform:translateY(-50%);
  font-size:1.05rem;
}
.lightbox-prev{left:18px}
.lightbox-next{right:18px}
@media(max-width:640px){
  .lightbox-toolbar{height:66px;padding:10px 12px}
  .lightbox-toolbar>div:first-child{max-width:46vw}
  .lightbox-toolbar strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .lightbox-actions button{min-width:38px;height:38px}
  .lightbox-nav{width:42px;height:42px}
  .lightbox-prev{left:8px}
  .lightbox-next{right:8px}
  .lightbox-stage img{max-width:100vw;max-height:86dvh}
}


/* =========================================================
   V2 — CMS project story modal
   ========================================================= */
.project-story-trigger{border:0;background:transparent;cursor:pointer;font:inherit}
.project-story-modal{width:min(980px,calc(100% - 28px));max-height:min(88vh,900px);padding:0;overflow:auto;border:1px solid var(--line);border-radius:32px;background:var(--surface-solid);color:var(--text);box-shadow:0 34px 110px rgba(20,14,40,.28)}
.project-story-modal::backdrop{background:rgba(10,8,18,.72);backdrop-filter:blur(10px)}
.project-story-close{position:sticky;float:right;right:18px;top:18px;z-index:5;width:42px;height:42px;margin:18px 18px -60px 0;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(12,10,20,.58);color:#fff;font-size:1.35rem;cursor:pointer}
.project-story-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);min-height:360px;background:var(--surface-soft)}
.project-story-hero>img{width:100%;height:100%;min-height:360px;object-fit:cover;background:var(--surface-soft)}
.project-story-hero-copy{padding:64px 42px 42px;align-self:end}
.project-story-hero-copy>span,.project-story-label{color:var(--accent);font-family:"Manrope",sans-serif;font-size:.75rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.project-story-hero-copy h2{margin:10px 0 16px;font-family:"DM Serif Display",serif;font-size:clamp(2.7rem,5vw,5rem);font-weight:400;letter-spacing:-.04em;line-height:.98}
.project-story-hero-copy p{margin:0;color:var(--text-soft)}
.project-story-body{padding:38px 42px 48px;display:grid;grid-template-columns:1fr 1fr;gap:18px}
.project-story-body section{padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.project-story-body section[hidden]{display:none}
.project-story-body p{white-space:pre-line}
.project-story-body section>p:last-child{margin:10px 0 0;color:var(--text-soft)}
@media(max-width:720px){.project-story-hero{grid-template-columns:1fr}.project-story-hero>img{min-height:240px;max-height:320px}.project-story-hero-copy{padding:30px 24px}.project-story-body{grid-template-columns:1fr;padding:24px}.project-story-close{position:fixed;right:24px;top:24px;margin:0}}


/* V2.1 — Project Details CTA */
.project-story-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.project-story-trigger:hover {
  color: var(--accent);
  transform: translateX(2px);
}
.project-story-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
