@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,700;0,800;1,400;1,500&family=IBM+Plex+Mono:wght@400;500&family=DM+Sans:wght@400;500&display=swap");

/* ─── Design Tokens ─── */
:root {
  --bg: #f0ebe1;
  --navy: #1e3a6e;
  --red: #c93a2b;
  --muted: #8a8075;
  --tx: #2a2620;
  --border: rgba(30, 58, 110, 0.14);
  --gold: #c08b3e;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--tx);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ─── SVG Stamp Filter (hidden, referenced by tags) ─── */
.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ─── Keyframes ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@keyframes scrollLine {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}
@keyframes growWidth {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes scrollDrop {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
  background: rgba(240, 235, 225, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.04;
  width: 100%;
  height: 100%;
}

.hero-ghost {
  position: absolute;
  right: 1.5rem;
  top: -6.5rem;
  transform: none;
  font-family: "EB Garamond", serif;
  font-size: clamp(20rem, 40vw, 38rem);
  font-weight: 800;
  color: var(--navy);
  opacity: 0.035;
  line-height: 0.8;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.97;
  mix-blend-mode: multiply;
}

.hero-orbit svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--bg) 0%,
    var(--bg) 15%,
    rgba(240, 235, 225, 0.85) 40%,
    rgba(240, 235, 225, 0.4) 60%,
    rgba(240, 235, 225, 0) 80%
  );
}

@media (min-width: 1024px) {
  .hero-gradient {
    background: linear-gradient(
      to right,
      var(--bg) 0%,
      var(--bg) 12%,
      rgba(240, 235, 225, 0.85) 32%,
      rgba(240, 235, 225, 0.4) 48%,
      rgba(240, 235, 225, 0) 64%
    );
  }
}

.hero-rings {
  opacity: 0;
  animation: fadeIn 1.8s ease 0.25s forwards;
}

.orbit-outline {
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  opacity: 0.12;
}

.orbit-segment {
  fill: none;
  stroke-width: 1.05;
  stroke-linecap: round;
  opacity: 0.36;
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2.5rem 0;
  max-width: 520px;
}

.hero-wordmark {
  line-height: 1;
}

.hero-sigi {
  display: block;
  font-family: "EB Garamond", serif;
  font-weight: 800;
  font-size: clamp(4rem, 11vw, 9rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 0.88;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-studio {
  display: block;
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  color: var(--muted);
  letter-spacing: -0.01em;
  line-height: 1.05;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.hero-divider {
  width: 28px;
  height: 1px;
  background: var(--red);
  margin: 1.5rem 0;
  transform-origin: left;
  transform: scaleX(0);
  animation: growWidth 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.7s forwards;
}

.hero-tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.85s forwards;
  margin-bottom: 1.25rem;
}

.hero-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 1s forwards;
}

.pill {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid rgba(30, 58, 110, 0.3);
  padding: 0.3rem 0.65rem;
  border-radius: 1px;
}

.hero-cta {
  margin-top: 2rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  opacity: 0;
  animation: fadeIn 0.6s ease 1.2s forwards;
  display: inline-block;
  transition:
    color 0.25s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.25s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid rgba(201, 58, 43, 0.3);
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
}

.hero-cta:hover {
  color: var(--navy);
  border-color: var(--navy);
  transform: translateY(-1px);
}

/* Discipline tags — vertical right side */
.hero-disciplines {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  z-index: 10;
  writing-mode: vertical-rl;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0;
  animation: fadeIn 0.8s ease 0.8s forwards;
  display: flex;
  gap: 1.5rem;
}

.hero-disciplines span {
  opacity: 0.18;
}

/* Bottom strip */
.hero-bottom {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(30, 58, 110, 0.14);
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.65s forwards;
}

.hero-bottom-tagline {
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  color: var(--tx);
  max-width: 38ch;
  line-height: 1.5;
}

.hero-bottom-tagline strong {
  font-weight: 500;
}

.hero-bottom-view {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  border: 1px solid rgba(201, 58, 43, 0.3);
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
}

.hero-bottom-view:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* Scroll line */
.hero-scroll {
  position: absolute;
  bottom: 0;
  left: 2.5rem;
  width: 1px;
  height: 4rem;
  background: rgba(30, 58, 110, 0.14);
  z-index: 10;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  animation: scrollDrop 0.8s cubic-bezier(0.25, 1, 0.5, 1) 1.3s forwards;
}

/* ─── Section Shared ─── */
.section-wrap {
  padding: 56px 72px 100px;
  position: relative;
}

.section-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 46px;
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 64px;
}

/* ─── Project Grid ─── */
.project {
  display: grid;
  grid-template-columns: 235px 1fr;
  gap: 44px;
  padding-bottom: 72px;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--border);
}

.project > div:last-child {
  min-width: 0;
}

.project:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Project left column */
.project-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 10px;
}

.project-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--navy);
  padding: 4px 9px;
  border: 1px solid rgba(30, 58, 110, 0.22);
  border-radius: 2px;
  background: rgba(240, 235, 225, 0.6);
  filter: url(#stamp);
  line-height: 1.5;
  display: inline-block;
}

/* ─── Carousel ─── */
.carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.carousel {
  display: flex;
  gap: 4px;
  overflow-x: scroll;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  border-radius: 1px;
  flex: 1;
  min-width: 0;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.carousel-item {
  height: 340px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 1px;
  cursor: zoom-in;
}

.carousel-item img,
.carousel-item video {
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
}

/* Arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--bg);
  border: 1px solid rgba(30, 58, 110, 0.2);
  color: var(--navy);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.25s cubic-bezier(0.25, 1, 0.5, 1),
    color 0.25s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.25s,
    transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  border-color: var(--navy);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
  transition-duration: 0.1s;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-item:hover .carousel-hover {
  opacity: 1;
}

.carousel-hover {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 110, 0.08);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.carousel-hover span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(18, 16, 14, 0.55);
  padding: 3px 8px;
  border-radius: 1px;
  transform: translateY(4px);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item:hover .carousel-hover span {
  transform: translateY(0);
}

/* Dots */
.dots {
  display: flex;
  gap: 5px;
  margin: 9px 0 24px;
  align-items: center;
}

.dot {
  width: 14px;
  height: 2px;
  background: rgba(30, 58, 110, 0.18);
  border-radius: 1px;
  cursor: pointer;
  transition:
    width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    background 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.dot.active {
  width: 22px;
  background: var(--navy);
}

/* ─── Project Content ─── */
.project-quote {
  border-left: 2px solid var(--red);
  padding: 13px 16px 13px 18px;
  background: rgba(255, 255, 255, 0.25);
  margin-bottom: 18px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 17px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.58;
}

.project-body {
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(42, 38, 32, 0.82);
}

.project-body-more {
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(42, 38, 32, 0.82);
}

.project-body p + p {
  margin-top: 10px;
}

.project-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: rgba(201, 58, 43, 0.05);
  border-left: 1.5px solid rgba(201, 58, 43, 0.2);
  filter: url(#stamp);
  margin-top: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}

/* Project metadata sidebar (desktop) */
.project-meta {
  margin-top: 24px;
  display: none;
}

.project-left .project-meta {
  display: block;
}

.project-meta-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 20px;
  margin-bottom: 4px;
}

.project-meta-label:first-child {
  margin-top: 0;
}

.project-meta-value {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--tx);
  line-height: 1.5;
}

/* ─── Practice ─── */
.practice {
  padding: 6rem 72px 4rem;
}

.practice .section-number {
  margin-bottom: 10px;
}

.practice .section-title {
  margin-bottom: 2rem;
}

.practice-body {
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(42, 38, 32, 0.85);
}

.practice-body p + p {
  margin-top: 1.2rem;
}

/* ─── Read More ─── */
.project-body-wrap {
  margin-bottom: 16px;
  max-width: 600px;
}

.project-body-more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-body-more p + p {
  margin-top: 10px;
}

.project-body-more p:first-child {
  margin-top: 10px;
}

.read-more-btn {
  background: none;
  border: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--red);
  cursor: pointer;
  padding: 6px 0;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.read-more-btn:hover {
  color: var(--navy);
}

.read-more-btn:hover .read-more-arrow {
  transform: translateY(2px);
}

.read-more-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  font-size: 11px;
}

/* ─── Contact ─── */
.contact {
  padding: 8rem 72px 4rem;
}

.contact .section-number {
  margin-bottom: 10px;
}

.contact .section-title {
  margin-bottom: 1.5rem;
}

.contact-intro {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(42, 38, 32, 0.85);
  margin-bottom: 2rem;
  max-width: 40ch;
}

.contact-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  border: 1px solid rgba(30, 58, 110, 0.25);
  padding: 1.1rem 2rem;
  border-radius: 2px;
  transition:
    border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    background 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-btn:hover {
  border-color: var(--navy);
  background: rgba(30, 58, 110, 0.03);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 110, 0.08);
}

.contact-btn-label {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.3;
}

.contact-btn-email {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--red);
}

.contact-border {
  margin-top: 4rem;
  border-bottom: 1px solid var(--border);
}

/* ─── Footer ─── */
.footer {
  padding: 2rem 2.5rem;
  text-align: center;
}

.footer-logo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.6;
}

/* ─── Modal ─── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 14, 12, 0.94);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 40px 60px;
  cursor: pointer;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.3s;
}

.modal.on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-inner {
  cursor: default;
  max-width: 90%;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal.on .modal-inner {
  transform: translateY(0) scale(1);
}

.modal-close {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(240, 235, 225, 0.38);
  margin-bottom: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-close:hover {
  color: rgba(240, 235, 225, 0.7);
}

.modal-close::before {
  content: "";
  display: block;
  width: 16px;
  height: 0.5px;
  background: rgba(240, 235, 225, 0.25);
}

.modal-wrap img,
.modal-wrap video {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 1px;
}

.modal-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(240, 235, 225, 0.3);
  margin-top: 10px;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Focus Visible ─── */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.carousel-btn:focus-visible {
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.3);
}

.contact-btn:focus-visible {
  outline-offset: 3px;
}

.hero-cta:focus-visible {
  outline-offset: 3px;
}

.read-more-btn:focus-visible {
  outline-offset: 2px;
}

.modal-close:focus-visible {
  outline: 1px solid rgba(240, 235, 225, 0.5);
  outline-offset: 4px;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav {
    padding: 0.85rem 1.25rem;
  }

  .nav-links {
    gap: 1.4rem;
  }

  .nav-tagline {
    display: none;
  }

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

  .hero {
    height: 100svh;
    min-height: 0;
  }

  .hero-content {
    padding: 5rem 1.25rem 0;
  }

  .hero-tagline {
    font-size: 0.75rem;
    line-height: 1.8;
  }

  .hero-disciplines {
    display: none;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.25rem;
  }

  .hero-scroll {
    left: 1.25rem;
  }

  .hero-ghost {
    font-size: clamp(12rem, 50vw, 20rem);
    right: -5%;
  }

  .section-wrap {
    padding: 40px 1.25rem 60px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

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

  .project-left .tags {
    display: none;
  }

  .project-left .project-meta {
    display: none;
  }

  .project-meta-mobile {
    display: block;
    margin-top: 20px;
  }

  .project-title {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .carousel-item {
    height: 260px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .project-quote {
    font-size: 16px;
    padding: 12px 14px 12px 16px;
    line-height: 1.55;
  }

  .project-body,
  .project-body-more {
    font-size: 14px;
    line-height: 1.75;
  }

  .project-body-wrap {
    max-width: 100%;
  }

  .practice {
    padding: 4rem 1.25rem 3rem;
  }

  .practice-body {
    font-size: 1rem;
    line-height: 1.6;
  }

  .contact {
    padding: 4rem 1.25rem 3rem;
  }

  .contact-intro {
    font-size: 1rem;
  }

  .contact-btn {
    padding: 1rem 1.5rem;
    width: 100%;
  }

  .contact-btn-label {
    font-size: 1.1rem;
  }

  .contact-btn-email {
    font-size: 0.72rem;
  }

  .modal {
    padding: 40px 16px 40px;
  }

  .hero-cta {
    font-size: 0.72rem;
    padding: 0.6rem 1.2rem;
  }

  .pill {
    font-size: 0.64rem;
    padding: 0.28rem 0.55rem;
  }

  .footer {
    padding: 1.5rem 1.25rem;
  }
}

/* Hide mobile meta on desktop */
.project-meta-mobile {
  display: none;
}

@media (max-width: 768px) {
  .project-meta-mobile {
    display: block;
  }
  .project-meta-mobile .tags {
    margin-bottom: 12px;
  }
  .project-meta-mobile .project-meta {
    display: block;
    margin-top: 12px;
  }
  .project-meta-mobile .project-meta-label {
    margin-top: 14px;
    font-size: 10px;
  }
  .project-meta-mobile .project-meta-value {
    font-size: 13px;
  }
}

/* ─── Small phones ─── */
@media (max-width: 400px) {
  .hero-sigi {
    font-size: clamp(3.2rem, 16vw, 4.5rem);
  }
  .hero-studio {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }
  .carousel-item {
    height: 200px;
  }
  .section-title {
    font-size: 28px;
  }
  .nav-links {
    gap: 1rem;
  }
}
