@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --navy: #0f2744;
  --navy-soft: #1a3a5c;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --steel: #64748b;
  --ice: #eff6ff;
  --white: #ffffff;
  --line: rgba(15, 39, 68, 0.12);
  /* Anuphan = Thai UI/headings · Space Grotesk = Latin brand/codes only */
  --font: 'Anuphan', 'Helvetica Neue', sans-serif;
  --heading: 'Anuphan', 'Helvetica Neue', sans-serif;
  --display: 'Space Grotesk', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1120px;
  --nav-h: 72px;
  --demo-h: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--ice);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

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

/* Demo bar */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
}

.demo-bar strong {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #93c5fd;
}

.demo-bar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.demo-bar a {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s;
}

.demo-bar a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.demo-bar a.is-primary {
  background: var(--blue);
  border-color: var(--blue);
}

.demo-bar a.is-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
}

.site-header.is-solid {
  position: fixed;
  top: var(--demo-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  animation: drop 0.35s var(--ease);
}

.site-header.is-solid .brand,
.site-header.is-solid .nav a,
.site-header.is-solid .menu-toggle {
  color: var(--navy);
}

.site-header.is-solid .nav-cta {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

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

.site-header.is-solid .brand span {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 0.4rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

/* Hero — clinical full-bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--demo-h));
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) 0 4.5rem;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 39, 68, 0.88) 0%, rgba(15, 39, 68, 0.55) 48%, rgba(15, 39, 68, 0.28) 100%),
    linear-gradient(0deg, rgba(15, 39, 68, 0.55) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  max-width: 36rem;
}

.hero__code {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #93c5fd;
  margin-bottom: 0.85rem;
}

.brand-mark {
  font-family: var(--display);
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}

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

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

.btn--blue:hover {
  background: var(--blue-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Status rail */
.status-rail {
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid rgba(59, 130, 246, 0.35);
}

.status-rail__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: 0.95rem 0;
  font-size: 0.88rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.status-item.mono {
  color: #93c5fd;
  font-size: 0.78rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section__head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.eyebrow.mono {
  letter-spacing: 0.12em;
}

.section__head h2 {
  font-family: var(--heading);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.section__head p {
  color: var(--steel);
}

/* Medical modules */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.module {
  background: var(--white);
  padding: 1.6rem 1.45rem 1.7rem;
  transition: background 0.25s var(--ease);
}

.module:hover {
  background: #f8fbff;
}

.module__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  color: var(--steel);
}

.module__tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  background: var(--ice);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 3px;
}

.module h3 {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.module > p {
  color: var(--steel);
  font-size: 0.94rem;
  margin-bottom: 1.1rem;
}

.module__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--navy-soft);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.module__meta li::before {
  content: '▸ ';
  color: var(--blue);
}

/* Team list */
.team-section {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.team-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.team-row {
  display: grid;
  grid-template-columns: 5rem 1fr auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.team-row:hover {
  background: var(--ice);
  margin-inline: -0.75rem;
  padding-inline: 0.75rem;
}

.team-row__id {
  font-size: 0.75rem;
  color: var(--blue);
}

.team-row__info h3 {
  font-family: var(--heading);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.team-row__info p {
  color: var(--steel);
  font-size: 0.9rem;
}

.team-row__years {
  font-size: 0.75rem;
  color: var(--steel);
}

.team-row__cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.team-row__cta:hover {
  border-color: var(--blue);
}

/* Hours */
.hours-band {
  padding: 5.5rem 0;
  background:
    linear-gradient(180deg, var(--ice) 0%, #e8f1fc 100%);
}

.hours-band__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.hours-copy .eyebrow {
  margin-bottom: 0.65rem;
}

.hours-copy h2 {
  font-family: var(--heading);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hours-copy > p {
  color: var(--steel);
  margin-bottom: 1.75rem;
}

.hours-visual {
  overflow: hidden;
  border: 1px solid var(--line);
}

.hours-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hours-table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.5rem 0 1.25rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hours-table th,
.hours-table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.hours-table thead th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--ice);
  font-weight: 500;
}

.hours-table tbody th {
  font-weight: 600;
  color: var(--navy);
}

.hours-table td {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--navy-soft);
}

.hours-note {
  margin: 1rem 1.15rem 0;
  font-size: 0.72rem;
  color: var(--steel);
}

/* Appointment */
.appoint-section {
  padding: 5.5rem 0 6rem;
  background: var(--navy);
  color: var(--white);
}

.appoint-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.appoint-info .eyebrow {
  color: #93c5fd;
}

.appoint-info h2 {
  font-family: var(--heading);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.appoint-info > p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.75rem;
}

.appoint-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.appoint-meta div {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.85rem;
}

.appoint-meta dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #93c5fd;
  margin-bottom: 0.25rem;
}

.appoint-meta dd {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.appoint-form {
  background: var(--white);
  color: var(--navy);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-row .field {
  margin-bottom: 0;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-soft);
}

.field input,
.field select,
.field textarea {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ice);
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.appoint-form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  background: #0a1a2e;
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 1.75rem;
}

/* Voice strip — soft quotes */
.voice-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.voice-strip__item {
  margin: 0;
  padding: 1.55rem 1.4rem 1.45rem 1.5rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  background: transparent;
}
.voice-strip__item:nth-child(even) {
  border-left-color: color-mix(in srgb, var(--accent, var(--gold, var(--blush, var(--line)))) 55%, transparent);
}
.voice-strip__item p {
  font-family: var(--heading, var(--brand, var(--display, inherit)));
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.45;
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-weight: 500;
}
.voice-strip__item cite {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}
@media (max-width: 720px) {
  .voice-strip { grid-template-columns: 1fr; }
  .voice-strip__item { padding-inline: 0 0.25rem; border-left-width: 2px; padding-left: 1.1rem; }
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer__grid p {
  font-size: 0.92rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer__grid h4 {
  font-family: var(--heading);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #93c5fd;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.footer__grid a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.footer__grid a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */


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

  .hours-band__grid,
  .appoint-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .team-row {
    grid-template-columns: 4.5rem 1fr;
    gap: 0.65rem 1rem;
  }

  .team-row__years,
  .team-row__cta {
    grid-column: 2;
  }

  .team-row__years {
    order: 1;
  }

  .team-row__cta {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .module-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100svh - var(--demo-h));
    align-items: flex-end;
    padding-bottom: 3.5rem;
  }

  .brand-mark {
    font-size: clamp(2.8rem, 14vw, 3.8rem);
  }

  .status-rail__inner {
    gap: 0.75rem 1.25rem;
  }

  .demo-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__media img {
    transform: none;
  }
}

@media (max-width: 960px) {
  }
