:root {
  --page: #ffffff;
  --ink: #050505;
  --muted: #a1a1a1;
  --line: #e7e7e7;
  --soft: #f4f4f4;
  --radius: 8px;
  --content: min(1040px, calc(100vw - 44px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter, "Helvetica Neue", Arial, system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.header-nav {
  position: relative;
  width: var(--content);
  height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.nav-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-nav a {
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.header-nav a:hover {
  color: var(--ink);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 26px;
}

.mark-square,
.mark-circle,
.mark-triangle {
  display: block;
  width: 12px;
  height: 12px;
  background: currentColor;
}

.mark-circle {
  border-radius: 50%;
}

.mark-triangle {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 13px solid currentColor;
}

.hero {
  width: var(--content);
  min-height: 412px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4.6vw, 39px);
  line-height: 0.93;
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 strong {
  color: var(--muted);
  font-weight: 850;
}

.intro {
  width: var(--content);
  margin: 0 auto 76px;
}

.intro p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 0.96;
  font-weight: 850;
}

.intro span,
.intro strong {
  display: block;
}

.intro strong {
  color: var(--muted);
  font-weight: 850;
}

.works {
  width: var(--content);
  margin: 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.work-card {
  position: relative;
  display: block;
  min-width: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  aspect-ratio: 1.92 / 1;
  cursor: pointer;
  isolation: isolate;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), transparent 38%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), transparent 44%);
  opacity: 0.54;
  transition: opacity 200ms ease;
  z-index: 1;
}

.work-card:hover::after {
  opacity: 0.82;
}

.work-card:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.cover-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 20%, var(--a), transparent 31%),
    radial-gradient(circle at 76% 30%, var(--b), transparent 34%),
    linear-gradient(135deg, var(--c), var(--d));
  transform: scale(1.01);
  transition: transform 350ms ease;
}

.cover-image {
  background-position: center;
  background-size: cover;
}

.work-card:hover .cover-art {
  transform: scale(1.045);
}

.cover-art::before,
.cover-art::after {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transform: rotate(var(--tilt));
}

.cover-image::before,
.cover-image::after {
  display: none;
}

.cover-art::after {
  inset: auto;
  right: 9%;
  bottom: 10%;
  width: 27%;
  height: 58%;
  border-radius: 38% 62% 45% 55%;
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  filter: blur(0.5px);
}

.cover-logo {
  position: absolute;
  right: 18px;
  bottom: 15px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.82);
}

.cover-title {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 5px;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.work-card:hover .cover-title,
.work-card:focus-visible .cover-title {
  opacity: 1;
  transform: translateY(0);
}

.cover-title strong {
  display: block;
  max-width: min(76%, 360px);
  font-size: 18px;
  line-height: 1.02;
  text-align: left;
}

.cover-title span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
  text-align: left;
}

.resume {
  width: var(--content);
  margin: 112px auto 86px;
}

.resume-list {
  border-top: 1px solid var(--line);
}

.resume-row {
  min-height: 48px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 24px;
  align-items: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    padding 180ms ease;
}

.resume-row:hover {
  background: #fafafa;
  padding-inline: 10px;
}

.resume-row:focus-visible {
  outline: 3px solid #111;
  outline-offset: -3px;
}

.resume-row span:last-child {
  justify-self: end;
  color: var(--muted);
  font-weight: 650;
  text-align: right;
}

.about-block {
  display: grid;
  grid-template-columns: 230px minmax(0, 520px);
  gap: 54px;
  align-items: start;
  padding: 86px 0 10px;
}

.about-photo {
  aspect-ratio: 1;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f1f1f1;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p {
  margin: 0;
  color: #777;
  font-size: 18px;
  line-height: 1.34;
  font-weight: 650;
}

.about-copy p + p {
  margin-top: 14px;
}

.about-contact a {
  color: #83c7f2;
  text-decoration: none;
}

.about-contact a:hover {
  color: var(--ink);
}

.site-footer {
  width: var(--content);
  min-height: 128px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #cfcfcf;
  font-weight: 700;
}

.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.footer-note {
  color: #b8b8b8;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 650;
}

.case-dialog {
  width: min(1040px, calc(100vw - 44px));
  max-height: calc(100dvh - 44px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.case-dialog::backdrop {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.case-view {
  position: relative;
  display: block;
  max-height: calc(100dvh - 44px);
  overflow: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.1);
}

.dialog-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  cursor: pointer;
}

.dialog-close span {
  position: absolute;
  left: 12px;
  top: 20px;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.dialog-close span:first-child {
  transform: rotate(45deg);
}

.dialog-close span:last-child {
  transform: rotate(-45deg);
}

.case-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: #f1f1f1;
}

.video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #f2f2f2;
}

.video-placeholder .brand {
  color: #fff;
  transform: scale(2.3);
}

.editorial-media {
  min-height: 420px;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 12px;
  padding: 12px;
  background:
    radial-gradient(circle at 18% 22%, var(--a), transparent 28%),
    radial-gradient(circle at 78% 18%, var(--b), transparent 30%),
    linear-gradient(135deg, var(--c), var(--d));
}

.editorial-hero,
.editorial-image-grid span {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.editorial-hero {
  display: grid;
  place-items: center;
  min-height: 396px;
  color: #fff;
}

.editorial-hero .brand {
  transform: scale(2.6);
}

.editorial-hero::before {
  content: "";
  position: absolute;
  width: 36%;
  height: 40%;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  transform: rotate(var(--tilt));
}

.editorial-image-grid {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 12px;
}

.editorial-image-grid span {
  position: relative;
  min-height: 0;
}

.editorial-image-grid span::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.editorial-photo-media {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  align-items: stretch;
  background: #f3f5f4;
}

.editorial-photo-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  border-radius: var(--radius);
}

.editorial-photo-main {
  min-height: 396px;
}

.editorial-single-media {
  grid-template-columns: 1fr;
  padding: 0;
  background: #050505;
}

.editorial-single-media .editorial-photo-main {
  border-radius: var(--radius) var(--radius) 0 0;
}

.editorial-photo-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}

.editorial-photo-device {
  object-fit: contain !important;
  background: #fff;
  padding: 26px;
}

.editorial-moodboard {
  min-height: 560px;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: 126px;
  grid-auto-flow: dense;
  gap: 10px;
  padding: 10px;
  background: #f2f2f2;
}

.mood-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.mood-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mood-tile.wide {
  grid-column: span 4;
  grid-row: span 2;
}

.mood-tile.tall {
  grid-column: span 2;
  grid-row: span 3;
}

.mood-tile.square {
  grid-column: span 2;
  grid-row: span 2;
}

.mood-tile.light img {
  object-position: center top;
}

.case-copy {
  width: min(620px, calc(100% - 88px));
  margin-left: 44px;
  padding: 74px 0 96px;
}

.case-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 700;
}

.case-copy h2 {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 850;
}

.case-text p {
  margin: 0;
  color: #777;
  font-size: 16px;
  line-height: 1.38;
  font-weight: 650;
}

.case-text p + p,
.text-section + .text-section {
  margin-top: 18px;
}

.text-section h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.12;
  font-weight: 850;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  :root {
    --content: min(100vw - 28px, 1040px);
  }

  .header-nav {
    height: 58px;
    font-size: 12px;
  }

  .nav-left {
    gap: 14px;
  }

  .hero {
    min-height: 330px;
  }

  .hero h1 {
    max-width: 330px;
  }

  .intro {
    margin-bottom: 42px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .cover-title {
    opacity: 1;
    transform: none;
  }

  .resume {
    margin-top: 72px;
  }

  .resume-row {
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
    padding: 14px 0;
  }

  .resume-row:hover {
    padding-inline: 0;
  }

  .resume-row span:last-child {
    justify-self: start;
    text-align: left;
  }

  .about-block {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 56px;
  }

  .about-photo {
    width: min(100%, 340px);
  }

  .about-copy p {
    font-size: 16px;
  }

  .site-footer {
    align-items: flex-start;
    gap: 24px;
  }

  .footer-left {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .case-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .case-view {
    max-height: calc(100dvh - 24px);
  }

  .dialog-close {
    right: 12px;
    top: 12px;
  }

  .case-view .case-copy {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding: 42px 0 56px;
  }

  .editorial-media {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .editorial-hero {
    min-height: 230px;
  }

  .editorial-image-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: none;
  }

  .editorial-image-grid span {
    aspect-ratio: 1 / 0.72;
  }

  .editorial-photo-media {
    grid-template-columns: 1fr;
  }

  .editorial-photo-main {
    min-height: 230px;
    aspect-ratio: 16 / 10;
  }

  .editorial-single-media .editorial-photo-main {
    aspect-ratio: 16 / 9;
  }

  .editorial-photo-stack {
    grid-template-columns: 1fr 0.64fr;
    grid-template-rows: none;
  }

  .editorial-photo-stack img {
    aspect-ratio: 1 / 0.72;
  }

  .editorial-moodboard {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .mood-tile,
  .mood-tile.wide,
  .mood-tile.tall,
  .mood-tile.square {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 0.72;
  }

  .mood-tile.tall {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .case-text p {
    font-size: 15px;
  }
}

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