/* Hoang Minh Crane
   Colours come from the logo. Change them here and they change everywhere. */
:root {
  --blue: #3e75b5;        /* logo blue: capacity band, buttons, focus ring */
  --blue-deep: #32639c;   /* logo blue, pressed */
  --ink: #142238;         /* text */
  --slate: #56637a;       /* secondary text */
  --grey: #edf1f6;        /* contact band ground */
  --white: #ffffff;
  --line: rgba(20, 34, 56, 0.14);
  --line-strong: rgba(20, 34, 56, 0.32);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 24px;
  --measure: 1200px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-width: 320px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html:lang(zh-CN) body { font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif; }
html:lang(ko) body { font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", sans-serif; word-break: keep-all; }
body.lightbox-open { overflow: hidden; }

h1, h2, p, dl, dd { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(30px, 3.2vw, 40px); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; height: auto; }
svg.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.capacity :focus-visible, .lightbox :focus-visible { outline-color: var(--white); }

.container { width: min(var(--measure), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.placeholder { color: var(--slate); }
.text-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); }

.top-anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; }
.skip-link { position: absolute; left: 16px; top: -200px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--white); font-weight: 500; }
.skip-link:focus { top: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 24px;
}
.brand { display: block; padding-block: 6px; }
.brand img { width: 108px; height: auto; }
.languages { display: flex; justify-content: center; gap: 28px; white-space: nowrap; }
.languages a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 500; color: var(--slate);
  text-underline-offset: 7px; text-decoration-thickness: 1.5px;
}
.languages a[aria-current="true"] { color: var(--ink); text-decoration: underline; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- opening ---------- */
.opening { padding-top: 72px; padding-bottom: 96px; }
h1 { font-size: clamp(38px, 4.6vw, 56px); }
.lead { margin-top: 16px; font-size: clamp(20px, 2vw, 24px); line-height: 1.4; max-width: 30em; }
.place { margin-top: 20px; font-size: 15px; color: var(--slate); display: flex; flex-wrap: wrap; gap: 4px 24px; }
.hero { margin-top: 40px; aspect-ratio: 16 / 9; }

/* photo buttons, shared by hero and grid */
.photo {
  display: block; position: relative; width: 100%;
  background: var(--grey); overflow: hidden;
}
.photo picture, .photo img { width: 100%; height: 100%; }
.photo img { object-fit: cover; }

/* ---------- capacity, the one bold block ---------- */
.capacity { background: var(--blue); color: var(--white); padding-block: 88px 96px; }
.capacity h2 { font-size: 17px; font-weight: 500; letter-spacing: 0; }
.figure {
  margin-top: 12px;
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 0.15em;
  font-weight: 600; line-height: 1;
}
.figure-number { font-size: clamp(84px, 13vw, 176px); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.figure-number .dash { margin-inline: 0.02em; }
.figure-unit { font-size: clamp(22px, 2.8vw, 40px); font-weight: 500; letter-spacing: -0.01em; }
.axis { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; row-gap: 10px; }
.axis-line { grid-column: 1 / -1; position: relative; height: 1px; background: rgba(255, 255, 255, 0.55); margin-top: 6px; }
.axis-line::before, .axis-line::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: var(--white); }
.axis-line::before { left: 0; }
.axis-line::after { right: 0; }
.axis-end { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.axis-max { justify-self: end; }
.capacity-foot { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.capacity-foot p { max-width: 36em; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.button-light { background: var(--white); color: var(--blue); }
.button-light:active { background: #e6edf7; }

/* ---------- gallery ---------- */
.gallery { padding-block: 96px 0; }
.gallery h2 { margin-bottom: 32px; }
.grid { display: grid; gap: 16px; }
.grid-landscape { grid-template-columns: repeat(4, 1fr); }
.grid-portrait { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.grid-landscape .photo { aspect-ratio: 4 / 3; }
.grid-portrait .photo { aspect-ratio: 3 / 4; }

/* ---------- location ---------- */
.location { padding-block: 96px; }
.section-text { margin-top: 12px; color: var(--slate); }
.map { margin-top: 32px; aspect-ratio: 5 / 2; background: var(--grey); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.location .text-link { display: inline-block; margin-top: 20px; font-size: 15px; }

/* ---------- contact ---------- */
.contact { background: var(--grey); padding-block: 96px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px 80px; align-items: start; }
.contact-intro p { margin-top: 16px; color: var(--slate); max-width: 30em; }
.big-phone {
  display: inline-block; margin-top: 32px;
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.contact-list .row {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: center; column-gap: 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.contact-list .row:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 14px; font-weight: 500; color: var(--slate); }
.contact-list dd { font-size: 17px; overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); }
.copy {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line-strong);
}
.copy svg.icon { width: 18px; height: 18px; }
.copy[data-state="copied"] { color: var(--blue); border-color: var(--blue); }
.copy[data-state="failed"] { border-color: var(--ink); }
.copy:disabled { opacity: 0.45; }

/* ---------- footer ---------- */
.site-footer { padding-block: 28px; font-size: 14px; color: var(--slate); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; flex-wrap: wrap; }
.footer-legal { max-width: 40em; }
.footer-legal p + p { margin-top: 4px; }
.noscript { margin: 0; padding: 16px var(--gutter); background: var(--grey); font-size: 15px; text-align: center; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 16, 28, 0.94); color: var(--white);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 12px 24px; }
.lightbox-count { font-size: 14px; font-variant-numeric: tabular-nums; opacity: 0.85; }
.lightbox-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 80px 24px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; will-change: transform, opacity; }
.lightbox-stage { overflow: hidden; touch-action: pan-y; }
.lightbox-button {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06);
}
.lightbox-button svg.icon { width: 22px; height: 22px; }
.lightbox-nav { position: absolute; inset: 50% 16px auto; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; }
.lightbox-nav .lightbox-button { pointer-events: auto; }

/* ---------- hover, only where a pointer can hover ---------- */
@media (hover: hover) and (pointer: fine) {
  .languages a:hover { color: var(--ink); }
  .text-link:hover, .contact-list dd a:hover { text-decoration-color: currentColor; }
  .button-light:hover { background: #eef3fa; }
  .copy:hover:not(:disabled) { border-color: var(--ink); }
  .lightbox-button:hover { background: rgba(255, 255, 255, 0.16); }
  /* copy buttons rest quietly (slate text) until the row is used; on touch they are always in full ink */
  .contact-list .copy:not([data-state]):not(:disabled) { color: var(--slate); }
  .contact-list .row:hover .copy:not(:disabled), .contact-list .row:focus-within .copy:not(:disabled), .contact-list .copy:hover:not(:disabled) { color: var(--ink); border-color: var(--ink); }
}

/* ---------- motion, only for people who have not asked for less ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .photo img { transition: transform 0.6s var(--ease); }
  svg.icon { transition: transform 0.35s var(--ease); }
  .copy, .button, .lightbox-button { transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease); }
  .languages a { transition: color 0.2s var(--ease); }
  .lightbox[open] { animation: lightbox-in 0.18s var(--ease); }
  @keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

  @media (hover: hover) and (pointer: fine) {
    .photo:hover img, .photo:focus-visible img { transform: scale(1.025); }
    .header-phone:hover svg.icon, .button:hover svg.icon, .copy:hover:not(:disabled) svg.icon, .lightbox-button:hover svg.icon { transform: scale(1.08); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .grid-landscape { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .lightbox-stage { padding: 0 72px 24px; }
}

/* ---------- small tablet and phone ---------- */
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 104px; }
  .header-inner { grid-template-columns: 1fr auto; min-height: 0; column-gap: 16px; }
  .brand { grid-row: 1; padding-block: 8px; }
  .brand img { width: 96px; }
  .header-phone { grid-row: 1; grid-column: 2; font-size: 14px; }
  .languages { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); }
  .languages a { min-height: 42px; font-size: 13px; }
  .opening { padding-top: 40px; padding-bottom: 64px; }
  .hero { margin-top: 28px; aspect-ratio: 4 / 3; }
  .capacity { padding-block: 56px 64px; }
  .axis { margin-top: 32px; }
  .capacity-foot { margin-top: 36px; }
  .capacity-foot .button { width: 100%; justify-content: center; }
  .gallery { padding-top: 64px; }
  .gallery h2 { margin-bottom: 20px; }
  .location, .contact { padding-block: 64px; }
  .map { aspect-ratio: 4 / 3; }
  /* phone: label and button share the first line, the value gets the full width below */
  .contact-list .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label action" "value value"; row-gap: 6px; padding-block: 16px; }
  .contact-list dt { grid-area: label; }
  .contact-list dd { grid-area: value; }
  .contact-list dd.action { grid-area: action; }
  .lightbox-bar { padding: 8px 8px 8px 16px; }
  .lightbox-stage { padding: 0 12px 12px; }
  .lightbox-nav { position: static; transform: none; justify-content: center; gap: 16px; padding: 4px 0 16px; }
}

@media (max-width: 599px) {
  .grid, .grid-portrait { gap: 12px; margin-top: 12px; }
  .grid-landscape { margin-top: 0; }
  .grid-portrait { grid-template-columns: 1fr; }
}

@media (max-width: 379px) {
  .languages a { font-size: 12px; }
  .header-phone { font-size: 13px; gap: 6px; }
  .brand img { width: 84px; }
}
