/* ============================================================
   Anka Abdullah — personal site
   Palette + type tokens follow the supplied design brief.
   ============================================================ */

:root {
  --cream: #f6f1e9;
  --cream-deep: #e9dccb;
  --dark: #1b2521;
  --dark-2: #24302b;
  --ink: #151515;
  --muted: #6b6b6b;
  --soft: #b9c0bc;
  --accent: #e0773d;
  --accent-hover: #c9662f;
  --accent-light: #f0a37a;
  --line-light: rgba(0, 0, 0, 0.08);
  --line-dark: rgba(255, 255, 255, 0.12);

  --radius-card: 16px;
  --radius-img: 12px;
  --radius-btn: 999px;
  --radius-sm: 10px;

  --container: 1200px;
  --gutter: clamp(20px, 4.4vw, 48px);
  --section-y: clamp(64px, 8vw, 112px);

  --font-display: "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

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

button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.dark {
  background: var(--dark);
  color: #fff;
}

section[id] { scroll-margin-top: 92px; }

/* ───────────────────────── Typography helpers ───────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a94f1c;
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.eyebrow-dark { color: var(--accent-light); }
.eyebrow-ink { color: var(--ink); opacity: 0.75; }

.section-title {
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }

.head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.section-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--soft);
  max-width: 44ch;
  padding-bottom: 6px;
}

.work .section-intro,
.about .section-intro { color: var(--muted); }

.body-lg {
  font-size: 16.5px;
  line-height: 1.7;
  color: #3d3d3d;
}
.body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 16px;
}

/* ───────────────────────── Buttons ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover { background: #000; }

.btn-nav {
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.btn-ghost .ghost-icon {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(21, 21, 21, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.btn-ghost svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-ghost:hover .ghost-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.link-arrow {
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(21, 21, 21, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow span { display: inline-block; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover span { transform: translateX(3px); }

/* ───────────────────────── Header ───────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 241, 233, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-light);
  box-shadow: 0 8px 30px rgba(21, 21, 21, 0.05);
}

.nav-wrap {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--dark);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--muted); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #2a2a2a;
  padding-block: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover { color: var(--accent); }
.nav a:hover::after { transform: scaleX(1); }

.btn-nav { margin-left: clamp(12px, 2vw, 28px); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(56px, 6.5vw, 76px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero-title {
  font-size: clamp(56px, 8.6vw, 106px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin-bottom: 26px;
}

.hero-title .line { display: block; }

.line-with-meta {
  display: flex !important;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.title-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 14px;
  border-left: 1px solid rgba(21, 21, 21, 0.2);
  margin-top: 0.42em;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a4a4a;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: #4d4d4d;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.stats {
  display: flex;
  margin: clamp(36px, 5vw, 56px) 0 0;
}

.stat {
  padding-right: clamp(16px, 2.6vw, 34px);
  margin-right: clamp(16px, 2.6vw, 34px);
  border-right: 1px solid var(--line-light);
}
.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.9vw, 36px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  margin: 8px 0 0;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 12ch;
}

/* Hero visual */

.hero-art {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}

.hero-circle {
  position: absolute;
  top: 3%;
  right: 4%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  animation: circle-in 0.9s var(--ease) both;
}

.hero-rings {
  position: absolute;
  inset: -6%;
  opacity: 0.75;
}
.hero-rings svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.13;
  stroke-width: 1;
}

.hero-portrait {
  position: absolute;
  left: 10%;
  bottom: 6%;
  width: 56%;
  aspect-ratio: 3 / 4;
  background: var(--dark);
  border-radius: 999px 999px 20px 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(21, 21, 21, 0.45);
  animation: rise-in 0.9s 0.1s var(--ease) both;
}

.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.94) contrast(1.02);
}

.portrait-kicker {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 241, 233, 0.6);
}

.portrait-monogram {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 100px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--cream);
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
}

.portrait-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 30px clamp(14px, 2vw, 22px) 13px;
  background: linear-gradient(to top, rgba(21, 21, 21, 0.96) 10%, rgba(21, 21, 21, 0.55) 55%, transparent);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 241, 233, 0.85);
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid rgba(21, 21, 21, 0.12);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px -16px rgba(21, 21, 21, 0.5);
  animation: float-in 0.8s var(--ease) both;
}

.chip-go { top: 4%; right: 25%; animation-delay: 0.25s; }
.chip-kafka { top: 24%; right: -2%; animation-delay: 0.32s; }
.chip-redis { top: 54%; right: 1%; animation-delay: 0.39s; }
.chip-node { bottom: 14%; right: 5%; animation-delay: 0.46s; }

.hero-now {
  position: absolute;
  left: 10%;
  bottom: -20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line-light);
  box-shadow: 0 12px 25px -20px rgba(21, 21, 21, 0.55);
  font-size: 11.5px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  z-index: 3;
  animation: float-in 0.8s 0.5s var(--ease) both;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9e5f;
  box-shadow: 0 0 0 0 rgba(47, 158, 95, 0.5);
  animation: pulse 2.4s infinite;
  flex-shrink: 0;
}

@keyframes circle-in {
  from { transform: scale(0.86); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes rise-in {
  from { transform: translateY(26px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes float-in {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 95, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(47, 158, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 95, 0); }
}

/* ───────────────────────── Services ───────────────────────── */

.services { padding-top: clamp(64px, 7.5vw, 104px); }

.services .section-title { color: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service {
  padding: 0 clamp(16px, 2.2vw, 28px);
  border-left: 1px solid var(--line-dark);
}
.service:first-child { padding-left: 0; border-left: 0; }
.service:last-child { padding-right: 0; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--dark-2);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--cream-deep);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 10px;
}

.service p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--soft);
}

.service:hover .service-icon {
  background: var(--accent);
  transform: translateY(-4px);
}
.service:hover .service-icon svg { stroke: #fff; }

/* ───────────────────────── About ───────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
}

.about-visual { position: relative; max-width: 430px; }

.arch {
  position: relative;
  aspect-ratio: 4 / 4.7;
  border-radius: 999px 999px 20px 20px;
  background: var(--cream-deep);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 3vw, 38px);
  padding-bottom: clamp(58px, 5vw, 78px);
}

.arch-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: sepia(0.18) saturate(0.92) contrast(1.03);
  transition: transform 0.6s var(--ease);
}

.arch:hover .arch-photo { transform: scale(1.03); }

.arch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(21, 21, 21, 0.94) 0%,
    rgba(21, 21, 21, 0.74) 12%,
    rgba(21, 21, 21, 0.2) 34%,
    rgba(21, 21, 21, 0) 62%
  );
}

.arch-caption {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.arch-note {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  margin-left: clamp(12px, 3vw, 34px);
  margin-right: 24px;
  background: var(--cream);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 24px 40px -32px rgba(21, 21, 21, 0.5);
}
.arch-note span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 2px;
}
.arch-note p { font-size: 12.5px; line-height: 1.55; color: #4a4a4a; }

.about-copy .section-title { margin-bottom: 22px; }

.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 26px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  font-weight: 500;
  color: #2f2f2f;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.signature {
  font-family: "Dancing Script", cursive;
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 26px;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ───────────────────────── AI Hub ───────────────────────── */

.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hub-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--soft);
  margin-top: 16px;
  max-width: 46ch;
}

.hub-points { display: grid; gap: 10px; margin-top: 22px; }

.hub-points li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--soft);
}

.hub-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hub-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hub-actions .link-arrow { color: var(--soft); border-color: rgba(255, 255, 255, 0.3); }
.hub-actions .link-arrow:hover { color: var(--accent-light); border-color: var(--accent-light); }

.hub-shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line-dark);
  box-shadow: 0 30px 60px -32px #000;
  display: block;
  transition: transform 0.5s var(--ease);
}

.hub-shot:hover img { transform: translateY(-4px); }

@media (max-width: 900px) {
  .hub-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────── Experience ───────────────────────── */

.experience {
  border-top: 1px solid var(--line-light);
  padding-top: clamp(56px, 7vw, 88px);
}

.experience .section-intro { color: var(--muted); }

.timeline {
  border-top: 1px solid var(--line-light);
}

.job {
  display: grid;
  grid-template-columns: minmax(0, 0.24fr) minmax(0, 0.76fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 3.4vw, 42px) 0;
  border-bottom: 1px solid var(--line-light);
}

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 3px;
}

.job-period {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.job-loc {
  font-size: 12px;
  color: var(--muted);
}

.job-role {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a94f1c;
}

.job-company {
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 3px;
}

.job-project {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.job ul:not(.job-stack) {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.job ul:not(.job-stack) li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #3f3f3f;
  max-width: 66ch;
}

.job ul:not(.job-stack) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.job-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.job-stack li {
  font-size: 10.5px;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.05);
  color: #4a4a4a;
}

.experience-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 44px);
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}

.experience-foot .education-label {
  display: block;
  color: #a94f1c;
  margin-bottom: 6px;
}

.experience-foot h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.experience-foot p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

/* ───────────────────────── Work ───────────────────────── */

.work { padding-top: 0; }

.work-head { align-items: center; }

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid rgba(21, 21, 21, 0.16);
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: #4a4a4a;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.filter:hover { border-color: rgba(21, 21, 21, 0.4); }
.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1b2521;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.work-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.work-card.is-hidden { display: none; }

.work-media {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--cream-deep);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.work-art {
  width: 100%;
  height: 100%;
  transition: transform 0.55s var(--ease);
}

.work-view {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(27, 37, 33, 0.92);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}

.work-media:hover .work-art,
.work-media:focus-visible .work-art { transform: scale(1.04); }
.work-media:hover .work-view,
.work-media:focus-visible .work-view {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.work-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-top: 14px;
}

.work-caption > div {
  flex: 1 1 auto;
  min-width: 0;
}

.work-caption h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.work-caption p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.work-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 4px 9px;
  margin-top: 2px;
}

.work-footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 56px);
}

/* ───────────────────────── Certifications ───────────────────────── */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cert {
  background: var(--dark-2);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 158px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    background 0.25s var(--ease);
}
.cert:hover {
  border-color: rgba(224, 119, 61, 0.6);
  transform: translateY(-3px);
  background: #27342e;
}

.cert-issuer {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.cert h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #fff;
}

.cert-id {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(185, 192, 188, 0.82);
}

.education {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: 24px;
  margin-top: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}

.education-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding-top: 4px;
}

.education-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.education-body p {
  font-size: 13.5px;
  color: var(--soft);
  margin-top: 4px;
}

/* ───────────────────────── Contact ───────────────────────── */

.contact {
  background: var(--accent);
  color: var(--ink);
  padding-block: clamp(64px, 8vw, 104px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact-title {
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 20px;
}

.contact-lead {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(21, 21, 21, 0.86);
  max-width: 40ch;
  margin-bottom: 28px;
}

.contact-list {
  border-top: 1px solid rgba(21, 21, 21, 0.28);
}

.contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-areas:
    "icon label"
    "icon value";
  column-gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(21, 21, 21, 0.22);
}

.contact-icon {
  grid-area: icon;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(21, 21, 21, 0.35);
  display: grid;
  place-items: center;
}
.contact-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-meta {
  grid-area: label;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21, 21, 21, 0.65);
}

.contact-list a,
.contact-value {
  grid-area: value;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  word-break: break-word;
}
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ───────────────────────── Footer ───────────────────────── */

.site-footer {
  background: var(--dark);
  color: var(--soft);
  padding-block: 26px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-footer .logo-mark {
  background: rgba(246, 241, 233, 0.1);
  color: var(--cream);
}
.logo-footer .logo-text { color: #fff; }
.logo-footer .logo-text span { color: rgba(246, 241, 233, 0.5); }

.copyright {
  font-size: 12px;
  color: rgba(185, 192, 188, 0.75);
}

.socials {
  display: flex;
  gap: 8px;
}
.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: rgba(246, 241, 233, 0.8);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.socials svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ───────────────────────── Dialog ───────────────────────── */

.project-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: min(88vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--cream);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5);
}
.project-dialog::backdrop {
  background: rgba(21, 26, 23, 0.62);
  backdrop-filter: blur(3px);
}

.dialog-inner { padding: clamp(26px, 4vw, 44px); position: relative; }

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.dialog-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.dialog-close:hover { background: var(--dark); color: var(--cream); }

.dialog-title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 4px 40px 8px 0;
}

.dialog-sub {
  font-size: 13.5px;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 20px;
}

.dialog-body p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #3f3f3f;
  margin-bottom: 14px;
}

.dialog-body h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 20px 0 10px;
}

.dialog-body ul { display: grid; gap: 8px; }
.dialog-body li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #3f3f3f;
}
.dialog-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.dialog-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}
.dialog-stack li {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: #3a3a3a;
}

/* ───────────────────────── Reveal ───────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ───────────────────────── Responsive ───────────────────────── */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .hero-art { max-width: 420px; margin-top: 12px; }
  .hero { padding-bottom: 64px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .service { padding: 0 0 0 24px; }
  .service:nth-child(odd) { padding-left: 0; border-left: 0; }
  .about-grid { gap: 56px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .btn-nav { margin-left: auto; }

  .nav-open .nav {
    display: flex;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line-light);
    box-shadow: 0 24px 40px -30px rgba(21, 21, 21, 0.5);
    margin-left: 0;
  }
  .nav-open .nav a { font-size: 17px; padding: 12px 0; width: 100%; }
  .nav-open .nav a::after { display: none; }

  .head-split { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .section-intro { max-width: 56ch; }
  .work-head { gap: 24px; }
  .filters { justify-content: flex-start; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 380px; margin-inline: auto; width: 100%; }
  .about-copy { max-width: 620px; }

  .job { grid-template-columns: 1fr; gap: 10px; }
  .job-meta { flex-direction: row; align-items: baseline; gap: 12px; padding-top: 0; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
  .nav-wrap { height: 72px; }
  .nav-open .nav { top: 72px; }
  .logo-text { font-size: 12.5px; }
  .btn-nav { display: none; }
  .nav-toggle { margin-left: auto; }

  .hero { padding-top: 26px; }
  .hero-title { font-size: clamp(54px, 15vw, 72px); }
  .line-with-meta { gap: 12px; }
  .title-meta { font-size: 8.5px; margin-top: 6px; padding-left: 10px; letter-spacing: 0.1em; gap: 9px; }
  .hero-lead { font-size: 14.5px; }
  .hero-actions { gap: 16px; margin-top: 24px; }
  .btn { padding: 13px 22px; font-size: 14px; }
  .stats { margin-top: 32px; }
  .stat { padding-right: 14px; margin-right: 14px; }
  .stat-value { font-size: 24px; }
  .stat-label { font-size: 9px; letter-spacing: 0.06em; max-width: 9ch; }

  .hero-art { max-width: 320px; margin-top: 20px; }
  .chip { font-size: 10.5px; padding: 7px 12px; }
  .hero-now { font-size: 10px; padding: 8px 12px; max-width: 200px; }

  .service { padding-left: 18px; }
  .services-grid { row-gap: 36px; }
  .service h3 { font-size: 16.5px; }
  .service p { font-size: 13px; }
  .service-icon { width: 48px; height: 48px; margin-bottom: 18px; }

  .work-grid { grid-template-columns: 1fr; gap: 26px; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert { min-height: 0; }
  .education { grid-template-columns: 1fr; gap: 10px; }

  .contact-list li { grid-template-columns: 36px 1fr; }
  .contact-icon { width: 36px; height: 36px; }
  .contact-title { font-size: clamp(34px, 10vw, 42px); }

  .footer-wrap { justify-content: center; text-align: center; }
  .socials { order: 3; }
  .copyright { order: 2; width: 100%; }
}

/* ───────────────────────── Motion preferences ───────────────────────── */

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

/* ───────────────────────── Ask AI ───────────────────────── */

.ask { background: var(--cream); scroll-margin-top: 96px; }

.ask-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.ask .section-intro { color: var(--muted); }

.ask-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 22px;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 18px 44px -34px rgba(27, 37, 33, 0.45);
}

.ask-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(21, 21, 21, 0.22) transparent;
}

.ask-log::-webkit-scrollbar { width: 8px; }
.ask-log::-webkit-scrollbar-thumb {
  background: rgba(21, 21, 21, 0.18);
  border-radius: 999px;
}
.ask-log::-webkit-scrollbar-track { background: transparent; }

.ask-msg {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--line-light);
}

.ask-msg.assistant { align-self: flex-start; }

.ask-msg.user {
  align-self: flex-end;
  background: var(--dark);
  border-color: transparent;
  color: var(--cream);
}

.ask-who {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}

.ask-msg p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ask-cites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ask-cite {
  font-size: 11px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
}

.ask-msg.user .ask-cite {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
}

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.ask-chip {
  font: 500 12.5px/1 var(--font-body);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.ask-chip:hover { border-color: var(--ink); color: var(--ink); }

.ask-form { display: flex; gap: 10px; align-items: flex-end; }

.ask-input {
  flex: 1;
  resize: none;
  min-height: 48px;
  max-height: 120px;
  padding: 13px 15px;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.4 var(--font-body);
}

.ask-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ask-input::placeholder { color: var(--muted); opacity: 1; }

.ask-send { min-height: 48px; padding-inline: 20px; color: var(--ink); }
.ask-send svg { stroke: var(--ink); }
.ask-send:disabled { opacity: 0.55; cursor: default; }

.ask-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.ask-msg.pending p { color: var(--muted); }

.ask-msg.pending p::after {
  content: "…";
  animation: ask-blink 1.2s steps(2, start) infinite;
}

@keyframes ask-blink { 50% { opacity: 0.25; } }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .ask-wrap { grid-template-columns: 1fr; }
  .ask-card { width: 100%; }
}

@media (max-width: 560px) {
  .ask-msg { max-width: 100%; }
  .ask-log { max-height: 360px; }
  .ask-form { flex-direction: column; align-items: stretch; }
  .ask-send { width: 100%; justify-content: center; }
  .ask-chip { min-height: 36px; }
}
