@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Figtree:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --ink: #110f0d;
  --ink-2: #1c1915;
  --paper: #f3eee4;
  --paper-2: #e4dccf;
  --gold: #c9a05a;
  --gold-2: #e4c98a;
  --fog: #9a9288;
  --line: rgba(243, 238, 228, 0.12);
  --line-strong: rgba(243, 238, 228, 0.22);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Figtree", "Hiragino Sans", "Noto Sans", sans-serif;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 1.35rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 0.5rem 0.8rem;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.lede { color: var(--fog); font-size: 1.05rem; max-width: 40rem; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 1.1rem var(--pad) 0;
  transition: background 0.3s, padding 0.3s;
}
.nav.is-scrolled {
  background: rgba(17, 15, 13, 0.9);
  backdrop-filter: blur(16px);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(var(--max), 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold-2);
}
.brand svg { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { font-size: 0.86rem; color: var(--paper-2); }
.nav-links a:hover { color: var(--gold-2); }
.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-2);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }
.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang { display: flex; align-items: center; }
.lang select {
  appearance: none;
  background: var(--ink-2);
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 1.7rem 0.45rem 0.8rem;
  min-width: 8.6em;
  font: 500 0.8rem var(--sans);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 10px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.lang select:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  width: 42px;
  height: 42px;
  border-radius: 999px;
}
.only-mobile { display: none; }

@media (max-width: 820px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-links, .nav-cta { display: none; }
  .nav.is-open .nav-inner { flex-wrap: wrap; }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    background: var(--ink-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    gap: 1rem;
    margin-top: 0.6rem;
  }
  .nav.is-open .only-mobile { display: list-item; }
}

html[lang="ja"] body,
html[lang="ja"] .btn { font-family: var(--sans), "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .brand-name {
  font-family: var(--display), "Hiragino Mincho ProN", "Hiragino Sans", serif;
}
html[lang="ko"] body,
html[lang="ko"] .btn { font-family: var(--sans), "Apple SD Gothic Neo", sans-serif; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] .brand-name {
  font-family: var(--display), "Apple SD Gothic Neo", serif;
}
html[lang="zh-Hans"] body,
html[lang="zh-Hans"] .btn { font-family: var(--sans), "Hiragino Sans GB", "PingFang SC", sans-serif; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3, html[lang="zh-Hans"] .brand-name {
  font-family: var(--display), "Hiragino Sans GB", "PingFang SC", serif;
}
html[lang="zh-Hant"] body,
html[lang="zh-Hant"] .btn { font-family: var(--sans), "PingFang TC", "Hiragino Sans CNS", sans-serif; }
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3, html[lang="zh-Hant"] .brand-name {
  font-family: var(--display), "PingFang TC", "Hiragino Sans CNS", serif;
}
html[lang="ru"] body,
html[lang="ru"] .btn { font-family: var(--sans), "Noto Serif", "Times New Roman", sans-serif; }
html[lang="ja"] .eyebrow,
html[lang="ko"] .eyebrow,
html[lang="zh-Hans"] .eyebrow,
html[lang="zh-Hant"] .eyebrow {
  letter-spacing: 0.08em;
  text-transform: none;
}
html[lang="ja"] .hero h1,
html[lang="ko"] .hero h1,
html[lang="zh-Hans"] .hero h1,
html[lang="zh-Hant"] .hero h1 {
  letter-spacing: 0;
  word-break: keep-all;
  line-break: strict;
}

.hero {
  padding: 8.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -30%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(201,160,90,0.14), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  margin: 0.85rem 0 1rem;
}
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 400; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  transition: 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); font-weight: 600; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 3rem 0 0;
}
.stats article {
  background: var(--ink);
  padding: 1.45rem 1.3rem 1.25rem;
}
.stats dt {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.stats dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

section { padding: 5.5rem 0; scroll-margin-top: 5rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
.section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  max-width: 16ch;
}

.app-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem 1.7rem;
  margin: 0 0 3.6rem;
}
.app-tile {
  width: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}
.app-tile img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  background: var(--ink-2);
}
.app-tile:hover img { transform: translateY(-3px); }
.app-tile img { transition: transform 0.2s ease; }
.app-tile strong {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.15;
}
.app-tile span { color: var(--fog); font-size: 0.75rem; }

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}
.project:last-of-type { border-bottom: 1px solid var(--line); }
.project.reverse { direction: rtl; }
.project.reverse > * { direction: ltr; }
.kicker {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.project h3 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin: 0.4rem 0 0.8rem; }
.project p { color: var(--fog); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.3rem; }
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  color: var(--paper-2);
}

.phone {
  width: min(280px, 70%);
  margin: 0 auto;
  background: #000;
  border-radius: 2rem;
  padding: 0.55rem;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.phone img {
  border-radius: 1.5rem;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}
.work-visual {
  display: grid;
  place-items: center;
  position: relative;
}
.work-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(circle, rgba(201,160,90,0.18), transparent 70%);
}
.work-visual.pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
}
.work-visual.pair .phone { width: min(210px, 44%); }
.work-visual.pair::before { inset: 18% 4%; }
.shot {
  width: min(360px, 88%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}
.shot.poster {
  width: min(300px, 86%);
  background: #161322;
}
.shot.poster img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2.4rem;
}
.catalog a {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.catalog a:hover { border-color: var(--gold); }
.catalog strong { font-family: var(--display); font-size: 1.2rem; font-weight: 500; }
.catalog span { color: var(--fog); font-size: 0.8rem; }

.about { background: var(--ink-2); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}
.about h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0.7rem 0 1rem; }
.about p { color: var(--fog); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
}
.contact h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0.7rem 0 1rem; }
.contact address { font-style: normal; color: var(--fog); }
.contact address a { color: var(--gold-2); }
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
}
input, textarea {
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 0.8rem;
  padding: 0.85rem 0.95rem;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 8.5rem; resize: vertical; }
.form-msg { grid-column: 1 / -1; min-height: 1.2rem; font-size: 0.9rem; color: var(--gold-2); }

footer {
  padding: 1.6rem 0 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: 0.85rem;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot a:hover { color: var(--gold-2); }

@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid, form { grid-template-columns: 1fr; }
  .hero { padding-top: 6.8rem; }
  .hero-figure { max-width: 320px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .app-tile, .app-tile img { width: 96px; height: auto; }
  .app-tile img { height: 96px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 800px) {
  .project, .project.reverse { grid-template-columns: 1fr; direction: ltr; padding: 2.2rem 0; }
}
@media (max-width: 700px) {
  .catalog { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .app-tile, .app-tile img { width: 88px; }
  .app-tile img { height: 88px; border-radius: 20px; }
  .work-visual.pair .phone { width: min(160px, 46%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
