/* FONTS */
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Regular-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Medium-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Bold-ext.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("assets/fonts/Syne-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("assets/fonts/Syne-Bold-ext.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
  font-family: "Syne";
  src: url("assets/fonts/Syne-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("assets/fonts/Syne-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* UNIFIED DESIGN TOKENS */
:root {
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: "Syne", system-ui, -apple-system, sans-serif;

  /* Strict 5-step type scale in rem */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);

  /* Unified Surface Hierarchy */
  --bg-page: #13151b;
  --bg-card: #0d0f14;
  --bg-elevated: #1c2029;

  /* Unified Text Hierarchy */
  --text-primary: #eaeef5;
  --text-secondary: #9ba3b0;
  --text-muted: #667080;

  /* Unified Syntax & Brand Accents */
  --accent-peach: #e59866;
  --accent-pink: #d98ae6;
  --accent-green: #56d364;
  --accent-cyan: #58c4dc;

  /* Terminal Window Dots */
  --dot-red: #ff5f56;
  --dot-yellow: #ffbd2e;
  --dot-green: #27c93f;

  /* Unified Borders & Radii */
  --border-subtle: #252a36;
  --border-hover: #384052;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-full: 9999px;

  /* Shared Layout Width */
  --container-width: min(100% - 2.5rem, 64rem);
}

/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: 1.65;
  text-align: start;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

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

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

/* LAYOUT SHELL & LOAD ANIMATION */
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-shell {
  width: var(--container-width);
  margin-inline: auto;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  animation: pageEnter 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .page-shell {
    animation: none;
  }
}

/* HERO SECTION */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-name {
  color: var(--accent-peach);
}

/* LANGUAGE DROPDOWN */
.lang-dropdown {
  position: relative;
}

.lang-trigger {
  appearance: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.lang-trigger:hover,
.lang-trigger[aria-expanded="true"] {
  border-color: var(--accent-peach);
  color: var(--accent-peach);
}

.lang-flag {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.lang-chevron {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease, color 0.18s ease;
}

.lang-trigger[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
  color: var(--accent-peach);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 30;
  min-width: 100%;
  list-style: none;
  background-color: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: top right;
  transition:
    opacity 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    display 0.16s allow-discrete;
}

@starting-style {
  .lang-menu:not([hidden]) {
    opacity: 0;
    transform: translateY(-0.3rem) scale(0.97);
  }
}

.lang-menu[hidden] {
  display: none;
  opacity: 0;
  transform: translateY(-0.3rem) scale(0.97);
}

/* LANGUAGE SWAP TEXT ANIMATION */
[data-i18n],
#langCurrentFlag,
#langCurrentLabel {
  transition:
    opacity 0.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.15s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-lang-switching [data-i18n],
body.is-lang-switching #langCurrentFlag,
body.is-lang-switching #langCurrentLabel {
  opacity: 0;
  transform: translateY(0.2rem);
  filter: blur(1.5px);
}

@media (prefers-reduced-motion: reduce) {
  .lang-menu,
  [data-i18n],
  #langCurrentFlag,
  #langCurrentLabel {
    transition: none;
  }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

.lang-option.is-selected {
  background-color: var(--bg-elevated);
  color: var(--accent-peach);
}

.hero-bio {
  max-width: 68ch;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.75;
}

.inline-link {
  color: var(--text-primary);
  border-bottom: 1.5px solid var(--accent-peach);
  padding-bottom: 0.08em;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.inline-link:hover {
  color: var(--accent-peach);
  background-color: rgba(229, 152, 102, 0.12);
}

.hero-sup {
  font-size: var(--text-xs);
  color: var(--accent-peach);
  margin-left: 0.15em;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.18s ease;
}

.hero-link:hover {
  color: var(--accent-peach);
}

.hero-link-icon {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.85;
}

.hero-divider {
  color: var(--text-muted);
  user-select: none;
}

.hero-orgs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: var(--text-sm);
}

.org-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-secondary);
  transition: color 0.18s ease, transform 0.18s ease;
}

.org-pill:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.org-badge {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  object-fit: cover;
}

.org-name-active {
  color: var(--text-primary);
  font-weight: 500;
}

.org-tag {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.org-slash {
  color: var(--text-muted);
  font-weight: 700;
}

/* FEATURED PROJECTS SECTION */
.projects-section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.star-outline-icon {
  width: 1.45rem;
  height: 1.45rem;
  color: var(--accent-peach);
}

.view-all-link {
  font-size: var(--text-sm);
  color: var(--accent-peach);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.view-all-text {
  border-bottom: 1.5px dashed var(--accent-peach);
  padding-bottom: 0.1em;
}

.view-all-link:hover .view-all-text {
  border-bottom-style: solid;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-frame {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.project-frame:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.terminal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 13.75rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.window-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: var(--radius-full);
}

.dot-red {
  background-color: var(--dot-red);
}

.dot-yellow {
  background-color: var(--dot-yellow);
}

.dot-green {
  background-color: var(--dot-green);
}

.terminal-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.star-solid-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--accent-peach);
}

.project-preview-wrap {
  display: block;
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: var(--bg-page);
  aspect-ratio: 16 / 9;
}

.project-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.project-frame:hover .project-preview-img {
  transform: scale(1.03);
}

.project-hover-badge {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  background-color: rgba(19, 21, 27, 0.92);
  color: var(--accent-peach);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.65rem;
  font-size: var(--text-xs);
  font-weight: 500;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.project-hover-badge-live {
  color: var(--accent-green);
}

.project-frame:hover .project-hover-badge,
.project-preview-wrap:focus-visible .project-hover-badge {
  opacity: 1;
  transform: translateY(0);
}

.repo-heading {
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.repo-heading-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.repo-owner {
  color: var(--accent-pink);
}

.repo-sep {
  color: var(--text-muted);
}

.repo-title {
  color: var(--accent-green);
}

.repo-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.terminal-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.terminal-meta-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contributor-img {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.repo-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.project-btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

.project-btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* EDUCATION & WORK SECTION */
.experience-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tab-switcher {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.tab-switcher::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0.25rem;
  width: calc(50% - 0.25rem);
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  transform: translateX(0%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.tab-switcher[data-active="work"]::before {
  transform: translateX(100%);
}

.tab-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.22s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.is-active {
  color: var(--accent-peach);
}

.timeline-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.timeline-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.timeline-panel[hidden] {
  display: none;
}

.timeline-panel-empty::before {
  display: none;
}

.work-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
}

.work-empty-emoji {
  font-size: var(--text-xl);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.work-empty-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
}

.work-empty-sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 42ch;
}

.timeline-panel::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1.75rem;
  width: 1px;
  background-color: var(--border-subtle);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
}

.timeline-logo-wrap {
  position: relative;
  z-index: 1;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.timeline-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-org {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-role {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.timeline-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-bullets {
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.timeline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.timeline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.timeline-pill:hover {
  border-color: var(--accent-peach);
  color: var(--accent-peach);
  transform: translateY(-1px);
}

.globe-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--accent-peach);
}

/* CONTACT FORM SECTION */
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 2.25rem;
  align-items: stretch;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding-right: 1.75rem;
  border-right: 1px solid var(--border-subtle);
}

.contact-info-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
}

.contact-info-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

.contact-direct-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-direct-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: var(--text-xs);
  transition: border-color 0.18s ease;
}

a.contact-direct-item:hover {
  border-color: var(--accent-peach);
}

.contact-direct-label {
  color: var(--text-muted);
  font-weight: 500;
}

.contact-direct-value {
  color: var(--text-primary);
  font-weight: 700;
}

a.contact-direct-item:hover .contact-direct-value {
  color: var(--accent-peach);
}

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

.contact-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
}

.contact-input {
  appearance: none;
  outline: none;
  width: 100%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: border-color 0.18s ease;
}

.contact-input::placeholder {
  color: var(--text-muted);
}

.contact-input:focus {
  border-color: var(--accent-peach);
}

.contact-textarea {
  resize: none;
  overflow-y: hidden;
  field-sizing: content;
  min-height: 6.75rem;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-footer-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-status {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-align: center;
  min-height: 1.1rem;
}

.contact-status:empty {
  display: none;
}

.contact-status.is-success {
  color: var(--accent-green);
}

.contact-status.is-error {
  color: var(--dot-red);
}

.contact-submit-btn {
  appearance: none;
  outline: none;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background-color: var(--bg-elevated);
  color: var(--accent-peach);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.15rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.contact-submit-btn:hover:not(:disabled) {
  border-color: var(--accent-peach);
  background-color: rgba(229, 152, 102, 0.12);
  transform: translateY(-1px);
}

.contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* FOOTER SECTION */
.site-footer {
  background-color: var(--bg-page);
  padding-bottom: 2rem;
  font-family: var(--font-mono);
}

.footer-card {
  width: var(--container-width);
  margin-inline: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.75rem 2.25rem 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.75rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-tagline {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

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

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

.footer-col-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 1rem;
}

.heading-orange {
  color: var(--accent-peach);
}

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

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.footer-nav-list a {
  transition: color 0.18s ease;
}

.footer-nav-list a:hover {
  color: var(--accent-peach);
}

.footer-social-grid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.social-item:hover {
  color: var(--text-primary);
}

.social-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  object-fit: cover;
}

.footer-cta-col {
  display: flex;
  flex-direction: column;
}

.footer-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.footer-cta-row + .footer-cta-row {
  border-top: 1px solid var(--border-subtle);
}

.footer-cta-row:first-child {
  padding-top: 0;
}

.footer-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-cta-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.footer-cta-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-arrow-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.footer-cta-row:hover .footer-arrow-btn {
  transform: translateX(3px);
  border-color: var(--accent-green);
}

.arrow-svg {
  width: 1rem;
  height: 1rem;
}

.footer-wordmark-wrap {
  width: 100%;
  container-type: inline-size;
  overflow: hidden;
  line-height: 0.78;
  margin-bottom: -0.06em;
  text-align: center;
}

.footer-wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21cqi;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  white-space: nowrap;
  user-select: none;
}

.footer-bottom-bar {
  width: var(--container-width);
  margin-inline: auto;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 56rem) {
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-col {
    padding-right: 0;
    padding-bottom: 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 38rem) {
  .page-shell {
    padding-top: 2.75rem;
    gap: 3.25rem;
  }

  .timeline-box,
  .contact-box {
    padding: 1.35rem 1.15rem;
  }

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

  .timeline-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-card {
    padding: 2rem 1.35rem 0;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 1.85rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
