:root {
  --clay: #874621;
  --clay-deep: #6d351a;
  --warm-white: #f5f2ed;
  --paper: #fbfaf7;
  --ink: #22201d;
  --muted: #7c766f;
  --line: rgba(34, 32, 29, 0.14);
  --soft: #e7ded4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 34px;
  background: rgba(34, 32, 29, 0.46);
  color: #fff;
  backdrop-filter: blur(8px);
}

.brand {
  display: block;
  height: 48px;
  width: auto;
}

.brand img {
  width: auto;
  height: 100%;
  filter: brightness(0) invert(1);
}

.menu-button {
  display: block;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 5px auto;
  background: #fff;
}

.menu-scrim {
  position: fixed;
  z-index: 25;
  inset: 0;
  background: rgba(17, 16, 15, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.menu-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: min(380px, 82vw);
  padding: 30px 48px 44px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -18px 0 50px rgba(17, 16, 15, 0.16);
  transform: translateX(100%);
  transition: transform 320ms ease;
}

.mobile-panel.open {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 30px;
  justify-self: end;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 30px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

.panel-brand {
  position: absolute;
  top: 188px;
  right: 84px;
  width: 54px;
}

.panel-brand img {
  width: 100%;
}

.panel-nav {
  position: absolute;
  top: 330px;
  right: 72px;
  display: grid;
  width: 172px;
  gap: 34px;
  text-align: center;
}

.panel-nav a {
  color: #8a8580;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 160ms ease;
}

.panel-nav a:first-child {
  color: #5b5651;
  font-weight: 700;
}

.panel-nav a:hover {
  color: var(--clay);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ink);
}

.slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  transition: opacity 900ms ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.24)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), transparent 32%, rgba(0, 0, 0, 0.14));
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(580px, calc(100vw - 42px));
  transform: translate(-50%, -45%);
  color: #fff;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: currentColor;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-line {
  width: min(100%, 520px);
  height: 1px;
  margin: 18px auto 16px;
  background: rgba(255, 255, 255, 0.68);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 300;
  line-height: 1.22;
}

.outline-button {
  display: inline-grid;
  min-width: 112px;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-size: 13px;
  transition: background 180ms ease, color 180ms ease;
}

.outline-button:hover {
  background: #fff;
  color: var(--ink);
}

.slide-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 48px;
  height: 64px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 46px;
  font-weight: 200;
  cursor: pointer;
}

.slide-arrow:hover {
  color: #fff;
}

.slide-arrow.prev {
  left: 28px;
}

.slide-arrow.next {
  right: 28px;
}

.slide-meta {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.current-index {
  color: #fff;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  display: grid;
  width: 22px;
  height: 34px;
  place-items: start center;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 7px;
}

.scroll-cue span {
  width: 3px;
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  animation: scrollCue 1500ms ease-in-out infinite;
}

@keyframes scrollCue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

.visual-gateway {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  background: var(--ink);
}

.gateway-link {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
}

.gateway-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms ease, filter 900ms ease;
}

.gateway-link::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(17, 16, 15, 0.28), rgba(17, 16, 15, 0.16)),
    linear-gradient(90deg, rgba(17, 16, 15, 0.18), transparent 28%, rgba(17, 16, 15, 0.22));
  content: "";
}

.gateway-link:hover img {
  transform: scale(1.025);
  filter: saturate(0.94);
}

.story-gateway .gateway-link > img {
  display: none;
}

.news-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.78fr 1.18fr 0.92fr;
  background: #171412;
}

.news-mosaic span {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--news-bg) center / cover no-repeat;
  filter: saturate(0.72) contrast(0.96);
}

.news-mosaic span:nth-child(1) {
  background-position: 42% center;
}

.news-mosaic span:nth-child(2) {
  background-position: 55% center;
  transform: translateY(-5%);
}

.news-mosaic span:nth-child(3) {
  background-position: 45% center;
  transform: translateY(6%);
}

.news-mosaic span:nth-child(4) {
  background-position: 62% center;
}

.news-mosaic span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.news-mosaic::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 11, 10, 0.18), rgba(13, 11, 10, 0.46) 46%, rgba(13, 11, 10, 0.22)),
    linear-gradient(0deg, rgba(13, 11, 10, 0.32), rgba(13, 11, 10, 0.08) 44%, rgba(13, 11, 10, 0.24));
  content: "";
}

.story-gateway .gateway-link:hover .news-mosaic span {
  filter: saturate(0.8) contrast(0.98);
}

.gateway-copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 56px));
  transform: translate(-50%, -50%);
  text-align: center;
}

.gateway-copy p {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.gateway-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.15;
}

.gateway-copy span {
  font-size: 15px;
  line-height: 1.8;
}

.studio-detail {
  background: var(--paper);
  min-height: 100vh;
  padding-top: 92px;
}

.studio-detail,
.subpage-section {
  display: none;
}

body.show-studio .studio-detail,
body.show-projects .subpage-section {
  display: block;
}

body.show-studio .hero,
body.show-studio .story-gateway,
body.show-studio .project-gateway,
body.show-studio .projects,
body.show-studio .project-detail,
body.show-studio .about {
  display: none;
}

body.show-projects .hero,
body.show-projects .story-gateway,
body.show-projects .project-gateway,
body.show-projects .studio-detail,
body.show-projects .project-detail,
body.show-projects .about,
body.show-case .hero,
body.show-case .story-gateway,
body.show-case .project-gateway,
body.show-case .studio-detail,
body.show-case .projects,
body.show-case .about {
  display: none;
}

.studio-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(42px, 8vw, 120px);
  padding: clamp(90px, 10vw, 160px) clamp(34px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
}

.studio-row-muted {
  background: var(--warm-white);
}

.section-heading h2,
.projects-head h2 {
  margin: 12px 0 0;
  font-size: clamp(25px, 3.1vw, 42px);
  font-weight: 300;
  line-height: 1.35;
}

.studio-row > p,
.designer-grid p,
.about-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.section-kicker {
  color: var(--clay);
}

.designer-grid {
  display: grid;
  gap: 28px;
}

.projects {
  padding: clamp(90px, 9vw, 140px) clamp(28px, 5vw, 86px) 0;
  background: var(--paper);
}

.projects-head {
  display: grid;
  justify-items: center;
  margin-bottom: clamp(32px, 5vw, 70px);
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  min-height: 340px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease, filter 700ms ease;
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 15, 0);
  content: "";
  transition: background 300ms ease;
}

.project-overlay {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.project-overlay h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.project-overlay p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.subpage-contact {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 56px);
  margin: clamp(92px, 10vw, 150px) calc(clamp(28px, 5vw, 86px) * -1) 0;
  padding: clamp(54px, 6vw, 88px) clamp(34px, 7vw, 110px);
  background: #e8e7e4;
}

.studio-detail .subpage-contact {
  margin: 0;
}

.contact-copy h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.contact-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  white-space: nowrap;
}

.contact-qr-list {
  display: grid;
  grid-template-columns: repeat(4, 86px);
  justify-content: end;
  gap: clamp(18px, 2.5vw, 34px);
}

.contact-qr-list figure {
  margin: 0;
}

.contact-qr-list img {
  width: 86px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

.contact-qr-list figcaption {
  display: none;
}

.project-detail {
  display: none;
  min-height: 70vh;
  padding: clamp(110px, 12vw, 180px) clamp(34px, 7vw, 110px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

body.case-01 #case-01,
body.case-02 #case-02,
body.case-03 #case-03,
body.case-04 #case-04,
body.case-05 #case-05,
body.case-06 #case-06 {
  display: block;
}

.project-detail h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.2;
}

.project-detail p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
}

.project-detail span {
  color: var(--clay);
  font-size: 13px;
}

.project-detail.case-full {
  padding-right: 0;
  padding-left: 0;
  background: #fff;
}

.case-heading {
  display: grid;
  justify-items: center;
  margin: 0 auto clamp(42px, 6vw, 84px);
  text-align: center;
}

.case-heading h2 {
  margin-top: 12px;
}

.case-image-stack {
  display: grid;
  justify-items: center;
  gap: 0;
}

.case-image-stack img {
  width: min(100%, 720px);
  height: auto;
  background: #fff;
}

.project-card:hover img {
  transform: scale(1.035);
  filter: saturate(0.9);
}

.project-card:hover::after,
.project-card:focus-within::after {
  background: rgba(17, 16, 15, 0.58);
}

.project-card:hover .project-overlay,
.project-card:focus-within .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.about {
  background: var(--paper);
}

.about-hero {
  position: relative;
  display: grid;
  min-height: 58vh;
  place-items: center;
  overflow: hidden;
  background: #221917;
  color: #fff;
}

.about-hero::before {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  background: url("./assets/brand/apt-symbol.png") center / contain no-repeat;
  content: "";
  opacity: 0.18;
  transform: translate(-50%, -50%);
}

.about-ring {
  display: none;
}

.about-hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  transform: translateY(-28px);
}

.about-hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
}

.about-hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.about-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(42px, 5vw, 72px);
  padding: clamp(84px, 9vw, 140px) clamp(34px, 7vw, 110px);
}

.about-text,
.about-service,
.about-process,
.contact-block {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-block {
  grid-column: auto;
}

.about-detail h3 {
  margin: 0 0 22px;
  color: var(--clay-deep);
  font-size: 15px;
  font-weight: 600;
}

.about-detail p + p {
  margin-top: 12px;
}

.contact-lines {
  display: grid;
  gap: 2px;
  align-content: start;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.46fr) minmax(330px, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 62px);
  margin-top: 10px;
}

.service-list {
  display: grid;
  gap: 22px;
}

.service-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.service-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-list span {
  color: var(--clay);
  font-size: 13px;
  line-height: 2;
}

.process-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.process-list li {
  position: relative;
  display: flex;
  flex: 1 1 128px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding-right: 30px;
}

.process-list li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(-45deg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  content: "";
}

.process-list span {
  color: var(--clay);
  font-size: 12px;
}

.process-list strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(4, 82px);
  justify-content: space-between;
  gap: 22px;
  align-items: start;
  width: 100%;
  max-width: 520px;
  margin-top: 0;
}

.qr-grid figure {
  margin: 0;
}

.qr-grid img {
  width: 82px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

.qr-grid figcaption {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(28px, 5vw, 86px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

@media (max-width: 1000px) {
  .project-grid,
  .about-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 68px;
    padding: 0 20px;
  }

  .hero-copy {
    width: min(420px, calc(100vw - 40px));
  }

  .hero-line {
    margin: 16px 0 15px;
  }

  .slide-arrow {
    width: 42px;
  }

  .slide-arrow.prev {
    left: 8px;
  }

  .slide-arrow.next {
    right: 8px;
  }

  .slide-meta {
    right: 20px;
    bottom: 20px;
  }

  .studio-row,
  .about-detail {
    grid-template-columns: 1fr;
  }

  .visual-gateway {
    min-height: 72vh;
  }

  .mobile-panel {
    width: min(330px, 86vw);
    padding: 24px 34px 36px;
  }

  .panel-brand {
    top: 154px;
    right: 58px;
    width: 50px;
  }

  .panel-nav {
    top: 286px;
    right: 46px;
    width: 166px;
    gap: 30px;
  }

  .panel-nav a {
    font-size: 17px;
  }

  .service-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .projects-head {
    justify-items: start;
    text-align: left;
  }

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

  .project-card {
    min-height: 280px;
  }

  .process-list {
    display: grid;
    gap: 13px;
  }

  .process-list li {
    padding-right: 0;
  }

  .process-list li:not(:last-child)::after {
    display: none;
  }

  .project-overlay {
    opacity: 1;
    transform: none;
  }

  .project-card::after {
    background: linear-gradient(0deg, rgba(17, 16, 15, 0.62), transparent 56%);
  }

  .site-footer {
    flex-direction: column;
  }

  .qr-grid {
    grid-template-columns: repeat(4, 64px);
    justify-content: start;
    gap: 14px;
  }

  .qr-grid img {
    width: 64px;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .subpage-contact {
    flex-direction: column;
    align-items: flex-start;
    margin-right: calc(clamp(28px, 5vw, 86px) * -1);
    margin-left: calc(clamp(28px, 5vw, 86px) * -1);
  }

  .contact-copy p {
    white-space: normal;
  }

  .studio-detail .subpage-contact {
    margin-right: 0;
    margin-left: 0;
  }

  .contact-qr-list {
    grid-template-columns: repeat(4, 64px);
    justify-content: start;
    gap: 14px;
  }

  .contact-qr-list img {
    width: 64px;
  }
}
