/*
 * ==============================================================================
 * GAYA EDITORIAL PORTOFOLIO - HARUN AR RASYID
 * ==============================================================================
 * Terinspirasi dari gaya editorial Mahmud Arif:
 * Kertas hangat (#f8f8f5), tinta pekat (#171816), aksen terakota (#ef593d),
 * tipografi ekspresif serif miring (Georgia), panggung potret arsitektural,
 * dan tata letak modular yang responsif.
 * ==============================================================================
 */

:root {
  --paper: #f8f8f5;
  --paper2: #eeeee9;
  --paper3: #e5e5dd;
  --paper-dark: #20221f;
  --card: #ffffff;
  --ink: #171816;
  --ink-soft: #2c2d2a;
  --gray: #70716b;
  --light: #9a9b95;
  --rule: #e2e2da;
  --rule-dark: rgba(255, 255, 255, 0.14);
  --accent: #ef593d;
  --accent2: #ffdace;
  --accent-dark: #d34428;
  --green: #68a98e;
  --yellow: #d6a65d;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 19px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --serif: Georgia, 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, Menlo, monospace;
  --shadow-sm: 0 4px 12px rgba(23, 24, 22, 0.04);
  --shadow-card: 0 16px 36px rgba(23, 24, 22, 0.06);
  --shadow-float: 0 24px 60px rgba(36, 34, 32, 0.12);
  --shadow-sticker: 0 20px 36px rgba(239, 89, 61, 0.28);
  --shadow-modal: 0 30px 100px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
  background-color: var(--paper);
  color-scheme: light;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

/* Aksesibilitas */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 999;
  font-weight: 700;
  font-size: 14px;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--accent);
}

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

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

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

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

/* Komponen Dasar */
.container {
  width: min(1320px, calc(100% - 104px));
  margin: 0 auto;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.muted {
  color: var(--gray);
}

.accent {
  color: var(--accent);
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #83b89d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(131, 184, 157, 0.24);
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dcded7;
  color: #4b4d49;
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--white);
}

.tag.dark {
  border-color: #3c413f;
  background: #2a2c28;
  color: var(--white);
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 39px;
}

.section-top h2 {
  margin: 11px 0 0;
  font-size: clamp(38px, 5vw, 67px);
  letter-spacing: -0.072em;
  line-height: 1.05;
  font-weight: 650;
  color: var(--ink);
}

.section-top h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.065em;
  color: var(--accent);
}

.section-top p {
  max-width: 380px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* ==============================================================================
 * HEADER / NAVBAR
 * ============================================================================== */
.site-header {
  height: 89px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 231, 227, 0.8);
  transition: all 0.2s ease;
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 830;
  letter-spacing: -0.06em;
  font-size: 22px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--white);
  font-size: 20px;
  font-weight: 750;
}

.brand-dot {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 650;
  color: #666861;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.round-link {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border: 1px solid #d6d7d1;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.round-link:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.round-link svg {
  width: 17px;
  height: 17px;
}

.top-cta {
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 740;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.mobile-trigger {
  display: none;
  background: none;
  border: 1px solid #dcdcd6;
  border-radius: var(--radius-full);
  padding: 10px 14px;
  font-size: 18px;
  color: var(--ink);
}

/* ==============================================================================
 * HERO SECTION
 * ============================================================================== */
.hero {
  padding: 60px 0 79px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 6%;
  min-height: 620px;
}

.hero-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #666a63;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-intro b {
  color: var(--ink);
}

.hero h1 {
  margin: 28px 0 22px;
  font-size: clamp(60px, 7vw, 110px);
  letter-spacing: -0.092em;
  font-weight: 650;
  line-height: 0.98;
  max-width: 760px;
  color: var(--ink);
}

.hero h1 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.09em;
  color: var(--accent);
}

.hero-copy {
  color: #6e706b;
  font-size: 15px;
  line-height: 1.85;
  max-width: 530px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.primary-btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--white);
  padding: 15px 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 750;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(239, 89, 61, 0.2);
}

.primary-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(239, 89, 61, 0.3);
}

.secondary-btn {
  background: var(--white);
  border: 1px solid #dadbd5;
  color: var(--ink);
  padding: 15px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 750;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #bbb;
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}

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

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 54px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

.tiny-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 16px;
  font-weight: 750;
  flex-shrink: 0;
}

.hero-bottom strong {
  font-size: 13px;
  display: block;
}

.hero-bottom p {
  font-size: 12px;
  line-height: 1.5;
  margin: 2px 0 0;
  color: #898b84;
}

.hero-proof {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-proof > span {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.09em;
  color: var(--ink);
}

.hero-proof small {
  font-size: 10px;
  max-width: 65px;
  line-height: 1.35;
  color: #80817d;
  font-weight: 600;
}

/* Panggung Potret Arsitektural */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 540px;
  justify-self: end;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.portrait-stage {
  position: relative;
  width: 100%;
  height: 600px;
  max-height: 76vh;
  border-radius: 40% 40% 24px 24px;
  background: #edece6;
  isolation: isolate;
}

.portrait-stage::before {
  content: '';
  position: absolute;
  border: 1px solid #d7d5cb;
  width: calc(100% + 30px);
  height: calc(100% - 50px);
  left: -15px;
  top: 26px;
  border-radius: 42% 42% 24px 24px;
  z-index: -1;
}

.portrait-stage::after {
  content: '✳';
  position: absolute;
  color: var(--accent);
  font-size: 76px;
  top: 40px;
  right: -38px;
  line-height: 1;
  transform: rotate(-12deg);
  pointer-events: none;
}

.portrait-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 40% 40% 24px 24px;
  background: #20221f;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.04) brightness(1.02);
}

.photo-subtitle {
  position: absolute;
  bottom: 22px;
  right: 21px;
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  background: rgba(20, 20, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  padding: 10px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.float-note {
  position: absolute;
  top: 110px;
  left: -65px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: rotate(-6deg);
  z-index: 5;
  animation: levitate 5s ease-in-out infinite;
}

.float-note .symbol {
  font-size: 22px;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.float-note strong {
  font-size: 12px;
  display: block;
}

.float-note small {
  display: block;
  font-size: 10px;
  color: var(--gray);
  margin-top: 3px;
}

.float-sticker {
  position: absolute;
  bottom: 95px;
  left: -52px;
  background: var(--accent);
  height: 110px;
  width: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  transform: rotate(-11deg);
  z-index: 5;
  box-shadow: var(--shadow-sticker);
}

.float-sticker span {
  font-size: 24px;
  line-height: 1;
  display: block;
  margin-bottom: 3px;
}

.photo-cross {
  position: absolute;
  top: 0;
  left: -60px;
  font-size: 20px;
  color: var(--accent);
  pointer-events: none;
}

.photo-index {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #888;
  position: absolute;
  right: -25px;
  bottom: 0;
  writing-mode: vertical-rl;
}

@keyframes levitate {
  0%, 100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-13px) rotate(-4deg);
  }
}

/* ==============================================================================
 * TICKER BAR
 * ============================================================================== */
.ticker {
  border-block: 1px solid var(--rule);
  padding: 24px 0;
  overflow: hidden;
  background: var(--paper);
}

.ticker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.ticker small {
  color: #858782;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  flex: 0 0 auto;
}

.ticker-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: 100%;
  max-width: 960px;
}

.ticker-list b {
  font-weight: 750;
  letter-spacing: -0.045em;
  font-size: 16px;
  color: #595b55;
  white-space: nowrap;
}

.ticker-list i {
  font-style: normal;
  color: var(--accent);
  font-size: 20px;
}

/* ==============================================================================
 * SELECTED WORK (FEATURED PROJECTS)
 * ============================================================================== */
.work {
  padding: 110px 0 100px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
}

.work-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.work-cover {
  background: #e9e9e3;
  border-radius: var(--radius);
  aspect-ratio: 1.45;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #e1e2dc;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover .work-cover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.work-cover svg {
  width: 100%;
  height: 100%;
  display: block;
}

.work-tags {
  display: flex;
  gap: 8px;
  margin: 18px 0 12px;
  flex-wrap: wrap;
}

.work-card-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.work-card-title h3 {
  font-size: 24px;
  letter-spacing: -0.05em;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}

.work-card p {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 18px;
  flex-grow: 1;
}

.work-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.card-action-btn {
  background: var(--white);
  border: 1px solid #dadbd5;
  color: var(--ink);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.card-action-btn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.card-action-btn.primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.card-action-btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.work-more {
  margin-top: 50px;
  text-align: center;
}

/* ==============================================================================
 * ABOUT / CAPABILITIES (DARK EDITORIAL BLOCK)
 * ============================================================================== */
.about {
  background: var(--paper-dark);
  color: var(--white);
  padding: 105px 0 110px;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -160px;
  top: -140px;
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.02), 0 0 0 180px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
  position: relative;
}

.about h2 {
  font-weight: 550;
  letter-spacing: -0.079em;
  line-height: 1.08;
  font-size: clamp(40px, 5.2vw, 75px);
  margin: 18px 0 24px;
  color: var(--white);
}

.about h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: #f49a79;
}

.about p {
  color: #bcbeb8;
  line-height: 1.85;
  font-size: 14px;
  max-width: 560px;
  margin: 0 0 18px;
}

.about-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service {
  border: 1px solid var(--rule-dark);
  padding: 28px 24px;
  border-radius: 14px;
  min-height: 180px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, transform 0.2s ease;
}

.service:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 20px;
  color: #ffa68d;
}

.service strong {
  display: block;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.025em;
  color: var(--white);
}

.service span {
  display: block;
  color: #9eaaa0;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 8px;
}

/* ==============================================================================
 * ARCHIVE SECTION (25 CASE STUDIES)
 * ============================================================================== */
.archive {
  padding: 110px 0 100px;
}

.archive-head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 30px;
  margin-bottom: 26px;
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

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

.filter {
  background: transparent;
  border: 1px solid #dadbd5;
  color: #696c65;
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 750;
  transition: all 0.18s ease;
}

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

.search {
  height: 44px;
  width: min(300px, 100%);
  border: 1px solid #dadbd5;
  border-radius: 100px;
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}

.search svg {
  width: 16px;
  height: 16px;
  stroke: #8b8e87;
  flex-shrink: 0;
}

.search input {
  outline: none;
  border: none;
  background: transparent;
  color: var(--ink);
  width: 100%;
  font-size: 12px;
}

.archive-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #878a83;
  margin-bottom: 14px;
}

.archive-list {
  border-top: 1px solid var(--rule);
}

.archive-row {
  display: grid;
  grid-template-columns: 55px minmax(0, 1.15fr) minmax(0, 1.1fr) 130px 48px;
  align-items: center;
  gap: 20px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--rule);
  min-height: 106px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.archive-row:hover {
  background: #f0f0eb;
}

.archive-n {
  color: #a5a6a0;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
}

.archive-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.archive-name strong {
  font-size: 16px;
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.archive-name small {
  font-size: 10px;
  color: var(--gray);
  font-weight: 600;
}

.archive-desc {
  font-size: 12px;
  color: #777a74;
  line-height: 1.7;
  max-width: 440px;
}

.archive-role {
  color: #8a8d87;
  font-size: 11px;
  font-weight: 600;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.arrow-button {
  background: var(--white);
  border: 1px solid #dedfd8;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.archive-row:hover .arrow-button, .arrow-button:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.archive-empty {
  padding: 60px 20px;
  text-align: center;
  color: #888;
  line-height: 1.7;
  font-size: 14px;
}

/* ==============================================================================
 * GITHUB REPOSITORY EXPLORER SECTION
 * ============================================================================== */
.github {
  background: #f0f0ec;
  padding: 105px 0 110px;
}

.github-headnote {
  background: var(--white);
  border: 1px solid #e3e3df;
  border-radius: 15px;
  padding: 16px 20px;
  margin: 0 0 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sync-indicator {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: var(--yellow);
  flex: 0 0 auto;
}

.sync-indicator.ready {
  background: var(--green);
}

.sync-indicator.error {
  background: var(--accent);
}

.status-text {
  color: #747670;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 550;
}

.sync-btn {
  background: var(--paper);
  color: #232521;
  border-radius: 100px;
  border: 1px solid #e2e3dc;
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 790;
  transition: all 0.2s ease;
}

.sync-btn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.repo-toolbar {
  display: flex;
  gap: 10px;
  margin: 20px 0 14px;
  align-items: stretch;
}

.repo-search-label {
  height: 46px;
  border: 1px solid #d8dad4;
  background: var(--white);
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  flex: 1;
  min-width: 200px;
}

.repo-search-label span {
  font-size: 20px;
  color: var(--accent);
}

.repo-search-label input {
  font-family: inherit;
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 12px;
  color: var(--ink);
}

.repo-toolbar select {
  border: 1px solid #d8dad4;
  background: var(--white);
  color: var(--ink);
  border-radius: 13px;
  padding: 0 14px;
  font-size: 12px;
  min-width: 160px;
  cursor: pointer;
}

.repo-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 11px;
  color: #777970;
}

.repo-meta-line strong {
  color: var(--ink);
  font-size: 14px;
}

.repo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.repo-forks {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  white-space: nowrap;
  font-size: 11px;
  cursor: pointer;
}

.repo-forks input {
  accent-color: var(--accent);
}

.mini-btn {
  border: 1px solid #d8dad4;
  background: var(--white);
  color: #34362f;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mini-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

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

.repo-card {
  background: var(--white);
  border: 1px solid #e1e2db;
  border-radius: 15px;
  padding: 22px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.repo-card:hover {
  transform: translateY(-4px);
  border-color: #f3ab96;
  box-shadow: var(--shadow-sm);
}

.repo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.repo-glyph {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f7ebe6;
  color: #e15b3a;
  font-size: 20px;
}

.repo-card-head small {
  font-size: 10px;
  color: #8c8e88;
  font-weight: 700;
}

.repo-card h3 {
  font-size: 17px;
  letter-spacing: -0.045em;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.repo-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #767972;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.repo-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mini-topic {
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #f6f4ed;
  color: #6b7165;
  font-weight: 600;
}

.repo-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  color: #80817c;
  margin-top: auto;
  padding-top: 10px;
}

.lang-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dda87f;
  margin-right: 5px;
}

.repo-links {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  border-top: 1px solid #eeeeea;
  padding-top: 14px;
}

.repo-links a {
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
}

.repo-links a:nth-child(n+2) {
  color: #7f807a;
}

.repo-links a:hover {
  text-decoration: underline;
}

.gh-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: #858881;
  font-size: 12px;
  flex-wrap: wrap;
}

.inline-link {
  font-size: 13px;
  font-weight: 730;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.inline-link:hover {
  text-decoration: underline;
}

.repo-help {
  margin: 18px 0 0;
  color: #777a74;
  line-height: 1.8;
  font-size: 11px;
}

.repo-help a {
  color: var(--accent);
  text-decoration: underline;
}

/* ==============================================================================
 * EXPERIENCE & EDUCATION SECTION
 * ============================================================================== */
.experience {
  padding: 110px 0;
}

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 7%;
  align-items: start;
}

.exp-left h2 {
  font-size: clamp(40px, 5vw, 73px);
  line-height: 1.08;
  letter-spacing: -0.073em;
  font-weight: 650;
  margin: 16px 0 20px;
}

.exp-left p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 14px;
  max-width: 420px;
  margin: 0 0 24px;
}

.exp-list {
  border-top: 1px solid var(--rule);
}

.exp-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
}

.exp-item small {
  font-size: 11px;
  font-weight: 700;
  color: #8e9089;
  letter-spacing: 0.05em;
  padding-top: 3px;
}

.exp-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
}

.exp-item p {
  font-size: 12px;
  color: #7c7e77;
  line-height: 1.7;
  margin: 0;
}

.exp-item em {
  font-size: 11px;
  color: var(--accent);
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 600;
}

/* ==============================================================================
 * CONTACT SECTION (TERRACOTTA EDITORIAL CALLOUT)
 * ============================================================================== */
.contact {
  background: var(--accent);
  color: var(--white);
  padding: 110px 0 75px;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '*';
  font-family: var(--serif);
  font-size: 520px;
  line-height: 0.4;
  position: absolute;
  right: 2%;
  top: 100px;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.contact-inner {
  position: relative;
}

.contact h2 {
  font-size: clamp(52px, 7.8vw, 118px);
  letter-spacing: -0.095em;
  font-weight: 620;
  line-height: 0.98;
  max-width: 920px;
  margin: 28px 0 35px;
  color: var(--white);
}

.contact h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.contact-cta {
  background: var(--white);
  color: #272722;
  padding: 16px 28px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 770;
  display: inline-flex;
  gap: 20px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.contact-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.contact-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 24px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 750;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  transition: background 0.2s, transform 0.2s;
}

.contact-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.contact-row p {
  font-size: 13px;
  line-height: 1.8;
  color: #ffddd5;
  max-width: 360px;
  margin: 0;
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 110px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
}

.contact-footer .socials {
  display: flex;
  gap: 24px;
}

.contact-footer a:hover {
  text-decoration: underline;
}

/* ==============================================================================
 * DETAIL MODAL DIALOG
 * ============================================================================== */
.dialog {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 200;
  place-items: center;
  padding: 20px;
  background: rgba(16, 18, 17, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dialog.active {
  display: grid;
}

.modal {
  background: #fafaf7;
  border-radius: var(--radius-lg);
  width: min(740px, 100%);
  max-height: min(92vh, 880px);
  overflow: auto;
  box-shadow: var(--shadow-modal);
  position: relative;
  animation: modalPop 0.22s ease-out;
}

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

.modal-top {
  padding: 30px 36px 28px;
  background: #f0f0e9;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  border: 1px solid #deded6;
  border-radius: 50%;
  background: var(--white);
  font-size: 22px;
  font-weight: 300;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all 0.18s ease;
}

.modal-close:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.modal .eyebrow {
  color: var(--accent);
  margin-top: 4px;
}

.modal h2 {
  margin: 14px 0 10px;
  font-weight: 680;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.06em;
  max-width: 600px;
  line-height: 1.25;
}

.modal-summary {
  font-size: 13px;
  line-height: 1.75;
  color: #6b6d67;
  margin: 0;
}

.modal-visual {
  width: 100%;
  aspect-ratio: 1.7;
  background: #e6e8e2;
  border-bottom: 1px solid #dedfd7;
}

.modal-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.modal-body {
  padding: 28px 36px 36px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #f4f4ee;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.modal-meta-item small {
  display: block;
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 3px;
}

.modal-meta-item strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  font-weight: 700;
}

.modal-body p {
  font-size: 13px;
  line-height: 1.85;
  color: #555751;
  margin: 0 0 20px;
}

.modal-body h3 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 24px 0 12px;
  color: var(--ink);
  font-weight: 800;
}

.modal-body ul {
  padding-left: 20px;
  margin: 0 0 24px;
}

.modal-body li {
  font-size: 13px;
  line-height: 1.8;
  color: #5a5d56;
  margin-bottom: 8px;
}

.modal-tech-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid #e7e7e1;
}

/* ==============================================================================
 * TOAST NOTIFICATION
 * ============================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 650;
  box-shadow: var(--shadow-modal);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==============================================================================
 * MEDIA QUERIES (RESPONSIF)
 * ============================================================================== */
@media (max-width: 1100px) {
  .container {
    width: min(100% - 64px, 1320px);
  }
  .hero {
    padding-top: 45px;
  }
  .hero-grid {
    gap: 4%;
    min-height: 560px;
  }
  .hero h1 {
    font-size: clamp(56px, 7vw, 86px);
  }
  .portrait-stage {
    height: 530px;
  }
  .float-note {
    left: -32px;
  }
  .float-sticker {
    left: -26px;
  }
  .repo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .archive-row {
    grid-template-columns: 40px 1.1fr 1fr 100px 44px;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 40px);
  }
  .site-header {
    height: 74px;
  }
  .brand {
    font-size: 20px;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid #e2e2dc;
    padding: 16px;
    box-shadow: var(--shadow-modal);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
    border-radius: 8px;
  }
  .nav-links a:hover {
    background: var(--paper);
  }
  .top-cta {
    display: none;
  }
  .header-actions .round-link {
    display: none;
  }
  .mobile-trigger {
    display: block;
  }
  .hero {
    padding: 36px 0 52px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero h1 {
    font-size: clamp(52px, 11vw, 84px);
    margin: 20px 0 18px;
  }
  .hero-art {
    width: min(88%, 460px);
    margin: 0 auto;
    justify-self: center;
  }
  .portrait-stage {
    height: min(100vw, 560px);
    min-height: 420px;
    max-height: none;
  }
  .portrait-stage::after {
    font-size: 55px;
    right: -28px;
  }
  .float-note {
    top: 70px;
    left: -24px;
    padding: 12px 16px;
  }
  .float-sticker {
    left: -28px;
    bottom: 60px;
    width: 86px;
    height: 86px;
    font-size: 9px;
  }
  .float-sticker span {
    font-size: 20px;
  }
  .ticker-list {
    gap: 22px;
  }
  .ticker-list b {
    font-size: 14px;
  }
  .work, .archive, .experience {
    padding: 75px 0;
  }
  .section-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }
  .section-top h2 {
    font-size: clamp(38px, 8.5vw, 54px);
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .about {
    padding: 72px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-services {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .archive-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .archive-row {
    grid-template-columns: 32px minmax(0, 1fr) 40px;
    gap: 10px;
    padding: 18px 4px;
    min-height: 85px;
  }
  .archive-desc, .archive-role {
    display: none;
  }
  .repo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .repo-toolbar {
    flex-wrap: wrap;
  }
  .repo-search-label {
    flex-basis: 100%;
  }
  .repo-toolbar select {
    height: 44px;
    flex: 1;
  }
  .exp-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .exp-item {
    grid-template-columns: 110px 1fr;
    gap: 14px;
  }
  .contact {
    padding: 75px 0 35px;
  }
  .contact h2 {
    font-size: clamp(48px, 10vw, 76px);
  }
  .contact-footer {
    margin-top: 80px;
  }
  .modal-top, .modal-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 440px) {
  .hero h1 {
    font-size: 50px;
  }
  .hero-bottom {
    gap: 16px;
  }
  .hero-proof > span {
    font-size: 28px;
  }
  .contact-footer .socials {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
