@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #142431;
  --muted: #405464;
  --accent: #075781;
  --line: rgb(21 63 85 / 13%);
  --radius: 29px;
  --measure: 1120px;
  --font: -apple-system, BlinkMacSystemFont, 'Instrument Sans', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #367ea4; }
body {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #005b96; outline-offset: 4px; }
::selection { color: #12374b; background: #bfe9ff; }
#cases, #contact { scroll-margin-top: 79px; }

.desktop-wallpaper {
  position: fixed;
  z-index: -1;
  inset: 0;
  display: block;
  background: #367ea4;
  pointer-events: none;
}
.desktop-wallpaper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 51%;
}

.container {
  width: min(var(--measure), calc(100% - 96px));
  margin-inline: auto;
}

.liquid {
  border: 1px solid rgb(255 255 255 / 67%);
  background: rgb(226 243 249 / 93%);
  box-shadow:
    0 2px 6px rgb(7 36 55 / 12%),
    0 22px 62px rgb(10 42 61 / 20%),
    inset 0 1px rgb(255 255 255 / 90%),
    inset 0 -1px rgb(255 255 255 / 34%);
}
@supports ((backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px))) {
  .liquid {
    background: linear-gradient(145deg, rgb(247 253 255 / 66%), rgb(234 247 251 / 48%) 53%, rgb(238 251 250 / 61%));
    -webkit-backdrop-filter: blur(27px) saturate(148%);
    backdrop-filter: blur(27px) saturate(148%);
  }
}

.skip-link:not(:focus) {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: white;
}

.site-header {
  position: sticky;
  z-index: 6;
  top: 17px;
  margin-top: 20px;
  pointer-events: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 10px 20px 10px 27px;
  border-radius: 24px;
}
.header-inner > * { pointer-events: auto; }
.brand, .main-nav {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.brand {
  flex: 0 0 auto;
  padding-inline: 0;
  font-size: 25px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: -.06em;
}
.main-nav {
  gap: 19px;
  padding: 0;
  color: #1c3446;
  font-size: 15px;
  font-weight: 610;
}
.main-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding-inline: 13px;
  border-radius: 999px;
}
.main-nav a:hover, .main-nav a[aria-current] { background: rgb(255 255 255 / 49%); }
.main-nav .nav-contact { padding-inline: 21px; border: 1px solid rgb(255 255 255 / 65%); background: rgb(255 255 255 / 40%); }

.desktop-scene {
  display: grid;
  min-height: min(calc(100svh - 64px), 845px);
  align-items: start;
  padding-block: clamp(32px, 4.8svh, 55px) 40px;
}

.workspace-window, .surface-section, .list-page, .detail-page, .contact-inner {
  border-radius: var(--radius);
}
.workspace-window { overflow: hidden; }
.window-toolbar {
  display: grid;
  min-height: 59px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  padding: 9px 16px 9px 19px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 38%), rgb(255 255 255 / 12%));
}
.window-toolbar h1 { font-size: 17px; font-weight: 680; line-height: 1.3; letter-spacing: -.03em; }
.window-lights { display: flex; gap: 7px; }
.window-lights i {
  width: 11px;
  height: 11px;
  border: 1px solid rgb(67 36 44 / 12%);
  border-radius: 50%;
  background: #ff8582;
  box-shadow: inset 0 1px rgb(255 255 255 / 37%);
}
.window-lights i:nth-child(2) { background: #f5c96c; }
.window-lights i:nth-child(3) { background: #74cd92; }
.glass-action {
  display: inline-flex;
  min-height: 33px;
  align-items: center;
  justify-self: end;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgb(255 255 255 / 66%);
  border-radius: 999px;
  background: rgb(255 255 255 / 36%);
  color: #17364c;
  font-size: 13px;
  font-weight: 620;
  white-space: nowrap;
}
.glass-action:hover { background: rgb(255 255 255 / 70%); }
.glass-action span { font-size: 17px; line-height: .8; }

.workspace-body { display: grid; grid-template-columns: minmax(0, 222px) minmax(0, 1fr); }
.workspace-sidebar {
  display: none;
  min-width: 0;
  padding: 21px 11px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(226 246 255 / 31%), rgb(242 250 252 / 17%));
}
.workspace-sidebar.is-ready { display: flex; flex-direction: column; }
.workspace-sidebar h2 {
  margin: 0 0 9px 10px;
  color: #395366;
  font-size: 12px;
  font-weight: 650;
}
.preview-choices { display: grid; flex: 1; grid-auto-rows: minmax(64px, 1fr); gap: 5px; }
.preview-choice {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 59px;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #213b4c;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.preview-choice img {
  width: 54px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgb(21 54 74 / 11%);
  border-radius: 7px;
  object-fit: cover;
}
.preview-choice span { display: grid; gap: 2px; min-width: 0; }
.preview-choice strong { font-size: 13px; font-weight: 680; line-height: 1.17; }
.preview-choice small { color: #3f5b6d; font-size: 11px; }
.preview-choice:hover { background: rgb(255 255 255 / 32%); }
.preview-choice[aria-pressed="true"] {
  border-color: rgb(255 255 255 / 72%);
  color: #133853;
  background: linear-gradient(120deg, rgb(254 255 255 / 73%), rgb(232 248 255 / 59%));
  box-shadow: 0 2px 9px rgb(25 69 93 / 10%), inset 0 1px rgb(255 255 255 / 57%);
}

.workspace-viewer { min-width: 0; padding: 15px; background: rgb(252 254 255 / 20%); }
.workspace-sidebar:not(.is-ready) + .workspace-viewer { grid-column: 1 / -1; }
.preview-image {
  display: block;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 16px;
  background: #f7f5ee;
  box-shadow: 0 2px 11px rgb(26 55 73 / 15%);
}
.preview-image img {
  aspect-ratio: 1.6;
  max-height: min(52svh, 495px);
  object-fit: cover;
  object-position: center;
}
.preview-caption {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 11px 4px 0;
}
.preview-caption h2 { font-size: clamp(21px, 2.3vw, 31px); font-weight: 680; line-height: 1.2; letter-spacing: -.05em; }
.preview-caption p { margin-top: 3px; color: #2e4859; font-size: 13px; }
.preview-caption .button { flex-shrink: 0; }

.button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 640;
  transition: background-color .18s;
}
.button-primary {
  border-color: rgb(0 70 117 / 25%);
  color: white;
  background: #08628f;
  box-shadow: inset 0 1px rgb(255 255 255 / 21%), 0 3px 9px rgb(8 81 119 / 15%);
}
.button-primary:hover { background: #075479; }

.surface-section {
  margin-bottom: 24px;
  padding: clamp(18px, 3vw, 35px);
}
.section-head { margin-bottom: 17px; }
.section-head h2, .contact-section h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 680;
  line-height: 1.16;
  letter-spacing: -.055em;
}
.case-grid, .website-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.case-card, .website-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 17px;
  background: rgb(252 254 255 / 77%);
  box-shadow: 0 3px 12px rgb(19 54 73 / 8%), inset 0 1px rgb(255 255 255 / 65%);
}
.case-media, .website-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.6;
  border-bottom: 1px solid var(--line);
  background: #f3f7f9;
}
.case-media { order: -1; }
.case-media img, .website-media img { height: 100%; object-fit: cover; transition: transform .22s; }
.case-media:hover img, .website-media:hover img { transform: scale(1.025); }
.case-media:focus-visible, .website-media:focus-visible, .preview-image:focus-visible { outline-offset: -4px; }
.case-info, .website-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 14px 15px 16px; }
.case-info h3, .website-info h3 {
  font-size: clamp(17px, 1.84vw, 24px);
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -.045em;
}
.case-info h3 span { display: inline-block; }
.case-info h3 a:hover { color: var(--accent); }
.website-info h3 { margin-top: 5px; }
.category { color: #405b70; font-size: 12px; font-weight: 650; }
.card-meta { display: flex; align-items: center; gap: 8px; }
.access { padding-left: 8px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.card-description { margin: 7px 0 12px; color: var(--muted); font-size: 13px; }
.text-link, .quiet-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.text-link { color: var(--accent); font-weight: 630; }
.text-link:hover, .quiet-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.case-info > .text-link { margin-top: auto; }
.website-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.quiet-link { color: var(--muted); }

.contact-section { margin-bottom: 22px; }
.contact-inner {
  display: flex;
  min-height: 169px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(23px, 3.5vw, 44px);
}
.contact-inner h2 { font-size: clamp(25px, 3vw, 36px); }
.contact-inner p { max-width: 38em; margin-top: 7px; color: #294659; }
.contact-inner .button { flex-shrink: 0; }
.site-footer { padding-bottom: 21px; }
.footer-inner { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 9px; padding-inline: 15px; border-radius: 999px; }
.footer-name { font-weight: 680; }
.footer-name span { margin-left: 8px; color: #324c5d; font-size: 12px; font-weight: 540; }

.list-page, .detail-page { margin-block: clamp(29px, 5vw, 61px) 25px; padding: clamp(17px, 3vw, 34px); }
.page-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.page-intro h1, .detail-intro h1 {
  font-size: clamp(35px, 5vw, 65px);
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -.06em;
}
.collection-layout { display: grid; grid-template-columns: minmax(0, 148px) minmax(0, 1fr); gap: 15px; }
.filters {
  position: sticky;
  top: 76px;
  display: none;
  height: fit-content;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 69%);
  border-radius: 14px;
  background: rgb(245 251 254 / 63%);
}
.filters.is-ready { display: flex; }
.filters button {
  min-height: 37px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #2e475a;
  background: transparent;
  font-size: 13px;
  font-weight: 560;
  text-align: left;
  cursor: pointer;
}
.filters button:hover { background: rgb(255 255 255 / 44%); }
.filters button[aria-pressed="true"] {
  border-color: rgb(255 255 255 / 80%);
  color: #143752;
  background: rgb(255 255 255 / 80%);
  box-shadow: 0 2px 7px rgb(22 59 82 / 10%);
}
.filter-status { color: #304c5f; font-size: 13px; white-space: nowrap; }
.filters:not(.is-ready) + .website-grid { grid-column: 1 / -1; }

.detail-page { max-width: 1030px; }
.back-link { margin-bottom: 16px; }
.detail-intro .category { margin-bottom: 6px; }
.detail-intro > p:not(.category) { margin-top: 9px; color: #29465a; font-size: 16px; }
.detail-intro .button { margin-top: 14px; }
.detail-cover {
  overflow: hidden;
  margin-block: 23px 27px;
  padding: 7px;
  border: 1px solid rgb(255 255 255 / 69%);
  border-radius: 22px;
  background: rgb(253 254 255 / 49%);
}
.detail-cover img { width: 100%; max-height: 570px; border-radius: 15px; object-fit: cover; object-position: center top; }
.detail-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.detail-section, .detail-result {
  padding: 19px;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 17px;
  background: rgb(251 254 255 / 67%);
}
.detail-section:last-child { grid-column: 1 / -1; }
.detail-section h2, .detail-result h2 { margin-bottom: 6px; font-size: 22px; font-weight: 670; line-height: 1.3; letter-spacing: -.04em; }
.detail-section p, .detail-result p { max-width: 62ch; color: var(--muted); }
.decision { margin-top: 11px; }
.decision h3 { margin-bottom: 3px; font-size: 16px; }
.detail-gallery { display: grid; justify-items: center; gap: 8px; margin-block: 20px 24px; }
.detail-gallery img { max-height: 570px; border: 1px solid rgb(255 255 255 / 65%); border-radius: 18px; object-fit: cover; object-position: top; }
.detail-gallery figcaption { color: #244357; font-size: 12px; text-align: center; }
.detail-gallery.portrait {
  padding: 17px;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 19px;
  background: rgb(251 254 255 / 43%);
}
.detail-gallery.portrait img { width: min(100%, 310px); max-height: none; }
.detail-result { margin-block: 22px 18px; }
.detail-result .text-link { margin-top: 8px; }

@media (max-width: 1030px) {
  .container { width: calc(100% - 60px); }
  .workspace-body { grid-template-columns: minmax(0, 185px) minmax(0, 1fr); }
  .preview-choice { gap: 7px; padding-inline: 6px; }
  .preview-choice img { width: 44px; height: 34px; }
  .collection-layout { grid-template-columns: minmax(0, 122px) minmax(0, 1fr); gap: 10px; }
  .collection-layout .website-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --radius: 24px; }
  .container { width: calc(100% - 32px); }
  .desktop-wallpaper img { object-position: 54% 50%; }
  .site-header { top: 11px; margin-top: 13px; }
  .header-inner { min-height: 57px; gap: 8px; padding: 6px 9px 6px 15px; border-radius: 20px; }
  .brand, .main-nav { min-height: 40px; }
  .brand { padding-inline: 0; font-size: 20px; }
  .main-nav { gap: 2px; padding: 0; font-size: 12px; }
  .main-nav .nav-contact { padding-inline: 10px; }
  .main-nav a { min-height: 32px; padding-inline: 9px; }
  .desktop-scene { min-height: clamp(610px, calc(88svh - 54px), 760px); padding-block: 34px 36px; }
  .window-toolbar { min-height: 51px; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 11px 8px 14px; }
  .window-toolbar h1 { font-size: 16px; }
  .window-lights { display: none; }
  .glass-action { min-height: 31px; padding-inline: 9px; font-size: 12px; }
  .workspace-body { grid-template-columns: minmax(0, 1fr); }
  .workspace-sidebar { padding: 8px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-sidebar h2 { display: none; }
  .preview-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 4px; }
  .preview-choice { min-height: 41px; justify-content: center; padding: 4px; border-radius: 9px; text-align: center; }
  .preview-choice img, .preview-choice small { display: none; }
  .preview-choice strong { font-size: clamp(11px, 2.7vw, 13px); }
  .workspace-viewer { padding: 9px; }
  .preview-image { border-radius: 12px; }
  .preview-caption { min-height: 0; align-items: flex-start; gap: 8px; padding: 9px 3px 3px; }
  .preview-caption h2 { font-size: 21px; }
  .preview-caption p { font-size: 12px; }
  .preview-caption .button { min-height: 35px; padding-inline: 9px; font-size: 12px; }
  .case-grid, .website-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .case-info, .website-info { padding: 12px; }
  .collection-layout { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 3px; padding: 4px; }
  .filters button { min-height: 34px; padding-inline: 7px; font-size: 12px; }
  .contact-inner { min-height: 0; align-items: flex-start; flex-direction: column; gap: 13px; }
}

@media (max-width: 480px) {
  .case-grid, .website-grid, .collection-layout .website-grid, .detail-copy { grid-template-columns: 1fr; }
  .detail-cover { margin-block: 17px 21px; padding: 5px; }
  .detail-cover img { border-radius: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .liquid { background: #e4f3fa; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
