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

:root {
  --cream: #F5F3EF;
  --ink: #111110;
  --ink-light: #595550;
  --ink-lighter: #6D6A66;
  --accent: #B05525;
  --accent-light: #F2E8E1;
  --border: #E3DFD9;
  --white: #FFFFFF;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --serif: 'Plus Jakarta Sans', system-ui, sans-serif;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
  --max-w: 1160px;
  --radius: 10px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #ffffff; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }
section { padding: var(--space-xl) 0; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem 0;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Plus Jakarta Sans', var(--sans); font-weight: 700; font-size: 2.5rem; color: var(--ink); text-decoration: none; letter-spacing: -0.1em; line-height: 1; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; text-transform: lowercase; color: var(--ink); text-decoration: none; position: relative; padding-bottom: 4px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 1px; transform: scaleX(0); transform-origin: left center; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

/* Hero background: gradient orb + grid */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(196,98,45,0.18) 0%, rgba(196,98,45,0.04) 55%, transparent 75%);
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb2 {
  position: absolute;
  bottom: -60px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,98,45,0.08) 0%, transparent 70%);
  animation: orbFloat 11s ease-in-out infinite reverse;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(196,98,45,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(196,98,45,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 20%, transparent 80%);
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.04); }
}

.hero-content { position: relative; z-index: 1; width: 100%; }

/* hero two-col layout */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-template-areas: "left right";
  gap: 4rem;
  align-items: center;
}

.hero-left { grid-area: left; }
.hero-right { grid-area: right; display: flex; justify-content: flex-end; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s var(--transition) 0.1s both;
}
.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #EDFAF2;
  border: 1px solid #A8E6C0;
  color: #1A7A40;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.available-dot {
  width: 7px; height: 7px;
  background: #22C55E;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.available-sub { font-size: 0.82rem; font-weight: 400; color: var(--ink-lighter); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.5rem;
  animation: fadeUp 0.9s var(--transition) 0.2s both;
}
.hero-title .accent-word {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-title .accent-word::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineIn 0.6s var(--transition) 1s both;
}
@keyframes underlineIn {
  to { transform: scaleX(1); }
}

/* Hero bottom fade to white */
.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.6) 50%, #ffffff 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--ink-light);
  margin-top: 0;
  margin-bottom: 1rem;
  animation: fadeUp 0.9s var(--transition) 0.25s both;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s var(--transition) 0.3s both;
}
.hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(176,85,37,0.08);
  border: 1px solid rgba(176,85,37,0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}
.hero-location {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-lighter);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-body {
  font-size: 1rem;
  color: var(--ink-light);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.9s var(--transition) 0.35s both;
}
.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.9s var(--transition) 0.45s both;
}

/* ── SHARED BUTTON BASE ── */
.btn-primary, .btn-ghost, .btn-download, .btn-contact {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 600;
  padding: 0.8rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap; line-height: 1;
}
.btn-primary, .btn-ghost, .btn-download, .btn-contact {
  height: 44px; box-sizing: border-box;
}
/* Primary — filled dark */
.btn-primary {
  background: var(--ink); color: var(--cream);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(196,98,45,0.25); }
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(2px); }
/* Ghost — outlined */
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); transform: translateY(-1px); }
/* Download — subtle outlined */
.btn-download {
  background: transparent; color: var(--ink-light);
  border-color: var(--border);
}
.btn-download:hover { border-color: var(--ink); color: var(--ink); background: rgba(17,17,16,0.04); transform: translateY(-1px); }
.btn-download svg { opacity: 0.5; transition: opacity 0.2s, transform 0.2s; }
.btn-download:hover svg { opacity: 1; transform: translateY(2px); }

/* Hero avatar block */
.hero-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.9s var(--transition) 0.5s both;
}
.hero-stats-strip {
  display: none;
}
.hero-stat-pill {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-light);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  white-space: nowrap;
}
.hero-stat-num {
  font-weight: 700;
  color: var(--ink);
}

/* SECTION LABELS */
.section-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-lighter); margin-bottom: 1.5rem;
}
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--ink-lighter); }
.section-title { font-family: var(--sans); font-weight: 800; font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
.section-title em { font-style: normal; color: var(--ink); }
.divider { display: none; }

/* ABOUT */
#about { background: var(--white); }
.about-grid {
  display: block !important;
  width: 100%;
}
.about-body { font-size: 1.1rem; color: var(--ink-light); line-height: 1.85; margin-top: 2.5rem; }
.about-body p + p { margin-top: 1.25rem; }

/* SKILLS STRIP */
.skills-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.skills-strip-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-light);
  background: #ffffff;
  border: 1.5px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}
.skills-strip-tag:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.skills-strip-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-lighter);
  width: 100%;
  margin-bottom: 0.25rem;
  margin-top: 0.5rem;
}
.skills-strip-label:first-child { margin-top: 0; }

/* ABOUT PHOTO & SKILLS */
.about-photo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.about-photo-orbit {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  position: relative;
  z-index: 2;
}
.about-photo svg {
  width: 100%;
  height: 100%;
  display: block;
}
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}
.orbit-ring-1 {
  width: 312px;
  height: 312px;
  margin-top: -156px;
  margin-left: -156px;
  border: 1.5px solid var(--border);
  animation: orbitSpin 18s linear infinite;
}
.orbit-ring-1::before {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  margin-left: -3.5px;
}
.orbit-ring-1::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  bottom: -4px;
  left: 50%;
  margin-left: -3.5px;
}
.orbit-ring-2 {
  width: 372px;
  height: 372px;
  margin-top: -186px;
  margin-left: -186px;
  border: 1px solid rgba(168,163,157,0.4);
  animation: orbitSpin 28s linear infinite reverse;
}
.orbit-ring-2::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--ink-lighter);
  border-radius: 50%;
  top: -3px;
  left: 50%;
  margin-left: -3px;
}
.orbit-ring-2::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--ink-lighter);
  border-radius: 50%;
  bottom: -3px;
  left: 50%;
  margin-left: -3px;
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.about-skills-card {
  background: #F9F8F6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
/* ABOUT VISUAL */
.about-visual {
  position: relative;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
}
.av-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  background: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: 0 0 0 12px rgba(17,17,16,0.06);
}
.av-center svg { color: var(--cream); }
.av-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid var(--border);
  transform: translate(-50%, -50%);
}
.av-ring-1 { width: 160px; height: 160px; animation: ringRotate 14s linear infinite; }
.av-ring-2 { width: 260px; height: 260px; animation: ringRotate 22s linear infinite reverse; }
.av-ring-3 { width: 360px; height: 360px; border-style: dashed; border-color: rgba(196,98,45,0.15); animation: ringRotate 30s linear infinite; }
@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.av-node {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.av-node-sm {
  width: 36px; height: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.av-node-sm svg { color: var(--accent); }
.av-ring-1 .av-node-sm:nth-child(1) {
  transform: translate(-50%, -50%) rotate(0deg) translateX(80px) rotate(0deg);
  animation: counterRotate14 14s linear infinite;
}
.av-ring-1 .av-node-sm:nth-child(2) {
  transform: translate(-50%, -50%) rotate(180deg) translateX(80px) rotate(-180deg);
  animation: counterRotate14rev 14s linear infinite;
}
@keyframes counterRotate14 {
  from { transform: translate(-50%,-50%) rotate(0deg) translateX(80px) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg) translateX(80px) rotate(-360deg); }
}
@keyframes counterRotate14rev {
  from { transform: translate(-50%,-50%) rotate(180deg) translateX(80px) rotate(-180deg); }
  to   { transform: translate(-50%,-50%) rotate(540deg) translateX(80px) rotate(-540deg); }
}
.av-node-md {
  width: 56px; height: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  position: absolute !important;
  top: 50% !important; left: 50% !important;
  animation: none !important;
  z-index: 6;
  display: flex; align-items: center; justify-content: center;
}
.av-node-md svg { color: var(--ink-light); }
.about-visual > .av-node-md:nth-child(3) {
  transform: translate(calc(-50% + 0px), calc(-50% - 130px)) !important;
}
.about-visual > .av-node-md:nth-child(4) {
  transform: translate(calc(-50% + 112px), calc(-50% + 65px)) !important;
}
.about-visual > .av-node-md:nth-child(5) {
  transform: translate(calc(-50% - 112px), calc(-50% + 65px)) !important;
}
.av-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-lighter);
  pointer-events: none;
}
.av-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}
.av-ring-3 .av-dot:nth-child(1) { animation: counterRotate30a 30s linear infinite reverse; transform: translate(-50%,-50%) rotate(0deg) translateX(180px) rotate(0deg); }
.av-ring-3 .av-dot:nth-child(2) { animation: counterRotate30b 30s linear infinite reverse; transform: translate(-50%,-50%) rotate(90deg) translateX(180px) rotate(-90deg); }
.av-ring-3 .av-dot:nth-child(3) { animation: counterRotate30c 30s linear infinite reverse; transform: translate(-50%,-50%) rotate(180deg) translateX(180px) rotate(-180deg); }
.av-ring-3 .av-dot:nth-child(4) { animation: counterRotate30d 30s linear infinite reverse; transform: translate(-50%,-50%) rotate(270deg) translateX(180px) rotate(-270deg); }
@keyframes counterRotate30a { from{transform:translate(-50%,-50%) rotate(0deg) translateX(180px) rotate(0deg)} to{transform:translate(-50%,-50%) rotate(-360deg) translateX(180px) rotate(360deg)} }
@keyframes counterRotate30b { from{transform:translate(-50%,-50%) rotate(90deg) translateX(180px) rotate(-90deg)} to{transform:translate(-50%,-50%) rotate(-270deg) translateX(180px) rotate(270deg)} }
@keyframes counterRotate30c { from{transform:translate(-50%,-50%) rotate(180deg) translateX(180px) rotate(-180deg)} to{transform:translate(-50%,-50%) rotate(-180deg) translateX(180px) rotate(180deg)} }
@keyframes counterRotate30d { from{transform:translate(-50%,-50%) rotate(270deg) translateX(180px) rotate(-270deg)} to{transform:translate(-50%,-50%) rotate(-90deg) translateX(180px) rotate(90deg)} }

/* SKILLS, redesigned as a visual grid with category colors */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0;
}
.skill-category {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}
.skill-category:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.skill-category-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.skill-category-icon svg { width: 14px; height: 14px; }
.icon-product { background: #FEF3E8; color: #C4622D; }
.icon-design  { background: #EEF2FF; color: #4F6EF7; }
.icon-research { background: #F0FDF4; color: #22C55E; }
.icon-technical { background: #FDF4FF; color: #A855F7; }
.skill-category-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.skill-tag {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ink-light);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}

/* EXPERTISE */
#expertise { background: #ffffff; }
.expertise-header { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); align-items: end; }
.expertise-intro { font-size: 1rem; color: var(--ink-light); line-height: 1.75; max-width: 420px; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.expertise-card { background: #F9F8F6; padding: 2rem 1.75rem; transition: background var(--transition); position: relative; overflow: hidden; }
.expertise-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.expertise-card:hover { background: var(--white); }
.expertise-card:hover::before { transform: scaleX(1); }
.expertise-years { font-family: var(--sans); font-weight: 800; font-size: 1.6rem; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.expertise-name { font-size: 0.92rem; font-weight: 500; color: var(--ink); margin-bottom: 0.75rem; line-height: 1.3; }
.expertise-desc { font-size: 0.82rem; color: var(--ink-lighter); line-height: 1.65; }

/* EXPERIENCE, accordion */
#experience { background: var(--white); }
.experience-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-lg); }
.experience-sticky { position: sticky; top: 7rem; height: fit-content; }
.experience-item {
  border-top: 1px solid var(--border);
}
.experience-item:last-child { border-bottom: 1px solid var(--border); }
.exp-trigger {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.75rem 0;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.exp-trigger::-webkit-details-marker { display: none; }
.exp-role { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; line-height: 1.2; color: var(--ink); letter-spacing: -0.02em; }
.exp-company { font-size: 0.85rem; color: var(--accent); font-weight: 400; margin-top: 0.2rem; }
.exp-trigger-right { display: flex; align-items: center; gap: 1.25rem; }
.exp-date { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-lighter); white-space: nowrap; }
.exp-chevron {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--transition), background 0.2s, border-color 0.2s;
}
.exp-chevron svg { color: var(--ink-lighter); transition: color 0.2s; }
details[open] .exp-chevron { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); }
details[open] .exp-chevron svg { color: white; }
.exp-body {
  overflow: hidden;
  max-height: 0;
  padding-bottom: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
}
.exp-body.is-open {
  max-height: 600px;
  padding-bottom: 2rem;
  opacity: 1;
}
.exp-intro { font-size: 0.95rem; color: var(--ink-light); line-height: 1.75; margin-bottom: 1.25rem; }
.exp-highlights { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.exp-highlights li { font-size: 0.88rem; color: var(--ink-light); line-height: 1.65; padding-left: 1.2rem; position: relative; }
.exp-highlights li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 0.8rem; }
.exp-highlights strong { color: var(--ink); font-weight: 500; }

/* PROJECTS */
#projects { background: #ffffff; }
.projects-header { max-width: 600px; margin-bottom: var(--space-lg); }
.projects-intro { font-size: 1rem; color: var(--ink-light); line-height: 1.75; margin-top: 1.5rem; }
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.project-featured-stack {
  grid-column: 1 / -1;
  position: relative;
  padding-top: 24px;
}
.project-featured-stack-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.project-featured-stack-inner {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 420px;
  overflow: visible;
}
.project-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.project-featured-stack-inner .project-card-featured {
  position: absolute;
  inset: 0;
  transform: translateX(calc(var(--stack-index, 0) * 12px)) translateY(calc(var(--stack-index, 0) * -10px)) scale(calc(1 - var(--stack-index, 0) * 0.025)) rotate(calc(var(--stack-index, 0) * 0.6deg));
  opacity: calc(1 - var(--stack-index, 0) * 0.15);
  box-shadow: 0 2px 8px rgba(26,24,20,0.06);
  z-index: calc(10 - var(--stack-index, 0));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease, box-shadow 0.35s ease;
}
.project-featured-stack-inner .project-card-featured[data-active="true"] {
  box-shadow: 0 8px 32px rgba(26,24,20,0.12), 0 1px 4px rgba(26,24,20,0.06);
}
.project-featured-stack-inner .project-card-featured.shuffling-out {
  transform: translateX(-80px) translateY(16px) rotate(-4deg) scale(0.92);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.22s ease;
}
.project-featured-stack-inner .project-card-featured[data-active="false"] {
  pointer-events: none;
}
.project-card-featured:hover { box-shadow: 0 24px 72px rgba(26,24,20,0.1); }
.project-card-featured:hover .featured-arrow { transform: translateX(4px); }
.project-featured-visual {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-featured-visual::before {
  content: none;
}
.project-featured-visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.featured-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 180px;
}
.featured-diagram-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.featured-diagram-box {
  flex: 1;
  background: white;
  border: 1.5px solid rgba(196,98,45,0.3);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-light);
  text-align: center;
  letter-spacing: 0.03em;
}
.featured-diagram-box.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.featured-diagram-arrow {
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.featured-diagram-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-lighter);
  text-align: center;
}
.featured-diagram-divider {
  height: 1px;
  background: rgba(196,98,45,0.2);
  margin: 0.25rem 0;
}
.project-featured-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card-featured-coming .project-featured-visual-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #EEF2FF;
  background-image:
    radial-gradient(circle, rgba(196,98,45,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}
.project-card-featured-coming .featured-diagram-label {
  padding: 0.4rem 0.9rem;
  background: rgba(17,17,16,0.8);
  color: #fff;
  border-radius: 999px;
}
.project-featured-cta-disabled {
  opacity: 0.6;
  cursor: default;
}
.project-stack-next {
  flex-shrink: 0;
  height: 44px;
  width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--ink);
}

@media (max-width: 900px) {
  .project-featured-stack-inner {
    min-height: 520px;
  }
}
.project-featured-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.project-featured-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-featured-role-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-lighter);
  background: #F2F0EC;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.project-featured-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.project-featured-desc {
  font-size: 0.92rem;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
.project-featured-stats {
  display: flex;
  gap: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}
.project-featured-stat-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.project-featured-stat-label {
  font-size: 0.72rem;
  color: var(--ink-lighter);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
  display: block;
}
.project-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.featured-arrow {
  transition: transform 0.2s;
}
/* Placeholder cards - smaller */
.project-card-small {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card-small:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(26,24,20,0.08); }
/* Case study modal */
.cs-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,24,20,0.6);
  z-index: 200;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 2rem 1rem;
}
.cs-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.cs-modal {
  background: var(--white);
  border-radius: 8px;
  max-width: 760px;
  width: 100%;
  margin: auto;
  position: relative;
  overflow: hidden;
}
.cs-modal-header {
  background: linear-gradient(135deg, #FEF3E8 0%, #F0D8C4 100%);
  padding: 3rem 3rem 2.5rem;
  position: relative;
}
.cs-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s;
}
.cs-close:hover { background: white; }
.cs-modal-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.cs-modal-title {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.cs-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cs-meta-pill {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-light);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(196,98,45,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}
.cs-modal-body {
  padding: 2.5rem 3rem 3rem;
}
.cs-stats {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem;
  background: #FEF8F3;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(196,98,45,0.15);
}
.cs-stat-num {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.cs-stat-label {
  font-size: 0.75rem;
  color: var(--ink-lighter);
  margin-top: 0.3rem;
  display: block;
}
.cs-section {
  margin-bottom: 2rem;
}
.cs-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-lighter);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cs-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.cs-section p {
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.cs-section p:last-child { margin-bottom: 0; }
.cs-flow-diagram {
  margin-top: 0.75rem;
  border-radius: 14px;
  overflow: hidden;
}
.cs-flow-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-placeholder-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #F9F8F6;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}
.cs-placeholder-note p {
  font-size: 0.85rem;
  color: var(--ink-lighter);
  line-height: 1.6;
  margin: 0;
}
.project-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(26,24,20,0.08); }
.project-placeholder {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-placeholder.c1 { background: linear-gradient(135deg, #FEF3E8 0%, #FAE0D0 100%); }
.project-placeholder.c2 { background: linear-gradient(135deg, #EEF2FF 0%, #DDE3FD 100%); }
.project-placeholder.c3 { background: linear-gradient(135deg, #F0FDF4 0%, #D4F5E1 100%); }
.project-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(0,0,0,0.025) 18px, rgba(0,0,0,0.025) 19px);
}
.project-placeholder-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.project-placeholder-icon.c1 { background: rgba(196,98,45,0.15); color: var(--accent); }
.project-placeholder-icon.c2 { background: rgba(79,110,247,0.15); color: #4F6EF7; }
.project-placeholder-icon.c3 { background: rgba(34,197,94,0.15); color: #16A34A; }
.project-body { padding: 1.5rem; }
.project-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.project-coming-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: #FEF3E8; border: 1px solid #F5C9A8; color: var(--accent);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 100px;
  margin-bottom: 0.75rem;
}
.project-coming-badge::before { content: '●'; font-size: 0.45rem; }
.project-desc { font-size: 0.85rem; color: var(--ink-light); line-height: 1.7; }

/* CONTACT */
#contact { background: var(--ink); padding: var(--space-xl) 0; }
.contact-inner { text-align: center; }
.contact-label { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: #A8A39D; margin-bottom: 1.5rem; }
.contact-label::before { content: ''; display: block; width: 20px; height: 1px; background: #A8A39D; }
.contact-title { font-family: var(--sans); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4rem); color: var(--cream); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.contact-title em { font-style: normal; color: var(--accent); }
.contact-body { font-size: 1rem; color: #A8A39D; max-width: 460px; margin: 0 auto 3rem; line-height: 1.7; }
.btn-contact { background: var(--accent); color: var(--cream); border-color: var(--accent); font-size: 0.95rem; padding: 0.85rem 2rem; height: auto; }
.btn-contact:hover { background: #904420; border-color: #904420; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(144,68,32,0.3); }

/* FOOTER */
footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.06); padding: 2rem 0; }
footer .container { display: flex; align-items: center; justify-content: space-between; }
.footer-name { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: #A8A39D; letter-spacing: -0.1em; }
.footer-copy { font-size: 0.78rem; color: #A8A39D; }
.footer-link { font-size: 0.78rem; color: #A8A39D; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--cream); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--transition), transform 0.8s var(--transition); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.project-featured-stack-inner .project-card-featured.reveal.visible {
  transform: translateX(calc(var(--stack-index, 0) * 12px)) translateY(calc(var(--stack-index, 0) * -10px)) scale(calc(1 - var(--stack-index, 0) * 0.025)) rotate(calc(var(--stack-index, 0) * 0.6deg));
  opacity: calc(1 - var(--stack-index, 0) * 0.15);
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "right"
      "left";
  }
  .hero-right { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-layout { grid-template-columns: 1fr; }
  .experience-sticky { position: static; margin-bottom: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card-featured { grid-template-columns: 1fr; }
  .project-featured-visual { min-height: 200px; }
  .expertise-header { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .about-photo-orbit { width: 240px; height: 240px; }
  .about-photo { width: 200px; height: 200px; }
  .orbit-ring-1 { width: 220px; height: 220px; margin-top: -110px; margin-left: -110px; }
  .orbit-ring-2 { width: 244px; height: 244px; margin-top: -122px; margin-left: -122px; }
}
@media (max-width: 620px) {
  /* Layout */
  .container { padding: 0 1.25rem; }
  section { padding: 4rem 0; }

  /* Nav */
  .nav-links { display: none; }
  .nav-logo { font-size: 2rem; }

  /* Hero */
  #hero { overflow: hidden; }
  .hero-inner { gap: 2rem; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-body { font-size: 1rem !important; }
  .hero-eyebrow { margin-bottom: 1.25rem; }
  .hero-tags { gap: 0.4rem; }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .hero-stats-strip { gap: 0.35rem; flex-wrap: wrap; }
  .hero-stat-pill { font-size: 0.65rem; padding: 0.25rem 0.55rem; }

  /* Card stack — no horizontal offset on mobile so shadows aren't clipped */
  .project-featured-stack { padding-top: 14px; }
  .project-featured-stack-inner .project-card-featured,
  .project-featured-stack-inner .project-card-featured.reveal.visible {
    transform: translateX(0) translateY(calc(var(--stack-index, 0) * -8px)) scale(calc(1 - var(--stack-index, 0) * 0.02)) rotate(calc(var(--stack-index, 0) * 0.4deg));
    opacity: calc(1 - var(--stack-index, 0) * 0.15);
  }

  /* Other grids */
  .skills-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  /* Footer */
  footer .container { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .hero-title { font-size: clamp(1.75rem, 9vw, 2.25rem); }
  .nav-logo { font-size: 1.75rem; }
}

/* SKIP LINK */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--ink); color: var(--cream);
  padding: 0.6rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* FOCUS VISIBLE — sitewide ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.nav-links a:focus-visible { outline-offset: 4px; }
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-download:focus-visible,
.btn-contact:focus-visible,
.btn-form-submit:focus-visible { outline-offset: 3px; }
.exp-chevron:focus-visible { outline: none; }
details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.project-card-featured:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }

/* HAMBURGER NAV */
.nav-hamburger {
  display: none; background: none; border: 1.5px solid var(--border);
  border-radius: 6px; padding: 0.45rem; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.nav-hamburger:hover { background: var(--accent-light); border-color: var(--accent); }
@media (max-width: 620px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.5rem 2.5rem 1.25rem; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { display: block; }
  .nav-links a { font-size: 1rem; padding: 0.65rem 0; display: block; }
}

/* BACK TO TOP */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 99;
  width: 44px; height: 44px;
  background: var(--ink); color: var(--cream);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-2px); background: var(--accent); }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* CONFETTI */
.hero-title { position: relative; cursor: default; }
.confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
}
@keyframes confettiFly {
  0%   { transform: translate(0,0) rotate(0deg) scale(1); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(var(--tr)) scale(0.4); opacity: 0; }
}

/* CONTACT MODAL */
.contact-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,24,20,0.7);
  z-index: 300;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
}
.contact-modal-overlay.open { display: flex; }
.contact-modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  padding: 2.5rem;
  position: relative;
}
.contact-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  transition: background 0.2s, color 0.2s;
}
.contact-modal-close:hover { background: var(--ink); color: white; border-color: var(--ink); }
.contact-modal-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.contact-modal-sub {
  font-size: 0.9rem;
  color: var(--ink-lighter);
  margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-form-submit {
  width: 100%; height: 44px;
  padding: 0 1.5rem;
  background: var(--ink); color: white;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 600;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  cursor: pointer; margin-top: 0.5rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  line-height: 1;
}
.btn-form-submit:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(196,98,45,0.25); }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.form-success-icon {
  width: 48px;
  height: 48px;
  background: #EDFAF2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #1A7A40;
}
.form-success h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-success p { font-size: 0.9rem; color: var(--ink-lighter); }
@media (max-width: 540px) {
  .contact-modal { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}
