:root {
  --ink: #15152c;
  --muted: #595b73;
  --brand: #5536df;
  --line: #dedff0;
  --tint: #f5f5fd;
  --night: #0e1027;
  --gradient: linear-gradient(105deg, #9933e1, #543cde 48%, #007aab);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 98px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 400 15px/1.75 'Be Vietnam Pro', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #08a8dc; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.05em; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); font-weight: 700; }
h3 { font-size: 1.25rem; }
.container { width: min(calc(100% - 80px), 1200px); margin-inline: auto; }
.gradient-text { color: #5d3acb; }
@supports (background-clip: text) {
  .gradient-text { color: transparent; background: var(--gradient); background-clip: text; }
}
.eyebrow {
  color: #5546a0;
  font-size: .71rem;
  letter-spacing: .13em;
  font-weight: 800;
  margin-bottom: 18px;
}
.skip { position: fixed; top: -100px; left: 12px; z-index: 30; background: #fff; padding: 10px; }
.skip:focus { top: 10px; }

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffffef;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.brand-mark { width: 70px; height: auto; }
.brand-wordmark { width: 95px; height: auto; }
nav, .nav-actions { display: flex; align-items: center; gap: 24px; }
nav a { color: var(--muted); font-size: .83rem; font-weight: 600; }
nav a:hover { color: var(--brand); }
.language-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--tint);
}
.language-switch button { min-width: 34px; min-height: 32px; border: 0; border-radius: 100px; background: transparent; font-size: .7rem; font-weight: 800; }
.language-switch button[aria-pressed="true"] { color: #fff; background: var(--brand); }
.nav-contact { display: inline-flex; align-items: center; gap: 12px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.menu-toggle, .mobile-contact { display: none; }

.hero {
  padding-block: clamp(48px, 8vw, 114px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 83% 18%, #e6ecff 0, transparent 48%), #f8f7ff;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 76px); }
.hero .eyebrow { display: flex; align-items: center; gap: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #6548e7; box-shadow: 0 0 0 4px #6548e720; }
.hero h1 { font-size: clamp(2.6rem, 5.3vw, 5.2rem); font-weight: 800; letter-spacing: -.067em; }
.hero-description { max-width: 540px; margin-top: 24px; color: var(--muted); font-size: 1rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 30px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: .84rem; font-weight: 700; }
.button { min-height: 50px; padding: 10px 18px; border-radius: 10px; transition: transform .22s ease, box-shadow .22s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #5938cd33; }
.primary { color: #fff; background: linear-gradient(110deg, #6829cf, #3d44e0); }
.text-link { color: var(--brand); }
.action-icon { flex: 0 0 auto; width: 18px; height: 18px; }
.studio-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 422px;
  padding: 25px;
  border: 1px solid #d8d9f3;
  border-radius: 25px;
  color: var(--ink);
  background: radial-gradient(ellipse at 46% 43%, #fff 0, transparent 72%), linear-gradient(140deg, #f4e7ff, #e3edff 68%, #d8f7fb);
  box-shadow: 0 26px 64px #30277529;
}
.studio-card::before {
  position: absolute;
  content: '';
  inset: 0;
  z-index: -1;
  opacity: .2;
  background-image: linear-gradient(#8d95df 1px, transparent 1px), linear-gradient(90deg, #8d95df 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse, #000, transparent 78%);
}
.studio-top, .studio-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.studio-index, .studio-bottom > span { color: #514581; font-size: .62rem; font-weight: 700; letter-spacing: .11em; }
.studio-mark {
  width: min(95%, 450px);
  height: auto;
  margin: 20px auto;
  align-self: center;
  animation: drift 7s ease-in-out infinite;
}
.studio-bottom { padding-top: 16px; border-top: 1px solid #8b8ecc55; flex-wrap: wrap; }
.studio-bottom div { display: flex; flex-wrap: wrap; gap: 7px; }
.studio-bottom div > span { padding: 3px 9px; border-radius: 7px; background: #ffffffb8; font-size: .68rem; }
@keyframes drift { 50% { transform: translateY(-7px); } }

.section { padding-block: clamp(60px, 8vw, 108px); }
.section-heading, .services-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 0 48px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading > p:last-child, .services-heading > p, .culture-copy > p:not(.eyebrow) { color: var(--muted); max-width: 520px; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 35px; }
.mission-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(130deg, #f8f2ff, #fff 80%);
}
.mission-card:nth-child(2) { background: linear-gradient(130deg, #edfaff, #fff 80%); }
.mission-card h3 { margin-top: 16px; }
.mission-card p { color: var(--muted); margin-top: 10px; max-width: 470px; font-size: .92rem; }
.line-icon, .contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #a32bdb, #5338db);
}
.mission-card:nth-child(2) .line-icon { background: linear-gradient(135deg, #315de4, #007fbd); }
.line-icon svg, .contact-icon svg { width: 20px; height: 20px; }
.card-index { position: absolute; top: 24px; right: 24px; color: var(--muted); font-size: .75rem; }

.services { background: var(--tint); border-block: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 35px; }
.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 300px;
  text-align: left;
  padding: 20px;
  border: 1px solid #493ba0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(155deg, #226eb5, #37348b 51%, #352061);
}
.service-card:hover { border-color: #8870e0; box-shadow: 0 12px 30px #21135413; }
.service-card.featured { background: linear-gradient(155deg, #206db5, #4327a2 52%, #621c80); }
.service-top, .service-more { display: flex; justify-content: space-between; align-items: center; gap: 7px; width: 100%; }
.service-top { font-size: 1.75rem; line-height: 1; font-weight: 700; }
.service-open { width: 17px; height: 17px; }
.service-glyph { display: grid; place-items: center; align-self: center; width: 72px; height: 72px; margin-block: 19px; border: 1px solid #b9ecff70; border-radius: 20px; color: #e2f8ff; background: linear-gradient(145deg, #b5ebff33, #a189ff20); }
.service-glyph svg { width: 38px; height: 38px; }
.service-tag { color: #e5dbff; font-size: .62rem; font-weight: 800; letter-spacing: .09em; margin-bottom: 8px; }
.service-name { font-size: clamp(1rem, 1.7vw, 1.38rem); line-height: 1.3; letter-spacing: -.03em; }
.service-desc { color: #e7e5ff; font-size: .82rem; padding-block: 9px 19px; }
.service-more { margin-top: auto; padding-top: 12px; border-top: 1px solid #ffffff45; font-size: .76rem; font-weight: 700; }

.culture-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 76px); }
.culture-visual { position: relative; min-height: 440px; align-self: stretch; overflow: hidden; border-radius: 20px; background: #ded9ef; }
.culture-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 43% center; }
.image-note { position: absolute; bottom: 12px; right: 12px; color: #fff; background: #101025d9; border-radius: 6px; padding: 4px 9px; font-size: .73rem; }
.culture-copy > p:not(.eyebrow) { margin: 18px 0 10px; }
.value-row { display: flex; align-items: baseline; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.value-row > span { color: var(--brand); font-size: .72rem; font-weight: 700; }
.value-row h3 { font-size: 1rem; letter-spacing: -.02em; }
.value-row p { margin-top: 4px; color: var(--muted); font-size: .84rem; }

.career-section { color: #fff; background: linear-gradient(120deg, #201341, #212160 57%, #142b5b); }
.career-inner { display: grid; grid-template-columns: 1.6fr .8fr; align-items: center; gap: 28px; padding-block: clamp(44px, 6vw, 80px); }
.career-inner .eyebrow { color: #d7caff; }
.career-inner h2 > span { color: #b5d7ff; }
.career-copy p:not(.eyebrow) { margin: 18px 0 24px; max-width: 620px; color: #e3e3ff; }
.white { background: #fff; color: #3f29a6; }
.career-art { padding: 22px; border-radius: 22px; background: linear-gradient(145deg, #f5eaff, #e4f7ff); }
.career-art img { width: 100%; height: auto; }

.contact-grid { align-items: stretch; margin-top: 26px; }
.contact-details a { display: flex; align-items: center; gap: 14px; min-height: 88px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.contact-details a:hover strong { color: var(--brand); }
.contact-details small { display: block; color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .1em; }
.contact-details strong { display: block; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.contact-icon { flex-shrink: 0; }
.contact-arrow { margin-left: auto; width: 17px; height: 17px; flex-shrink: 0; color: var(--brand); }
.contact-details a:nth-child(2) .contact-icon { background: linear-gradient(135deg, #315de4, #007fbd); }
.contact-details a:nth-child(3) .contact-icon { background: linear-gradient(135deg, #b52bd8, #7533c4); }
.map-wrap { position: relative; overflow: hidden; min-height: 280px; border: 1px solid var(--line); border-radius: 16px; background: var(--tint); }
.map-wrap iframe { position: absolute; width: 100%; height: 100%; border: 0; }
.map-link { position: absolute; inset: auto 12px 12px; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 8px; background: #fff; font-size: .8rem; font-weight: 700; box-shadow: 0 2px 12px #0002; }

footer { background: #f2f1fb; padding-block: 44px 20px; }
.footer-main { display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, .75fr) minmax(0, 1fr); align-items: start; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-main h2 { font-size: .95rem; letter-spacing: -.02em; line-height: 1.4; margin-bottom: 13px; }
.footer-links { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: .83rem; line-height: 1.5; }
.footer-links a { display: flex; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
.footer-links svg { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; color: #3a61ce; }
.footer-explore svg { width: 14px; color: #8039d6; }
.footer-links a:hover, .back-top:hover { color: var(--brand); }
.footer-socials { display: flex; gap: 9px; }
.footer-socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: #fff; background: #4932bd; }
.footer-socials a:hover { background: #2e2185; }
.footer-socials svg { width: 21px; height: 21px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.footer-bottom { color: var(--muted); font-size: .76rem; padding-top: 17px; }
.back-top { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; }
.back-top svg { width: 30px; height: 30px; padding: 6px; border: 1px solid var(--line); border-radius: 50%; }

dialog { width: min(550px, calc(100% - 28px)); max-height: calc(100% - 40px); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 5vw, 38px); color: var(--ink); box-shadow: 0 24px 90px #13112650; }
dialog::backdrop { background: #0e1027aa; backdrop-filter: blur(5px); }
dialog h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
#dialog-description, #dialog-list { color: var(--muted); font-size: .91rem; }
#dialog-description { margin-top: 14px; }
#dialog-list { padding-inline-start: 21px; margin-block: 12px 22px; }
.dialog-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tint); font-size: 23px; line-height: 1; }
dialog .eyebrow { padding-inline-end: 32px; }
body:has(dialog[open]) { overflow: hidden; }
.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.will-reveal.visible { opacity: 1; transform: none; }
.will-reveal:focus-within { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .container { width: min(calc(100% - 52px), 1200px); }
  .nav-wrap, nav, .nav-actions { gap: 16px; }
  .studio-card { min-height: 350px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 0; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 82px; }
  .nav-wrap { min-height: 65px; }
  .language-switch button { min-width: 36px; min-height: 40px; }
  .menu-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
  }
  .menu-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--ink); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  nav { display: none; position: absolute; top: 100%; inset-inline: 0; align-items: stretch; gap: 0; max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 26px; border-bottom: 1px solid var(--line); background: #fff; }
  nav.open { display: flex; flex-direction: column; }
  nav a { display: flex; align-items: center; min-height: 44px; padding-block: 9px; }
  .mobile-contact { display: block; }
  .nav-contact { display: none; }
  .hero-grid, .section-heading, .services-heading, .culture-grid, .contact-grid, .career-inner { grid-template-columns: 1fr; }
  .section-heading, .services-heading { row-gap: 16px; }
  .section-heading .eyebrow { margin-bottom: 0; }
  .hero h1 { font-size: clamp(2.2rem, 8.1vw, 4rem); }
  .studio-card { min-height: 0; }
  .studio-mark { width: min(95%, 440px); }
  .footer-main { grid-template-columns: 1.3fr .75fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .culture-visual { min-height: 320px; }
  .career-art { display: none; }
}

@media (max-width: 440px) {
  .container { width: calc(100% - 36px); }
  .nav-wrap, .nav-actions { gap: 9px; }
  .brand-mark { width: 58px; }
  .brand-wordmark { width: 80px; }
  .studio-card { padding: 16px; }
  .studio-index { letter-spacing: .07em; }
  .mission-grid { grid-template-columns: 1fr; }
  .service-grid { gap: 9px; }
  .service-card { padding: 13px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .nav-wrap, .nav-actions { gap: 8px; }
  .brand-mark { width: 46px; }
  .brand-wordmark { width: 66px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .will-reveal { opacity: 1; transform: none; }
}
