@font-face {
  font-family: Manrope;
  src: url('manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('instrument-serif-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('barlow-condensed-800-latin.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('barlow-condensed-900-latin.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf3e8;
  --white: #fffcf6;
  --ink: #2b2118;
  --muted: #615245;
  --accent: #75502d;
  --accent-hover: #51351f;
  --surface-tint: #f1e6d8;
  --line: #d9c7b2;
  --control-line: #8e735a;
  --accent-light: #efdbbe;
  --accent-mid: #b48552;
  --surface-warm: #f0e0c8;
  --surface-warm-strong: #e5cba8;
  --artwork-tone: grayscale(1) sepia(.65) saturate(.78);
  --sans: Manrope, 'Avenir Next', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --display: 'Barlow Condensed', 'Arial Narrow', Manrope, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
}

@layer base {
  * { box-sizing: border-box; }

  h1, h2, h3, p, figure, dl, dd { margin: 0; }
  a { color: inherit; }
  img { max-width: 100%; display: block; }
  button { font: inherit; }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem / 1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

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

main[tabindex='-1']:focus { outline: none; }

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

.shell {
  width: min(calc(100% - var(--gutter) * 2), 81rem);
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 20;
  transform: translateY(-180%);
  border-radius: .5rem;
  padding: .7rem 1rem;
  background: var(--accent);
  color: white;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  grid-template-columns: minmax(max-content, 1fr) max-content minmax(max-content, 1fr);
  gap: clamp(.6rem, 1.55vw, 1.5rem);
  min-height: 4.4rem;
}

.brand, .footer-brand {
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: .5rem;
}

.brand-mark, .footer-brand img {
  width: 2.35rem;
  height: 2.35rem;
  filter: grayscale(1) sepia(.9) saturate(.9) brightness(.82);
}

.navigation {
  gap: clamp(.08rem, .42vw, .48rem);
}

.navigation a, .header-resume, .header-contact {
  min-height: 2.75rem;
  padding-inline: .54rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 750;
}

.navigation a[aria-current], .header-resume[aria-current] {
  background: var(--surface-warm);
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: .24em;
}

.header-actions {
  gap: .4rem;
}

.header-resume { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }

.header-contact {
  justify-content: center;
  gap: .47rem;
  padding-inline: .83rem .35rem;
  background: var(--ink);
  color: white;
  font-weight: 800;
  transition: background-color 150ms var(--ease), transform 130ms var(--ease);
}

.chrome-arrow {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--surface-warm-strong);
  color: var(--ink);
}

.chrome-arrow::before, .chrome-arrow::after {
  position: absolute;
  grid-area: 1 / 1;
  content: '';
}

.chrome-arrow::before {
  width: .62rem;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
}

.chrome-arrow::after {
  top: .49rem;
  inset-inline-end: .48rem;
  width: .37rem;
  height: .37rem;
  border-top: 1.5px solid;
  border-inline-end: 1.5px solid;
}

.header-contact:active { transform: scale(.97); }
.mobile-navigation { display: none; }

.mobile-navigation summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding-inline: .64rem;
  border: 1px solid var(--control-line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: .84rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-navigation summary::-webkit-details-marker { display: none; }

.menu-icon {
  position: relative;
  width: .73rem;
  height: .68rem;
}

.menu-icon::before, .menu-icon::after {
  position: absolute;
  top: calc(50% - 1px);
  inset-inline: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: '';
}

.menu-icon::before { transform: translateY(-.16rem); }
.menu-icon::after { transform: translateY(.16rem); }

.mobile-navigation[open] summary {
  background: var(--surface-warm);
  color: var(--accent-hover);
}

.mobile-navigation[open] .menu-icon::before { transform: rotate(45deg); }
.mobile-navigation[open] .menu-icon::after { transform: rotate(-45deg); }

.mobile-navigation:not([open]) > nav { display: none; }

.mobile-navigation > nav {
  position: absolute;
  z-index: 1;
  inset-inline-end: 0;
  top: calc(100% + .4rem);
  display: grid;
  width: min(100%, 22rem);
  max-height: calc(100dvh - 5rem);
  padding: .4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--white);
  box-shadow: 0 15px 42px rgb(43 33 24 / .13);
}

.mobile-navigation a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .45rem .78rem;
  border-radius: .45rem;
  color: var(--ink);
  font-size: .91rem;
  font-weight: 750;
  text-decoration: none;
}

.mobile-navigation a[aria-current] {
  background: var(--surface-tint);
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: .24em;
}

.mobile-navigation nav a:focus-visible { outline-offset: -3px; }

@media (hover: hover) and (pointer: fine) {
  .navigation a:hover, .header-resume:hover, .mobile-navigation a:hover {
    background: var(--surface-tint);
    color: var(--accent-hover);
  }

  .header-contact:hover { background: var(--accent-hover); }
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr minmax(0, .92fr);
  align-items: center;
  column-gap: clamp(2rem, 5.1vw, 5.6rem);
  padding-top: clamp(3rem, 6.2vw, 6rem);
  padding-bottom: clamp(4rem, 8.3vw, 8.1rem);
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .46rem;
  color: var(--muted);
  font-size: .81rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .061em;
  text-transform: uppercase;
}

.hero-role { gap: .66rem; color: var(--accent); letter-spacing: .082em; }

.eyebrow-mark {
  display: inline-block;
  flex: 0 0 1.65rem;
  height: 2px;
  border-radius: 5rem;
  background: currentColor;
}

.hero h1 {
  margin-top: .17em;
  font-size: clamp(4rem, 7.6vw, 7.65rem);
  font-weight: 800;
  line-height: .91;
  letter-spacing: -.07em;
  word-spacing: .055em;
  white-space: nowrap;
}

.hero-name-line {
  display: block;
  overflow: clip;
  margin: -.065em -.075em -.075em -.035em;
  padding: .085em .075em .115em .035em;
}

.hero-name-line > span { display: inline-block; }

.hero-surname {
  color: var(--accent);
  font: italic 400 1.27em / .82 var(--serif);
  letter-spacing: -.043em;
}

.hero-intro {
  max-width: 29rem;
  margin-top: clamp(1.35rem, 2.7vw, 2.25rem);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.31rem);
  line-height: 1.61;
  letter-spacing: -.018em;
}

.hero-actions {
  gap: .75rem clamp(1rem, 2.5vw, 2rem);
  margin-top: 1.7rem;
}

.button {
  min-height: 3.1rem;
  padding: .78rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 50rem;
  font-size: .94rem;
  line-height: 1.3;
  transition: background-color 160ms var(--ease), transform 150ms var(--ease);
}

.button-primary {
  box-shadow: none;
}

.button-primary:hover { background: var(--accent-hover); }
.button:active { transform: scale(.97); }

.inline-link {
  padding-block: .28rem;
  font-size: .94rem;
  line-height: 1.35;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  transition: color 150ms var(--ease);
}

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

.hero-location {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem .63rem;
  margin-top: 1.55rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.hero-location > span { display: flex; align-items: center; gap: .45rem; }

.location-dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
}

.portrait {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 34rem;
  perspective: 1200px;
}

.portrait-inner {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: .985;
  border: 1px solid #cfd6fa;
  border-radius: 49% 49% 1.55rem 1.55rem / 43% 43% 1.55rem 1.55rem;
  background: radial-gradient(ellipse at 44% 34%, #f6f8ff 5%, #dfe8ff 56%, #c3d1fa 100%);
  box-shadow: 0 26px 75px -37px #5974a3;
}

.portrait-image {
  position: relative;
  z-index: 1;
  width: min(75%, 20rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--white);
  border-radius: 49% 49% 1rem 1rem / 42% 42% 1rem 1rem;
  box-shadow: 0 .85rem 2.6rem -1.05rem rgb(38 52 108 / .45);
}

.portrait-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image: linear-gradient(rgb(255 255 255 / .5) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .5) 1px, transparent 1px);
  background-size: 2rem 2rem;
  mask-image: linear-gradient(130deg, black, transparent 44%, transparent 67%, black);
}

.portrait-corner {
  position: absolute;
  bottom: 1.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-bottom: 1px solid rgb(255 255 255 / .85);
}

.portrait-corner-top { left: 1.15rem; border-left: 1px solid rgb(255 255 255 / .85); }
.portrait-corner-bottom { right: 1.15rem; border-right: 1px solid rgb(255 255 255 / .85); }

.portrait-seal {
  pointer-events: none;
  position: absolute;
  top: 17%;
  right: -2.8%;
  display: grid;
  place-items: center;
  width: clamp(4rem, 6vw, 5.8rem);
  aspect-ratio: 1;
  border: 1px solid rgb(90 108 10 / .12);
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: 1px 13px 28px -13px rgb(58 69 93 / .55);
}

.portrait-seal > span {
  font-family: Arial, sans-serif;
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  line-height: 1;
  transform: rotate(-12deg);
}

.section h2 {
  font-size: clamp(3.55rem, 7.1vw, 6.85rem);
  font-weight: 800;
  line-height: .97;
  letter-spacing: -.076em;
  word-spacing: .025em;
}

.section h2 em, .resume-title em {
  color: var(--accent);
  font: italic 400 1.14em / .86 var(--serif);
  letter-spacing: -.042em;
}

.work {
  padding-top: clamp(2.4rem, 5.25vw, 4.65rem);
  padding-bottom: clamp(3.7rem, 7.5vw, 7rem);
  border-top: 1px solid var(--line);
}

.section-header { margin-bottom: clamp(1.7rem, 3.25vw, 3.15rem); }

.work-grid {
  display: grid;
  grid-template-columns: 1.09fr .91fr;
  align-items: start;
  gap: clamp(1.15rem, 2.65vw, 2.3rem);
}

.work-card {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--white);
}

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  height: clamp(13.5rem, 25.5vw, 25rem);
  text-decoration: none;
}

.project-visual:focus-visible { outline-offset: -5px; }

.taxonomy-visual { background: var(--surface-warm); }

.taxonomy-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .taxonomy-visual:hover img { transform: scale(1.045); }
}

.art-label {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  border: 1px solid rgb(255 255 255 / .9);
  border-radius: 50rem;
  padding: .36rem .68rem;
  background: rgb(255 255 255 / .92);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.26;
}

.qa-visual {
  isolation: isolate;
  background: linear-gradient(136deg, var(--surface-tint), var(--surface-warm-strong) 63%, var(--accent-light));
}

.qa-visual::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(var(--accent) 1px, transparent 1px);
  background-size: .95rem .95rem;
  opacity: .19;
  content: '';
  mask-image: radial-gradient(ellipse at 50% 45%, transparent, black);
}

.qa-clip {
  width: min(74%, 21rem);
  border: 1px solid var(--control-line);
  border-radius: .95rem;
  padding: clamp(.75rem, 1.8vw, 1.25rem);
  background: var(--white);
  box-shadow: .85rem 1rem 0 -.18rem var(--accent-mid), 0 18px 35px rgb(81 53 31 / .11);
  transform: rotate(-5deg);
}

.qa-graphic-top, .qa-graphic-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
}

.qa-mode, .qa-graphic-bottom > span:last-child {
  color: var(--ink);
  font-size: clamp(.73rem, 1.15vw, .9rem);
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.qa-dots { display: flex; gap: .23rem; }
.qa-dots i { width: .23rem; height: .23rem; border-radius: 50%; background: var(--accent); }

.waveform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  height: clamp(2.6rem, 5.7vw, 4.6rem);
  margin-block: .48rem;
  border-bottom: 1px solid var(--line);
}

.waveform i {
  flex: 1;
  max-width: .35rem;
  height: 29%;
  border-radius: 8rem;
  background: var(--accent);
}

.waveform i:nth-child(3n + 1) { height: 45%; }
.waveform i:nth-child(4n + 2) { height: 61%; }
.waveform i:nth-child(7n + 3) { height: 73%; }
.waveform i:nth-child(n + 10):nth-child(-n + 14) { background: var(--accent); }

.qa-graphic-bottom > span:first-child {
  flex: 1 1 auto;
  max-width: 47%;
  height: .26rem;
  border-radius: 5rem;
  background: var(--surface-warm-strong);
}

.qa-graphic-bottom > span:last-child {
  border: 1px solid var(--control-line);
  border-radius: 5rem;
  padding: .3rem .54rem;
  background: var(--surface-warm);
  color: var(--accent-hover);
}

.work-card-content { padding: clamp(1.28rem, 3vw, 2.05rem); }

.work-card h3, .course-card h3 {
  margin-top: .57rem;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.063em;
}

.work-card-content > p:not(.eyebrow), .course-copy > p:not(.eyebrow) {
  margin-top: .84rem;
  color: var(--muted);
  line-height: 1.65;
}

.work-card-content > .inline-link { margin-top: .92rem; }

.course-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(12.5rem, .41fr) minmax(0, .59fr);
  overflow: clip;
  min-height: 14.5rem;
  border: 1px solid #cdd3fa;
  border-radius: 1.25rem;
  background: #f2f3ff;
}

.course-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 14.5rem;
  background: radial-gradient(ellipse at 50% 42%, #f5f5fd, #d8dfff 83%);
}

.course-ring {
  z-index: -1;
  position: absolute;
  width: 95%;
  height: 54%;
  border: 1px solid #a3abf3;
  border-radius: 50%;
}

.ring-one { transform: rotate(-25deg); }
.ring-two { transform: rotate(25deg); }
.ring-three { transform: rotate(90deg); }

.course-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .28rem;
  width: 5.6rem;
  padding: .65rem;
  aspect-ratio: 1;
  border: 1px solid #a2adff;
  border-radius: 1rem;
  background: var(--accent);
  box-shadow: 0 21px 42px -8px rgb(41 63 223 / .39);
  transform: rotate(-12deg);
}

.course-center b { border-radius: .27rem; background: #dfe7ff; }
.course-center b:nth-child(2) { background: var(--accent-light); }
.course-center b:nth-child(3) { background: #92a0ff; }
.course-center b:nth-child(4) { background: #6578fa; }

.course-copy { align-self: center; padding: clamp(1.35rem, 4.55vw, 4rem); }
.course-copy > p:not(.eyebrow) { max-width: 35rem; }
.course-projects {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.25rem), 1fr));
  gap: clamp(.8rem, 1.8vw, 1.4rem);
  padding: clamp(.9rem, 3vw, 2.2rem);
  border-top: 1px solid #d8dcf6;
  background: var(--surface-tint);
}

.course-projects-intro { grid-column: 1 / -1; margin: .25rem 0 .4rem; }
.course-projects-intro h4 {
  margin: 0;
  font-size: clamp(1.7rem, 3.35vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.058em;
}
.course-projects-intro p { margin-top: .34rem; color: var(--muted); }

.course-project {
  display: flex;
  flex-direction: column;
  gap: .72rem;
  min-width: 0;
  padding: clamp(.95rem, 2vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: .48rem;
  background: var(--white);
  overflow-wrap: anywhere;
}

.course-project h5 {
  margin: 0;
  font-size: clamp(1.24rem, 2.3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.055em;
}

.course-project-summary { color: var(--muted); }
.course-project > .inline-link {
  align-self: flex-start;
  margin-top: auto;
  max-width: 100%;
}

.course-project-art {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: .25rem;
  border: 1px solid var(--line);
  border-radius: .64rem;
  background: var(--surface-tint);
}

.course-project-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .course-project-art img { transition: transform 320ms var(--ease); }
  .course-project:hover .course-project-art img { transform: scale(1.035); }
}

.feature-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
}

.feature-image {
  justify-self: end;
  width: min(100%, 25rem, max(15rem, 48svh));
  height: auto;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: clamp(.85rem, 2vw, 1.55rem);
  background: var(--surface-tint);
  object-fit: cover;
}

@media (max-width: 650px) {
  .feature-hero { grid-template-columns: minmax(0, 1fr); }
  .feature-image { justify-self: start; }
}

.demo-section {
  padding-block: clamp(3.4rem, 7.25vw, 7rem);
  border-block: 1px solid var(--line);
  background: var(--surface-warm);
}

.demo-header { margin-bottom: clamp(1.45rem, 3.2vw, 2.75rem); }
.demo-header h2 { font-size: clamp(3.15rem, 6.4vw, 6.3rem); }
.demo-header > p { max-width: 37rem; margin-top: 1rem; color: var(--muted); }

.demo-fallback {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
}

.about {
  display: grid;
  grid-template-columns: 1fr .84fr;
  align-items: start;
  gap: clamp(2rem, 7.5vw, 8rem);
  padding-block: clamp(3.6rem, 7.75vw, 7.4rem);
}

.about-copy > p { max-width: 35rem; margin-top: 1.04rem; color: var(--muted); }
.about-copy .inline-link { margin: 1rem .85rem 0 0; }

.about-facts { display: grid; margin-top: .45rem; border-top: 1px solid #cdd1e5; }

.about-facts > div {
  display: grid;
  grid-template-columns: 7.1rem 1fr;
  gap: .65rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid #cdd1e5;
}

.about-facts dt { color: var(--muted); font-size: .88rem; font-weight: 750; }
.about-facts dd { display: grid; gap: .17rem; line-height: 1.47; }
.about-facts dd strong { font-weight: 800; }
.about-facts dd span { color: var(--muted); }

.contact { margin-bottom: clamp(2.45rem, 5vw, 5rem); }

.contact-panel {
  gap: 1.65rem;
  padding: clamp(1.8rem, 5.8vw, 5rem);
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface-warm);
}

.contact-panel h2 { font-size: clamp(3.3rem, 6.65vw, 6.4rem); }
.contact-panel p:not(.availability) { margin-top: .75rem; color: var(--muted); }

.contact-action { gap: .6rem; }
.contact-links { gap: .65rem; }

.button-whatsapp { border-color: #add2b8; background: #e8f6ec; color: #155638; }
.button-whatsapp:hover { border-color: #78ab89; background: #daf0e1; }

.availability {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-warm);
}

.footer-main {
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(7rem, .37fr));
  gap: clamp(1.8rem, 6vw, 5.9rem);
  padding-block: clamp(2.65rem, 6.8vw, 5.5rem);
}

.footer-brand img { width: 2.35rem; height: auto; }
.footer-identity p { margin-top: .5rem; font-size: .94rem; line-height: 1.55; }

.footer-identity .footer-tagline {
  max-width: 16ch;
  margin-top: .65rem;
  color: var(--accent-hover);
  font: 800 clamp(1.65rem, 4.1vw, 3.35rem) / .94 var(--display);
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.footer-contact {
  gap: .5rem;
  min-height: 2.75rem;
  margin-top: 1.12rem;
  padding-inline: 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: .88rem;
}

.footer-contact::after {
  width: .38rem;
  height: .38rem;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  transform: rotate(45deg);
  content: '';
}

.footer-links {
  gap: .12rem;
}

.footer-links h2 {
  margin-block: .2rem .55rem;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.footer-links a, .footer-bottom a {
  min-height: 1.85rem;
  font-size: .88rem;
  font-weight: 680;
  line-height: 1.4;
}

.site-footer a[aria-current] {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: .24em;
}

.footer-bottom {
  gap: .25rem 1.3rem;
  min-height: 3.65rem;
  padding-block: .55rem;
  border-top: 1px solid var(--line);
}

.footer-bottom nav {
  gap: .12rem 1.2rem;
}

.footer-bottom small { font-size: .81rem; }

.footer-top::after {
  width: .36rem;
  height: .36rem;
  margin-inline-start: .42rem;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  transform: translateY(.1rem) rotate(-45deg);
  content: '';
}

@media (hover: hover) and (pointer: fine) {
  .footer-contact:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

  .footer-links a:hover, .footer-bottom a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: .24em;
  }
}

.resume-main {
  max-width: 55rem;
  margin-inline: auto;
  padding-block: clamp(2.4rem, 6.8vw, 6rem);
}

.resume-title {
  margin-top: .32em;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3.75rem, 9vw, 7.4rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.024em;
  text-transform: uppercase;
}

.resume-title em { color: var(--accent); font: inherit; letter-spacing: inherit; }

.resume-intro { max-width: 41rem; margin-top: 1.15rem; color: var(--muted); }
.resume-actions { gap: .75rem 1.3rem; margin-top: 1rem; }
.resume-actions button { cursor: pointer; }
.resume-section { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.resume-section h2 { margin-bottom: .9rem; font-size: 1.65rem; line-height: 1.1; letter-spacing: -.05em; }
.resume-section h3 { font-size: 1.12rem; font-weight: 800; }
.resume-previous-role { margin-top: 1.2rem; }
.resume-section ul { margin-block: .6rem 0; padding-inline-start: 1.1rem; }
.resume-section li + li { margin-top: .34rem; }

@media (max-width: 850px) {
  .hero { column-gap: 1.7rem; }
  .hero h1 { font-size: clamp(3.55rem, 8.4vw, 5rem); }
  .hero-intro { font-size: 1rem; }
  .hero-actions { margin-top: 1.31rem; }
  .hero-location { margin-top: 1.2rem; }
  .about { gap: 2rem; }
  .about-facts > div { grid-template-columns: 5.3rem 1fr; }
}

@media (min-width: 601px) and (max-width: 720px) {
  .hero-actions { gap: .7rem 1rem; }
  .hero-actions .button { padding-inline: 1.1rem; }
  .hero-location { font-size: .78rem; }
}

@media (max-width: 600px) {
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 2.45rem; padding-top: 3.35rem; }
  .hero h1 { font-size: clamp(3.55rem, 11.4vw, 6.35rem); }
  .hero-intro { max-width: 27rem; }
  .portrait { max-width: 31rem; }
  .portrait-inner { aspect-ratio: 1.035; }
  .portrait-seal { right: -.4rem; }
}

@media (max-width: 690px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .project-visual { height: clamp(13.25rem, 59vw, 24rem); }
  .course-card { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .course-art { min-height: 11.5rem; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .contact-panel { align-items: start; flex-direction: column; }
}

@media (max-width: 65rem) {
  html { scroll-padding-top: 5.2rem; }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: .4rem;
    min-height: 4rem;
  }

  .navigation, .header-resume { display: none; }
  .mobile-navigation { display: block; }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .footer-identity { grid-column: 1 / -1; }
  .footer-links a { min-height: 2.1rem; }
  .footer-bottom nav { flex-basis: 100%; order: -1; }
}

@media (max-width: 450px) {
  .brand-mark { width: 2.15rem; height: 2.15rem; }
  .header-contact { padding-inline: .6rem .28rem; gap: .32rem; font-size: .78rem; }
  .chrome-arrow { width: 1.42rem; height: 1.42rem; }
  .chrome-arrow::after { top: .43rem; inset-inline-end: .42rem; }

  .portrait-corner { bottom: .7rem; }
  .portrait-corner-top { left: .7rem; }
  .portrait-corner-bottom { right: .7rem; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 3.35rem; }
  .hero-actions { gap: .65rem 1rem; }
  .hero-actions .button { padding-inline: 1rem; }
  .hero-location { gap: .32rem .43rem; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .button:active, .header-contact:active { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes portfolio-artwork-entry {
      from { opacity: .76; transform: perspective(950px) translateY(20px) rotateY(var(--artwork-turn, -12deg)) scale(.97); }
      to { opacity: 1; transform: none; }
    }

    .projects-card .course-project-art,
    .collection-study-cover {
      animation: portfolio-artwork-entry 1s cubic-bezier(.22, 1, .36, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 68%;
      transform-origin: 50% 85%;
    }

    .projects-card:nth-child(even) .course-project-art,
    .collection-study-card:nth-child(even) .collection-study-cover { --artwork-turn: 12deg; }
  }
}

@media print {
  @page { margin: 15mm; }
  .resume-page { background: white; color: black; }
  .resume-page .site-header, .resume-page .site-footer, .resume-actions button, .skip-link { display: none; }
  .resume-actions .inline-link { color: black; }
  .resume-main { width: 100%; max-width: none; margin: 0; padding: 0; }
  .resume-title { font-size: 37pt; }
  .resume-section { break-inside: avoid; margin-top: 1.35rem; padding-top: .85rem; }
}
