:root {
  --ink: #0d0d0d;
  --charcoal: #242424;
  --graphite: #555555;
  --silver: #d8d8d8;
  --mist: #efefef;
  --paper: #f8f8f8;
  --white: #ffffff;
  --line: rgba(13, 13, 13, 0.14);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

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

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--white);
  padding: 0.65rem 0.9rem;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 1rem 3rem;
  color: var(--white);
  mix-blend-mode: difference;
}

.brand {
  order: 1;
  display: grid;
  gap: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1;
}

.site-nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  padding: 0.4rem 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.nav-toggle {
  order: 4;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 0.28rem auto;
  background: currentColor;
}

.language-switch {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-left: 1.35rem;
  color: currentColor;
  font-size: 0.82rem;
  white-space: nowrap;
}

.language-switch button {
  min-width: 2.1rem;
  padding: 0.32rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.language-switch button:hover,
.language-switch button:focus-visible,
.language-switch button.is-active {
  border-bottom-color: currentColor;
}

.language-switch span {
  opacity: 0.54;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  padding: 8.5rem 3rem 4rem;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 22vh;
  content: "";
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0), var(--ink));
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero-inner {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--graphite);
  font-size: 0.82rem;
}

.hero .eyebrow,
.hero-note {
  color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 9ch;
  font-size: 5.4rem;
}

h2 {
  max-width: 13ch;
  font-size: 3.45rem;
}

h3 {
  font-size: 1.45rem;
}

.hero-slogan {
  max-width: 34rem;
  margin: 1.4rem 0 2rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.35rem;
}

.hero-note {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(100%, var(--max-width));
  margin: 4rem auto 0;
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.1rem;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

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

.button-light {
  color: var(--white);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.button-dark {
  color: var(--ink);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.section {
  padding: 7.5rem 3rem;
  border-top: 1px solid var(--line);
}

.section-heading,
.about-grid,
.portfolio-grid,
.course-layout,
.booking-content,
.booking-form,
.contact-links,
.site-footer {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  gap: 3rem;
  margin-bottom: 4.5rem;
}

.section-heading .eyebrow {
  padding-top: 0.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.6fr);
  gap: 5rem;
}

.about-copy {
  max-width: 42rem;
  color: var(--charcoal);
  font-size: 1.14rem;
}

.about-copy p {
  margin: 0 0 1.35rem;
}

.studio-notes {
  margin: 0;
  border-top: 1px solid var(--line);
}

.studio-notes div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.studio-notes dt {
  color: var(--graphite);
  font-size: 0.9rem;
}

.studio-notes dd {
  margin: 0;
}

.portfolio-section {
  background: var(--mist);
}

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

.portfolio-card {
  margin: 0;
  background: var(--paper);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--silver);
}

.portfolio-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  color: var(--graphite);
  font-size: 0.88rem;
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 4.5rem;
}

.course-intro {
  margin: 0;
  color: var(--charcoal);
  font-size: 1.12rem;
}

.course-columns {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.course-columns article {
  padding: 2rem;
  background: var(--paper);
}

.course-columns h3 {
  margin-bottom: 1rem;
}

.course-columns p {
  margin: 0;
  color: var(--charcoal);
}

.booking-section {
  background: var(--ink);
  color: var(--white);
}

.booking-section .eyebrow,
.booking-section label,
.form-status,
.copy-status {
  color: rgba(255, 255, 255, 0.68);
}

.booking-content {
  display: grid;
  gap: 3rem;
}

.booking-intro {
  max-width: 46rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
}

.booking-panel {
  display: grid;
  gap: 1.5rem;
}

.booking-contact-grid,
.inquiry-row,
.wechat-feature {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.booking-contact-grid,
.inquiry-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inquiry-card,
.inquiry-row a,
.wechat-copy,
.qr-placeholder {
  background: rgba(255, 255, 255, 0.035);
}

.inquiry-card,
.inquiry-row a {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-height: 178px;
  padding: 1.45rem;
}

.inquiry-card span,
.inquiry-row span,
.wechat-id-row span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.inquiry-card strong,
.inquiry-row span {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  font-weight: 400;
  line-height: 1.15;
}

.inquiry-card small,
.inquiry-row small,
.wechat-copy p,
.form-heading p {
  color: rgba(255, 255, 255, 0.7);
}

.inquiry-card small,
.inquiry-row small {
  font-size: 0.9rem;
  line-height: 1.55;
}

.inquiry-card:hover,
.inquiry-card:focus-visible,
.inquiry-row a:hover,
.inquiry-row a:focus-visible {
  background: rgba(255, 255, 255, 0.075);
}

.wechat-feature {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
}

.wechat-copy {
  padding: 2rem;
}

.wechat-copy h3 {
  max-width: 18ch;
  margin-bottom: 1rem;
}

.wechat-copy p {
  max-width: 44rem;
  margin: 0;
}

.wechat-id-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.wechat-id-row strong {
  font-size: 1.05rem;
  font-weight: 400;
}

.text-button {
  padding: 0.25rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.copy-status {
  min-height: 1.7em;
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
}

.qr-placeholder {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 260px;
  padding: 2rem;
  overflow: hidden;
  text-align: center;
}

.qr-placeholder::before {
  position: absolute;
  inset: 2rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.45);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 18px 18px;
}

.qr-placeholder span,
.qr-placeholder small {
  position: relative;
  z-index: 1;
  display: block;
  background: var(--ink);
  padding-inline: 0.45rem;
}

.qr-placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.qr-placeholder small {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.62);
}

.form-block {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.form-heading h3 {
  max-width: 16ch;
  margin-bottom: 1rem;
}

.form-heading p {
  margin: 0;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.form-row {
  display: grid;
  gap: 0.5rem;
}

.form-row-wide {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  padding: 0.8rem 0;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

input:focus,
textarea:focus {
  border-bottom-color: var(--white);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.booking-section .button-dark {
  color: var(--white);
}

.booking-section .button-dark:hover,
.booking-section .button-dark:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.form-status {
  min-height: 1.7em;
  margin: 0;
  font-size: 0.92rem;
}

.contact-links {
  display: grid;
  border-top: 1px solid var(--line);
}

.contact-links a {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-links span:first-child {
  color: var(--graphite);
}

.contact-links a:hover span:last-child,
.contact-links a:focus-visible span:last-child {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 3rem 3rem;
  color: var(--graphite);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .site-header {
    min-height: 68px;
    padding: 0.8rem 1.25rem;
  }

  .nav-toggle {
    display: block;
    margin-left: 0.75rem;
  }

  .site-nav {
    order: 4;
    position: fixed;
    inset: 68px 0 auto;
    display: grid;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-130%);
    transition: transform 220ms ease;
    mix-blend-mode: normal;
  }

  .language-switch {
    margin-left: auto;
    font-size: 0.78rem;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

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

  .hero,
  .section {
    padding-inline: 1.25rem;
  }

  .hero {
    min-height: 90svh;
    padding-top: 7rem;
  }

  h1 {
    max-width: 8ch;
    font-size: 3.35rem;
  }

  h2 {
    max-width: 12ch;
    font-size: 2.25rem;
  }

  .hero-slogan {
    font-size: 1.1rem;
  }

  .section {
    padding-block: 5.5rem;
  }

  .section-heading,
  .about-grid,
  .course-layout,
  .form-block,
  .wechat-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .wechat-feature {
    gap: 1px;
  }

  .booking-contact-grid,
  .inquiry-row {
    grid-template-columns: 1fr;
  }

  .inquiry-card,
  .inquiry-row a {
    min-height: auto;
  }

  .section-heading {
    margin-bottom: 3rem;
  }

  .about-grid {
    gap: 2.75rem;
  }

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

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .portfolio-grid,
  .booking-form {
    grid-template-columns: 1fr;
  }

  .portfolio-card figcaption,
  .studio-notes div,
  .contact-links a,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .portfolio-card figcaption {
    display: grid;
    gap: 0.15rem;
  }

  .studio-notes div,
  .contact-links a {
    gap: 0.25rem;
  }

  .site-footer {
    display: grid;
    padding-inline: 1.25rem;
  }
}
