/* =====================================================
   FAHRY M WALIT — PORTFOLIO
   Liminal / Backrooms-inspired, premium & minimal UI
   ===================================================== */

/* -----------------------------------------------------
   1. CSS VARIABLES / DESIGN TOKENS
----------------------------------------------------- */
:root{
  /* colors — warm, amber-yellow Backrooms palette */
  --bg: #15130a;
  --bg-secondary: #201b0f;
  --card: rgba(255,238,180,0.05);
  --card-strong: rgba(255,238,180,0.09);
  --border: rgba(224,199,124,0.14);
  --wall: #C7B26B;
  --wall-dark: #6b5e35;
  --accent: #E8CE7C;
  --accent-strong: #F2DE97;
  --glow: #FFEDA0;
  --text: #F7F2E4;
  --text-secondary: #C9BF9E;
  --text-muted: #8F8567;

  /* type */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* layout */
  --max-width: 1240px;
  --gutter: clamp(24px, 6vw, 96px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  /* motion */
  --ease: cubic-bezier(.16,.84,.44,1);
  --dur-fast: .25s;
  --dur-med: .5s;
  --dur-slow: .9s;
}

/* -----------------------------------------------------
   2. RESET
----------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ol, ul{ margin: 0; }
ul, ol{ padding: 0; list-style: none; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button, input, textarea{ font: inherit; color: inherit; }
button{ background: none; border: none; cursor: pointer; }

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

@media (min-width: 901px){
  body{ cursor: none; }
}

h1,h2,h3,h4{
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

::selection{ background: var(--accent); color: #14140f; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -----------------------------------------------------
   3. UTILITIES
----------------------------------------------------- */
.glass{
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-md);
}

section{
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__head{ margin-bottom: clamp(40px, 6vw, 72px); max-width: 640px; }

.section__eyebrow{
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section__title{
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text);
}

/* scroll reveal base state (animated via IntersectionObserver in JS) */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: transform, opacity;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  html{ scroll-behavior: auto; }
}

/* -----------------------------------------------------
   4. LOADING SCREEN
----------------------------------------------------- */
.loader{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.loader.is-hidden{ opacity: 0; visibility: hidden; pointer-events: none; }

.loader__mark{
  display: flex;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 34px;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.loader__mark span{
  animation: flicker 2.4s infinite ease-in-out;
  text-shadow: 0 0 18px var(--glow);
}
.loader__mark span:nth-child(2){ animation-delay: .3s; }

.loader__bar{
  width: 180px;
  height: 2px;
  background: var(--border);
  overflow: hidden;
  border-radius: 2px;
}
.loader__bar-fill{
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
  animation: loadbar 1.8s var(--ease) forwards;
}
@keyframes loadbar{ to{ width: 100%; } }

.loader__label{
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* -----------------------------------------------------
   5. SCROLL PROGRESS BAR
----------------------------------------------------- */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--glow));
  box-shadow: 0 0 10px var(--glow);
  z-index: 500;
  transition: width .1s linear;
}

/* -----------------------------------------------------
   6. CUSTOM CURSOR
----------------------------------------------------- */
.cursor{ position: fixed; top: 0; left: 0; z-index: 600; pointer-events: none; }
.cursor__dot{
  position: fixed;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: opacity .2s;
}
.cursor__ring{
  position: fixed;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s;
}
.cursor.is-active .cursor__ring{
  width: 54px; height: 54px;
  border-color: var(--accent);
}
@media (max-width: 900px){ .cursor{ display: none; } }

/* -----------------------------------------------------
   7. BACKGROUND LAYERS
----------------------------------------------------- */
.bg{ position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }

.bg__grid{
  position: absolute; inset: -2px;
  background-image:
    repeating-linear-gradient(90deg,
      var(--border) 0 1px,
      transparent 1px 96px),
    linear-gradient(90deg, transparent 46px, var(--border) 47px, transparent 48px, transparent 96px);
  background-size: 96px 100%, 96px 100%;
  opacity: .3;
  mask-image: radial-gradient(circle at 50% 20%, black 0%, transparent 78%);
  animation: gridshift 50s linear infinite;
}
@keyframes gridshift{
  0%{ background-position: 0 0, 0 0; }
  100%{ background-position: 192px 0, 192px 0; }
}

/* faint diamond "carpet" texture, low in the viewport like a Backrooms floor */
.bg__carpet{
  position: absolute; left: 0; right: 0; bottom: 0; height: 55vh;
  background-image:
    linear-gradient(45deg, var(--border) 25%, transparent 25%, transparent 75%, var(--border) 75%),
    linear-gradient(45deg, var(--border) 25%, transparent 25%, transparent 75%, var(--border) 75%);
  background-size: 46px 46px;
  background-position: 0 0, 23px 23px;
  opacity: .12;
  mask-image: linear-gradient(0deg, black 0%, transparent 100%);
}

.bg__gradient{
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 15% 0%, rgba(232,206,124,0.09), transparent 60%),
    radial-gradient(900px 500px at 85% 100%, rgba(255,237,160,0.06), transparent 60%),
    linear-gradient(180deg, rgba(199,178,107,0.04), transparent 40%);
  animation: gradientdrift 22s ease-in-out infinite alternate;
}
@keyframes gradientdrift{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(-2%, 2%) scale(1.05); }
}

.bg__fog{
  position: absolute; inset: -10%;
  background: radial-gradient(ellipse at 50% 100%, rgba(232,206,124,0.08), transparent 55%);
  filter: blur(40px);
  animation: fogdrift 30s ease-in-out infinite;
}
@keyframes fogdrift{
  0%,100%{ transform: translateX(-3%); }
  50%{ transform: translateX(3%); }
}

.bg__dust{ position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

.bg__noise{
  position: absolute; inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* -----------------------------------------------------
   8. NAVBAR
----------------------------------------------------- */
.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
  padding: 20px var(--gutter);
  transition: background var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), padding var(--dur-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled{
  background: rgba(21,19,10,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 14px var(--gutter);
}

.navbar__inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__logo{ display: flex; align-items: center; gap: 10px; }
.navbar__logo-mark{
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.navbar__logo-text{ font-family: var(--font-heading); font-size: 15px; letter-spacing: .01em; }

.navbar__menu{ display: flex; gap: 32px; }
.navbar__link{
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--dur-fast);
}
.navbar__link::after{
  content:'';
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width var(--dur-fast) var(--ease);
}
.navbar__link:hover, .navbar__link.is-active{ color: var(--text); }
.navbar__link:hover::after, .navbar__link.is-active::after{ width: 100%; }

.navbar__cta{
  font-size: 13px;
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}
.navbar__cta:hover{
  border-color: var(--accent);
  background: rgba(232,206,124,0.08);
  box-shadow: 0 0 20px rgba(255,237,160,0.15);
}

.navbar__toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.navbar__toggle span{
  height: 1px; width: 100%;
  background: var(--text);
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}

@media (max-width: 900px){
  .navbar__menu{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(21,19,10,0.97);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform var(--dur-med) var(--ease);
  }
  .navbar__menu.is-open{ transform: translateX(0); }
  .navbar__cta{ display: none; }
  .navbar__toggle{ display: flex; }
  .navbar__toggle.is-active span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .navbar__toggle.is-active span:nth-child(2){ opacity: 0; }
  .navbar__toggle.is-active span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
}

/* -----------------------------------------------------
   9. BUTTONS
----------------------------------------------------- */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }

.btn--primary{
  background: var(--accent);
  color: #14140f;
  box-shadow: 0 0 0 rgba(255,237,160,0);
}
.btn--primary:hover{ box-shadow: 0 8px 30px rgba(255,237,160,0.25); }

.btn--ghost{
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover{ border-color: var(--accent); background: rgba(232,206,124,0.06); }

.btn--wide{ width: 100%; }

/* ripple effect */
.btn .ripple{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple .6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple{ to{ transform: scale(3); opacity: 0; } }

.icon-btn{
  font-size: 13px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.icon-btn:hover{ border-color: var(--accent); color: var(--accent); }
.icon-btn--accent{ background: rgba(232,206,124,0.08); }

/* -----------------------------------------------------
   10. HERO
----------------------------------------------------- */
.hero{
  max-width: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 60px;
}
.hero__inner{
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero__eyebrow{
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero__title{
  font-size: clamp(34px, 5.2vw, 62px);
  color: var(--text);
  margin-bottom: 22px;
}

.hero__typing{
  display: block;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255,237,160,0.35);
}
.hero__typing::after{
  content:'';
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 4px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: -0.1em;
}
@keyframes blink{ 50%{ opacity: 0; } }

.hero__desc{
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero__actions{ display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }

.hero__stats{ display: flex; gap: 40px; }
.hero__stat{ display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px; }
.hero__stat-num{ font-family: var(--font-heading); font-size: 30px; font-weight: 600; color: var(--text); }
.hero__stat-suffix{ font-family: var(--font-heading); font-size: 20px; color: var(--accent); }
.hero__stat-label{
  display: block;
  width: 100%;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* hero corridor illustration */
.hero__visual{ position: relative; height: clamp(320px, 44vw, 520px); }
.corridor{
  position: relative;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #241f10 0%, #332b15 45%, #1c170c 100%);
  perspective: 600px;
}
/* converging side walls, papered with the classic pale-yellow Backrooms stripe */
.corridor__wall{
  position: absolute; top: 0; bottom: 0; width: 34%;
  background:
    repeating-linear-gradient(90deg, rgba(21,17,9,0.22) 0 2px, transparent 2px 15px),
    linear-gradient(180deg, var(--wall) 0%, var(--wall-dark) 100%);
  opacity: .55;
}
.corridor__wall--left{ left: 0; clip-path: polygon(0 0, 100% 18%, 100% 82%, 0 100%); }
.corridor__wall--right{ right: 0; clip-path: polygon(100% 0, 0 18%, 0 82%, 100% 100%); }

.corridor__ceiling{
  position: absolute; top: 0; left: 0; right: 0; height: 42%;
  background:
    repeating-linear-gradient(90deg, rgba(21,17,9,0.15) 0 2px, transparent 2px 68px),
    linear-gradient(180deg, #4a3f1e, #241f10);
  transform: perspective(500px) rotateX(35deg);
  transform-origin: top;
}
.corridor__floor{
  position: absolute; bottom: 0; left: 0; right: 0; height: 46%;
  background:
    linear-gradient(45deg, rgba(21,17,9,0.3) 25%, transparent 25%, transparent 75%, rgba(21,17,9,0.3) 75%),
    linear-gradient(45deg, rgba(21,17,9,0.3) 25%, transparent 25%, transparent 75%, rgba(21,17,9,0.3) 75%),
    linear-gradient(0deg, #171208, #3a3115);
  background-size: 30px 30px, 30px 30px, 100% 100%;
  background-position: 0 0, 15px 15px, 0 0;
  transform: perspective(500px) rotateX(-35deg);
  transform-origin: bottom;
}
.corridor__lights{
  position: absolute; top: 13%; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.tube{
  width: 120px; height: 8px;
  background: var(--glow);
  border-radius: 6px;
  box-shadow: 0 0 36px 8px rgba(255,237,160,0.65);
  animation: flicker 3.2s infinite ease-in-out;
}
.tube:nth-child(2){ width: 90px; animation-delay: .6s; }
.tube:nth-child(3){ width: 60px; animation-delay: 1.1s; }
@keyframes flicker{
  0%, 100%{ opacity: 1; }
  4%{ opacity: .6; }
  6%{ opacity: 1; }
  46%{ opacity: 1; }
  48%{ opacity: .5; }
  50%{ opacity: 1; }
}
.corridor__glow{
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 45% at 50% 18%, rgba(255,237,160,0.28), transparent 65%);
  mix-blend-mode: screen;
}
.corridor__vignette{
  position: absolute; inset: 0;
  box-shadow: inset 0 0 120px 40px rgba(10,8,4,0.5);
}

.hero__scroll{
  align-self: center;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__scroll-line{
  width: 1px; height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse{
  0%,100%{ opacity: .3; transform: scaleY(0.7); }
  50%{ opacity: 1; transform: scaleY(1); }
}

@media (max-width: 900px){
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__visual{ order: -1; height: 260px; }
  .hero__stats{ gap: 28px; }
}

/* -----------------------------------------------------
   11. ABOUT
----------------------------------------------------- */
.about__grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}
.about__card{
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.about__photo{
  width: 96px; height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 3px;
  background: linear-gradient(160deg, rgba(232,206,124,0.5), rgba(255,255,255,0.05));
  box-shadow: 0 0 30px rgba(255,237,160,0.12);
  transition: box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.about__photo:hover{ box-shadow: 0 0 40px rgba(255,237,160,0.22); transform: translateY(-2px); }
.about__photo-img{
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: linear-gradient(160deg, rgba(232,206,124,0.15), rgba(255,238,180,0.03));
  border: 1px solid var(--border);
}
.about__info h3{ font-size: 22px; margin-bottom: 4px; }
.about__role{ color: var(--accent); font-size: 13px; margin-bottom: 14px; letter-spacing: 0.02em; }
.about__bio{ color: var(--text-secondary); font-size: 15px; }

.about__facts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about__fact{
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast);
}
.about__fact:hover{ transform: translateY(-4px); border-color: var(--accent); }
.about__fact-label{ font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.about__fact-value{ font-family: var(--font-heading); font-size: 17px; }

@media (max-width: 800px){
  .about__grid{ grid-template-columns: 1fr; }
  .about__card{ flex-direction: column; align-items: center; text-align: center; }
}

/* -----------------------------------------------------
   12. SKILLS
----------------------------------------------------- */
.skills__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-card{
  padding: 28px;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.skill-card:hover{
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.skill-card__icon{
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 20px;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,206,124,0.08);
  margin-bottom: 18px;
}
.skill-card__name{ font-size: 16px; margin-bottom: 16px; }
.skill-card__bar{
  height: 4px;
  border-radius: 4px;
  background: rgba(255,238,180,0.07);
  overflow: hidden;
  margin-bottom: 10px;
}
.skill-card__fill{
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--glow));
  border-radius: 4px;
  transition: width 1.4s var(--ease);
}
.skill-card.is-visible .skill-card__fill{ width: var(--fill, 0%); }
.skill-card__pct{ font-size: 12px; color: var(--text-muted); }

@media (max-width: 900px){ .skills__grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .skills__grid{ grid-template-columns: 1fr; } }

/* -----------------------------------------------------
   13. PROJECTS
----------------------------------------------------- */
.projects__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card{
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-fast);
}
.project-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
  border-color: var(--accent);
}
.project-card__media{ height: 170px; overflow: hidden; }
.project-card__thumb{
  height: 100%; width: 100%;
  transition: transform .6s var(--ease);
  background-size: cover;
}
.project-card:hover .project-card__thumb{ transform: scale(1.06); }

.thumb--01{ background: linear-gradient(135deg, #3a3216, #221d0f 60%, #4a3f1e); }
.thumb--02{ background: linear-gradient(135deg, #2e2712, #362d17 50%, #1c170c); }
.thumb--03{ background: linear-gradient(135deg, #292311, #3d3316 55%, #241f10); }
.thumb--04{ background: linear-gradient(135deg, #332c14, #1c170c 60%, #3a3116); }
.thumb--05{ background: linear-gradient(135deg, #2a2412, #332b15 55%, #1a150a); }
.thumb--06{ background: linear-gradient(135deg, #302913, #423621 60%, #1c170c); }

.project-card__body{ padding: 24px; }
.project-card__body h3{ font-size: 18px; margin-bottom: 10px; }
.project-card__body p{ color: var(--text-secondary); font-size: 14px; margin-bottom: 18px; }
.project-card__tags{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.project-card__tags span{
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.project-card__actions{ display: flex; gap: 10px; }

@media (max-width: 980px){ .projects__grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .projects__grid{ grid-template-columns: 1fr; } }

/* -----------------------------------------------------
   14. GALLERY (masonry)
----------------------------------------------------- */
.gallery__masonry{
  columns: 4 220px;
  column-gap: 20px;
}
.gallery__item{
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}
.gallery__item::before{
  content:'';
  display: block;
  width: 100%;
  background: linear-gradient(150deg, #332b15, #1c170c 60%, #3a3116);
}
.gi--1::before{ padding-top: 130%; }
.gi--2::before{ padding-top: 80%; }
.gi--3::before{ padding-top: 110%; }
.gi--4::before{ padding-top: 70%; }
.gi--5::before{ padding-top: 120%; }
.gi--6::before{ padding-top: 90%; }
.gi--7::before{ padding-top: 100%; }
.gi--8::before{ padding-top: 75%; }

.gallery__glass{
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 16px;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.65));
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.gallery__item:hover .gallery__glass{ opacity: 1; }
.gallery__glass span{ font-size: 13px; font-family: var(--font-heading); color: var(--text); }
.gallery__item{ transition: transform var(--dur-med) var(--ease); }
.gallery__item:hover{ transform: scale(1.03); }

@media (max-width: 700px){ .gallery__masonry{ columns: 2 160px; } }

/* -----------------------------------------------------
   15. TIMELINE
----------------------------------------------------- */
.timeline__list{
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.timeline__item{ position: relative; }
.timeline__dot{
  position: absolute;
  left: -37px; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}
.timeline__content{ padding: 22px 26px; }
.timeline__date{
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.timeline__content h3{ font-size: 16px; margin-bottom: 8px; }
.timeline__content p{ color: var(--text-secondary); font-size: 14px; }

/* -----------------------------------------------------
   16. CONTACT
----------------------------------------------------- */
.contact__grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}
.contact__form{ padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.field{ display: flex; flex-direction: column; gap: 8px; }
.field label{ font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field textarea{
  background: rgba(255,238,180,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  resize: vertical;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input::placeholder, .field textarea::placeholder{ color: var(--text-muted); }
.field input:focus, .field textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,206,124,0.12);
  outline: none;
}
.field__row{ display: flex; align-items: baseline; justify-content: space-between; }
.field__counter{ font-size: 11px; color: var(--text-muted); }

.contact__status{ font-size: 13px; color: var(--accent); min-height: 18px; transition: color var(--dur-fast); }
.contact__status.is-success{ color: #c9e6b0; }

/* ---- sidebar wrapper ---- */
.contact__side{ display: flex; flex-direction: column; gap: 16px; }

/* ---- profile summary card ---- */
.contact__profile{
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact__profile-img{
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.contact__profile-info h3{ font-size: 16px; margin-bottom: 6px; }
.contact__availability{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-secondary);
}
.contact__availability-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #8fd47a;
  box-shadow: 0 0 8px #8fd47a;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot{
  0%, 100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: .55; transform: scale(0.8); }
}

/* ---- icon links ---- */
.contact__links{ display: flex; flex-direction: column; gap: 12px; }
.contact__link{
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast);
}
.contact__link:not(.contact__link--static):hover{ transform: translateX(6px); border-color: var(--accent); }
.contact__link-main{
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.contact__link-icon{
  width: 38px; height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,206,124,0.08);
  color: var(--accent);
}
.contact__link-icon svg{ width: 18px; height: 18px; }
.contact__link-text{ display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact__link-label{ font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.contact__link-value{ font-size: 14px; font-family: var(--font-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.contact__copy{
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.contact__copy:hover{ border-color: var(--accent); color: var(--accent); }
.contact__copy.is-copied{ border-color: var(--accent); color: var(--accent); background: rgba(232,206,124,0.1); }

/* ---- reply-time note ---- */
.contact__note{
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
}
.contact__note strong{ color: var(--text); }

@media (max-width: 860px){ .contact__grid{ grid-template-columns: 1fr; } }
@media (max-width: 480px){
  .contact__link-value{ max-width: 150px; }
}

/* -----------------------------------------------------
   17. FOOTER
----------------------------------------------------- */
.footer{ border-top: 1px solid var(--border); padding: 32px var(--gutter); }
.footer__inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__copy{ font-size: 13px; color: var(--text-muted); }
.footer__social{ display: flex; gap: 12px; }
.footer__social a{
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.footer__social a:hover{ border-color: var(--accent); color: var(--accent); }
.footer__top{
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-fast), transform var(--dur-fast), color var(--dur-fast);
}
.footer__top:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* -----------------------------------------------------
   18. RESPONSIVE FINE-TUNING
----------------------------------------------------- */
@media (max-width: 640px){
  :root{ --gutter: 20px; }
  section{ padding-top: 72px; padding-bottom: 72px; }
  .hero__actions{ flex-direction: column; align-items: stretch; }
  .hero__stats{ gap: 20px; flex-wrap: wrap; }
}
