:root {
  --ink: #171717;
  --muted: #6f6d68;
  --paper: #f7f5ef;
  --card: #fffefb;
  --line: #dfdcd3;
  --accent: #b8452f;
  --accent-soft: #efe0d8;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, .92);
  border-bottom: 1px solid rgba(223, 220, 211, .9);
  backdrop-filter: blur(16px);
}
.topbar-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 64px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  margin-right: auto;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -.02em;
  text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }
.language-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink);
  background: var(--card);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
main { overflow: hidden; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 64px;
  padding: 92px 0 72px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.08;
}
.hero-copy {
  max-width: 760px;
  margin: 30px 0 0;
  color: #4d4b47;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
}
.profile {
  align-self: end;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.profile dl { margin: 0; }
.profile div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.profile div:first-child { padding-top: 0; }
.profile dt { color: var(--ink); font-weight: 760; }
.profile dd { margin: 3px 0 0; }
.profile a { color: var(--accent); text-underline-offset: 3px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.email-copy {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.email-copy:hover { color: var(--ink); }
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  padding: 9px 15px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 23, 23, .94);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.copy-toast.visible { opacity: 1; transform: translate(-50%, 0); }
section { padding: 78px 0; border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -.035em;
}
.section-note { margin: 0; color: var(--muted); font-size: 13px; }
.work-stage {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 16px;
}
.work-grid {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.work-card {
  position: relative;
  min-width: 0;
  min-height: 310px;
  padding: 30px 28px 32px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}
.work-card:nth-child(3n) { border-right: 0; }
.work-card.has-link:hover h3 { color: var(--accent); }
.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.work-reference { text-align: right; }
.work-card h3 {
  margin: 28px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
  transition: color .2s ease;
}
.work-card .work-subtitle {
  margin: -4px 0 14px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.35;
}
.work-card .work-description { margin: 0; color: #55524d; font-size: 15px; }
.work-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 12px 28px rgba(35,31,24,.1);
  font-size: 23px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.work-prev { grid-column: 1; grid-row: 1; }
.work-next { grid-column: 3; grid-row: 1; }
.work-arrow:hover, .work-arrow:focus-visible { color: #fff; border-color: var(--accent); background: var(--accent); transform: scale(1.05); outline: none; }
.work-arrow:disabled { opacity: 0; visibility: hidden; pointer-events: none; }
.blog-stage {
  display: grid;
  grid-template-columns: minmax(54px, 1fr) minmax(0, 900px) minmax(54px, 1fr);
  align-items: stretch;
  width: 100%;
}
.blog-reader {
  position: relative;
  grid-column: 2;
  min-width: 0;
  padding: clamp(28px, 6vw, 68px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(35, 31, 24, .07);
}
.blog-date {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.blog-title {
  margin: 12px 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 5vw, 50px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.blog-body {
  color: #3d3b37;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.82;
}
.blog-body > h1:first-child { display: none; }
.blog-body h2, .blog-body h3, .blog-body h4 {
  margin: 2em 0 .7em;
  color: var(--ink);
  line-height: 1.25;
}
.blog-body p, .blog-body ul, .blog-body ol, .blog-body blockquote, .blog-body table { margin: 0 0 1.25em; }
.blog-body li { margin-bottom: .35em; }
.blog-body img, .blog-body video { height: auto; margin: 1.8em auto; }
.blog-body video { display: block; width: 100%; background: #111; }
.blog-body pre {
  overflow-x: auto;
  padding: 18px;
  background: #24231f;
  color: #f5f1e8;
  border-radius: 4px;
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.blog-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.blog-body :not(pre) > code { padding: .12em .35em; background: var(--accent-soft); border-radius: 3px; }
.blog-body blockquote { padding-left: 20px; color: var(--muted); border-left: 3px solid var(--accent); }
.blog-body table { width: 100%; border-collapse: collapse; font-family: Inter, sans-serif; font-size: 14px; }
.blog-body th, .blog-body td { padding: 9px 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.blog-body th { background: #ece8de; }
.blog-body hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.blog-body.is-truncated {
  position: relative;
  max-height: 2400px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 150px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 150px), transparent 100%);
}
.preview-note { color: var(--muted); font-size: 13px; font-style: italic; }
.blog-arrow {
  position: relative;
  z-index: 2;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease;
}
.blog-arrow span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(30, 28, 24, .10);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.blog-stage.is-reading .blog-arrow {
  position: fixed;
  top: 50%;
  width: 48px;
  height: 48px;
  opacity: .82;
  transform: translateY(-50%);
}
.blog-stage.is-reading .blog-prev { left: var(--blog-prev-left, 16px); }
.blog-stage.is-reading .blog-next { left: var(--blog-next-left, calc(100vw - 64px)); }
.blog-stage.is-reading:hover .blog-arrow, .blog-stage.is-reading:focus-within .blog-arrow { opacity: 1; }
.blog-arrow:disabled { opacity: 0 !important; visibility: hidden; pointer-events: none; }
.blog-arrow:hover span, .blog-arrow:focus-visible span {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}
.blog-arrow:focus-visible { opacity: 1; outline: none; }
.blog-action { margin-top: 42px; text-align: center; }
.full-link {
  display: inline-block;
  min-width: 148px;
  padding: 11px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 740;
  text-align: center;
  text-decoration: none;
}
.section-link { color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.section-link:hover { text-decoration: underline; text-underline-offset: 4px; }
#moments { padding-bottom: 44px; }
.moments-wrap { overflow: hidden; margin-inline: min(-20px, calc((100vw - var(--max)) / -2)); }
.film-window {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  padding: 0;
  background: #191917;
}
.film-window::before, .film-window::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 5%;
  min-width: 18px;
  content: "";
  pointer-events: none;
}
.film-window::before {
  left: 0;
  background: linear-gradient(to right, #191917, transparent);
}
.film-window::after {
  right: 0;
  background: linear-gradient(to left, #191917, transparent);
}
.film-window.is-scrollable {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.film-window.is-scrollable::-webkit-scrollbar { display: none; }
.film-window.is-scrollable::before, .film-window.is-scrollable::after { display: none; }
.film-window.is-scrollable .film-track {
  -webkit-animation: none;
  animation: none;
  will-change: auto;
}
.film-track {
  display: flex;
  width: max-content;
  -webkit-animation: film-roll 180s linear infinite;
  animation: film-roll 180s linear infinite;
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.film-reel {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  padding: 0 6px;
}
.film-status {
  min-width: 100vw;
  margin: 0;
  padding: 54px 20px;
  color: #d7d0bd;
  font-size: 13px;
  text-align: center;
}
.film-window.is-visible.is-ready .film-track {
  -webkit-animation-play-state: running;
  animation-play-state: running;
}
.film-frame {
  position: relative;
  width: 190px;
  height: 130px;
  flex: 0 0 auto;
  padding: 13px 12px;
  border: 0;
  background: #262622;
  cursor: pointer;
}
.film-frame::before, .film-frame::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 7px;
  content: "";
  background: repeating-linear-gradient(90deg, transparent 0 8px, #d7d0bd 8px 14px, transparent 14px 22px);
  opacity: .8;
}
.film-frame::before { top: 2px; }
.film-frame::after { bottom: 2px; }
.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: filter .3s ease, transform .3s ease;
}
.film-frame:hover img, .film-frame:focus-visible img {
  filter: grayscale(0%) contrast(1.02);
  transform: scale(1.025);
}
@-webkit-keyframes film-roll {
  to { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}
@keyframes film-roll {
  to { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}
@media (hover: hover) and (pointer: fine) {
  .film-window:hover .film-track {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
  }
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(12, 12, 11, .92);
  cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 56px); object-fit: contain; }
footer {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
  padding: 28px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}
footer a { color: var(--ink); }
@media (max-width: 760px) {
  .topbar-inner { width: min(calc(100% - 28px), var(--max)); gap: 12px; }
  .nav { gap: 13px; }
  .nav a:nth-child(1), .nav a:nth-child(4) { display: none; }
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 62px 0 52px; }
  .profile { padding-left: 0; border-left: 0; }
  section { padding: 58px 0; }
  #moments { padding-bottom: 34px; }
  .section-head { display: block; }
  .section-note, .section-link { display: inline-block; margin-top: 8px; }
  .work-stage { grid-template-columns: minmax(0, 1fr); gap: 0; margin-inline: 0; width: 100%; }
  .work-grid { grid-column: 1; grid-template-columns: 1fr; }
  .work-card, .work-card:nth-child(3n) {
    min-height: 0;
    padding: 28px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .work-card:last-child { border-bottom: 0; }
  .work-arrow, .blog-arrow { display: none !important; }
  .blog-stage { grid-template-columns: minmax(0, 1fr); margin-inline: 0; width: 100%; }
  .blog-reader { grid-column: 1; padding: 28px 22px; }
  .blog-body { font-size: 17px; }
  .film-window { min-height: 118px; }
  .film-frame { width: 170px; height: 118px; }
  footer { width: min(calc(100% - 28px), var(--max)); padding: 26px 0 32px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film-track {
    -webkit-animation: none;
    animation: none;
    will-change: auto;
  }
}
