@font-face {
  font-family: "Neothic by Daymarius";
  src: url("neothic/Neothic.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Panchang Semibold";
  src:
    url("Panchang/Fonts/WEB/fonts/Panchang-Semibold.woff2") format("woff2"),
    url("Panchang/Fonts/WEB/fonts/Panchang-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat ExtraBold";
  src:
    local("Montserrat ExtraBold"),
    local("Montserrat-ExtraBold"),
    local("Montserrat");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shree Devanagari 71";
  src:
    local("Shree Devanagari 71"),
    local("Shree Devanagari 714"),
    local("Shree Devanagari 714 Normal");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-deep: #07090f;
  --bg-panel: rgba(10, 15, 25, 0.74);
  --bg-panel-strong: rgba(9, 13, 23, 0.9);
  --line-soft: rgba(255, 255, 255, 0.12);
  --text-main: #ffedc8;
  --text-soft: rgba(255, 237, 200, 0.82);
  --gold: #ffedc8;
  --gold-soft: rgba(255, 237, 200, 0.16);
  --home-stage-max: 1600px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text-main);
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.56) 0%, rgba(7, 9, 15, 0.34) 35%, rgba(7, 9, 15, 0.8) 100%),
    radial-gradient(circle at top, rgba(209, 176, 107, 0.08), transparent 30%),
    url("images/theone.jpg") no-repeat center center fixed;
  background-size: cover;
}

.home-page {
  position: relative;
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 1800' preserveAspectRatio='none'%3E%3Cpath d='M455 -80 C 350 90, 590 210, 430 410 S 290 730, 448 905 S 620 1230, 388 1460 S 324 1770, 472 1880' fill='none' stroke='white' stroke-opacity='0.92' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M480 -40 C 375 130, 615 250, 455 450 S 315 770, 473 945 S 645 1270, 413 1500 S 349 1810, 497 1920' fill='none' stroke='white' stroke-opacity='0.22' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 50% center;
  background-size: min(44vw, 560px) 110%;
  transform-origin: center;
  animation: wanderingLineA 18s ease-in-out infinite alternate;
}

.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 1800' preserveAspectRatio='none'%3E%3Cpath d='M260 -120 C 430 70, 168 270, 348 445 S 492 760, 305 985 S 124 1305, 330 1490 S 476 1775, 282 1920' fill='none' stroke='white' stroke-opacity='0.8' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M285 -90 C 455 100, 193 300, 373 475 S 517 790, 330 1015 S 149 1335, 355 1520 S 501 1805, 307 1950' fill='none' stroke='white' stroke-opacity='0.18' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 66% center;
  background-size: min(36vw, 470px) 108%;
  transform-origin: center;
  animation: wanderingLineB 24s ease-in-out infinite alternate;
}

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

.home-section {
  position: relative;
}

.home-section-work,
.home-section-about,
.home-section-contact {
  padding-left: clamp(96px, 10vw, 150px);
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-heading {
  position: absolute !important;
  left: 0 !important;
  top: 34px !important;
  margin: 0 !important;
  writing-mode: vertical-rl !important;
  transform: rotate(180deg) !important;
  font-family: "Neothic by Daymarius", "Times New Roman", serif !important;
  font-size: clamp(4.8rem, 8vw, 8.4rem) !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  z-index: 3 !important;
  pointer-events: none !important;
}

.section-heading-left {
  top: 34px !important;
}

.home-section-work .section-heading {
  top: 48px !important;
}

.home-section-about .section-heading {
  top: 18px !important;
}

.home-section-contact .section-heading {
  top: 60px !important;
}

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
  position: relative;
}

.hero,
.categories,
.info-section {
  position: relative;
  z-index: 2;
}

.overlay {
  text-align: center;
  background: radial-gradient(circle at center, rgba(10, 15, 25, 0.48) 0%, rgba(10, 15, 25, 0.26) 52%, rgba(10, 15, 25, 0.06) 78%, rgba(10, 15, 25, 0) 100%);
  padding: 24px 30px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  max-width: min(92vw, 980px);
}

.overlay h1 {
  font-size: clamp(2.4rem, 5.8vw, 4.2rem);
  margin: 0;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  align-items: center;
  font-family: "Neothic by Daymarius", "Times New Roman", serif;
  letter-spacing: 0.05em;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.title-swipe-wrap {
  display: inline-block;
  overflow: hidden;
  position: relative;
}

.title-swipe {
  display: block;
  white-space: nowrap;
  transform: translateX(-14%) scale(1.01);
  opacity: 0;
  filter: blur(10px);
  will-change: transform, opacity, filter;
  animation: cinematicSwipeIn 1.55s cubic-bezier(0.19, 1, 0.22, 1) 0.15s forwards;
}

.title-swipe + .title-swipe {
  animation-delay: 0.32s;
}

.title-swipe-wrap::after {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 38%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.1) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-150%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  animation: cinematicLightSweep 1.55s cubic-bezier(0.19, 1, 0.22, 1) 0.15s forwards;
}

.overlay p {
  margin: 18px 0 0;
  font-size: 1.08rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.side-nav {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.side-nav-link {
  min-width: 112px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(10, 15, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.side-nav-link:hover {
  transform: translateX(-4px);
  border-color: rgba(209, 176, 107, 0.5);
}

.categories {
  padding: 34px 24px 54px;
  display: grid;
  gap: 18px;
}

.category-bar {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px 34px;
  border-radius: 28px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(209, 176, 107, 0.16), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(13, 18, 29, 0.92), rgba(8, 11, 19, 0.95));
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.category-bar:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 176, 107, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.category-label {
  font-family: "Neothic by Daymarius", "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-copy {
  max-width: 640px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.info-section {
  padding: 26px 24px 60px;
}

.info-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 28px;
  background: var(--bg-panel-strong);
  border: 1px solid var(--line-soft);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.info-kicker,
.page-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.info-card h2,
.page-hero h1,
.project-detail h1 {
  margin: 0 0 14px;
  font-family: "Neothic by Daymarius", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.info-card p,
.page-intro,
.detail-panel p,
.detail-lead {
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 1rem;
}

.contact-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.contact-list a {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(209, 176, 107, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.portfolio-page,
.detail-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(209, 176, 107, 0.1), transparent 30%),
    linear-gradient(180deg, #080a10 0%, #0c1220 100%);
}

.page-hero,
.project-detail {
  padding: 44px 24px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-detail .back-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.project-detail .back-links .back-link {
  margin-bottom: 0;
}

.back-link:hover {
  transform: translateX(-3px);
  border-color: rgba(209, 176, 107, 0.45);
}

.page-intro {
  max-width: 740px;
}

.portfolio-strip-section {
  padding: 10px 24px 56px;
}

.portfolio-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 34vw);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.portfolio-strip::-webkit-scrollbar {
  height: 10px;
}

.portfolio-strip::-webkit-scrollbar-thumb {
  background: rgba(209, 176, 107, 0.32);
  border-radius: 999px;
}

.project-tile {
  min-height: 420px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line-soft);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.project-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.5));
}

.project-tile > * {
  position: relative;
  z-index: 1;
}

.project-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(209, 176, 107, 0.45);
}

.project-tile-3d {
  background:
    linear-gradient(180deg, rgba(8, 15, 30, 0.2), rgba(8, 10, 14, 0.88)),
    radial-gradient(circle at top left, rgba(82, 146, 220, 0.24), transparent 36%),
    linear-gradient(135deg, #18283f, #0a111b 70%);
}

.project-tile-clean-tipsy {
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.08), rgba(6, 8, 12, 0.9)),
    url("images/bar6.jpg") no-repeat center center/cover;
}

.project-tile-daze {
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.08), rgba(6, 8, 12, 0.9)),
    url("images/studiofar.jpg") no-repeat center center/cover;
}

.project-tile-afterlight {
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.08), rgba(6, 8, 12, 0.9)),
    url("images/theone.jpg") no-repeat center center/cover;
}

.project-tile-studio-study {
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.08), rgba(6, 8, 12, 0.9)),
    url("images/lamp.jpg") no-repeat center center/cover;
}

.project-tile-city-close {
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.08), rgba(6, 8, 12, 0.9)),
    url("images/cityclose_1_0088.jpg") no-repeat center center/cover;
}

.project-tile-graphic {
  background:
    linear-gradient(180deg, rgba(42, 14, 8, 0.16), rgba(13, 10, 12, 0.88)),
    radial-gradient(circle at top left, rgba(220, 145, 82, 0.22), transparent 38%),
    linear-gradient(135deg, #38231d, #121014 72%);
}

.project-tile-magazine-spreads {
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.08), rgba(6, 8, 12, 0.88)),
    url("images/study.png") no-repeat center center/cover;
}

.project-tile-brand-communication {
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.08), rgba(6, 8, 12, 0.88)),
    url("images/sjoc2.png") no-repeat center center/cover;
}

.project-type {
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.project-tile h2,
.detail-panel h2 {
  margin: 4;
  font-family: "Neothic by Daymarius", "Times New Roman", serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-tile p {
  margin: 10;
  color: var(--text-soft);
  line-height: 1.7;
}

.detail-lead {
  max-width: 760px;
  margin: 0 0 26px;
}

.project-showcase {
  display: grid;
  gap: 28px;
}

.project-showcase-main {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 90px;
  align-items: start;
}

.project-copy {
  width: min(100%, 760px);
  text-align: left;
  justify-self: stretch;
  margin-top: 24px;
}

.passage-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 28px;
  justify-content: space-between;
}

.passage-card {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  min-height: 230px;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.passage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 176, 107, 0.45);
}

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

.project-meta-column {
  display: grid;
  gap: 18px;
}

.project-side-image {
  appearance: none;
  margin: 0;
  min-height: 480px;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.project-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 48%;
  display: block;
  background: rgba(255, 255, 255, 0.02);
  transform: scale(1.08);
}

.project-video-block {
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  max-width: 100%;
  min-height: 340px;
}

.project-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 400px;
  object-fit: cover;
  background: #000;
}

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

.project-section-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.project-mini-kicker {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.project-title-head h1 {
  margin: 0 0 16px;
}

.project-kicker-head {
  margin-bottom: 30px;
}

.project-software-head {
  margin-top: 70px;
}

.software-item {
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.software-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
}

.software-item h3 {
  margin: 0 0 20px;
  font-family: "Neothic by Daymarius", "Times New Roman", serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.software-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.94rem;
}

.project-collage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
  min-height: 520px;
  position: relative;
  padding: 24px 10px 18px 0;
  margin-top: 200px;
}

.support-tile-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.support-detail-block {
  margin-top: 42px;
  width: min(100%, 580px);
  margin-left: auto;
}

.support-detail-head {
  margin-bottom: 16px;
}

.support-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.support-tile {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  overflow: hidden;
  padding: 8px;
  cursor: pointer;
  min-height: 200px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.support-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 176, 107, 0.45);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.support-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.project-collage-editorial {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  border-radius: 30px;
}

.collage-card {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(245, 241, 232, 0.06);
  border-radius: 26px;
  overflow: hidden;
  padding: 10px;
  cursor: pointer;
  min-height: 320px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.collage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 176, 107, 0.45);
}

.collage-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.collage-card-large {
  min-height: 520px;
  transform: none;
  z-index: 1;
}

.collage-card-tall {
  min-height: 300px;
  transform: none;
  margin-left: 0;
  z-index: 1;
}

.collage-card-small-offset {
  min-height: 200px;
  align-self: auto;
  transform: none;
  z-index: 1;
}

.collage-card-float {
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.26);
}

.collage-stack {
  display: grid;
  gap: 18px;
  align-self: stretch;
}

.project-collage-clean-tipsy {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.78fr);
  grid-template-rows: 250px 250px 180px;
  gap: 20px;
}

.project-collage-clean-tipsy .collage-card {
  min-height: 0;
}

.collage-card-hero {
  grid-row: 1 / span 2;
  min-height: 520px;
}

.collage-card-top-right {
  grid-column: 2;
  grid-row: 1;
}

.collage-card-bottom-right {
  grid-column: 2;
  grid-row: 2;
}

.collage-card-strip-left {
  grid-column: 1;
  grid-row: 3;
}

.collage-card-strip-right {
  grid-column: 2;
  grid-row: 3;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(2, 4, 8, 0.88);
  z-index: 50;
}

.lightbox.is-open {
  display: grid;
}

.lightbox-image {
  max-width: min(92vw, 1400px);
  max-height: 84vh;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  cursor: pointer;
}

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

.detail-panel {
  min-height: 240px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.detail-visual {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.14)),
    rgba(255, 255, 255, 0.04);
}

.brand-subprojects {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.brand-subproject {
  min-width: 0;
}

.brand-subproject h2 {
  margin: 0 0 16px;
  font-family: "Neothic by Daymarius", "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  text-align: center;
}

.brand-subproject-image {
  display: grid;
  place-items: center;
  width: 50%;
  aspect-ratio: 4 / 3;
  margin-inline: auto;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.brand-subproject-image:hover,
.brand-subproject-image:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(209, 176, 107, 0.55);
}

.brand-subproject-image:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.brand-subproject-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-subproject-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 960px);
  margin-inline: auto;
}

.brand-subproject-gallery-item {
  appearance: none;
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.brand-subproject-gallery-item:hover {
  transform: translateY(-3px);
  border-color: rgba(209, 176, 107, 0.55);
}

.brand-subproject-gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.brand-subproject-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.gallery-card {
  grid-column: span 4;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

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

.gallery-card-feature {
  grid-column: span 8;
  min-height: 460px;
}

.gallery-card-tall {
  grid-column: span 4;
  min-height: 460px;
}

.gallery-card-wide {
  grid-column: span 6;
  min-height: 320px;
}

.magazine-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
  margin-top: 34px;
}

.magazine-project {
  min-width: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}

.magazine-project h2 {
  width: 50%;
  margin: 0 auto 16px;
  font-family: "Neothic by Daymarius", "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

.magazine-project h2 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #4a9eff;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.magazine-project h2 a:hover,
.magazine-project h2 a:focus-visible {
  text-decoration-color: #8cc5ff;
}

.magazine-project-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 50%;
  margin-inline: auto;
}

.magazine-project-image {
  appearance: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.magazine-project-image:hover {
  transform: translateY(-3px);
  border-color: rgba(209, 176, 107, 0.45);
}

.magazine-project-image:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.magazine-project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.magazine-project-images:has(:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

@keyframes cinematicSwipeIn {
  0% {
    transform: translateX(-14%) scale(1.01);
    opacity: 0;
    filter: blur(10px);
  }

  55% {
    opacity: 0.88;
    filter: blur(2px);
  }

  100% {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes cinematicLightSweep {
  0% {
    transform: translateX(-150%);
    opacity: 0;
  }

  18% {
    opacity: 0.25;
  }

  55% {
    opacity: 0.9;
  }

  100% {
    transform: translateX(160%);
    opacity: 0;
  }
}

@keyframes wanderingLineA {
  0% {
    transform: translate3d(0, -2%, 0) rotate(-2deg) scale(1);
  }

  25% {
    transform: translate3d(-2.5%, 1.5%, 0) rotate(1deg) scale(1.02);
  }

  50% {
    transform: translate3d(1.2%, 3%, 0) rotate(3deg) scale(1.04);
  }

  75% {
    transform: translate3d(3.4%, -1.5%, 0) rotate(-1deg) scale(1.01);
  }

  100% {
    transform: translate3d(-1.8%, 2.2%, 0) rotate(2deg) scale(1.03);
  }
}

@keyframes wanderingLineB {
  0% {
    transform: translate3d(0, 3%, 0) rotate(2deg) scale(0.98);
  }

  20% {
    transform: translate3d(2.2%, -1%, 0) rotate(-1deg) scale(1.01);
  }

  45% {
    transform: translate3d(-1.4%, -3.5%, 0) rotate(-3deg) scale(1.02);
  }

  70% {
    transform: translate3d(-3%, 1.8%, 0) rotate(1deg) scale(0.99);
  }

  100% {
    transform: translate3d(2.8%, -2.5%, 0) rotate(3deg) scale(1.03);
  }
}

@media (max-width: 980px) {
  .side-nav {
    top: 20px;
    right: 20px;
  }

  .portfolio-strip {
    grid-auto-columns: minmax(260px, 78vw);
  }

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

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

  .project-showcase-main,
  .project-collage {
    grid-template-columns: 1fr;
  }

  .project-copy {
    justify-self: stretch;
    width: 100%;
    text-align: left;
  }

  .project-copy .detail-lead {
    margin-left: 0;
  }

  .project-collage {
    min-height: auto;
    padding: 0;
  }

  .collage-card-large,
  .collage-card-tall,
  .collage-card-small-offset,
  .collage-card-hero,
  .collage-card-top-right,
  .collage-card-bottom-right,
  .collage-card-strip-left,
  .collage-card-strip-right {
    min-height: 320px;
    margin-left: 0;
    transform: none;
  }

  .project-collage-clean-tipsy {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .collage-card-hero,
  .collage-card-top-right,
  .collage-card-bottom-right,
  .collage-card-strip-left,
  .collage-card-strip-right {
    grid-column: auto;
    grid-row: auto;
  }

  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card,
  .gallery-card-feature,
  .gallery-card-tall,
  .gallery-card-wide {
    grid-column: span 1;
    min-height: 320px;
  }

  .passage-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-detail-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 24px 0 0;
  }
}

@media (max-width: 560px) {
  .magazine-project h2 {
    width: 100%;
  }

  .magazine-project-images {
    width: 100%;
  }

  .passage-gallery {
    grid-template-columns: 1fr;
  }

  .support-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-page::before {
    background-position: 88% center;
    background-size: min(58vw, 300px) 100%;
    opacity: 0.42;
  }

  .home-page::after {
    background-position: 74% center;
    background-size: min(44vw, 220px) 100%;
    opacity: 0.18;
  }

  .hero {
    padding: 20px;
    align-items: flex-end;
  }

  .overlay {
    width: min(100%, 520px);
    padding: 22px 18px;
    border-radius: 34px;
  }

  .title-swipe {
    white-space: normal;
  }

  .overlay p {
    letter-spacing: 0.14em;
    font-size: 0.88rem;
  }

  .categories,
  .info-section,
  .portfolio-strip-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-bar {
    min-height: 180px;
    padding: 22px;
  }

  .side-nav {
    left: 16px;
    right: 16px;
    top: 16px;
    flex-direction: row;
  }

  .side-nav-link {
    flex: 1;
    min-width: 0;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .software-strip {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card-feature,
  .gallery-card-tall,
  .gallery-card-wide {
    grid-column: auto;
    min-height: 240px;
  }
}

.info-card h2,
.page-hero h1,
.project-detail h1 {
  font-family: "Montserrat ExtraBold", "Montserrat", "Arial Black", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.91;
}

.project-tile h2,
.detail-panel h2 {
  font-family: "Montserrat ExtraBold", "Montserrat", "Arial Black", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.91;
}

.software-item h3 {
  font-family: "Montserrat ExtraBold", "Montserrat", "Arial Black", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.91;
}

.home-page {
  position: relative;
  overflow-x: hidden;
  background: url("images/back.png") no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
}

.home-page::before,
.home-page::after {
  display: none;
}

.editorial-home {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--home-stage-max);
  margin: 0 auto;
  padding: 0;
}

.home-section {
  position: relative;
  min-height: 100svh;
  padding: clamp(42px, 4.8vw, 74px) clamp(42px, 4vw, 72px) clamp(138px, 13vh, 190px);
}

.home-section::after {
  display: none;
}

.side-nav {
  position: fixed;
  top: clamp(26px, 3vh, 40px);
  right: max(16px, calc((100vw - var(--home-stage-max)) / 2 + 34px));
  left: auto;
  z-index: 20;
  display: flex;
  gap: clamp(46px, 7vw, 150px);
}

.side-nav-link {
  min-width: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  font-family: "Shree Devanagari 71", "Shree Devanagari 714", "Nirmala UI", "Segoe UI", serif;
  font-size: clamp(0.9rem, 1.35vw, 1.45rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-main);
}

.side-nav-link:hover {
  transform: none;
  color: var(--text-main);
}

.side-nav-link::after {
  display: none;
}

.section-rail,
.section-heading {
  margin: 0;
  text-transform: uppercase;
}

.section-rail {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  writing-mode: vertical-rl;
  transform: translate(-50%, -50%) rotate(180deg);
  font-family: "Shree Devanagari 71", "Shree Devanagari 714", "Nirmala UI", "Segoe UI", serif;
  font-size: clamp(0.92rem, 1.45vw, 1.42rem);
  letter-spacing: 0.02em;
  color: var(--text-main);
  z-index: 2;
}

.home-section-hero .section-rail {
  left: clamp(10px, 1vw, 134px);
  right: auto;
  top: 50%;
  transform: translateY(-25%) rotate(180deg);
}

.section-heading {
  font-family: "Montserrat ExtraBold", "Montserrat", "Arial Black", sans-serif;
  font-weight: 800;
  font-size: clamp(3.8rem, 7.1vw, 7.6rem);
  letter-spacing: -0.04em;
  line-height: 0.91;
  color: var(--text-main);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.section-heading-about {
  line-height: 0.91;
}

.home-section-hero {
  min-height: 100svh;
  height: 100svh;
  padding-bottom: clamp(64px, 7vh, 110px);
}

.hero-stack {
  position: absolute;
  top: clamp(520px, 62vh, 640px);
  right: clamp(34px, 4vw, 76px);
  bottom: auto;
  display: flex;
  justify-content: flex-end;
  width: min(42vw, 840px);
}

.editorial-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  font-family: "Montserrat ExtraBold", "Montserrat", "Arial Black", sans-serif;
  font-weight: 800;
  font-size: clamp(2.9rem, 5.2vw, 5.7rem);
  line-height: 0.91;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: right;
  max-width: 7.2ch;
  color: var(--text-main);
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
}

.editorial-title span {
  display: block;
  width: max-content;
}

.home-section-story,
.home-section-work,
.home-section-about,
.home-section-contact {
  min-height: 100svh;
}

.story-mark {
  position: absolute;
  left: clamp(82px, 9vw, 180px);
  top: clamp(116px, 15vh, 210px);
  font-family: "Montserrat ExtraBold", "Montserrat", "Arial Black", sans-serif;
  font-size: clamp(4.4rem, 6vw, 6.8rem);
  line-height: 0.8;
  color: var(--text-main);
}

.story-copy {
  position: absolute;
  left: clamp(118px, 13vw, 260px);
  top: clamp(190px, 29vh, 360px);
  width: min(60vw, 1280px);
  margin: 0;
  max-width: none;
  font-family: "Shree Devanagari 71", "Shree Devanagari 714", "Nirmala UI", "Segoe UI", serif;
  font-size: clamp(0.96rem, 1.28vw, 1.42rem);
  line-height: 1.52;
  color: var(--text-main);
  text-wrap: pretty;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.36);
}

.home-section-work {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
}

.work-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-left: clamp(150px, 14vw, 280px);
  margin-bottom: 26px;
}

.home-section-work .section-heading {
  position: static;
  writing-mode: horizontal-tb;
  transform: none;
  z-index: 2;
  font-size: clamp(3.8rem, 7.1vw, 7.4rem);
  line-height: 0.91;
}

.work-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 2;
}

.work-filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(177, 186, 205, 0.12);
  color: var(--text-main);
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-family: "Montserrat ExtraBold", "Montserrat", "Arial Black", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.work-filter:hover {
  transform: translateY(-2px);
  background: rgba(177, 186, 205, 0.2);
  border-color: rgba(255, 255, 255, 0.22);
}

.work-filter.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.work-grid {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  margin-left: clamp(150px, 14vw, 280px);
  margin-right: clamp(28px, 4vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-content: start;
  z-index: 2;
}

.work-project-card {
  position: relative;
  display: block;
  padding: 1.2rem 1.2rem 1.25rem;
  border-radius: 24px 12px 24px 24px;
  background: rgba(177, 186, 205, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  overflow: hidden;
}

.work-project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.28s ease, transform 0.35s ease;
  z-index: 1;
}

.work-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
}

.work-project-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.work-project-card > * {
  position: relative;
  z-index: 2;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.work-project-card:hover > h3,
.work-project-card:hover > p {
  opacity: 0;
  transform: translateY(8px);
}

.work-project-card.project-passage::before {
  background-image: url("images/baby.jpg");
}

.work-project-card.project-clean-tipsy::before {
  background-image: url("images/BAR1.jpg");
}

.work-project-card.project-lone-artistry::before {
  background-image: url("images/astudioclose.jpg");
}

.work-project-card.project-dark-night::before {
  background-image: url("images/thetwo.jpg");
}

.work-project-card.project-daze::before {
  background-image: url("images/5.jpg");
}

.work-project-card.project-magazine::before {
  background-image: url("images/study.png");
}

.work-project-card.project-brand::before {
  background-image: url("images/sjoc2.png");
}

.work-project-card.is-hidden {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border-width: 0;
  overflow: hidden;
}

.project-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: "Montserrat ExtraBold", "Montserrat", "Arial Black", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.work-project-card h3 {
  margin: 0 0 0.7rem;
  font-family: "Montserrat ExtraBold", "Montserrat", "Arial Black", sans-serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text-main);
}

.work-project-card p {
  margin: 0;
  font-family: "Shree Devanagari 71", "Shree Devanagari 714", "Nirmala UI", "Segoe UI", serif;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-main);
}

.work-empty {
  position: absolute;
  left: clamp(150px, 14vw, 280px);
  right: clamp(28px, 4vw, 60px);
  top: clamp(310px, 42vh, 480px);
  margin: 0;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(177, 186, 205, 0.08);
  color: var(--text-main);
  font-family: "Shree Devanagari 71", "Shree Devanagari 714", "Nirmala UI", "Segoe UI", serif;
  font-size: 1rem;
}

.home-section-about .section-heading {
  position: absolute;
  left: clamp(26px, 2.5vw, 52px);
  top: clamp(74px, 10vh, 150px);
  bottom: clamp(86px, 9vh, 140px);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 2;
}

.about-columns {
  position: absolute;
  left: clamp(150px, 14vw, 310px);
  right: clamp(34px, 4vw, 72px);
  top: clamp(120px, 16vh, 220px);
  bottom: clamp(128px, 14vh, 220px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(44px, 7vw, 120px);
  row-gap: clamp(36px, 6vh, 88px);
  align-content: start;
}

.about-columns p {
  margin: 0;
  font-family: "Shree Devanagari 71", "Shree Devanagari 714", "Nirmala UI", "Segoe UI", serif;
  font-size: clamp(0.96rem, 1.22vw, 1.36rem);
  line-height: 1.62;
  color: var(--text-main);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.36);
}

.about-columns p:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.about-columns p:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.about-columns p:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  margin-top: clamp(20px, 6vh, 80px);
}

.about-columns p:nth-child(4) {
  grid-column: 2;
  grid-row: 3;
}

.home-section-contact {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px clamp(24px, 5vw, 72px) 80px;
}

.home-section-contact .section-heading {
  position: absolute;
  left: clamp(26px, 2.5vw, 52px);
  top: clamp(74px, 10vh, 150px);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 2;
}

.contact-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(80vw, 980px);
  min-height: min(52vh, 420px);
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 62px);
  background: rgba(177, 186, 205, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px 12px 32px 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Shree Devanagari 71", "Shree Devanagari 714", "Nirmala UI", "Segoe UI", serif;
  font-size: clamp(1.4rem, 2.6vw, 3.1rem);
  letter-spacing: 0.02em;
  color: var(--text-main);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.34);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.contact-email-icon {
  width: clamp(26px, 2.2vw, 42px);
  height: clamp(26px, 2.2vw, 42px);
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.contact-email:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

@media (max-width: 960px) {
  .side-nav {
    right: 24px;
    left: 24px;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero-stack {
    right: 24px;
    width: min(48vw, 560px);
  }

  .story-copy {
    width: min(70vw, 980px);
  }

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

@media (max-width: 980px) {
  .side-nav {
    right: 24px;
    gap: 32px;
  }

  .editorial-title {
    font-size: clamp(2.7rem, 6vw, 5rem);
  }

  .story-copy {
    width: min(68vw, 1000px);
    font-size: clamp(0.92rem, 1.4vw, 1.1rem);
  }

  .about-columns {
    left: 132px;
    row-gap: 24px;
  }

  .about-columns p {
    font-size: clamp(0.92rem, 1.2vw, 1.04rem);
  }
}

@media (max-width: 768px) {
  .editorial-home {
    max-width: none;
    margin: 0;
  }

  .side-nav {
    top: 14px;
    right: 12px;
    left: 12px;
    justify-content: space-between;
    gap: 10px;
  }

  .side-nav-link {
    font-size: 0.82rem;
  }

  .side-nav {
    top: 16px;
    right: 16px;
    left: 16px;
    justify-content: space-between;
    gap: 10px;
  }

  .side-nav-link {
    flex: 1;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  .home-section {
    min-height: auto;
    padding: 82px 16px 66px;
  }

  .section-rail {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    display: block;
    font-size: 0.82rem;
  }

  .section-heading {
    font-size: clamp(2.4rem, 14vw, 4.2rem);
  }

  .hero-stack {
    position: static;
    width: 100%;
    padding-top: 18vh;
    justify-content: flex-start;
  }

  .editorial-title {
    max-width: 100%;
    font-size: clamp(2.4rem, 14vw, 4.2rem);
    text-align: left;
  }

  .story-mark,
  .story-copy {
    position: static;
    width: auto;
    font-size: 0.98rem;
    line-height: 1.58;
    text-wrap: pretty;
  }

  .story-mark {
    margin-bottom: 18px;
  }

  .home-section-work .section-heading,
  .home-section-about .section-heading,
  .home-section-contact .section-heading {
    position: static !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: clamp(2.4rem, 14vw, 4.2rem) !important;
  }

  .home-section-work {
    padding-top: 60px;
  }

  .work-header {
    display: block;
    margin-left: 0;
    margin-bottom: 20px;
  }

  .work-controls {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
  }

  .work-filter {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    padding: 0.7rem 0.95rem;
  }

  .work-grid {
    position: static;
    margin-left: 0;
    margin-right: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-empty {
    position: static;
    margin-top: 1rem;
  }

  .about-columns {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-columns p:nth-child(3) {
    margin-top: 0;
  }

  .contact-content {
    position: static;
    justify-content: flex-start;
    margin-top: 22px;
  }

}

@media (max-width: 600px) {
  .home-page {
    background: var(--bg-deep);
  }

  .home-page::before {
    display: block;
    inset: 0;
    opacity: 1;
    background-image:
      linear-gradient(180deg, rgba(7, 9, 15, 0.15) 0%, rgba(7, 9, 15, 0.3) 55%, rgba(7, 9, 15, 0.54) 100%),
      url("images/back.png");
    background-repeat: no-repeat, no-repeat;
    background-position: center top, center center;
    background-size: 100% 100svh, cover;
    animation: none;
    transform: none;
  }

  .side-nav {
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(7, 9, 15, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    backdrop-filter: blur(12px);
  }

  .side-nav-link {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .home-section {
    padding: 78px 20px 56px;
  }

  .home-section-hero {
    min-height: min(760px, 100svh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding-top: 100px;
  }

  .home-section-hero .section-rail {
    position: static;
    transform: none;
    font-size: 0.78rem;
  }

  .hero-stack {
    padding-top: 0;
  }

  .editorial-title {
    font-size: clamp(2rem, 9.5vw, 3.4rem);
    line-height: 0.98;
  }

  .editorial-title span {
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .home-section-story {
    padding-top: 58px;
  }

  .story-mark {
    font-size: 4rem;
  }

  .story-copy,
  .about-columns p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .home-section-work .section-heading,
  .home-section-about .section-heading,
  .home-section-contact .section-heading {
    font-size: clamp(2.6rem, 12vw, 3.8rem) !important;
  }

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

  .work-filter {
    min-height: 44px;
    padding: 0.65rem 0.5rem;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }

  .work-project-card {
    padding: 1rem;
    border-radius: 16px;
  }

  .about-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .about-columns p:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #fff6df;
    text-shadow: none;
  }

  .home-section-about {
    background: linear-gradient(180deg, rgba(7, 9, 15, 0.9), rgba(7, 9, 15, 0.78));
  }

  .contact-content {
    width: 100%;
    min-height: 180px;
    box-sizing: border-box;
    padding: 24px 18px;
    border-radius: 20px 10px 20px 20px;
  }

  .contact-email {
    font-size: clamp(1.05rem, 5vw, 1.5rem);
    overflow-wrap: anywhere;
  }

  .detail-page .project-detail,
  .portfolio-page .page-hero {
    padding: 28px 16px 18px;
  }

  .project-side-image {
    min-height: 300px;
  }

  .software-strip,
  .passage-gallery,
  .support-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-detail-grid {
    box-sizing: border-box;
    padding: 12px;
    gap: 10px;
  }

  .support-tile,
  .passage-card {
    min-height: 150px;
  }

  .software-item {
    padding: 16px 12px;
    border-radius: 16px;
  }
}
