/* Portal Design — static styles (faithful to original) */

:root {
  --radius: 0.25rem;
  --font-display: "Manrope", "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --font-body: "DM Sans", "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --background: oklch(0.965 0.008 84);
  --foreground: oklch(0.18 0.012 60);
  --muted: oklch(0.91 0.012 82);
  --muted-foreground: oklch(0.47 0.016 65);
  --accent: oklch(0.73 0.12 72);
  --border: oklch(0.82 0.013 78);
  --hero-foreground: oklch(0.98 0.004 80);
  --canvas: oklch(0.965 0.008 84);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.page { overflow: hidden; }

/* Header */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 30;
  display: flex;
  height: 6rem;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1.25rem;
  color: var(--hero-foreground);
}
@media (min-width: 768px) {
  .site-header { padding-inline: 2.5rem; }
}
@media (min-width: 1280px) {
  .site-header { padding-inline: 4rem; }
}

.brand-logo-link { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.brand-logo { width: auto; height: clamp(1.9rem, 3.2vw, 2.9rem); }

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}
.nav-link { text-decoration: none; opacity: 0.8; transition: opacity 0.25s ease; }
.nav-link:hover { opacity: 1; }

.icon-button {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in oklch, var(--hero-foreground) 45%, transparent);
  border-radius: 999px;
  background: transparent;
  color: inherit;
}
@media (min-width: 768px) {
  .icon-button { display: none; }
}

.mobile-menu {
  position: absolute;
  top: 5.25rem;
  right: 1.25rem;
  display: flex;
  min-width: 12rem;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--foreground);
  color: var(--background);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: min(92svh, 60rem);
  color: var(--hero-foreground);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.12 0.02 60 / 0.35) 0%, oklch(0.1 0.015 55 / 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: 7rem 1.25rem 2.5rem;
}
@media (min-width: 768px) {
  .hero-content { padding: 10rem 2.5rem 3rem; }
}
@media (min-width: 1280px) {
  .hero-content { padding-left: 4rem; padding-right: 4rem; }
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero-eyebrow { color: color-mix(in oklch, var(--hero-foreground) 80%, transparent); }
.hero-bottom {
  margin-top: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid color-mix(in oklch, var(--hero-foreground) 35%, transparent);
  padding-top: 1.25rem;
}
@media (min-width: 768px) {
  .hero-bottom { margin-top: 3rem; }
}
.hero-tagline {
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in oklch, var(--hero-foreground) 90%, transparent);
}
@media (min-width: 768px) {
  .hero-tagline { font-size: 1.125rem; }
}
.scroll-cue {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in oklch, var(--hero-foreground) 45%, transparent);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.scroll-cue:hover { transform: translateY(0.25rem); }

/* Shared */
.section-shell {
  margin-inline: auto;
  max-width: 96rem;
  padding: 5.5rem 1.25rem;
}
@media (min-width: 768px) {
  .section-shell { padding: 8rem 2.5rem; }
}
@media (min-width: 1280px) {
  .section-shell { padding-left: 4rem; padding-right: 4rem; }
}
.section-index,
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.display-copy {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

/* Studio */
.studio-section {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .studio-section {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
  }
  .studio-section .section-index { grid-column: span 3; }
  .studio-body { grid-column: 5 / span 8; }
}
.studio-text {
  margin-top: 2.5rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .studio-text {
    margin-left: auto;
    font-size: 1.125rem;
  }
}

/* Projects */
.projects-section { border-top: 1px solid var(--border); }
.projects-header { padding-bottom: 2.5rem; }
@media (min-width: 768px) {
  .projects-header { padding-bottom: 3.5rem; }
}
.projects-header-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
@media (min-width: 768px) {
  .projects-header-inner {
    flex-direction: row;
    align-items: flex-end;
  }
}
.projects-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.filter-button {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0.3rem 0;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.filter-button:hover,
.filter-button.is-active {
  border-color: var(--foreground);
  color: var(--foreground);
}

.project-grid-shell {
  margin-inline: auto;
  max-width: 96rem;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .project-grid-shell { padding-inline: 2.5rem; }
}
@media (min-width: 1280px) {
  .project-grid-shell { padding-left: 4rem; padding-right: 4rem; }
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem 1.5rem;
}
@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.25rem 2rem;
  }
}
@media (min-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem 1.75rem;
  }
}

.project-item { min-width: 0; background: var(--background); }
.project-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project-item:hover .project-image { transform: scale(1.025); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, oklch(0.08 0.01 60 / 0.35));
  pointer-events: none;
}
.project-number,
.project-arrow {
  position: absolute;
  color: var(--hero-foreground);
  text-shadow: 0 1px 12px oklch(0.08 0.01 60 / 0.6);
}
.project-number {
  top: 1.25rem;
  left: 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}
.project-arrow {
  right: 1.25rem;
  bottom: 1.25rem;
  transition: transform 0.25s ease;
}
.project-item:hover .project-arrow { transform: translate(0.2rem, -0.2rem); }
.project-caption {
  display: grid;
  gap: 0.55rem;
  padding: 1.2rem 0.1rem 1.75rem;
  border-bottom: 1px solid var(--border);
}
.project-caption h3 {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.15;
}

.load-more-shell {
  display: flex;
  justify-content: center;
  padding: 3rem 1.25rem 1rem;
}
.load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--border);
  padding: 1rem 2.25rem;
  background: transparent;
  color: var(--foreground);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.load-more:hover {
  background: var(--foreground);
  border-color: var(--foreground);
  color: var(--background);
}
.load-more svg { transition: transform 0.25s ease; }
.load-more:hover svg { transform: translateY(0.2rem); }

/* Approach */
.approach-section {
  background: var(--foreground);
  color: var(--canvas);
}
.approach-index { color: color-mix(in oklch, var(--canvas) 60%, transparent); }
.approach-inner {
  display: grid;
  gap: 3.5rem;
}
@media (min-width: 768px) {
  .approach-inner {
    grid-template-columns: repeat(12, 1fr);
  }
  .approach-inner .section-index { grid-column: span 3; }
  .approach-body { grid-column: 5 / span 8; }
}
.eyebrow.accent { color: var(--accent); }
.approach-title {
  margin-top: 1.25rem;
  max-width: 56rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.steps {
  margin-top: 4rem;
  display: grid;
  gap: 2.5rem;
  border-top: 1px solid color-mix(in oklch, var(--canvas) 20%, transparent);
  padding-top: 2rem;
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step-num {
  font-size: 0.75rem;
  color: color-mix(in oklch, var(--canvas) 45%, transparent);
}
.step h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.step p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: color-mix(in oklch, var(--canvas) 60%, transparent);
}

/* Footer */
.footer { padding-bottom: 2rem; }
.footer-main {
  margin-top: 3.5rem;
  display: grid;
  gap: 3rem;
  align-items: end;
}
@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
  }
  .footer-brand { grid-column: span 8; }
  .footer-meta {
    grid-column: 10 / span 3;
  }
}
.footer-logo {
  width: auto;
  height: clamp(2rem, 3.5vw, 3rem);
}
.footer-headline { margin-top: 2.5rem; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  border-bottom: 1px solid var(--foreground);
  padding-bottom: 0.5rem;
  color: inherit;
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.contact-link:hover { opacity: 0.7; }
.footer-meta {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}
.footer-bottom {
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; }
}
.footer-bottom a {
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom a:hover { color: var(--foreground); }
