/* ============================================================
   Refine Visuals — Style System v2
   ============================================================ */

:root {
  --color-bg: #0a0a0a;
  --color-bg-elevated: #111111;
  --color-text: #f0f0f0;
  --color-text-muted: #8a8a8a;
  --color-accent: #b8c4d0;
  --color-accent-hover: #cdd5de;
  --color-accent-dim: rgba(184, 196, 208, 0.15);
  --color-border: rgba(255, 255, 255, 0.07);
  --color-overlay: rgba(10, 10, 10, 0.88);

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-xs: 0.7rem;
  --fs-sm: 0.8rem;
  --fs-base: 0.95rem;
  --fs-md: 1.1rem;
  --fs-lg: 1.45rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.8rem;
  --fs-3xl: 4.5rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  --container-width: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-base: 0.35s var(--ease);
  --transition-slow: 0.7s var(--ease);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

/* ----- Film Grain Overlay ----- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover { color: var(--color-accent); }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ----- Utility ----- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section { padding: 6rem 0; }

.section__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(184, 166, 128, 0.7);
  margin-bottom: 1.5rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #e8e6e1;
  margin-bottom: var(--space-lg);
}

/* ----- Section Background System ----- */
.section--bg {
  position: relative;
  overflow: hidden;
}

.section__bg {
  position: absolute;
  inset: -80px 0;
  z-index: 0;
  will-change: transform;
}

.section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.45) saturate(0.8);
  transition: filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      var(--color-bg) 0%,
      rgba(10, 10, 10, 0.7) 12%,
      rgba(10, 10, 10, 0.35) 35%,
      rgba(10, 10, 10, 0.25) 50%,
      rgba(10, 10, 10, 0.35) 65%,
      rgba(10, 10, 10, 0.7) 88%,
      var(--color-bg) 100%
    );
  pointer-events: none;
}

.section--bg > .container,
.section--bg > .about__inner,
.section--bg > div:not(.section__bg):not(.section__bg-overlay) {
  position: relative;
  z-index: 2;
}

/* Subtle vignette on bg sections */
.section--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(10, 10, 10, 0.5) 100%);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.9rem 2.2rem;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border: 1px solid var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-bg);
  box-shadow: 0 0 25px rgba(184, 166, 128, 0.25);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ----- Reveal Animation with Stagger ----- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--stagger, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--stagger, 0s);
}

.stagger-1 { --stagger: 0.15s; }
.stagger-2 { --stagger: 0.3s; }
.stagger-3 { --stagger: 0.45s; }
.stagger-4 { --stagger: 0.6s; }
.stagger-5 { --stagger: 0.7s; }
.stagger-6 { --stagger: 0.85s; }

/* ============================================================
   Scroll Progress Bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #b8a680, #a09478);
  z-index: 1001;
  width: 0%;
  transition: none;
  pointer-events: none;
}

/* ============================================================
   Custom Cursor — Portfolio
   ============================================================ */
.cursor-view {
  position: fixed;
  z-index: 9000;
  pointer-events: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.35s var(--ease-smooth), opacity 0.3s;
  opacity: 0;
}

.cursor-view.is-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: background-color var(--transition-base), padding var(--transition-base);
}

.nav--scrolled {
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(184, 196, 208, 0.05);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: font-size var(--transition-base);
}

.nav--scrolled .nav__logo {
  font-size: var(--fs-sm);
}

.nav__logo span { color: var(--color-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__links a {
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.nav__links a:hover { color: var(--color-text); }
.nav__links a:hover::after { width: 100%; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 24px;
  cursor: pointer;
  padding: 4px 0;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  transition: all var(--transition-base);
}

.nav__burger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__burger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__burger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ----- Mobile Menu ----- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  background-color: var(--color-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--color-text);
  transition: color var(--transition-base);
  letter-spacing: 0.03em;
}

.mobile-menu a:hover { color: var(--color-accent); }

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(184, 196, 208, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero__decoration svg {
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: var(--space-lg);
}

.hero__monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 60px;
  margin-bottom: var(--space-xl);
  color: var(--color-accent);
  filter: drop-shadow(0 0 24px rgba(184, 196, 208, 0.15));
  animation: monogram-in 1.2s var(--ease) both;
}

@keyframes monogram-in {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
    filter: drop-shadow(0 0 0 transparent);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 24px rgba(184, 196, 208, 0.15));
  }
}

.hero__monogram svg {
  width: 100%;
  height: 100%;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(220, 215, 205, 0.65);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Decorative SVG animation */
@keyframes rotate-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero__decoration .deco-spin {
  transform-origin: 1100px 200px;
  animation: rotate-slow 120s linear infinite;
}

/* ============================================================
   About Section
   ============================================================ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.about__accent-line {
  width: 48px;
  height: 1px;
  background-color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.about__text p {
  color: rgba(220, 215, 205, 0.7);
  margin-bottom: var(--space-md);
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.85;
  font-weight: 300;
}

.about__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__visual-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--color-border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about__visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__visual-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(184, 196, 208, 0.1);
  pointer-events: none;
  z-index: 1;
}

/* Double frame — offset shadow */
.about__visual-frame::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid rgba(184, 196, 208, 0.07);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   Services Section
   ============================================================ */
.services {
  position: relative;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid rgba(184, 196, 208, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(184, 166, 128, 0.03) 100%);
  pointer-events: none;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(184, 166, 128, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(184, 166, 128, 0.05);
}

/* Accent line slide-in from top on hover */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.service-card:hover::before {
  width: 100%;
}

/* Decorative large number behind text */
.service-card__number {
  position: absolute;
  top: -0.4rem;
  right: var(--space-lg);
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 300;
  color: var(--color-accent);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

.service-card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: calc(var(--fs-lg) + 2px);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.service-card__desc {
  font-size: 1.05rem;
  color: rgba(220, 215, 205, 0.7);
  line-height: 1.85;
  font-weight: 300;
}

/* ============================================================
   Portfolio Section
   ============================================================ */
.portfolio__subtitle {
  color: rgba(184, 196, 208, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 640px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

#portfolio .container {
  max-width: 1440px;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* --- Collage Grid (3 per row, 2 rows = 6 collages) --- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 100%;
}

/* --- Individual Collage Card --- */
.collage-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background-color: var(--color-bg-elevated);
  border: 1px solid rgba(184, 196, 208, 0.08);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Accent line bottom on hover */
.collage-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 4;
}

.collage-card:hover::after {
  transform: scaleX(1);
}

/* --- Mosaic grid inside collage --- */
.collage-card__mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 3px;
  width: 100%;
  height: 100%;
  transition: filter 0.5s var(--ease-smooth);
}

.collage-card:hover .collage-card__mosaic {
  filter: brightness(0.55);
}

.collage-card__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.collage-card:hover .collage-card__mosaic img {
  transform: scale(1.04);
}

/* Mosaic layout: 8 images in a 4x4 grid, some spanning 2 cells */
.collage-card__mosaic img:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.collage-card__mosaic img:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.collage-card__mosaic img:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.collage-card__mosaic img:nth-child(4) { grid-column: 3 / 5; grid-row: 2 / 3; }
.collage-card__mosaic img:nth-child(5) { grid-column: 1 / 2; grid-row: 3 / 4; }
.collage-card__mosaic img:nth-child(6) { grid-column: 2 / 4; grid-row: 3 / 5; }
.collage-card__mosaic img:nth-child(7) { grid-column: 4 / 5; grid-row: 3 / 4; }
.collage-card__mosaic img:nth-child(8) { grid-column: 1 / 2; grid-row: 4 / 5; }
/* If only 7 images, last cell auto-fills */
.collage-card__mosaic img:last-child:nth-child(8) { grid-column: 4 / 5; grid-row: 4 / 5; }

/* --- Overlay with category name --- */
.collage-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.7) 0%,
    rgba(10, 10, 10, 0.1) 40%,
    rgba(10, 10, 10, 0.1) 60%,
    rgba(10, 10, 10, 0.5) 100%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 3;
}

.collage-card:hover .collage-card__overlay {
  opacity: 1;
}

.collage-card__category {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.collage-card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--color-text);
}

.collage-card__year {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ============================================================
   Process Section
   ============================================================ */
.process {
  position: relative;
  overflow: hidden;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
  padding-top: var(--space-xl);
}

/* Horizontal timeline line */
.process__steps::before {
  content: "";
  position: absolute;
  top: calc(var(--space-xl) + 15px);
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: linear-gradient(90deg, rgba(184,166,128,0.1) 0%, rgba(184,166,128,0.3) 50%, rgba(184,166,128,0.1) 100%);
}

.process__step {
  text-align: center;
  position: relative;
}

/* Accent dot on timeline */
.process__step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  background: var(--color-bg);
  transform: translateX(-50%);
  z-index: 1;
}

.process__step-number {
  display: block;
  font-family: var(--font-sans);
  font-size: calc(var(--fs-xs) * 1.18);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  padding-top: var(--space-xl);
}

.process__step-title {
  font-family: var(--font-serif);
  font-size: calc(var(--fs-lg) + 3px);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.process__step-desc {
  font-size: 1.05rem;
  color: rgba(220, 215, 205, 0.7);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.85;
  font-weight: 300;
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact {
  text-align: center;
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(184, 196, 208, 0.03) 0%, transparent 65%);
  pointer-events: none;
}

.contact__title {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 400;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
  position: relative;
}

.contact__subtitle {
  font-size: 1.05rem;
  color: rgba(220, 215, 205, 0.7);
  font-weight: 300;
  line-height: 1.85;
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

.contact__email {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--color-accent);
  display: inline-block;
  margin-bottom: var(--space-lg);
  position: relative;
  letter-spacing: 0.02em;
}

.contact__email::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.contact__email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact__divider {
  width: 40px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto var(--space-lg);
}

.contact__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  position: relative;
}

.contact__socials a {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
  position: relative;
}

.contact__socials a:hover { color: var(--color-accent); }

.contact__social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.contact__social-link:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}
.contact__social-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: filter 0.3s, color 0.3s;
}
.contact__social-icon img,
img.contact__social-icon {
  filter: brightness(0) invert(0.7);
}
svg.contact__social-icon {
  color: rgba(184, 196, 208, 0.7);
}
.contact__social-link:hover img.contact__social-icon {
  filter: brightness(0) invert(1);
}
.contact__social-link:hover svg.contact__social-icon {
  color: #fff;
}

/* ============================================================
   Project Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: 90vw;
  max-width: 1400px;
  height: 85vh;
  max-height: 900px;
  overflow-y: auto;
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  padding: 3rem;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  transition: color var(--transition-base);
  cursor: pointer;
}

.modal__close:hover { color: var(--color-text); }

.modal__header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.modal__category {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.modal__title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 400;
}

.modal__year {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.modal__description {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.modal__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.modal__images img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal__images img:hover {
  transform: scale(1.02);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: var(--space-xl) 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(184, 166, 128, 0.08);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__links a {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  transition: color var(--transition-base);
}

.footer__links a:hover { color: var(--color-accent); }

.footer__legal-btn {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.footer__legal-btn:hover { color: var(--color-accent); }

/* ============================================================
   Legal Modals (Privacy & Terms)
   ============================================================ */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s;
}
.legal-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
}
.legal-modal__content {
  position: relative;
  background: #1a1a1e;
  border: 1px solid rgba(184, 196, 208, 0.1);
  border-radius: 8px;
  padding: 3rem;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.legal-modal[aria-hidden="false"] .legal-modal__content {
  transform: translateY(0);
}
.legal-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(184, 196, 208, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}
.legal-modal__close:hover {
  color: #fff;
}
.legal-modal__content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #e8e6e1;
}
.legal-modal__text {
  color: rgba(184, 196, 208, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}
.legal-modal__text h3 {
  color: #e8e6e1;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 500;
}
.legal-modal__text p {
  margin-bottom: 1rem;
}

/* ============================================================
   Responsive — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1200px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --fs-3xl: 3rem;
    --fs-2xl: 2.25rem;
    --fs-xl: 1.5rem;
  }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about__visual { order: -1; }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .process__steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .process__steps::before {
    left: 50%;
    top: 0;
    bottom: 0;
    right: auto;
    width: 1px;
    height: 100%;
  }

  .process__step::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .process__step-number {
    padding-top: var(--space-xl);
  }

  .section { padding: var(--space-3xl) 0; }

  .cursor-view { display: none; }

  .contact__title {
    font-size: var(--fs-2xl);
  }
}

/* ============================================================
   Responsive — Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --fs-3xl: 2.25rem;
    --fs-2xl: 1.75rem;
    --fs-xl: 1.25rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero__monogram {
    width: 72px;
    height: 44px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn { width: 100%; }

  .services__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .modal {
    width: 95%;
    height: auto;
    max-height: 90vh;
    padding: var(--space-lg);
  }

  .modal__images {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal__images img {
    height: auto;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .service-card__number {
    font-size: 3.5rem;
  }
}
