/* ============================================================
   Bo Antonis — Architecture Portfolio
   Fonts: Cormorant Garamond (display) + Outfit (UI)
   Palette: warm paper · ink · navy blue
   ============================================================ */

:root {
  --ink:           #1a1814;
  --ink-mid:       #4a4742;
  --ink-soft:      #8a8580;
  --ink-ghost:     #c8c4be;
  --paper:         #f7f5f1;
  --paper-warm:    #edeae4;
  --accent-rule:   #d4d0ca;

  --navy:          #1b2f4e;
  --navy-deep:     #111e33;
  --navy-mid:      #2a4a78;
  --navy-light:    #4a72a8;
  --navy-pale:     #dce6f2;
  --navy-ghost:    #eef2f8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Outfit', sans-serif;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   0.4s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* Subtle grain */
body::before {
  content:'';
  position:fixed;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events:none;
  z-index:9998;
  opacity:0.4;
}

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


/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--navy);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.05s linear;
  mix-blend-mode: multiply;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  opacity: 0.5;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cursor-ring.grow {
  width: 60px; height: 60px;
  opacity: 0.9;
  border-color: var(--navy-mid);
  background: rgba(74, 114, 168, 0.06);
}


/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--navy), var(--navy-light));
  z-index: 10001;
  transition: width 0.1s linear;
}


/* ============================================================
   SECTION LABELS & HEADINGS
   ============================================================ */
.section-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-bottom: 10px;
}

.section-header h2,
.section-header .draw-underline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
  position: relative;
  display: inline-block;
}

.draw-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--navy);
  transition: width 0.8s var(--ease) 0.3s;
  border-radius: 1px;
}

.reveal.visible .draw-underline::after,
.section-header.centered.visible .draw-underline::after {
  width: 100%;
}

.draw-underline.light { color: white; }
.draw-underline.light::after { background: var(--navy-light); }

.section-header.centered { text-align: center; }


/* ============================================================
   MENU OVERLAY
   ============================================================ */
.menu-overlay {
  position: fixed; inset: 0;
  background: var(--navy-deep);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.menu-overlay.open { opacity: 1; pointer-events: all; }

.menu-close-hint {
  position: absolute;
  top: 30px; right: 52px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
}

.menu-close-hint kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}

.menu-overlay-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%; max-width: 1100px;
  margin: auto;
  padding: 120px 52px 80px;
  gap: 80px;
  align-items: start;
  height: 100%;
  align-content: center;
}

.menu-overlay-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 40px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu-overlay-nav { display: flex; flex-direction: column; }

.menu-overlay-link {
  display: flex; align-items: baseline; gap: 20px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.15;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition), padding-left var(--transition);
}

.menu-overlay-link span {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
  min-width: 28px;
  transition: color var(--transition);
}

.menu-overlay-link:hover { color: white; padding-left: 10px; }
.menu-overlay-link:hover span { color: var(--navy-light); }

.menu-overlay-right { padding-top: 4px; }

.menu-info-block {
  margin-bottom: 32px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.menu-info-block:last-child { border-bottom: none; }

.menu-info-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 400;
  color: white; margin-bottom: 6px;
}

.menu-info-label {
  font-family: var(--font-ui);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy-light); margin-bottom: 8px;
}

.menu-info-sub {
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.4); line-height: 1.7;
}

.menu-info-email {
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 300;
  color: var(--navy-light);
  transition: color var(--transition);
}

.menu-info-email:hover { color: white; }


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 48px;
  z-index: 1000;
}

.navbar::after {
  content:'';
  position:absolute; inset:0;
  background:rgba(247,245,241,0.92);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--accent-rule);
  z-index:-1;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--ink);
}

.nav-links { display: flex; gap: 36px; align-items: center; }

.nav-links a {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mid); position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content:'';
  position:absolute; left:0; bottom:-3px;
  width:0; height:1px;
  background:var(--navy);
  transition:width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a.active::before {
  content:'';
  position:absolute; bottom:-3px; left:50%;
  transform:translateX(-50%);
  width:4px; height:4px;
  background:var(--navy);
  border-radius:50%;
}

.menu-btn {
  display:flex; align-items:center; gap:10px;
  background:none; border:1px solid var(--accent-rule);
  padding:7px 14px 7px 16px; border-radius:2px;
  transition:border-color var(--transition), background var(--transition);
}

.menu-btn:hover { border-color:var(--navy); background:var(--navy-ghost); }

.menu-btn-label {
  font-family:var(--font-ui); font-size:10px; font-weight:500;
  letter-spacing:0.2em; text-transform:uppercase;
  color:var(--ink-mid); transition:color var(--transition); min-width:32px;
}

.menu-btn:hover .menu-btn-label { color:var(--navy); }

.menu-btn-icon { display:flex; flex-direction:column; gap:5px; width:18px; }

.menu-btn-icon span {
  display:block; height:1px; background:var(--ink-mid);
  transition:transform var(--transition), background var(--transition);
  transform-origin:center;
}

.menu-btn:hover .menu-btn-icon span { background:var(--navy); }

.menu-btn-icon.open span:first-child { transform:translateY(3px) rotate(45deg); }
.menu-btn-icon.open span:last-child  { transform:translateY(-3px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  height: 100vh; position: relative;
  overflow: hidden; background: var(--navy-deep);
}

.slides-wrapper { position: absolute; inset: 0; will-change: transform; }

.slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03);
  transition: opacity 1.4s var(--ease), transform 6s var(--ease);
}

.slide.active { opacity: 1; transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(17,30,51,0.35) 0%,
    rgba(17,30,51,0.05) 45%,
    rgba(17,30,51,0.65) 100%
  );
}

.hero-grid-lines {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  animation: gridFadeIn 2s ease-out forwards;
  opacity: 0;
}

@keyframes gridFadeIn { to { opacity: 1; } }

.hgl { position: absolute; background: rgba(74,114,168,0.12); }
.hgl-v { width: 1px; top: 0; bottom: 0; }
.hgl-h { height: 1px; left: 0; right: 0; }

.hero-content {
  position: absolute; bottom: 80px; left: 52px;
  z-index: 3; color: white;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-ui); font-size: 10px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--navy-light); margin-bottom: 10px;
  animation: fadeSlideUp 1s ease-out 0.3s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 130px);
  font-weight: 300; line-height: 0.9;
  letter-spacing: -0.02em; color: white;
}

.hero-word { opacity: 0; display: inline-block; }

.hero-letter {
  display: inline-block;
  animation: letterDrop 0.6s var(--ease) both;
}

@keyframes letterDrop {
  from { opacity: 0; transform: translateY(-30px) rotate(-3deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.hero-sub {
  margin-top: 18px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  animation: fadeSlideUp 1s ease-out 1.2s both;
}

.hero-ticker {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px;
  animation: fadeSlideUp 1s ease-out 1.5s both;
}

.ticker-dot {
  width: 7px; height: 7px;
  background: var(--navy-light);
  border-radius: 50%;
  animation: tickerPulse 1.6s ease-in-out infinite;
}

@keyframes tickerPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,114,168,0.6); }
  50%      { box-shadow: 0 0 0 5px rgba(74,114,168,0); }
}

.ticker-text {
  font-family: var(--font-ui); font-size: 11px; font-weight: 300;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-index {
  position: absolute; bottom: 44px; right: 52px;
  z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}

.slide-num {
  font-family: var(--font-ui); font-size: 10px; font-weight: 300;
  letter-spacing: 0.2em; color: rgba(255,255,255,0.4);
}

.slide-dots { display: flex; gap: 6px; }

.dot {
  width: 20px; height: 2px;
  background: rgba(255,255,255,0.25);
  border: none;
  transition: background var(--transition), width var(--transition);
  padding: 0; border-radius: 1px;
}

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

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase;
  animation: fadeSlideUp 1s ease-out 2s both;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(74,114,168,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.15); }
}

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


/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee-strip {
  background: var(--navy);
  overflow: hidden;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.marquee-track {
  display: flex; gap: 0; align-items: center;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-track span {
  font-family: var(--font-ui); font-size: 11px; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap; padding: 0 20px;
}

.marquee-track .sep { color: var(--navy-light); font-size: 8px; padding: 0 4px; }

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


/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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


/* ============================================================
   PROJECTS
   ============================================================ */
.section-projects { padding: 120px 52px; background: var(--paper); }
.section-projects .section-header { margin-bottom: 60px; }

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

.project-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: var(--navy-deep);
}

.project-item:nth-child(1) { grid-column: 1 / 3; aspect-ratio: 16/9; }
.project-item:nth-child(5) { grid-column: 2 / 4; aspect-ratio: 16/9; }

.project-item a { display: block; width: 100%; height: 100%; }

.project-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: grayscale(20%) brightness(0.95);
}

.project-item:hover img {
  transform: scale(1.07);
  filter: grayscale(0%) brightness(1.05);
}

.overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,30,51,0.88) 0%, rgba(17,30,51,0.2) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px 28px 24px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

/* Always show overlay on touch devices */
@media (hover: none) {
  .overlay { opacity: 1; }
  .proj-title, .proj-desc, .proj-arrow { transform: translateY(0) !important; }
}

.project-item:hover .overlay { opacity: 1; }

.proj-num {
  font-family: var(--font-ui); font-size: 10px;
  letter-spacing: 0.2em; color: var(--navy-light); margin-bottom: 6px;
}

.proj-title {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 400; color: white; line-height: 1.1;
  font-style: italic;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease) 0.05s;
}

.project-item:hover .proj-title { transform: translateY(0); }

.proj-desc {
  font-family: var(--font-ui); font-size: 11px;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.5);
  margin-top: 5px;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease) 0.1s;
}

.project-item:hover .proj-desc { transform: translateY(0); }

.proj-arrow {
  font-family: var(--font-ui); font-size: 11px;
  letter-spacing: 0.12em; color: var(--navy-light);
  margin-top: 14px;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease) 0.15s;
}

.project-item:hover .proj-arrow { transform: translateY(0); }


/* ============================================================
   ABOUT
   ============================================================ */
.section-about {
  padding: 120px 52px;
  background: var(--paper-warm);
  border-top: 1px solid var(--accent-rule);
  border-bottom: 1px solid var(--accent-rule);
}

.about-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 280px 1fr;
  gap: 80px; align-items: start;
}

.about-left .section-header { margin-bottom: 28px; }

.about-photo-wrap { position: relative; display: inline-block; }

.about-photo {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: center top;
  filter: grayscale(15%);
  transition: filter var(--transition);
}

.about-photo:hover { filter: grayscale(0%); }

.about-photo-accent {
  position: absolute;
  top: 12px; left: -12px;
  width: 100%; height: 100%;
  background: var(--navy-pale);
  z-index: -1;
  border: 1px solid var(--navy-pale);
}

.about-rule { width: 40px; height: 2px; background: var(--navy); margin: 20px 0 14px; }

.about-tagline {
  font-family: var(--font-display); font-size: 14px;
  font-style: italic; color: var(--ink-soft); line-height: 1.5;
}

.about-bio {
  font-family: var(--font-ui); font-size: 15px; font-weight: 300;
  color: var(--ink-mid); line-height: 1.85;
  max-width: 560px; margin-bottom: 40px;
}

.stat-row {
  display: flex; align-items: center; gap: 0;
  background: var(--navy); border-radius: 2px;
  padding: 24px 32px; margin-bottom: 40px;
}

.stat-item { flex: 1; text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display); font-size: 48px; font-weight: 300;
  color: white; line-height: 1;
}

.stat-label {
  display: block;
  font-family: var(--font-ui); font-size: 10px; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-top: 6px;
}

.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

.about-cards {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--accent-rule);
  border: 1px solid var(--accent-rule);
}

.about-card {
  background: var(--paper); padding: 24px 20px;
  transition: background var(--transition);
}

.about-card:hover { background: var(--navy-ghost); }

.about-card h3 {
  font-family: var(--font-ui); font-size: 9px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy-light); margin-bottom: 14px;
}

.about-card ul { list-style: none; }

.about-card ul li {
  font-family: var(--font-display); font-size: 16px;
  color: var(--ink-mid); padding: 3px 0;
  border-bottom: 1px solid var(--paper-warm);
}

.about-card ul li:last-child { border-bottom: none; }

.card-entry {
  font-family: var(--font-display); font-size: 16px;
  color: var(--ink); margin-bottom: 12px; line-height: 1.4;
}

.card-entry span {
  font-family: var(--font-ui); font-size: 11px;
  color: var(--ink-soft); font-weight: 300;
}


/* ============================================================
   INTERESTS
   ============================================================ */
.section-interests { padding: 120px 52px; background: var(--paper); }
.section-interests .section-header { margin-bottom: 60px; }

.interests-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 32px; max-width: 1100px; margin: 0 auto;
}

.interest-card {
  display: block; color: var(--ink);
  transition: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.interest-img-wrap {
  overflow: hidden; aspect-ratio: 4/5;
  background: var(--navy); position: relative;
}

.interest-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  filter: grayscale(20%);
}

.interest-card:hover .interest-img-wrap img {
  transform: scale(1.06); filter: grayscale(0%);
}

.interest-shine {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  z-index: 2; transition: opacity 0.3s ease;
}

.interest-meta {
  display: flex; align-items: baseline; gap: 14px;
  margin-top: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--navy-pale);
  transition: border-color var(--transition);
}

.interest-card:hover .interest-meta { border-bottom-color: var(--navy); }

.interest-num {
  font-family: var(--font-display); font-size: 13px;
  font-style: italic; color: var(--navy-light);
}

.interest-meta h3 {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 400; flex: 1;
}

.interest-arrow {
  font-size: 16px; color: var(--navy-light);
  opacity: 0; transform: translate(-4px, 4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.interest-card:hover .interest-arrow { opacity: 1; transform: translate(0,0); }


/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  padding: 120px 52px;
  background: var(--navy);
  color: white;
  position: relative; overflow: hidden;
}

.contact-blueprint {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(74,114,168,0.25) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

.section-contact .section-label { color: var(--navy-light); }
.section-contact .section-header h2 { color: white; }

.contact-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: start;
  position: relative; z-index: 1;
}

.contact-left .section-header { margin-bottom: 48px; }

.contact-details { display: flex; flex-direction: column; gap: 22px; }

.contact-item {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.contact-item:hover { color: white; }

.contact-item i {
  width: 18px; text-align: center;
  color: var(--navy-light); font-size: 14px;
  transition: color var(--transition);
}

.contact-item:hover i { color: #7aaee0; }

.availability-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 36px;
  background: rgba(74,114,168,0.15);
  border: 1px solid rgba(74,114,168,0.3);
  border-radius: 30px;
  padding: 8px 18px;
  font-family: var(--font-ui); font-size: 12px;
  font-weight: 300; color: rgba(255,255,255,0.6);
}

.avail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3dcc72;
  animation: availPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes availPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(61,204,114,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(61,204,114,0); }
}

.contact-form { display: flex; flex-direction: column; }

.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }

.form-group label {
  font-family: var(--font-ui); font-size: 9px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy-light); margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0; padding: 12px 16px;
  color: white; font-family: var(--font-ui);
  font-size: 14px; font-weight: 300;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  resize: none; cursor: none;
  /* prevent iOS zoom on focus (font-size must be ≥16px on mobile) */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.18); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(74,114,168,0.15);
}

.btn-send {
  margin-top: 8px; display: inline-flex;
  align-items: center; gap: 12px;
  padding: 14px 32px;
  background: var(--navy-light);
  color: white; border: none;
  font-family: var(--font-ui); font-size: 11px;
  font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background var(--transition), transform 0.2s var(--ease);
  align-self: flex-start;
  position: relative; overflow: hidden;
}

.btn-send::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.btn-send:hover::before { left: 100%; }
.btn-send:hover { background: #5a8acc; transform: translateY(-1px); }
.btn-send:active { transform: translateY(0); }

.btn-send-arrow { transition: transform var(--transition); display: inline-block; }
.btn-send:hover .btn-send-arrow { transform: translateX(4px); }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 52px;
}

.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.25);
}

.footer-copy {
  font-family: var(--font-ui); font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,0.2); letter-spacing: 0.06em;
}

.footer-location {
  font-family: var(--font-ui); font-size: 11px; font-weight: 300;
  color: var(--navy-light); letter-spacing: 0.1em;
}


/* ============================================================
   RESPONSIVE — 900px (tablets & large phones)
   ============================================================ */
@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  a, button { cursor: pointer; }
  .contact-form input, .contact-form textarea { cursor: text; }

  .navbar { padding: 18px 24px; }
  .nav-links { display: none; }

  .hero-content { left: 24px; bottom: 80px; }
  .hero-index   { right: 24px; }
  .hero-grid-lines { display: none; }

  .section-projects,
  .section-about,
  .section-interests,
  .section-contact { padding: 80px 24px; }

  /* Projects: 2-col on tablet */
  .grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .project-item:nth-child(1) { grid-column: 1/3; aspect-ratio: 16/9; }
  .project-item:nth-child(2),
  .project-item:nth-child(3),
  .project-item:nth-child(4) { grid-column: span 1; aspect-ratio: 4/3; }
  .project-item:nth-child(5) { grid-column: 1/3; aspect-ratio: 16/9; }

  /* About */
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { width: 200px; aspect-ratio: auto; }
  .about-bio   { max-width: 100%; }
  .about-cards { grid-template-columns: 1fr; }
  .stat-row    { padding: 20px; gap: 8px; }

  /* Interests: single column, centred */
  .interests-grid { grid-template-columns: 1fr; max-width: 400px; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 60px; }
  .contact-blueprint { display: none; }
  /* Make email address wrap instead of overflow */
  .contact-item { align-items: flex-start; }
  .contact-item span { word-break: break-all; font-size: 13px; }
  /* Full-width send button on mobile */
  .btn-send { align-self: stretch; justify-content: center; }

  /* Menu overlay */
  .menu-overlay-inner {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    gap: 40px; overflow-y: auto;
  }
  .menu-close-hint { right: 24px; }

  /* Footer */
  footer { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}


/* ============================================================
   RESPONSIVE — 560px (phones)
   ============================================================ */
@media (max-width: 560px) {
  /* Hero */
  .hero-title { font-size: clamp(52px, 14vw, 72px); }
  .hero-content { bottom: 100px; }
  .hero-scroll-hint { display: none; } /* avoid overlap with dots */

  /* Projects: single column */
  .grid { grid-template-columns: 1fr; }
  .project-item:nth-child(n) { grid-column: span 1; aspect-ratio: 4/3; }

  /* About stats: wrap into 2×2 */
  .stat-row { flex-wrap: wrap; justify-content: center; padding: 20px 16px; }
  .stat-item { flex: 1 1 45%; min-width: 100px; }
  .stat-divider { display: none; }
  .stat-num { font-size: 36px; }

  /* Interests: full width */
  .interests-grid { max-width: 100%; }

  /* Contact form inputs: larger font to prevent iOS auto-zoom */
  .contact-form input,
  .contact-form textarea { font-size: 16px; }

  /* Menu */
  .menu-overlay-link { font-size: 36px; }
  .marquee-strip { display: none; }
}