/* =============================================================
   Saba Ikhlaq — Portfolio
   Cool gray / typographic monochrome palette.
   ============================================================= */

:root {
  /* common (non-theme) */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Archivo", system-ui, sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", "Courier New", monospace;
  --tight: "Anton", "Barlow Condensed", "Arial Black", sans-serif;
  --techno: "Orbitron", "Audiowide", "Rajdhani", sans-serif;
  --strip: "Michroma", "Syncopate", "Rajdhani", sans-serif;

  --maxw: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── dark theme (default) ── */
[data-theme="dark"] {
  --paper:      #0D0D0D;
  --paper-2:    #1A1A1A;
  --ink:        #E8E8E8;
  --ink-soft:   #888888;
  --text:       #666666;
  --accent:     #91dced;
  --accent-dark:#7bbccf;
  --line:       #2A2A2A;
  --scanline:   rgba(255,255,255,0.08);
}

/* ── light theme ── */
[data-theme="light"] {
  --paper:      #F7F7F7;
  --paper-2:    #E6E6E6;
  --ink:        #282c32;
  --ink-soft:   #444444;
  --text:       #666666;
  --accent:     #333333;
  --accent-dark:#222222;
  --line:       #D4D4D4;
  --scanline:   rgba(0,0,0,0.06);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  transition: background 0.35s, color 0.35s;
}

::selection { background: var(--accent); color: var(--paper); }

/* ---- custom cursor ---- */
* { cursor: none !important; }
.cursor {
  position: fixed;
  width: 14px;
  height: 14px;
  background: #91dced;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
  translate: -50% -50%;
  transition: width 0.2s, height 0.2s, background 0.2s;
  will-change: translate;
}
.cursor.hover {
  background: #555;
}

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

.italic { font-style: italic; }

/* ---- grain overlay ---- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
[data-theme="dark"] .grain {
  mix-blend-mode: screen;
  opacity: 0.12;
}

/* ---- header ---- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--paper);
  transition: background 0.3s;
}
.site-head .nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: center;
}
.nav a {
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 2px;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav a:hover::after { width: 100%; }

/* ---- theme toggle ---- */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
  flex-shrink: 0;
}
.toggle-track {
  display: block;
  width: 38px;
  height: 20px;
  border-radius: 10px;
  background: var(--ink-soft);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform 0.3s var(--ease), background 0.3s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="light"] .toggle-thumb {
  transform: translateX(18px);
}
.toggle-icon {
  font-size: 0.6rem;
  line-height: 1;
  pointer-events: none;
  position: absolute;
}
[data-theme="dark"] .toggle-icon.sun { display: none; }
[data-theme="light"] .toggle-icon.moon { display: none; }
.toggle-icon.moon { color: #E8E8E8; }
.toggle-icon.sun  { color: #FFD700; }

/* ---- hero ---- */
.hero {
  height: 90vh;
  display: grid;
  place-items: center;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  place-items: center;
  background:
    repeating-linear-gradient(
      0deg,
      var(--scanline) 0px,
      var(--scanline) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(ellipse at 60% 40%, rgba(145,220,237,0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: staticGlitch 3s ease-in-out infinite;
}

@keyframes staticGlitch {
  0%, 100% { opacity: 0.35; transform: translateX(0) translateY(0); }
  10%  { opacity: 0.4;  transform: translateX(-0.5px); }
  20%  { opacity: 0.3;  transform: translateX(0); }
  35%  { opacity: 0.45; transform: translateX(0.3px); }
  50%  { opacity: 0.35; transform: translateY(-0.3px); }
  65%  { opacity: 0.25; transform: translateY(0); }
  80%  { opacity: 0.4;  transform: translateX(-0.4px); }
  92%  { opacity: 0.3;  transform: translateX(0); }
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 3;
}
.hero-sub-heading {
  font-family: var(--techno);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #91dced;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}
.hero-headings {
  transform: translateY(0%);
}
.hero-tagline {
  font-family: var(--sans);
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  color: var(--ink-soft);
  margin-top: 1.05rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

/* ---- hero pixel animation ---- */
.hero-pixels {
  position: absolute;
  inset: 0;
  clip-path: inset(0);
  pointer-events: none;
  z-index: 1;
}
.pixel {
  position: absolute;
  width: calc(var(--s) * 1px);
  height: calc(var(--s) * 1px);
  background: var(--c);
  opacity: 0;
  border-radius: 1px;
  box-shadow: 0 0 6px 1px rgba(145,220,237,0.15), 0 0 14px 3px rgba(145,220,237,0.06);
}
.pixel[data-dir="right"] {
  animation: driftRight var(--t) ease-in-out var(--d) infinite;
}
.pixel[data-dir="left"] {
  animation: driftLeft var(--t) ease-in-out var(--d) infinite;
}
.pixel[data-dir="down"] {
  animation: driftDown var(--t) ease-in-out var(--d) infinite;
}
.pixel[data-dir="up"] {
  animation: driftUp var(--t) ease-in-out var(--d) infinite;
}

/* ---- pixel string (individual blocks attached) ---- */
.pixel-string {
  position: absolute;
  display: flex;
  gap: 1px;
  opacity: 0;
}
.pixel-string[data-dir="down"],
.pixel-string[data-dir="up"] {
  flex-direction: column;
}
.pixel-string span {
  width: calc(var(--s) * 1px);
  height: calc(var(--s) * 1px);
  background: var(--c);
  flex-shrink: 0;
  border-radius: 1px;
  box-shadow: 0 0 5px 1px rgba(145,220,237,0.12);
}
.pixel-string[data-dir="right"] {
  animation: driftRight var(--t) ease-in-out var(--d) infinite;
}
.pixel-string[data-dir="left"] {
  animation: driftLeft var(--t) ease-in-out var(--d) infinite;
}
.pixel-string[data-dir="down"] {
  animation: driftDown var(--t) ease-in-out var(--d) infinite;
}
.pixel-string[data-dir="up"] {
  animation: driftUp var(--t) ease-in-out var(--d) infinite;
}

@keyframes driftRight {
  0%   { transform: translateX(-30px) translateY(0);    opacity: 0; }
  8%   { opacity: 0.5; }
  85%  { opacity: 0.25; }
  100% { transform: translateX(calc(100vw + 30px)) translateY(40px); opacity: 0; }
}
@keyframes driftLeft {
  0%   { transform: translateX(30px) translateY(0);     opacity: 0; }
  8%   { opacity: 0.5; }
  85%  { opacity: 0.25; }
  100% { transform: translateX(calc(-100vw - 30px)) translateY(40px); opacity: 0; }
}
@keyframes driftDown {
  0%   { transform: translateY(-30px) translateX(0);    opacity: 0; }
  8%   { opacity: 0.5; }
  85%  { opacity: 0.25; }
  100% { transform: translateY(calc(100vh + 30px)) translateX(30px); opacity: 0; }
}
@keyframes driftUp {
  0%   { transform: translateY(30px) translateX(0);     opacity: 0; }
  8%   { opacity: 0.5; }
  85%  { opacity: 0.25; }
  100% { transform: translateY(calc(-100vh - 30px)) translateX(30px); opacity: 0; }
}

.hero-email {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  transition: color 0.3s;
  display: block;
  text-align: center;
  margin-top: 2.5rem;
}
.hero-email:hover {
  color: var(--ink);
}

/* ---- hero main heading ---- */
.hero-main-heading {
  position: relative;
  text-align: center; 
  cursor: pointer;
  font-family: var(--techno);
  font-weight: 700;
  font-size: clamp(1.3rem, 4.5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--ink);
  user-select: none;
}
.heading-text {
  display: block;
  white-space: nowrap;
}
.hover-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* glitch out — text disappears with pixel-shift slices */
@keyframes glitchOut {
  0%   { clip-path: inset(0 0 0 0);   transform: translateX(0);  opacity: 1; text-shadow: none; }
  20%  { clip-path: inset(0 0 80% 0);  transform: translateX(-4px); text-shadow: 3px 0 #91dced, -2px 0 var(--ink-soft); }
  40%  { clip-path: inset(30% 0 50% 0); transform: translateX(5px); text-shadow: -4px 0 #91dced, 3px 0 var(--ink-soft); }
  60%  { clip-path: inset(0 0 50% 0);  transform: translateX(-3px); opacity: 0.7; text-shadow: 2px 0 #91dced, -3px 0 var(--ink-soft); }
  80%  { clip-path: inset(20% 0 40% 0); transform: translateX(4px); opacity: 0.3; text-shadow: -2px 0 #91dced; }
  100% { clip-path: inset(0 0 0 0);   transform: translateX(0);  opacity: 0; text-shadow: none; }
}
/* glitch in — text appears with pixel-shift slices */
@keyframes glitchIn {
  0%   { clip-path: inset(0 0 0 0);   transform: translateX(0);  opacity: 0; text-shadow: none; }
  20%  { clip-path: inset(20% 0 60% 0); transform: translateX(5px); opacity: 0.3; text-shadow: -3px 0 #91dced, 2px 0 var(--ink-soft); }
  40%  { clip-path: inset(0 0 70% 0);  transform: translateX(-4px); opacity: 0.6; text-shadow: 4px 0 #91dced, -3px 0 var(--ink-soft); }
  60%  { clip-path: inset(30% 0 30% 0); transform: translateX(3px); opacity: 0.8; text-shadow: -2px 0 #91dced, 3px 0 var(--ink-soft); }
  80%  { clip-path: inset(0 0 50% 0);  transform: translateX(-5px); opacity: 0.9; text-shadow: 3px 0 #91dced; }
  100% { clip-path: inset(0 0 0 0);   transform: translateX(0);  opacity: 1; text-shadow: none; }
}

.hero-main-heading.anim-hover .default-text { animation: glitchOut 0.3s ease forwards; }
.hero-main-heading.anim-hover .hover-text   { animation: glitchIn  0.3s ease forwards; }
.hero-main-heading.anim-leave .default-text { animation: glitchIn  0.3s ease forwards; }
.hero-main-heading.anim-leave .hover-text   { animation: glitchOut 0.3s ease forwards; }

/* ---- hero lede wrapper (below the full-screen hero) ---- */
.hero-lede-wrapper {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
}

/* ---- hero lede ---- */
.hero-lede {
  max-width: 48ch;
  margin: 0 auto;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-lede-wrapper .hero-email {
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex; align-items: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent-dark); color: var(--paper); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ---- marquee ---- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1rem 0;
  transform: translateY(0%);
}
.marquee-track {
  display: inline-flex;
  gap: 2rem;
  align-items: center;
  white-space: nowrap;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  animation: scroll 28s linear infinite;
}
.marquee-track .dot { color: #91dced; font-style: normal; text-shadow: 0 0 6px rgba(145, 220, 237, 0.4); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

/* ---- work ---- */
.work {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 5vw, 4rem);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}
.section-title {
  font-family: var(--techno);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-meta { font-size: 0.9rem; color: var(--ink-soft); }

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

/* live Behance embed cards */
.embed-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* reveal */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}
.embed-card.in { opacity: 1; transform: translateY(0); }

.embed-frame-link {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 1.2rem auto;
  text-decoration: none;
}

.embed-frame {
  position: relative;
  aspect-ratio: 404 / 316;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -28px rgba(26,26,26,0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.embed-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.embed-card:hover .embed-frame {
  transform: translateY(-5px);
  box-shadow: 0 28px 55px -26px rgba(26,26,26,0.5);
}

.embed-cap {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: nowrap;
  text-align: left;
  width: 100%;
  max-width: 380px;
  margin: 0.8rem auto 0 auto;
}
.embed-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: #91dced;
  letter-spacing: 0.05em;
}
.embed-title {
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  flex: 0 1 auto;
}
.embed-link {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.3s;
}
.embed-link:hover { color: var(--accent); }

/* ---- graphics ---- */
.graphics {
  padding: clamp(4rem, 10vh, 7rem) 0;
  overflow: hidden;
}
.graphics-sliders {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.graphics-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}
.graphics-track.top {
  animation: scroll-right 90s linear infinite;
}
.graphics-track.bottom {
  animation: scroll-left 90s linear infinite;
}
.graphic-thumb {
  display: block;
  height: 320px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  object-fit: cover;
}
.graphic-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px -16px rgba(0,0,0,0.4);
}
.graphics-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}
.graphics-more {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: #91dced;
  border: 1.5px solid #91dced;
  border-radius: 100px;
  padding: 0.7rem 2.2rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.graphics-more:hover {
  background: #91dced;
  color: var(--paper);
}

@keyframes scroll-right {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scroll-left {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ---- lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* ---- graphic-posts page ---- */
.graphic-posts-page {
  padding: clamp(4rem, 10vh, 7rem) 0;
  overflow: hidden;
}
.gp-grid {
  column-width: 300px;
  column-gap: 12px;
}
.gp-img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.gp-img:hover {
  transform: scale(1.03);
  z-index: 1;
}

/* ---- about ---- */
.about {
  background: var(--paper);
  color: var(--ink);
}
.about-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 5vw, 4rem);
}
.about-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.about-body {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  max-width: 55ch;
  text-align: center;
  margin: 0 auto;
}
.about-skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  justify-content: center;
}
.about-skills li {
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tools-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  justify-content: center;
}
.tools-icon {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  clip-path: inset(0 round 8px);
}



/* canva icon */
.tools-icon:nth-child(8) {
  transform: scale(1.25);
}



/*after effects */
.tools-icon:nth-child(6) {
  transform: scale(1.25);
  /* margin: -7px; */
}

/* photoshop icon */
.tools-icon:nth-child(5) {
  transform: scale(1.28);
  /* margin: -7px; */
}

/* illustrator icon */
.tools-icon:nth-child(4) {
  transform: scale(1.1);
  /* margin: -7px; */
}

/* webflow icon */
.tools-icon:nth-child(3) {
  transform: scale(1.18);
  border-radius: 18px;
  clip-path: inset(0 round 18px);
}

/* figma icon */
.tools-icon:nth-child(1) {
  transform: scale(1.1);
  /* margin: -7px; */
}

/* framer icon */
.tools-icon:nth-child(2) {
  transform: scale(1.25);
  /* margin: -7px; */
}

/* procreate icon */
.tools-icon:nth-child(9) {
  transform: scale(-0.95);
  /* margin: -7px; */
}

/* ---- project pages ---- */
.project-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem clamp(1.25rem, 5vw, 4rem) 3rem;
}
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  transition: color 0.3s;
}
.project-back:hover { color: var(--ink); }
.project-back .arrow { display: inline-block; transition: transform 0.3s; }
.project-back:hover .arrow { transform: translateX(-4px); }
.project-head { margin-bottom: 3rem; }
.project-head .section-title { text-align: left; border-bottom: none; padding-bottom: 0; margin-bottom: 0.75rem; }
.project-head .project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.project-head .project-tags span {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}
.project-description {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 65ch;
  margin-bottom: 3rem;
}
.project-section-title {
  font-family: var(--techno);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
}
.project-images { display: flex; flex-direction: column; gap: 1.5rem; }
.project-images img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
.project-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}
.project-video { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.project-video iframe { width: 100%; height: 550px; display: block; }
@media (max-width: 680px) { .project-video iframe { height: 300px; } }
.figma-embed-wrap { max-width: 1100px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.figma-embed-wrap iframe { width: 100%; display: block; border: none; min-height: 750px; }
@media (max-width: 680px) { .project-page { padding-top: 5rem; } .figma-embed-wrap iframe { min-height: 450px; } }

/* ---- contact ---- */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  padding: clamp(5rem, 14vh, 10rem) clamp(1.25rem, 5vw, 4rem);
}
.contact-eyebrow {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.contact-title {
  font-family: var(--techno);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.contact-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
  font-size: 1.1rem;
}
.contact-links a {
  position: relative;
  transition: color 0.3s;
}
.contact-links a:hover { color: var(--accent); }

/* ---- footer ---- */
.site-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---- reveal (hero) ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 110ms);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- responsive ---- */
@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav { gap: 1.1rem; }
  .work-grid { grid-template-columns: 1fr; }
}

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