:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0d1218;
  --ink: #f4f8fb;
  --muted: #9aa8b6;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(12, 18, 25, 0.68);
  --panel-solid: #101821;
  --cyan: #38d8ff;
  --green: #7ef29a;
  --amber: #f4c766;
  --rose: #ff6b9a;
  --white-soft: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family: "Segoe UI", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.16), var(--bg) 72%),
    radial-gradient(circle at 20% 20%, rgba(56, 216, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 78% 42%, rgba(126, 242, 154, 0.11), transparent 24rem),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body::selection {
  background: rgba(56, 216, 255, 0.32);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#brand-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #07090d;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 72px);
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.72), rgba(7, 9, 13, 0.18));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark,
.site-nav {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(56, 216, 255, 0.16));
}

.site-nav {
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: left;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: clamp(700px, 86svh, 920px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: end;
  gap: clamp(34px, 6vw, 86px);
  padding: 132px clamp(20px, 5vw, 72px) 56px;
}

.hero-copy {
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 100%;
  margin-bottom: 24px;
  font-size: clamp(4.2rem, 9vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--white-soft);
  font-size: clamp(1.04rem, 1.8vw, 1.36rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: #071017;
  border-color: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.signal-panel {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.signal-header,
.signal-stats div,
.site-footer {
  display: flex;
  align-items: center;
}

.signal-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-right: auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px var(--green);
}

.signal-meter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 7px;
  height: 150px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 25%, 25% 100%;
}

.signal-meter span {
  display: block;
  height: var(--level);
  min-height: 24px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
  box-shadow: 0 0 30px rgba(56, 216, 255, 0.18);
  transform-origin: bottom;
  animation: pulseColumn 3.2s ease-in-out infinite;
}

.signal-meter span:nth-child(2) {
  background: linear-gradient(180deg, var(--amber), var(--green));
  animation-delay: -1.1s;
}

.signal-meter span:nth-child(3) {
  background: linear-gradient(180deg, var(--rose), var(--cyan));
  animation-delay: -2.2s;
}

.signal-meter span:nth-child(4) {
  animation-delay: -0.6s;
}

.signal-meter span:nth-child(5) {
  background: linear-gradient(180deg, var(--green), var(--amber));
  animation-delay: -1.7s;
}

.signal-stats {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.signal-stats div {
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.signal-stats dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-stats dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
}

.intro-strip {
  margin: 0 clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 4vw, 34px) 0;
}

.intro-strip p {
  width: min(980px, 100%);
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.24;
  text-wrap: balance;
}

.section {
  padding: clamp(70px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 820px);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle {
  min-height: 260px;
  padding: clamp(20px, 3vw, 34px);
  background: rgba(9, 14, 20, 0.8);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.principle:hover {
  background: rgba(18, 29, 38, 0.86);
  transform: translateY(-4px);
}

.principle-index {
  display: block;
  margin-bottom: 70px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
}

.principle h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.principle p,
.contact-copy p,
#venture-copy {
  color: var(--muted);
  line-height: 1.72;
}

.principle p {
  margin-bottom: 0;
  max-width: 25rem;
}

.ventures-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.venture-layout {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
}

.venture-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.venture-tab {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.venture-tab::after {
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.venture-tab:hover,
.venture-tab:focus-visible,
.venture-tab.is-active {
  border-color: rgba(56, 216, 255, 0.45);
  background: rgba(56, 216, 255, 0.1);
  color: var(--ink);
  transform: translateX(4px);
}

.venture-display {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(56, 216, 255, 0.14), transparent 34%),
    linear-gradient(225deg, rgba(126, 242, 154, 0.1), transparent 36%),
    rgba(10, 16, 22, 0.82);
  box-shadow: var(--shadow);
}

.venture-display::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  opacity: 0.28;
}

.venture-display > * {
  position: relative;
}

.venture-kicker {
  margin-bottom: 16px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.venture-display h3 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

#venture-copy {
  max-width: 36rem;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.venture-map {
  position: relative;
  aspect-ratio: 1;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.11), transparent 2px),
    linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.12) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(255, 255, 255, 0.08) 50%, transparent 51%);
  background-size: 42px 42px, 100% 100%, 100% 100%;
}

.node {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  background: var(--panel-solid);
  box-shadow: 0 0 22px rgba(56, 216, 255, 0.44);
}

.node-a {
  top: 18%;
  left: 22%;
  background: var(--cyan);
}

.node-b {
  top: 28%;
  right: 18%;
  background: var(--green);
}

.node-c {
  right: 29%;
  bottom: 18%;
  background: var(--amber);
}

.node-d {
  bottom: 30%;
  left: 16%;
  background: var(--rose);
}

.route {
  position: absolute;
  left: 21%;
  right: 20%;
  top: 43%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  transform: rotate(21deg);
  transform-origin: center;
  animation: routeGlow 4s ease-in-out infinite;
}

.route-two {
  top: 58%;
  left: 18%;
  right: 28%;
  transform: rotate(-34deg);
  background: linear-gradient(90deg, var(--rose), var(--cyan));
  animation-delay: -1.8s;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 12, 0.44);
}

.contact-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.contact-copy p {
  max-width: 40rem;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.contact-link {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 28px);
  background: var(--ink);
  color: #081118;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 900;
  overflow-wrap: anywhere;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(56, 216, 255, 0.18);
}

.site-footer {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes pulseColumn {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.72;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes routeGlow {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 1;
    filter: saturate(1.4);
  }
}

@media (max-width: 980px) {
  .hero,
  .venture-display,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .signal-panel {
    width: min(420px, 100%);
    align-self: start;
  }

  .section-heading,
  .venture-layout {
    grid-template-columns: 1fr;
  }

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

  .principle {
    min-height: 210px;
  }

  .principle-index {
    margin-bottom: 40px;
  }

  .venture-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .venture-tab {
    min-height: 50px;
  }

  .venture-tab::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    padding: 16px 18px;
  }

  .brand-mark span:last-child {
    display: none;
  }

  .brand-logo {
    width: 42px;
    height: 35px;
  }

  .site-nav {
    margin-left: auto;
    gap: 10px;
    font-size: 0.72rem;
  }

  .hero {
    padding: 112px 18px 42px;
  }

  h1 {
    font-size: clamp(3rem, 13.2vw, 3.45rem);
    line-height: 0.92;
  }

  .hero-actions,
  .venture-tabs,
  .site-footer {
    flex-direction: column;
  }

  .button,
  .venture-tab {
    width: 100%;
  }

  .intro-strip {
    margin-inline: 18px;
  }

  .section {
    padding: 64px 18px;
  }

  .venture-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .venture-display {
    min-height: auto;
  }

  .signal-panel {
    width: 100%;
  }

  .signal-stats div {
    display: grid;
    gap: 5px;
    justify-content: start;
  }

  .signal-stats dd {
    text-align: left;
  }

  .signal-header span:last-child,
  .signal-stats dd {
    overflow-wrap: anywhere;
  }

  .venture-map {
    min-height: 230px;
  }

  .contact-link {
    align-items: flex-start;
  }

  .site-footer {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header {
    justify-content: flex-start;
  }

  .site-nav {
    margin-left: 0;
  }

  .hero-copy,
  .signal-panel,
  .section-heading,
  .studio-grid,
  .venture-layout,
  .contact-copy,
  .contact-link {
    width: 100%;
    max-width: 354px;
    margin-inline: auto;
  }

  .hero-lede {
    max-width: 354px;
    overflow-wrap: break-word;
  }

  .intro-strip {
    width: min(354px, calc(100% - 36px));
    margin-inline: auto;
  }

  .venture-display {
    width: 100%;
    max-width: 354px;
    margin-inline: auto;
    padding: 22px;
  }
}

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