/* ============================================================
   DESIGN SYSTEM — Unique Editorial Dark Portfolio
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
  --ink:       #0a0a0a;
  --ink-soft:  #141414;
  --paper:     #f2ede8;
  --paper-dim: #e5dfd8;
  --accent:    #c8ff57;      /* Acid lime — distinctive, not generic */
  --accent-2:  #ff5733;      /* Electric vermillion for contrast moments */
  --text:      #f2ede8;
  --text-muted:#7a7a7a;
  --text-dim:  #3a3a3a;
  --line:      rgba(242,237,232,0.08);

  --f-display: 'Syne', sans-serif;
  --f-body:    'DM Sans', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);

  --nav-h: 76px;
}

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

html {
  font-size: clamp(15px, 1vw, 17px);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

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

/* Custom scrollbar */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: var(--ink); }
::-webkit-scrollbar-thumb  { background: var(--text-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   NOISE CANVAS OVERLAY
   ============================================================ */
.noise-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* Ambient Glow */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,255,87,0.065) 0%, rgba(200,255,87,0) 70%);
  border-radius: 50%;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.ambient-glow.visible {
  opacity: 1;
}

/* Scramble Text Character */
.scramble-char {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(200,255,87,0.4);
  font-family: var(--f-display);
  font-weight: 800;
}

/* ============================================================
   CUSTOM CURSOR (desktop only)
   ============================================================ */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, .magnetic { cursor: none; }
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: transform 0.15s var(--ease-out), opacity 0.3s;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: transform 0.05s;
  opacity: 0;
}

.cursor.visible, .cursor-dot.visible { opacity: 1; }
.cursor.clicked { transform: translate(-50%, -50%) scale(0.6); }
.cursor.hovering { transform: translate(-50%, -50%) scale(2.5); border-color: rgba(200,255,87,0.4); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.logo-dot { color: var(--accent); font-size: 0.75rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.nav-link span { position: relative; z-index: 1; }

.nav-link:hover {
  color: var(--ink);
  background: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.availability-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(200,255,87,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(200,255,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,255,87,0); }
}

/* Hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  transform-origin: center;
}
.menu-btn.active span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--ink-soft);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-nav { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.drawer-link {
  font-family: var(--f-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.drawer-link:hover { color: var(--accent); }
.drawer-foot { font-size: 0.8rem; color: var(--text-dim); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Abstract Ambient Backdrop Graphic */
.hero-bg-graphic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75vw;
  max-width: 1000px;
  aspect-ratio: 16/9;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  filter: blur(50px) brightness(1.2);
  mix-blend-mode: screen;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
}

/* Scrolling marquee at top */
.hero-marquee-row {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  margin-top: 1rem;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  animation: marquee-scroll 25s linear infinite;
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.marquee-star { color: var(--accent); font-size: 0.6rem; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  padding: 4rem 2.5rem 3rem;
  max-width: 1440px;
  margin: auto auto 0 auto;
  width: 100%;
  align-items: flex-end;
}

.hero-index {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-left {
  min-width: 0;
}

.hero-name-block {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
}

.hero-name-line {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 5.8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  display: block;
}
.hero-name-line.italic {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2.5rem;
  padding-bottom: 0.25rem;
  min-width: 0;
}

.hero-tagline p {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 440px;
}
.hero-tagline em { font-style: italic; color: var(--text); }

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.stat-num {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-top: 0.4rem;
  line-height: 1.4;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-main {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.75rem;
  border-radius: 50px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.cta-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(200,255,87,0.3);
}

.cta-ghost {
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--text-dim);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.cta-ghost:hover { color: var(--text); border-color: var(--text); }

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2.5rem;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-dim);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { width: 40px; }
  50%       { width: 70px; }
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2.5rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-label span:first-child { color: var(--accent); }

/* ============================================================
   SELECTED WORK
   ============================================================ */
.section-work {
  padding-bottom: 8rem;
  border-bottom: 1px solid var(--line);
}

/* Work Filters */
.work-filters {
  display: flex;
  gap: 1rem;
  padding: 3rem 2.5rem 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--f-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.35rem;
  border-radius: 50px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.work-list {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Hidden Project Expand Styles */
.work-item.hidden-project {
  display: none;
  opacity: 0;
  transform: translateY(24px);
}

.work-item.hidden-project.visible-project {
  display: grid;
  animation: fadeSlideUpProject 0.6s var(--ease-out) forwards;
}

@keyframes fadeSlideUpProject {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Work More Row */
.work-more-row {
  display: flex;
  justify-content: center;
  padding: 4rem 2.5rem 0;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.work-more-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.work-more-btn:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.work-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 2.5rem;
  transition: background 0.3s;
}

.work-item:hover { background: var(--ink-soft); }

.work-item-meta {
  padding: 3.5rem 2rem 3.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-right: 1px solid var(--line);
}

.work-num {
  font-family: var(--f-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: -0.04em;
  line-height: 1;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.work-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
}

.work-year {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.work-item-content {
  padding: 3.5rem 0 3.5rem 3.5rem;
}

.work-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  overflow: hidden;
}

.work-title-inner,
.work-title-hover {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: transform 0.5s var(--ease-out);
}

.work-title-inner  { color: var(--text); }
.work-title-hover  {
  position: absolute;
  inset: 0;
  color: var(--accent);
  transform: translateY(105%);
}

.work-item:hover .work-title-inner  { transform: translateY(-105%); }
.work-item:hover .work-title-hover  { transform: translateY(0); }

.work-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.work-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16/8;
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.work-item:hover .work-img { transform: scale(1.04); }

.work-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.55);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.work-item:hover .work-img-overlay { opacity: 1; }

.work-visit {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--accent);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  transition: transform 0.3s var(--ease-out);
}
.work-visit:hover { transform: translateY(-2px); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.section-about {
  padding-bottom: 8rem;
  border-bottom: 1px solid var(--line);
}

.about-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2.5rem;
}

.about-visual {
  padding: 4rem 4rem 4rem 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-photo-frame {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/5;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.5s, transform 0.6s var(--ease-out);
}
.about-photo-frame:hover .about-photo {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.about-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  width: fit-content;
}

.about-content {
  padding: 4rem 0 4rem 4rem;
}

.about-heading {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--text);
}
.about-heading em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.about-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 580px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: background 0.2s;
}
.timeline-entry:hover { background: var(--ink-soft); padding-left: 0.5rem; transition: padding 0.3s var(--ease-out), background 0.3s; }

.tl-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  font-family: var(--f-display);
}

.tl-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tl-info strong { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.tl-info span   { font-size: 0.8rem; color: var(--text-dim); }

/* ============================================================
   STACK SECTION
   ============================================================ */
.section-stack {
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.stack-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 5rem 2.5rem;
}

.stack-heading {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--text);
}
.stack-heading em {
  font-style: italic;
  color: var(--accent);
}

.stack-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-left: 4rem;
  border-left: 1px solid var(--line);
}

.stack-group h3 {
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.stack-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stack-group li {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s, padding-left 0.3s var(--ease-out);
}
.stack-group li:hover { color: var(--text); padding-left: 0.5rem; }
.stack-group li::before { content: '—  '; color: var(--text-dim); }

/* Stack Ticker */
.stack-ticker {
  border-top: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 1rem 0;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  animation: marquee-scroll 30s linear infinite reverse;
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ticker-track span:nth-child(even) { color: var(--accent); font-size: 0.5rem; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.section-contact {
  padding-bottom: 8rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2.5rem;
}

.contact-headline-block {
  padding: 5rem 4rem 5rem 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  justify-content: flex-start;
}

.contact-heading {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.contact-heading em { font-style: italic; color: var(--accent); }

.contact-meta { display: flex; flex-direction: column; gap: 1rem; }
.contact-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-meta-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.contact-meta-value { font-size: 0.92rem; color: var(--text); font-weight: 500; }

.contact-socials {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--text-dim);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); }

/* Contact Form */
.contact-form {
  padding: 5rem 0 5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dim);
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--accent);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  border: 1px solid var(--line);
  background: none;
  color: var(--text);
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1rem 2rem;
  border-radius: 50px;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out), border-color 0.3s;
  cursor: pointer;
}
.form-submit:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.form-success {
  display: none;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(200,255,87,0.25);
  background: rgba(200,255,87,0.05);
  animation: fadeSlideUp 0.5s var(--ease-out) forwards;
}
.form-success.visible { display: flex; }
.success-icon { font-size: 1.5rem; color: var(--accent); }
.form-success strong { display: block; color: var(--text); font-family: var(--f-display); font-size: 0.95rem; }
.form-success p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 800;
}
.footer-logo span { color: var(--accent); }

.footer-inner p { font-size: 0.78rem; color: var(--text-dim); }
.footer-copy    { font-size: 0.72rem; color: var(--text-dim); }

/* ============================================================
   SCROLL REVEAL UTILITY
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.active {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* —— Laptop / Small Desktop (≤1400px) —— */
@media (max-width: 1400px) {
  .hero-body { padding: 3rem 2rem 2.5rem; }
  .work-item { grid-template-columns: 220px 1fr; }
  .work-item-content { padding: 3rem 0 3rem 2.5rem; }
  .about-layout { grid-template-columns: 340px 1fr; }
  .about-visual { padding: 3rem 3rem 3rem 0; }
  .about-content { padding: 3rem 0 3rem 3rem; }
  .contact-layout { grid-template-columns: 380px 1fr; }
  .contact-headline-block { padding: 4rem 3rem 4rem 0; }
  .contact-form { padding: 4rem 0 4rem 3rem; }
  .stack-layout { padding: 4rem 2rem; }
  .stack-groups { padding-left: 3rem; gap: 2rem; }
}

/* —— Tablet Landscape / Narrow Laptop (≤1100px) —— */
@media (max-width: 1100px) {
  .hero-name-line { font-size: clamp(3.5rem, 7vw, 5.5rem); }
  .hero-body { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 2rem 2.5rem; }
  .hero-right { max-width: 600px; }

  .work-item { grid-template-columns: 1fr; padding: 0 2rem; }
  .work-item-meta { border-right: none; border-bottom: 1px solid var(--line); padding: 2.5rem 0 1.5rem; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
  .work-item-content { padding: 2rem 0 3rem; }
  .work-num { font-size: 2.5rem; }

  .about-layout { grid-template-columns: 1fr; padding: 0 2rem; }
  .about-visual { border-right: none; border-bottom: 1px solid var(--line); padding: 3rem 0; }
  .about-photo-frame { max-width: 300px; }
  .about-content { padding: 3rem 0; }

  .stack-layout { grid-template-columns: 1fr; padding: 4rem 2rem; }
  .stack-groups { padding-left: 0; border-left: none; padding-top: 3rem; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

  .contact-layout { grid-template-columns: 1fr; padding: 0 2rem; }
  .contact-headline-block { border-right: none; border-bottom: 1px solid var(--line); padding: 3rem 0; }
  .contact-form { padding: 3rem 0; }

  .section-label { padding: 1.25rem 2rem; }
  .hero-scroll-hint { padding: 1.25rem 2rem; }
}

/* —— Tablet Portrait / Large Phone (≤768px) —— */
@media (max-width: 768px) {
  .hero-name-line { font-size: clamp(3rem, 12vw, 5rem); }
  .main-nav { display: none; }
  .availability-badge { display: none; }
  .menu-btn { display: flex; }

  .hero-body { padding: 2rem 1.5rem; gap: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .hero-cta-row { flex-wrap: wrap; }

  .work-item { padding: 0 1.5rem; }
  .work-item-meta { padding: 2rem 0 1rem; }
  .work-item-content { padding: 1.5rem 0 2.5rem; }
  .work-num { font-size: 2rem; }
  .work-title-inner, .work-title-hover { font-size: clamp(1.8rem, 6vw, 3rem); }

  .about-visual { align-items: center; text-align: center; }
  .about-photo-frame { max-width: 100%; width: 320px; }
  .timeline-entry { grid-template-columns: 1fr; gap: 0.5rem; align-items: flex-start; }

  .stack-groups { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .header-inner { padding: 0 1.5rem; }
  .about-layout, .contact-layout, .stack-layout { padding: 0 1.5rem; }
  .section-label { padding: 1.25rem 1.5rem; }
  .hero-scroll-hint { padding: 1.25rem 1.5rem; }

  .about-heading { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .contact-heading { font-size: clamp(1.8rem, 5.5vw, 2.4rem); }
  .stack-heading { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  .contact-socials { flex-wrap: wrap; gap: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; gap: 1.25rem; }
}

/* —— Phone (≤480px) —— */
@media (max-width: 480px) {
  .hero-name-line { font-size: clamp(2.5rem, 14vw, 4rem); }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: 100%; }
  .stat-item { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .stat-label { padding-top: 0; }
  
  .hero-cta-row { flex-direction: column; align-items: stretch; width: 100%; gap: 1rem; }
  .cta-main { justify-content: center; width: 100%; }
  .cta-ghost { text-align: center; width: fit-content; margin: 0 auto; }

  .work-img-wrapper { aspect-ratio: 16/10; }

  .stack-groups { grid-template-columns: 1fr; }
  .hero-body { padding: 1.5rem 1rem; }
  .header-inner { padding: 0 1rem; }
  .work-item { padding: 0 1rem; }
  .about-layout, .contact-layout, .stack-layout { padding: 0 1rem; }
  .section-label { padding: 1.25rem 2rem; }
  .hero-scroll-hint { padding: 1.25rem 2rem; }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  display: flex;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 2px;
  gap: 0;
  z-index: 10;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 50px;
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: var(--ink);
  background: var(--accent);
}

@media (max-width: 900px) {
  .availability-badge { display: none; }
}

/* ============================================================
   ARABIC RTL STYLING (dir="rtl")
   ============================================================ */
[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .hero-body {
  align-items: flex-end;
}

[dir="rtl"] .hero-scroll-hint {
  left: auto;
  right: 2.5rem;
}

[dir="rtl"] .site-logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .site-header .header-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .main-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-right {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-stats {
  flex-direction: row-reverse;
}

[dir="rtl"] .stat-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .stat-label {
  padding-top: 0.4rem;
  text-align: right;
}

[dir="rtl"] .hero-cta-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .cta-main svg {
  transform: scaleX(-1);
  margin-right: 0.75rem;
  margin-left: 0;
}

[dir="rtl"] .section-label {
  flex-direction: row-reverse;
}

[dir="rtl"] .work-filters {
  flex-direction: row-reverse;
}

/* Beautiful Native Mirrored Layouts (No Hacky Orders/Swaps) */
[dir="rtl"] .work-item-meta {
  border-right: none;
  border-left: 1px solid var(--line);
  padding: 3.5rem 0 3.5rem 2rem;
}

[dir="rtl"] .work-item-content {
  padding: 3.5rem 3.5rem 3.5rem 0;
}

[dir="rtl"] .work-title-hover {
  /* Remove scaleX(-1) which mirrored Arabic letters backwards */
  transform: translateY(105%);
}

[dir="rtl"] .about-visual {
  border-right: none;
  border-left: 1px solid var(--line);
  padding: 4rem 0 4rem 4rem;
}

[dir="rtl"] .about-content {
  padding: 4rem 4rem 4rem 0;
}

[dir="rtl"] .timeline-entry:hover {
  padding-left: 0;
  padding-right: 0.5rem;
}

[dir="rtl"] .stack-groups {
  border-left: none;
  border-right: 1px solid var(--line);
  padding-left: 0;
  padding-right: 4rem;
}

[dir="rtl"] .contact-headline-block {
  border-right: none;
  border-left: 1px solid var(--line);
  padding: 5rem 0 5rem 4rem;
}

[dir="rtl"] .contact-form {
  padding: 5rem 4rem 5rem 0;
}

[dir="rtl"] .form-submit .submit-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .footer-inner {
  flex-direction: row-reverse;
}

/* RTL Responsive Overrides */
@media (max-width: 1400px) {
  [dir="rtl"] .work-item-content {
    padding: 3rem 2.5rem 3rem 0;
  }
  [dir="rtl"] .about-visual {
    padding: 3rem 0 3rem 3rem;
  }
  [dir="rtl"] .about-content {
    padding: 3rem 3rem 3rem 0;
  }
  [dir="rtl"] .stack-groups {
    padding-left: 0;
    padding-right: 3rem;
  }
  [dir="rtl"] .contact-headline-block {
    padding: 4rem 0 4rem 3rem;
  }
  [dir="rtl"] .contact-form {
    padding: 4rem 3rem 4rem 0;
  }
}

@media (max-width: 1100px) {
  [dir="rtl"] .work-item-meta {
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding: 2.5rem 0 1.5rem;
  }
  [dir="rtl"] .work-item-content {
    padding: 2rem 0 3rem;
  }
  [dir="rtl"] .about-visual {
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding: 3rem 0;
  }
  [dir="rtl"] .about-content {
    padding: 3rem 0;
  }
  [dir="rtl"] .stack-groups {
    border-right: none;
    padding-right: 0;
    padding-top: 3rem;
  }
  [dir="rtl"] .contact-headline-block {
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding: 3rem 0;
  }
  [dir="rtl"] .contact-form {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  [dir="rtl"] .hero-cta-row {
    flex-direction: column;
  }
  [dir="rtl"] .stat-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   hCAPTCHA STYLING
   ============================================================ */
.h-captcha-container {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.h-captcha-container.error {
  animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-radius: 4px;
}

[dir="rtl"] .h-captcha-container {
  justify-content: flex-start;
}

@media (max-width: 480px) {
  .h-captcha-container {
    justify-content: center;
  }
}


