@font-face {
  font-family: "Belgiano";
  src: url("assets/Belgiano Serif 2.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Griffiths";
  src: url("assets/Griffiths.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Keep Calm";
  src: url("KeepCalm-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TangoSans";
  src: url("assets/TangoSans_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #fff;
  --text: #000;
  --muted: #000;
  --line: #e8e8e8;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
h1, h2, h3, .name { color: #000; }
html { scroll-behavior: smooth; }
body { --page-gutter: clamp(24px, 6vw, 96px); --header-gutter: clamp(32px, 4vw, 64px); margin: 0; padding: 0 var(--page-gutter); }
a { display: inline-block; color: inherit; text-decoration-thickness: 1px; text-underline-offset: 6px; }
a, button { -webkit-tap-highlight-color: #e8e8e8; transition: color 160ms ease-out, background-color 160ms ease-out, transform 160ms ease-out; }
a:hover, a:focus-visible { color: var(--text); }
a:active, button:active { transform: translateY(2px); }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 7px; border-radius: 2px; }
::selection { color: var(--text); background: #e8e8e8; }
.site-header, main, footer { max-width: 1280px; margin-inline: auto; }
.site-header { max-width: none; margin-inline: calc(var(--header-gutter) - var(--page-gutter)); min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.name { font-family: "Keep Calm", sans-serif; font-size: clamp(32px, 4.5vw, 60px); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; text-decoration: none; padding-block: 16px; min-width: 0; overflow-wrap: anywhere; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--background); }
.site-header:not(.menu-enabled) nav { flex-wrap: wrap; }
[hidden] { display: none !important; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 4px; background: transparent; color: var(--text); cursor: pointer; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { color: var(--text); }
.menu-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.menu-toggle path { transform-origin: 12px 12px; transition: transform 180ms ease-out, opacity 180ms ease-out; }
.menu-toggle[aria-expanded="true"] .menu-line-top { transform: translateY(6px) rotate(45deg); transform-origin: 12px 6px; }
.menu-toggle[aria-expanded="true"] .menu-line-middle { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-line-bottom { transform: translateY(-6px) rotate(-45deg); transform-origin: 12px 18px; }
.site-header.menu-enabled nav { position: absolute; top: calc(100% + 1px); right: 0; z-index: 10; min-width: 200px; padding: 16px 24px; flex-direction: column; gap: 4px; background: var(--background); border: 1px solid var(--line); }
.site-header.menu-enabled nav:not([hidden]) { transform-origin: top right; animation: menu-appear 200ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes menu-appear {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
nav { display: flex; gap: clamp(22px, 3.5vw, 48px); }
nav a { font-size: 14px; text-decoration: none; padding: 10px 12px; margin-inline: -12px; border-radius: 4px; }
nav a:hover { text-decoration: underline; }
.navigation-letter { position: absolute; z-index: 50; pointer-events: none; white-space: pre; transform-origin: center; }
.intro {
  position: relative;
  padding-block: calc(clamp(12px, 2vw, 28px) + 10px) clamp(88px, 10vw, 140px);
}
.intro-composition {
  position: relative;
  display: grid;
  width: max-content;
  margin-inline: auto;
  grid-template-columns: max-content;
  justify-content: center;
  align-items: start;
  transform: translate3d(var(--drift-x, 0px), var(--drift-y, 0px), 0);

}
.word-map {
  grid-area: 1 / 1 / 2 / 2;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 860px;
  margin-inline: auto;
  padding: 12px 0;
}
.word-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
.word-row:first-child { transform: translateX(-19%); }
.word-row:nth-child(2) { transform: translateX(10%); }
.word-row:nth-child(3) { transform: translateX(-8%); }
.word-row:nth-child(4) { transform: translateX(5%); }
.word-row:nth-child(8) { transform: translateX(-5%); }
.word-row:nth-child(6) { transform: translateX(-12%); }
.word-row:last-child { transform: translateX(18%); }
.word {
  font-family: "Belgiano", Georgia, serif;
  --rotation: 0deg;
  --word-size: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  font-size: clamp(11px, calc(var(--word-size) * 2vw), calc(var(--word-size) * 22px));
  line-height: 0.92;
  white-space: nowrap;
}
.word-label {
  display: inline-block;
  pointer-events: none;
  transform: rotate(var(--rotation));

}
.word:focus-visible { outline: none; }
.word:focus-visible .word-label { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.word-tmu { --word-size: 2.0; }
.word-systems { --word-size: 3.1; }
.word-technology { --word-size: 3.5; --rotation: -0.5deg; }
.word-tattoo { --word-size: 2.4; --rotation: 0.5deg; }
.word-ryerson { --word-size: 3.0; }
.word-management { --word-size: 3.7; }
.word-ai { --word-size: 4.0; }
.word-automation { --word-size: 3.4; }
.word-organization { --word-size: 3.3; }
.word-detail { --word-size: 2.2; }
.word-yardi { --word-size: 2.6; --rotation: -0.5deg; }
.word-design { --word-size: 2.9; font-weight: 500; }
.word-3d { --word-size: 2.2; }
.word-dreamer { --word-size: 4.4; font-family: "Belgiano", Georgia, serif; letter-spacing: -0.025em; padding: 3px 0; }
.word-quick { --word-size: 2.1; --rotation: -0.5deg; }
.word-learner { --word-size: 3.3; }
.word-modelling { --word-size: 2.6; }
.word-business { --word-size: 3.5; font-weight: 500; }
.word-operations { --word-size: 2.6; --rotation: 0.5deg; }
.word-curious { --word-size: 2.3; }
.word-powerbi { --word-size: 2.0; --rotation: -0.5deg; }
.word-teams { --word-size: 2.3; }
.word-adobe { --word-size: 2.2; --rotation: 0.5deg; }
.word-canva { --word-size: 3.2; }
.word-microsoft { --word-size: 3.1; }
.lens-char { display: inline-block; white-space: pre; }
.lens-ink { display: inline-block; transform: scale(var(--zoom, 1)); transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.word:focus-visible { z-index: 2; }
.word:focus-visible .lens-ink { transform: scale(1.65); }
h1 { margin: 0 0 22px; font-size: clamp(40px, 6.2vw, 80px); font-weight: 400; line-height: 1.08; letter-spacing: -0.04em; text-wrap: balance; }
p { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0; max-width: 65ch; }
.intro p { font-size: clamp(16px, 1.5vw, 19px); }
.work-section, .about-section, .contact-section, .project-detail section { scroll-margin-top: 150px; }
.work-section { padding-block: 32px 100px; }
.scroll-reveal.reveal-ready { opacity: 0; transform: translateY(48px) scale(0.985); transition: opacity 650ms ease-out, transform 850ms cubic-bezier(0.22, 1.08, 0.36, 1); }
.scroll-reveal.reveal-ready.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.work-section > h2, .about-section > h2, .contact-section > h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 32px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.project { min-width: 0; transition: opacity 250ms ease-out; }
.project-grid:has(.project:focus-within) .project:not(:focus-within) { opacity: 0.45; }
@media (hover: hover) and (pointer: fine) {
  .project-grid:has(.project:hover) .project:not(:hover):not(:focus-within) { opacity: 0.45; }
  .project-grid:has(.project:hover) .project:hover { opacity: 1; }
}
.project-preview { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.project-preview img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1); }
.project-preview:hover img, .project-preview:focus-visible img { transform: scale(1.035); }
.project h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; margin: 26px 0 12px; }
.project p { font-size: 15px; line-height: 1.7; }
.project-link { font-size: 14px; margin-top: 22px; text-decoration: underline; text-decoration-color: #b0b0b0; }
.project-link:hover { text-decoration-color: currentColor; }
.project-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 22px; }
.project-actions .project-link { margin-top: 0; }
.link-context { font-size: 12px; }
.link-arrow { display: inline-block; vertical-align: -0.1em; flex-shrink: 0; }
.about-section { padding-block: 16px 80px; max-width: 700px; }
.about-section > h2 { margin-bottom: 20px; }
.contact-section { padding-block: 16px 64px; max-width: 540px; }
.contact-section > h2 { margin: 0 0 20px; }
.contact-form { margin-top: 24px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: 14px; margin-bottom: 16px; }
.contact-form input, .contact-form textarea { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #b0b0b0; border-radius: 0; background: #fff; color: #000; font: inherit; font-size: 16px; caret-color: #000; }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.contact-help { font-size: 13px; margin-bottom: 18px; }
.contact-submit { min-height: 44px; padding: 12px 22px; border: 1px solid #000; border-radius: 0; background: #fff; color: #000; font: inherit; font-size: 14px; cursor: pointer; }
.contact-submit:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-submit:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
.contact-submit:disabled { opacity: 0.55; cursor: wait; }
@media (max-width: 600px) { .contact-fields { grid-template-columns: 1fr; gap: 0; } }
.project-detail { max-width: 1120px; padding-block: 40px 80px; }
.project-detail p { max-width: none; }
.back-link { font-size: 14px; margin-bottom: 40px; }
.project-detail h1 { font-size: clamp(36px, 5vw, 64px); }
.project-summary { font-size: 19px; max-width: 65ch; margin-bottom: 72px; }
.project-summary:has(+ .demo-link) { margin-bottom: 12px; }
.demo-link { margin-bottom: 64px; }
.project-detail section { margin-bottom: 56px; }
.project-detail section p + p { margin-top: 18px; }
.excel-highlight { padding: 2px 5px; }
.excel-highlight-red { background: #ffc7ce; color: #9c0006; }
.excel-highlight-yellow { background: #ffeb9c; color: #9c6500; }
.excel-highlight-orange { background: #fce4d6; color: #843c0c; }
.excel-highlight-green { background: #c6efce; color: #006100; }
.project-detail section h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.project-detail figure { margin: 24px 0 0; min-width: 0; }
.project-detail figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 440px; object-fit: contain; margin-inline: auto; }
.project-detail figure { max-width: 100%; }
.screenshot-link { display: block; }
.elevator-screenshots figure { max-width: 820px; }
.elevator-screenshots figure img { width: 100%; max-height: none; margin: 0; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.screenshot-gallery > h2, .screenshot-gallery > figure:first-of-type { grid-column: 1 / -1; }
.screenshot-gallery > h2 { margin-bottom: 0; }
.screenshot-gallery > figure { width: 100%; margin-top: 0; }
.project-detail .screenshot-gallery img { width: 100%; max-height: none; margin: 0; }
.screenshot-gallery > figure:not(:first-of-type) .screenshot-link { aspect-ratio: 1.45; display: flex; align-items: flex-start; }
.project-detail .screenshot-gallery > figure:not(:first-of-type) img { width: 100%; height: 100%; object-fit: contain; object-position: top; }
.automation-flow { display: grid; grid-template-columns: minmax(0, 1fr) 260px; column-gap: 36px; align-items: start; }
.automation-flow > h2 { grid-column: 1 / -1; }
.automation-flow > p { grid-column: 1; }
.automation-flow > figure { grid-column: 2; grid-row: 2 / span 3; margin: 0; }
.flow-image-link { display: block; max-width: 300px; margin-inline: auto; }
.project-detail .flow-image-link img { max-height: 520px; }
.project-detail figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.resume-page { padding-block: 64px; min-height: calc(100svh - 180px); }
.resume-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.resume-page h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin: 0; }
.resume-download { border: 1px solid #000; border-radius: 0; padding: 12px 18px; font-size: 14px; text-decoration: none; min-height: 44px; }
.resume-download:hover { text-decoration: underline; }
.resume-open { font-size: 14px; margin-bottom: 24px; }
.resume-document { display: block; width: 100%; height: 80vh; height: 80svh; min-height: 480px; border: 0; }
h2 { font-size: 16px; font-weight: 500; margin: 0 0 16px; }
footer { padding-block: 26px; color: var(--muted); font-size: 12px; }
.skip-link { position: absolute; left: 24px; top: -80px; padding: 12px; background: var(--background); }
.skip-link:focus { top: 12px; }
.back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--background);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.back-to-top:hover { border-color: var(--text); }
.back-to-top:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.inverting-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 2147483647;
}
@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
  html.custom-cursor, html.custom-cursor * { cursor: none !important; }
}
@media (max-width: 600px) {
  body { --header-gutter: 20px; }
  .site-header { min-height: 0; flex-wrap: wrap; align-content: start; gap: 0; padding-block: 8px; }
  .name { width: 100%; flex: 0 0 100%; padding-block: 4px; font-size: clamp(22px, 6vw, 32px); white-space: nowrap; overflow-wrap: normal; }
  .site-header.menu-enabled .name { width: calc(100% - 56px); flex: 1 1 auto; max-width: calc(100% - 56px); font-size: clamp(20px, 5.3vw, 28px); }
  nav { gap: 28px; }
  .site-header:not(.menu-enabled) nav { flex-basis: 100%; gap: 22px; }
  .intro {
    min-height: 100lvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-block: calc(24px + 10svh) max(24px, calc(120px - 10svh));
    overflow-x: clip;
  }
  .word-map { gap: 0; padding: 10px 0; }
  .intro-composition { flex-shrink: 0; }
  .word { font-size: clamp(26px, calc(var(--word-size) * 3.5vw), 90px); }
  .word-row { gap: 3px; }
  .project-grid { grid-template-columns: 1fr; gap: 56px; }
  .screenshot-gallery { grid-template-columns: 1fr; gap: 28px; }
  .automation-flow { display: block; }
  .automation-flow > figure { margin-top: 24px; }
  .project-detail figure img { max-height: 380px; }
  .project-detail .flow-image-link img { max-height: 440px; }
  .work-section { padding-bottom: 72px; }
  .about-section { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .project { transition: none; }
  .scroll-reveal.reveal-ready { opacity: 1; transform: none; transition: none; }
  .intro-composition { transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .menu-toggle path { transition: none; }
  a, button { transition: none; }
  .site-header.menu-enabled nav:not([hidden]) { animation: none; }
  a:active, button:active { transform: none; }
  .word-map .word .word-label { transition: none; }
  .word-map .word .word-label { transform: rotate(var(--rotation)); }
  .word-map .lens-ink { transition: none; transform: none; }
  .project-preview img { transition: none; }
  .project-preview:hover img, .project-preview:focus-visible img { transform: none; }
}

