:root {
  --paper: #ece8e1;
  --paper-2: #dfd9cf;
  --ink: #141210;
  --mute: #6d675e;
  --acc: #e5361b;
  --gut: 48px;
  --cols: 12;
  --line: rgba(20, 18, 16, 0.075);
}
body.studio {
  --paper: #e7e8e3;
  --paper-2: #d8dad3;
  --acc: #2340d6;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-archivo, "Archivo"), system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* lưới cột lộ ra */
.lines {
  position: fixed;
  inset: 0 var(--gut);
  pointer-events: none;
  border-right: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / var(--cols)));
}

/* thanh trên */
.bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  height: 64px;
  margin: 0 var(--gut);
  border-bottom: 1px solid var(--ink);
  font: 400 11px/1 var(--font-plex, "IBM Plex Mono"), monospace;
  letter-spacing: 0.03em;
}
.logo { grid-column: 1 / 4; font: 700 16px/1 var(--font-archivo, "Archivo"), sans-serif; letter-spacing: -0.01em; text-decoration: none; }
.desc { grid-column: 4 / 7; }
.soon { grid-column: 7 / 10; display: flex; align-items: center; gap: 8px; }
.soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: blink 2.4s ease-in-out infinite; }
.sister { grid-column: 10 / 13; justify-self: end; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
@keyframes blink { 50% { opacity: 0.25; } }

/* nội dung */
main {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-content: start;
  margin: 0 var(--gut);
  padding-top: 44px;
}
.intro { grid-column: 1 / 7; padding-right: 32px; }
h1 {
  margin: 0;
  font-weight: 600;
  font-variation-settings: "wdth" 84;
  font-size: clamp(38px, 4.6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h1 em { font-style: normal; color: var(--acc); }
.intro p { margin: 28px 0 0; max-width: 36ch; font-size: 15px; line-height: 1.6; color: #3a3530; }

.figs { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.fig { padding-right: 12px; }
.fig + .fig { padding-left: 0; }
.box { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.fig .n { display: block; margin: 12px 0 4px; font: 400 11px/1 var(--font-plex, "IBM Plex Mono"), monospace; color: var(--mute); }
.fig h2 { margin: 0; font-weight: 600; font-variation-settings: "wdth" 90; font-size: 19px; line-height: 1.1; letter-spacing: -0.015em; }
.fig p { margin: 5px 0 0; font: 400 11px/1.5 var(--font-plex, "IBM Plex Mono"), monospace; color: var(--mute); }

/* hình 01 — khung ngắm + đồng hồ gói */
.shot { position: absolute; inset: 0; background-size: cover; filter: grayscale(1) contrast(1.05); }
.shot.color { filter: none; }
.crop { position: absolute; width: 16px; height: 16px; border: 0 solid var(--paper); }
.crop.tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.crop.tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.crop.bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.crop.br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.timer {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; background: rgba(20, 18, 16, 0.78); color: var(--paper);
  font: 500 11px/1 var(--font-plex, "IBM Plex Mono"), monospace; letter-spacing: 0.06em; white-space: nowrap;
}
.timer i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }

/* nền phông studio */
.sweep {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 42% at 48% 34%, rgba(255, 255, 255, 0.38), transparent 70%),
    linear-gradient(var(--c1) 0, var(--c2) 60%, var(--c3) 74%, var(--c4) 100%);
}
.sweep::after {
  content: ""; position: absolute; left: 24%; right: 24%; bottom: 15%; height: 6%;
  border-radius: 50%; background: rgba(10, 10, 30, 0.28); filter: blur(5px);
}

/* hình 02 — điện thoại ghép khung */
.phone {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58%; aspect-ratio: 9 / 18.5;
  border: 2px solid var(--ink); border-radius: 16px; background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.phone::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 26%; height: 4px; border-radius: 4px; background: var(--ink); }
.frame { background: var(--acc); padding: 4px 4px 0; display: grid; gap: 3px; }
.frame.strip { width: 46%; grid-template-rows: repeat(4, 1fr); }
.frame.quad { width: 78%; grid-template-columns: 1fr 1fr; }
.frame .cell { aspect-ratio: 4 / 3; background-size: 230%; filter: grayscale(1); position: relative; overflow: hidden; }
.frame.quad .cell { aspect-ratio: 3 / 4; filter: none; }
.frame .tag { grid-column: 1 / -1; font: 700 6px/1 var(--font-archivo, "Archivo"), sans-serif; color: var(--paper); letter-spacing: 0.04em; text-align: center; padding: 4px 0 5px; }

/* hình 03 — danh sách ảnh gốc */
.files { position: absolute; inset: 0; padding: 14px 12px; font: 400 10.5px/1 var(--font-plex, "IBM Plex Mono"), monospace; display: flex; flex-direction: column; gap: 0; }
.files .hd { display: flex; justify-content: space-between; color: var(--mute); padding-bottom: 9px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.files .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.files .row b { font-weight: 500; color: var(--acc); }
.files .row.on { color: var(--mute); }
.files .bar2 { height: 2px; background: var(--line); margin-top: 6px; position: relative; }
.files .bar2::after { content: ""; position: absolute; inset: 0 38% 0 0; background: var(--acc); }

/* tên thương hiệu cỡ lớn */
.foot { position: relative; margin: 0 var(--gut); overflow: hidden; }
.meta { display: none; }
.mark {
  display: block;
  width: max-content;
  margin: 28px 0 0 -0.02em;
  font-weight: 850;
  font-variation-settings: "wdth" 62;
  line-height: 0.8;
  letter-spacing: -0.045em;
  white-space: nowrap;
  font-size: calc((100vw - 2 * var(--gut)) / var(--em, 4.05));
  padding-bottom: 0.04em;
}
.mark em { font-style: normal; color: var(--acc); }
.mark span { display: inline; }

/* ---------- điện thoại ---------- */
@media (max-width: 760px) {
  :root { --gut: 20px; --cols: 4; }
  .bar { grid-template-columns: 1fr auto; height: 56px; }
  .logo { grid-column: auto; }
  .desc, .sister { display: none; }
  .soon { grid-column: auto; }
  main { display: block; padding-top: 32px; }
  .intro { padding-right: 0; }
  h1 { font-size: 40px; }
  .intro p { margin-top: 20px; font-size: 15px; }
  .figs {
    display: flex; gap: 12px; margin: 32px calc(-1 * var(--gut)) 0; padding: 0 var(--gut);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none;
  }
  .figs::-webkit-scrollbar { display: none; }
  .fig { flex: 0 0 58%; padding: 0; scroll-snap-align: start; }
  .meta {
    display: flex; justify-content: space-between; margin-top: 36px; padding-top: 10px;
    border-top: 1px solid var(--ink); font: 400 11px/1 var(--font-plex, "IBM Plex Mono"), monospace;
  }
  .meta a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
  .mark { margin-top: 18px; font-size: calc((100vw - 2 * var(--gut)) / var(--em-m, 2.5)); line-height: 0.82; }
  .mark span { display: block; }
}
