/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #f3f3f3;
  --text: #181717;
  --text-dim: #7a7a7a;
  --border: rgba(0, 0, 0, 0.1);

  --font-main:
    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1360px;
  --header-h: 96px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.nav-desktop a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-block: 4px;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--text);
  transition: right 0.25s ease;
}

.nav-desktop a:hover::after {
  right: 0;
}

/* ---------- Language switch ---------- */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #e3e3e3;
  border-radius: 999px;
  padding: 3px;
}

.lang-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  height: calc(100% - 6px);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.lang-option {
  position: relative;
  z-index: 2;
  min-width: 34px;
  padding: 0.4rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  text-align: center;
  transition: color 0.25s ease;
}

.lang-option.is-active {
  color: var(--text);
}

/* ---------- Burger ---------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  z-index: 1100;
  position: relative;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.25s ease,
    width 0.25s ease;
}

.burger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Mobile slide-in nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  padding: var(--header-h) 40px 60px;
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.mobile-nav-links a {
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.mobile-nav.is-open .mobile-nav-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.is-open .mobile-nav-links a:nth-child(1) {
  transition-delay: 0.15s;
}
.mobile-nav.is-open .mobile-nav-links a:nth-child(2) {
  transition-delay: 0.22s;
}
.mobile-nav.is-open .mobile-nav-links a:nth-child(3) {
  transition-delay: 0.29s;
}

.mobile-lang-switch {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.4s ease 0.34s,
    transform 0.4s ease 0.34s;
}

.mobile-nav.is-open .mobile-lang-switch {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-cta {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  transition:
    opacity 0.4s ease 0.4s,
    transform 0.4s ease 0.4s;
}

.mobile-nav.is-open .mobile-nav-cta {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.btn-primary {
  padding: 0.95rem 2rem;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
}

.btn-primary:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-ghost {
  padding: 0.9rem 1.9rem;
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 70svh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-heading .line-regular {
  font-weight: 400;
  color: var(--text);
}

.hero-heading .line-bold {
  font-weight: 400;
  color: var(--text);
}

.hero-details {
  display: flex;
  flex-direction: column;
}

.hero-tagline {
  max-width: 420px;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-dim);
}

.hero-cta {
  margin-top: 1.75rem;
}

/* ---------- Scroll arrow ---------- */
.scroll-arrow {
  position: absolute;
  left: max(40px, calc((100% - var(--container)) / 2 + 40px));
  bottom: 56px;
  display: inline-flex;
  animation: arrowBounce 2.2s ease-in-out infinite;
}

.scroll-arrow img {
  width: 22px;
  height: auto;
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ---------- About ---------- */
.about {
  padding-block: 140px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  gap: 40px;
  align-items: start;
}

.about-grid > * {
  min-width: 0;
}

.about-label {
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  padding-top: 0.35rem;
}

.about-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
}

.hl-bar,
.hl-inline {
  font-weight: 600;
}

.about-body {
  display: flex;
  gap: 2.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-photo {
  width: 300px;
  flex-shrink: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--text);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(1.25);
}

.about-text {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-top: 0.2rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 480px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
  margin-top: 0.5rem;
  transition:
    opacity 0.2s ease,
    gap 0.2s ease;
}

.read-more:hover {
  opacity: 0.65;
  gap: 0.6rem;
}

.read-more .arrow {
  font-size: 0.95em;
}

/* ---------- Work ---------- */
.work {
  padding-block: 60px 140px;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 90px;
  align-items: start;
  padding-block: 70px;
  border-top: 1px solid var(--border);
}

.work-item:first-child {
  border-top: none;
  padding-top: 0;
}

.work-item > * {
  min-width: 0;
}

.work-text {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.work-number {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
}

.work-title {
  text-transform: uppercase;
}

.work-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 400px;
}

.work-meta {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 380px;
}

.work-link {
  margin-top: 1.5rem;
}

.work-image {
  width: 100%;
  aspect-ratio: 7 / 4;
  background: #5c5c5c;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.work-more {
  margin-top: 50px;
}

/* ---------- Work page ---------- */
.work-page {
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: 60px;
}

.work-page-header {
  margin-bottom: 30px;
}

.work-page-heading {
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.01em;
  margin-top: 0.6rem;
}

.work-page-subtitle {
  margin-top: 1.25rem;
  max-width: 480px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 70px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 180px) 1fr);
  column-gap: 60px;
  row-gap: 48px;
}

.footer-label {
  font-size: 0.95rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  width: fit-content;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.6;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 90px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-top-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.footer-top-link:hover {
  opacity: 0.6;
}

/* ---------- About page ---------- */
.about-page {
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: 60px;
}

.about-page-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: start;
}

.about-page-inner > * {
  min-width: 0;
}

.about-page-heading {
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}

.about-page-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 560px;
}

.about-page-body p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.about-page-body .emphasis {
  font-weight: 600;
  color: var(--text);
}

.about-page-cta {
  margin-top: 2.25rem;
}

.about-page-photo {
  width: 100%;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  background: #fff;
}

.about-page-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.12) contrast(1.05);
}

.about-page-lists {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 100px;
}

.about-list-row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 40px;
  align-items: start;
}

.about-list-label {
  width: fit-content;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

.about-list-values p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 640px;
}

/* ---------- About CTA ---------- */
.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.about-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 400;
  color: var(--text);
  max-width: 520px;
  transition:
    gap 0.2s ease,
    opacity 0.2s ease;
}

.about-cta-main:hover {
  gap: 1rem;
  opacity: 0.75;
}

.about-cta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.about-cta-link {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.about-cta-link:hover {
  opacity: 0.7;
}

.about-cta-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.about-cta-sub:hover {
  color: var(--text);
}

/* ---------- Case study ---------- */
.case-page {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 60px;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  transition:
    color 0.2s ease,
    gap 0.2s ease;
}

.case-back:hover {
  color: var(--text);
  gap: 0.7rem;
}

.case-hero-tagline {
  margin-top: 1.25rem;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.55;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-top: 2.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 120px;
}

.case-meta-item span:first-child {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case-meta-item span:last-child {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.case-cover {
  margin-top: 3.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.07);
}

.case-cover-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.case-cover-bar-dots {
  display: flex;
  gap: 6px;
}

.case-cover-bar-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dcdcdc;
}

.case-cover-bar-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.case-cover-image {
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.case-cover-image img {
  display: block;
  width: 100%;
  height: auto;
}

.case-block {
  padding-block: 60px;
  border-top: 1px solid var(--border);
}

.case-block:first-of-type {
  border-top: none;
}

.case-number {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}

.case-heading {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.case-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 700px;
}

.case-text p + p {
  margin-top: 1.1rem;
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.5rem;
  max-width: 640px;
}

.case-list li {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
  padding-left: 1.4rem;
  position: relative;
}

.case-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

/* ---------- Device preview ---------- */
.device-preview {
  margin-top: 1.5rem;
}

.device-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 24px;
}

.device-tab {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.device-tab:hover {
  border-color: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.device-tab.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.device-frame {
  margin-inline: auto;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.07);
  transition: max-width 0.35s ease;
}

.device-frame[data-device="tablet"] {
  max-width: 620px;
}

.device-frame[data-device="mobile"] {
  max-width: 380px;
}

.device-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.device-bar-dots {
  display: flex;
  gap: 6px;
}

.device-bar-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dcdcdc;
}

.device-bar-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.device-scroll {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.device-scroll img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Case contact CTA ---------- */
.case-contact {
  padding-block: 80px;
  border-top: 1px solid var(--border);
}

.case-contact-label {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.case-contact-heading {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.case-contact-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.case-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.case-contact-links a {
  width: fit-content;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.case-contact-links a:hover {
  opacity: 0.65;
  text-decoration: underline;
}

/* ---------- Related projects ---------- */
.related-section {
  padding-block: 70px;
  border-top: 1px solid var(--border);
}

.related-heading {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.related-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #5c5c5c;
  overflow: hidden;
  margin-bottom: 1.1rem;
  transition: opacity 0.2s ease;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.related-card:hover .related-card-image {
  opacity: 0.85;
}

.related-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.related-card-title .arrow {
  transition: transform 0.2s ease;
}

.related-card:hover .related-card-title .arrow {
  transform: translate(3px, -3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-desktop {
    display: none;
  }

  .header-right .lang-switch {
    display: none;
  }

  .burger {
    display: flex;
  }

  .about-page-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-page-photo {
    max-width: 360px;
    aspect-ratio: 4 / 5;
  }

  .about-page-lists {
    margin-top: 60px;
  }

  .about-cta {
    margin-top: 60px;
    padding-top: 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-photo {
    width: 100%;
    max-width: 320px;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: 50px;
  }

  .work-desc,
  .work-meta {
    max-width: 480px;
  }

  .footer-grid {
    grid-template-columns: minmax(120px, 160px) 1fr;
    row-gap: 40px;
  }

  .device-frame[data-device="tablet"],
  .device-frame[data-device="mobile"] {
    max-width: 100%;
  }

  .device-scroll {
    max-height: 60vh;
  }

  .case-cover-image {
    max-height: 55vh;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 24px;
  }

  :root {
    --header-h: 84px;
  }

  .hero-heading {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .scroll-arrow {
    left: 24px;
    bottom: 40px;
  }

  .mobile-nav {
    padding-inline: 24px;
  }

  .mobile-nav-links a {
    font-size: 1.6rem;
  }

  .about {
    padding-block: 90px;
  }

  .about-body {
    flex-direction: column;
    gap: 1.75rem;
  }

  .work {
    padding-block: 40px 90px;
  }

  .site-footer {
    padding-block: 50px 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .footer-label {
    margin-bottom: 0.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 60px;
  }

  .about-page {
    padding-top: calc(var(--header-h) + 40px);
  }

  .about-list-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .work-page {
    padding-top: calc(var(--header-h) + 40px);
  }

  .case-page {
    padding-top: calc(var(--header-h) + 40px);
  }

  .case-block {
    padding-block: 40px;
  }

  .case-meta {
    gap: 1.5rem 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .device-scroll {
    max-height: 50vh;
  }

  .case-cover-image {
    max-height: 45vh;
  }

  .case-contact {
    padding-block: 56px;
  }

  .related-section {
    padding-block: 50px;
  }
}
