:root {
  --font-body: "IBM Plex Sans", sans-serif;
  --font-display: "IBM Plex Serif", serif;
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --surface-strong: #f1ece2;
  --line: #d8cfbe;
  --text: #1d1d1b;
  --muted: #635d52;
  --accent: #8f3d24;
  --accent-dark: #6d2d1a;
  --shadow: 0 18px 50px rgba(56, 41, 24, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.7;
}

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

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

p,
li {
  color: var(--muted);
}

.wrapper {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 242, 0.9);
  border-bottom: 1px solid rgba(216, 207, 190, 0.8);
}

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

.header-inner {
  min-height: 76px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav a,
.mobile-nav a,
.hero-links a,
.site-footer a {
  color: var(--muted);
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.hero-links a:hover,
.site-footer a:hover,
.contact-grid a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(216, 207, 190, 0.8);
  padding: 0 1rem 1rem;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.9rem;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.hero h1,
.section-heading h2 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  margin-bottom: 0.75rem;
}

.hero-role {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-education p,
.hero-summary {
  font-size: 1.04rem;
}

.hero-education {
  margin-bottom: 1.25rem;
}

.hero-summary {
  max-width: 58ch;
  margin-bottom: 1.8rem;
}

.hero-actions,
.hero-links,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffaf4;
}

.button-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-links {
  margin-top: 1.25rem;
}

.hero-media {
  position: relative;
  max-width: 360px;
  justify-self: end;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: auto 14% -1rem -0.75rem;
  height: 82%;
  border-radius: 28px;
  background: var(--surface-strong);
  z-index: 0;
}

.hero-image {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 207, 190, 0.8);
  filter: contrast(0.98) saturate(0.98);
  transition: filter 220ms ease;
}

.hero-image:hover {
  filter: contrast(1.14) saturate(1.06);
}

.content-section {
  padding: 2.25rem 0;
}

.section-shell {
  padding: 2.25rem 0;
  border-top: 1px solid rgba(216, 207, 190, 0.9);
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
}

.about-copy {
  display: grid;
  gap: 0.25rem;
  max-width: 68ch;
}

.fact-stack,
.entry-list,
.three-column-grid,
.contact-grid {
  display: grid;
  gap: 1.2rem;
}

.entry-list {
  grid-template-columns: 1fr;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.three-column-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-card,
.entry-card {
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.fact-card h3,
.entry-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.fact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.fact-logo {
  width: clamp(96px, 8vw, 132px);
  max-width: 34%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  align-self: center;
}

.fact-card-header > div {
  flex: 1;
  min-width: 0;
}

.fact-card p + p {
  margin-top: 0.18rem;
}

.entry-header {
  margin-bottom: 0.85rem;
}

.entry-meta {
  font-size: 0.96rem;
  font-weight: 600;
}

.entry-card p + .tag-row,
.entry-card ul + .tag-row {
  margin-top: 1rem;
}

.project-media {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  overflow: hidden;
}

.project-tile {
  position: relative;
  padding: 1rem;
}

.project-tile:hover,
.project-tile:focus-within {
  z-index: 8;
}

.project-frame {
  position: relative;
  overflow: visible;
  border-radius: 20px;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, #eee5d7 0%, #e2d5c0 100%);
  z-index: 1;
}

.project-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 20px;
}

.project-cover-image {
  object-fit: cover;
  object-position: center center;
  padding: 0rem;
  background: linear-gradient(160deg, #f7f1e7 0%, #efe4d3 100%);
}

.project-overlay {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  width: min(92vw, 360px);
  max-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 248, 236, 0.18);
  background: rgba(21, 19, 15, 0.94);
  box-shadow: 0 24px 60px rgba(21, 19, 15, 0.32);
  color: #f7f2e8;
  opacity: 0;
  pointer-events: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  transform: translate(-50%, 0.75rem) scale(0.96);
  transform-origin: center bottom;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 6;
}

.project-tile:hover .project-overlay,
.project-tile:focus-within .project-overlay,
.project-overlay:hover {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.project-overlay p,
.project-overlay-meta,
.project-overlay-title {
  color: #f7f2e8;
}

.project-overlay-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.project-overlay-meta {
  font-size: 0.88rem;
  color: rgba(247, 242, 232, 0.82);
}

.project-summary h3 {
  margin-bottom: 0.4rem;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.2;
}

.bullet-list {
  margin-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.contact-section {
  padding-bottom: 4rem;
}

.site-footer {
  border-top: 1px solid rgba(216, 207, 190, 0.9);
  padding: 1.25rem 0 2rem;
}

.site-footer p {
  color: var(--muted);
}
