:root {
  --bg: #ffffff;
  --text: #090909;
  --muted: #676767;
  --line: #e8e8e8;
  --pill: #eeeeee;
  --content: 1180px;
  --radius: 26px;
  --header-h: 100px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, height .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.brand {
  font-weight: 750;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -.045em;
}
.nav-pills { display: flex; gap: 18px; }
.nav-pills a {
  min-width: 138px;
  padding: 12px 22px;
  text-align: center;
  border-radius: 999px;
  background: var(--pill);
  color: #5a5a5a;
  transition: transform .22s var(--ease), background .22s ease, color .22s ease;
}
.nav-pills a:hover { transform: translateY(-2px); background: #e6e6e6; color: #111; }
.nav-pills a.active { background: #111; color: #fff; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: #efefef;
  border-radius: 50%;
  position: relative;
  z-index: 60;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 1.5px;
  background: #111;
  transition: transform .25s ease, top .25s ease;
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 27px; }
.menu-open .menu-toggle span:first-child { top: 23px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 23px; transform: rotate(-45deg); }

#app { min-height: calc(100vh - var(--header-h)); }
#app:focus { outline: none; }
.page {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  animation: pageIn .55s var(--ease) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}


/* Motion system: editorial, subtle and dependency-free */
.js .hero .word-reveal,
.js .hero .accent-char,
.js .hero .hero-paragraph,
.js .hero .hero-cta,
.js .hero .hero-media-reveal {
  opacity: 0;
}

.hero-line {
  display: block;
  overflow: visible;
  white-space: nowrap;
}

.word-reveal {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.accent-char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.accent-space { display: inline-block; }

.js .hero.is-animated .word-reveal {
  animation: heroWordIn .62s var(--ease) both;
  animation-delay: calc(90ms + var(--i) * 72ms);
}

.js .hero.is-animated .accent-char {
  animation: accentWriteIn .52s cubic-bezier(.16,.8,.2,1) both;
  animation-delay: calc(250ms + var(--i) * 54ms);
}

.js .hero.is-animated .hero-paragraph {
  animation: heroTextIn .7s var(--ease) both;
  animation-delay: calc(760ms + var(--i) * 120ms);
}

.js .hero.is-animated .hero-cta {
  animation: heroTextIn .7s var(--ease) both;
  animation-delay: 1030ms;
}

.js .hero.is-animated .hero-media-reveal {
  animation: heroFrameIn 1s cubic-bezier(.2,.72,.16,1) both;
  animation-delay: 170ms;
}

.js .hero.is-animated .hero-media-reveal .hero-image {
  animation: heroImageIn 1.35s cubic-bezier(.18,.72,.16,1) both;
  animation-delay: 170ms;
}

@keyframes heroWordIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes accentWriteIn {
  0% { opacity: 0; transform: translateY(14px) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes heroTextIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroFrameIn {
  0% { opacity: 0; clip-path: inset(100% 0 0 0 round 26px); transform: translateY(18px); }
  100% { opacity: 1; clip-path: inset(0 0 0 0 round 26px); transform: none; }
}

@keyframes heroImageIn {
  from { transform: scale(1.075); filter: saturate(.82) brightness(.96); }
  to { transform: scale(1); filter: none; }
}

.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(5px);
  transition:
    opacity .72s var(--ease) var(--reveal-delay, 0ms),
    transform .72s var(--ease) var(--reveal-delay, 0ms),
    filter .72s var(--ease) var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
}

.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.js .gallery-item.reveal-on-scroll {
  transform: translateY(34px) scale(.992);
}

.js .gallery-item.reveal-on-scroll.is-visible {
  transform: none;
}

.hero {
  min-height: calc(100vh - var(--header-h) - 36px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  grid-template-areas:
    "title media"
    "text media"
    "actions media";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(54px, 6vw, 86px);
  row-gap: 0;
  align-items: start;
  padding: 48px 0 78px;
}
.hero-title-wrap {
  grid-area: title;
  align-self: end;
}
.hero-title {
  margin: 0 0 38px;
  font-size: clamp(2.95rem, 4.2vw, 4.05rem);
  line-height: 1.035;
  letter-spacing: -.058em;
  font-weight: 420;
}
.hero-title strong { font-weight: 780; }
.hero-title em {
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08em;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.045em;
  padding: .02em .02em .14em 0;
}
.hero-line--accent { margin-top: -.08em; }
.hero-text {
  grid-area: text;
  max-width: 560px;
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.5;
  letter-spacing: -.018em;
}
.hero-text p { margin: 0 0 22px; }
.hero-actions {
  grid-area: actions;
  margin-top: 20px;
  align-self: start;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #ececec;
  color: #5a5a5a;
  transition: transform .22s var(--ease), background .22s ease, color .22s ease;
}
.btn:hover { transform: translateY(-3px); background: #111; color: #fff; }
.hero-image-wrap {
  grid-area: media;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: .88;
  width: 100%;
  max-height: 640px;
  background: #ececec;
  align-self: start;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .8s var(--ease);
}
.hero-image-wrap:hover .hero-image { transform: scale(1.025); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 72px 0 42px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.section-title {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.06em;
}
.section-note {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.5;
}

.category-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  padding-bottom: 88px;
}
.category-card,
.project-card {
  position: relative;
  display: block;
}
.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: #ededed;
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.2));
  opacity: 0;
  transition: opacity .35s ease;
}
.category-card .card-media::after { opacity: 1; background: rgba(0,0,0,.18); }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease), filter .35s ease;
}
.category-card:hover .card-media img,
.project-card:hover .card-media img { transform: scale(1.035); }
.category-card:hover .card-media::after,
.project-card:hover .card-media::after { opacity: 1; }
.category-name {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 720;
  letter-spacing: -.04em;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
}
.project-title {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  letter-spacing: -.035em;
  font-weight: 650;
}
.project-year { color: var(--muted); }
.empty-state {
  padding: 100px 0 150px;
  color: var(--muted);
  font-size: 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-top: 52px;
  transition: color .2s ease, transform .2s ease;
}
.back-link:hover { color: #111; transform: translateX(-3px); }
.project-hero { padding: 72px 0 48px; }
.project-hero h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(3.4rem, 7vw, 7.4rem);
  line-height: .92;
  letter-spacing: -.07em;
}
.project-submeta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: var(--muted);
}
.project-description {
  max-width: 760px;
  margin: 34px 0 0;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  letter-spacing: -.02em;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
  padding: 28px 0 85px;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  background: #efefef;
}
.gallery-item.wide { grid-column: 1 / -1; }
.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  height: auto;
}
.project-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 95px;
  border-top: 1px solid var(--line);
}
.project-bottom-nav a { color: var(--muted); }
.project-bottom-nav a:hover { color: #111; }

.about {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
  align-items: center;
  padding: 70px 0 100px;
}
.about h1 {
  margin: 0 0 32px;
  font-size: clamp(3.5rem, 7vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.07em;
}
.about-copy {
  max-width: 720px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.42;
  letter-spacing: -.025em;
}
.contact-card {
  padding: 34px;
  border-radius: 26px;
  background: #f3f3f3;
}
.contact-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.contact-card a {
  display: inline-block;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  letter-spacing: -.04em;
  word-break: break-word;
}
.contact-card p { margin: 28px 0 0; color: var(--muted); }

.site-footer {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 980px) {
  :root { --header-h: 88px; }
  .site-header { width: min(100% - 32px, var(--content)); }
  .menu-toggle { display: block; }
  .nav-pills {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 90px 24px 40px;
    background: rgba(255,255,255,.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease;
  }
  .menu-open .nav-pills { opacity: 1; pointer-events: auto; transform: none; }
  .nav-pills a { min-width: min(360px, 82vw); font-size: 1.2rem; padding: 16px 24px; }
  .page { width: min(100% - 32px, var(--content)); }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "media"
      "text"
      "actions";
    grid-template-rows: auto;
    gap: 32px;
    padding: 32px 0 66px;
  }
  .hero-title-wrap { align-self: start; }
  .hero-title {
    margin: 0;
    font-size: clamp(2.4rem, 7.6vw, 4.5rem);
    line-height: 1.02;
  }
  .hero-line { white-space: nowrap; }
  .hero-line--accent { margin-top: -.04em; }
  .hero-image-wrap {
    width: 100%;
    max-height: none;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
  }
  .hero-text {
    max-width: 680px;
    font-size: 1.08rem;
    line-height: 1.55;
  }
  .hero-actions { margin-top: 0; }
  .category-grid, .project-grid { grid-template-columns: 1fr; gap: 34px; }
  .section-head { align-items: start; flex-direction: column; padding-top: 54px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: auto; }
  .about { grid-template-columns: 1fr; gap: 42px; align-items: start; }
  .site-footer { width: min(100% - 32px, var(--content)); }
}

@media (max-width: 560px) {
  :root { --header-h: 78px; }
  .site-header,
  .page,
  .site-footer { width: calc(100% - 32px); }
  .site-header { height: var(--header-h); }
  .brand { font-size: 1.35rem; }
  .menu-toggle { width: 44px; height: 44px; }
  .hero {
    gap: 26px;
    padding: 24px 0 56px;
  }
  .hero-title {
    font-size: clamp(2.05rem, 9.7vw, 3.05rem);
    line-height: 1.025;
    letter-spacing: -.055em;
  }
  .hero-title em {
    padding-bottom: .16em;
  }
  .hero-image-wrap {
    aspect-ratio: 4 / 5;
    border-radius: 20px;
  }
  .hero-text {
    font-size: 1.03rem;
    line-height: 1.55;
  }
  .hero-text p { margin-bottom: 20px; }
  .btn { width: 100%; min-height: 56px; }
  .section-head { padding: 44px 0 30px; }
  .section-title { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .section-note { font-size: .98rem; }
  .category-grid, .project-grid { padding-bottom: 64px; gap: 30px; }
  .card-media { border-radius: 2px; }
  .project-meta { padding-top: 12px; }
  .back-link { margin-top: 34px; }
  .project-hero { padding: 44px 0 30px; }
  .project-hero h1 { font-size: clamp(3rem, 15vw, 5rem); line-height: .94; }
  .project-description { font-size: 1.08rem; }
  .gallery { gap: 14px; padding-bottom: 60px; }
  .project-bottom-nav { flex-direction: column; align-items: flex-start; padding-bottom: 64px; }
  .about { padding: 48px 0 72px; }
  .about h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .about-copy { font-size: 1.2rem; }
  .contact-card { padding: 26px; border-radius: 22px; }
  .site-footer { flex-direction: column; padding-top: 22px; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 9.2vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
