:root {
  --bg: #ffffff;
  --bg-soft: #f1c0be;
  --accent: #ea9e9d;
  --text: #2c211f;
  --muted: #624844;
  --line: rgba(44, 33, 31, .18);
  --radius-button: 8px;
  --max: 1280px;
  --font-sans: "Public Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 15px; line-height: 1.7; }
body.menu-open, body.roulette-open, body.language-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-sans); font-weight: 500; line-height: 1.12; }
em { color: var(--muted); font-weight: inherit; font-style: normal; }
::selection { background: var(--bg-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 200; padding: 10px 18px; background: var(--text); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-frame { width: min(90%, var(--max)); margin: auto; }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 98px; padding: 20px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 15px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 310px; max-width: 100%; height: auto; flex-shrink: 1; background: transparent; }
.brand-mark img { width: 100%; height: auto; }
.nav { display: flex; gap: 30px; align-items: center; margin-left: auto; }
.header-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-toggle { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; padding: 8px; border: 0; background: transparent; font-size: 11px; font-weight: 600; }
.language-toggle[hidden] { display: none; }
.language-toggle:hover, .language-toggle:focus-visible, .language-toggle[aria-pressed="true"] { outline: none; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.language-modal[hidden] { display: none; }
.language-modal { position: fixed; z-index: 140; inset: 0; display: grid; place-items: center; padding: 20px; }
.language-backdrop { position: absolute; inset: 0; background: rgba(44, 33, 31, .36); backdrop-filter: blur(5px); }
.language-dialog { position: relative; width: min(100%, 520px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 34px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 24px 70px rgba(44, 33, 31, .16); }
.language-dialog:focus { outline: none; }
.language-dismiss { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius-button); background: transparent; font-size: 24px; color: var(--muted); }
.language-dismiss:hover { background: var(--bg-soft); }
.language-logo { width: 100px; height: auto; margin-bottom: 24px; }
.language-dialog .section-label { margin-bottom: 12px; }
.language-dialog h2 { font-size: clamp(25px, 4.5vw, 34px); line-height: 1.25; letter-spacing: -.035em; }
.language-dialog h2 > span { color: var(--muted); }
.language-intro { margin-top: 17px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.language-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.language-option { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 0; min-height: 100px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-button); background: var(--bg); text-align: left; transition: background-color 180ms, border-color 180ms; }
.language-option:hover { background: var(--bg-soft); border-color: var(--accent); }
.language-option:focus-visible { outline: none; border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.language-option strong { font-size: 20px; font-weight: 500; }
.language-option > span { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.language-hint { margin-top: 20px; font-size: 10px; color: var(--muted); line-height: 1.8; }
.nav a { font-size: 12px; }
.nav a:hover, .nav a:focus-visible, .nav a.is-active { outline: none; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.nav .nav-contact { display: flex; align-items: center; gap: 20px; min-height: 44px; padding: 9px 0; border: 0; }
.mobile-menu-toggle { display: none; }
.hero { padding-top: 38px; }
.hero-topline, .contact-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow, .section-label, .card-label { font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.hero-heading { display: grid; grid-template-columns: 1.7fr 1fr; align-items: end; gap: 70px; padding: 32px 0 36px; }
.hero h1 { font-size: clamp(44px, 5.2vw, 72px); font-weight: 500; letter-spacing: -.05em; line-height: 1.08; }
.hero-intro { max-width: 340px; justify-self: end; padding-bottom: 5px; }
.hero-intro p { font-size: 13px; line-height: 1.9; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 24px; padding: 4px 0 8px; border: 0; border-bottom: 1px solid var(--text); background: transparent; font-size: 12px; font-weight: 600; }
.hero-intro .text-link { margin-top: 18px; }
.hero-image { position: relative; background: var(--bg-soft); overflow: hidden; }
.hero-image > img { width: 100%; height: clamp(300px, 34vw, 490px); object-fit: cover; object-position: center 48%; }
.hero-image::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(28, 22, 21, .78)); pointer-events: none; }
.hero-image figcaption { position: absolute; z-index: 1; inset: auto 34px 27px; display: flex; align-items: end; justify-content: space-between; gap: 20px; color: #fff; }
.hero-image figcaption > span { display: grid; gap: 6px; }
.hero-image figcaption small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.hero-image figcaption strong { font-family: var(--font-sans); font-size: 28px; font-weight: 500; }
.hero-image figcaption a { display: flex; gap: 24px; font-size: 11px; border-bottom: 1px solid rgba(255, 255, 255, .55); padding-bottom: 6px; }
.hero-footnotes { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.hero-footnotes p > span { color: var(--muted); margin-right: 13px; }
.hero-footnotes a { font-weight: 600; }
.hero-footnotes a span { margin-left: 15px; }
.section { margin-top: 105px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 36px; }
.section-label { margin-bottom: 20px; }
.section-heading h2, .portfolio-copy h2 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.04em; }
.section-heading > p { max-width: 350px; color: var(--muted); font-size: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 28px; }
.project-card { grid-column: span 3; min-width: 0; }
.project-card-small { grid-column: span 2; }
.project-image { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 4px; background: var(--bg-soft); }
.project-image img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform 500ms ease; }
.hotel-image img { object-position: center 60%; }
.project-image-pair { display: grid; grid-template-columns: .9fr 1.1fr; grid-template-rows: minmax(0, 1fr); gap: 8px; padding: 8px; background: #fff; }
.project-image-pair img { min-width: 0; min-height: 0; height: 100%; object-fit: contain; }
.interior-image img { object-position: center 50%; }
.project-link:hover img { transform: scale(1.025); }
.project-arrow { position: absolute; right: 14px; bottom: 14px; display: grid; place-content: center; width: 36px; height: 36px; border-radius: var(--radius-button); background: var(--bg); font-size: 18px; transition: background-color 200ms; }
.project-link:hover .project-arrow { background: var(--accent); }
.project-title { display: flex; align-items: start; gap: 14px; padding-top: 17px; }
.project-index { padding-top: 7px; font-size: 10px; color: var(--muted); }
.project-title h3 { font-size: 28px; letter-spacing: -.035em; }
.project-card-small h3 { font-size: 23px; }
.project-meta { margin-top: 9px; color: var(--muted); font-size: 10px; letter-spacing: .025em; }
.work-group + .work-group { margin-top: 60px; }
.work-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 18px 0 24px; }
.work-group-heading h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.work-group-heading > span { font-size: 10px; color: var(--muted); }
.project-credit { margin-top: 9px; font-size: 10px; line-height: 1.7; color: var(--muted); }
.project-description { max-width: 48ch; color: var(--muted); font-size: 12px; line-height: 1.75; margin-top: 8px; }
.portfolio-section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: center; padding: 36px 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.portfolio-copy { min-width: 0; }
.portfolio-copy .section-label { margin-bottom: 14px; }
.portfolio-copy h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; }
.portfolio-copy > p:not(.section-label) { max-width: 56ch; margin-top: 16px; font-size: 13px; line-height: 1.85; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 46px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius-button); font-size: 11px; font-weight: 600; transition: background-color 200ms, transform 200ms; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--accent); color: var(--text); }
.button-dark:hover { background: var(--bg); }
.button-light { border-color: var(--line); background: var(--bg); }
.button-light:hover { background: var(--bg-soft); }
.portfolio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 22px; }
.portfolio-external-note { color: var(--muted); font-size: 10px; }
.portfolio-meta { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 10px; }
.portfolio-meta li + li { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); }
.portfolio-cover { display: block; width: 100%; max-width: 200px; justify-self: center; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: #fff; transition: border-color 200ms; }
.portfolio-cover:hover { border-color: var(--accent); }
.portfolio-cover img { width: 100%; height: auto; }
.portfolio-cover > span { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; font-size: 10px; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px; }
.about-copy { max-width: 540px; }
.about-copy > p { margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.95; }
.about-copy .text-link { margin-top: 7px; }
.resume-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 24px; }
.resume-preview .portfolio-cover { max-width: 180px; }
.education .card-label { margin-bottom: 20px; }
.education-row { padding: 18px 0; border-top: 1px solid var(--line); }
.education-row > span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 9px; }
.education-row h3 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; line-height: 1.6; }
.education-row p { font-size: 11px; margin-top: 4px; color: var(--muted); }
.skills { margin-top: 58px; }
.skill-row { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 23px 0; border-top: 1px solid var(--line); }
.skill-row:last-child { border-bottom: 1px solid var(--line); }
.skill-row h3 { font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 1.8; }
.skill-row p { font-size: 12px; color: var(--muted); }
.skill-row p span { margin: 0 7px; color: var(--muted); }
.contact { background: var(--bg); border: 1px solid var(--line); padding: 46px 50px 0; }
.contact-top .section-label { margin: 0; }
.contact-heading { display: grid; grid-template-columns: 1.6fr 1fr; gap: 80px; padding: 42px 0; align-items: end; }
.contact-heading h2 { font-size: clamp(40px, 4.8vw, 66px); letter-spacing: -.045em; }
.contact-heading > div > p { font-size: 12px; color: var(--muted); margin-bottom: 23px; max-width: 34ch; }
.contact-details { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 0 30px; border-top: 1px solid var(--line); font-size: 11px; }
.contact-details a { overflow-wrap: anywhere; }
.contact-details a span { margin-left: 12px; }
.contact-details > span { color: var(--muted); }
.contact-game { border-top: 1px solid var(--line); }
.roulette-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px 45px; padding: 28px 0 36px; }
.roulette-copy .section-label { margin-bottom: 10px; }
.roulette-copy h3 { font-size: 40px; margin-bottom: 16px; }
.roulette-copy > p:not(.section-label) { color: var(--muted); font-size: 12px; max-width: 34ch; }
.roulette-legend { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 11px; }
.roulette-legend li { display: flex; align-items: center; gap: 8px; }
.roulette-swatch { width: 12px; height: 12px; border: 1px solid var(--line); }
.roulette-swatch-call { background: var(--accent); }
.roulette-swatch-hire { background: var(--bg); }
.roulette-stage { position: relative; width: min(100%, 260px); aspect-ratio: 1; justify-self: center; }
.roulette-wheel { --roulette-rotation: 0deg; width: 100%; height: 100%; border: 8px solid var(--bg); border-radius: 50%; background: conic-gradient(from -90deg, var(--accent) 0deg 180deg, var(--bg) 180deg 360deg); box-shadow: 0 10px 24px rgba(44, 33, 31, .09); transform: rotate(var(--roulette-rotation)); transition: transform 2500ms cubic-bezier(.15, .8, .18, 1); }
.roulette-pointer { position: absolute; z-index: 1; top: -6px; left: calc(50% - 10px); border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 22px solid var(--text); }
.roulette-spin-button { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 104px; min-height: 46px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-button); background: var(--bg); font-size: 11px; font-weight: 600; }
.roulette-spin-button:disabled { cursor: wait; }
.roulette-status { grid-column: 2; text-align: center; font-size: 10px; color: var(--muted); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 42px 0; font-size: 10px; }
.footer-brand { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 12px; }
.footer-logo { display: grid; place-items: center; flex-shrink: 0; width: 88px; height: auto; background: transparent; }
.footer-logo img { width: 100%; height: auto; }
.footer-brand-copy { display: grid; gap: 4px; min-width: 0; }
.footer-brand-copy strong { font-size: 12px; font-weight: 500; }
.footer-brand-copy small { color: var(--muted); font-size: 9px; }
.site-footer p { color: var(--muted); }
.back-to-top { display: flex; gap: 20px; align-items: center; }
.roulette-popup[hidden] { display: none; }
.roulette-popup { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 24px; }
.roulette-popup-backdrop { position: absolute; inset: 0; background: rgba(44, 33, 31, .48); }
.roulette-popup-card { position: relative; width: min(100%, 540px); background: var(--bg); padding: 42px; }
.roulette-popup-card h2 { font-size: 50px; }
.roulette-popup-card > p:not(.section-label) { font-size: 13px; color: var(--muted); margin: 20px 0; }
.game-reward-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 25px; }
.roulette-close { min-height: 40px; }
@media (min-width: 1600px) { .hero-heading { padding-block: 45px; } }
@media (max-width: 1000px) {
  .nav { gap: 21px; }
  .hero-heading { gap: 35px; grid-template-columns: 1.5fr 1fr; }
  .hero h1 { font-size: clamp(44px, 6.6vw, 70px); }
  .section { margin-top: 80px; }
  .portfolio-section { grid-template-columns: 170px minmax(0, 1fr); padding: 30px; gap: 30px; }
  .about-grid { gap: 55px; }
  .contact { padding-inline: 35px; }
  .contact-heading { gap: 35px; }
  .project-card-small h3 { font-size: 23px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 100px; }
  .site-frame { width: 90%; }
  .topbar { min-height: 94px; padding-block: 16px; flex-wrap: wrap; gap: 16px; }
  .js .topbar { flex-wrap: nowrap; }
  .brand { flex: 1; }
  .brand-mark { width: 260px; height: auto; }
  .nav { margin-left: 0; }
  .mobile-menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius-button); background: transparent; flex-shrink: 0; }
  .js .mobile-menu-toggle { display: flex; }
  .hamburger-line { height: 1px; width: 18px; background: var(--text); transition: transform 200ms; }
  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:first-child { transform: translateY(3px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav { display: flex; flex-wrap: wrap; width: 100%; padding: 24px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 20px 25px rgba(44, 33, 31, .08); }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; }
  .js .nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 14px 0; font-size: 15px; }
  .nav .nav-contact { margin-top: 14px; justify-content: space-between; padding: 12px 0; background: transparent; }
  .hero { padding-top: 26px; }
  .hero-topline { align-items: start; flex-direction: column; gap: 14px; }
  .hero-heading { grid-template-columns: 1fr; gap: 22px; padding: 25px 0 30px; }
  .hero h1 { font-size: clamp(42px, 8.5vw, 64px); }
  .hero-intro { max-width: 440px; justify-self: start; }
  .hero-intro p { font-size: 13px; }
  .hero-image > img { height: 330px; object-position: 45% center; }
  .hero-image figcaption { inset: auto 20px 20px; align-items: start; flex-direction: column; gap: 12px; }
  .hero-image figcaption strong { font-size: 25px; }
  .hero-footnotes { display: grid; grid-template-columns: 1fr auto; align-items: start; font-size: 9px; gap: 9px 12px; }
  .hero-footnotes p:first-child { grid-column: 1 / -1; }
  .hero-footnotes p > span { margin-right: 8px; }
  .section { margin-top: 64px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 27px; }
  .section-heading h2, .portfolio-copy h2 { font-size: 40px; }
  .section-heading > p { font-size: 12px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .project-card, .project-card-small { grid-column: span 1; }
  .project-title { gap: 12px; padding-top: 16px; }
  .project-title h3, .project-card-small h3 { font-size: 26px; }
  .project-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 10px); }
  .project-meta { font-size: 9px; }
  .project-description { font-size: 11px; }
  .portfolio-section { grid-template-columns: 140px minmax(0, 1fr); padding: 26px; gap: 24px; }
  .portfolio-copy h2 { font-size: 30px; }
  .portfolio-copy > p:not(.section-label) { font-size: 12px; }
  .portfolio-actions { gap: 12px 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .education .card-label { margin-bottom: 14px; }
  .skills { margin-top: 35px; }
  .skill-row { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .contact { padding: 30px 26px 0; }
  .contact-top { align-items: start; flex-direction: column; gap: 15px; }
  .contact-heading { grid-template-columns: 1fr; gap: 25px; padding: 30px 0; }
  .contact-heading h2 { font-size: clamp(38px, 7.9vw, 60px); }
  .contact-heading > div > p { max-width: 42ch; }
  .contact-details { align-items: start; flex-direction: column; gap: 15px; font-size: 10px; }
  .roulette-layout { grid-template-columns: 1fr; gap: 27px; }
  .roulette-stage { width: 230px; }
  .roulette-status { grid-column: 1; }
  .site-footer { flex-wrap: wrap; gap: 25px 20px; padding-block: 30px; }
  .footer-brand { flex-basis: 100%; }
  .roulette-popup { padding: 20px; }
  .roulette-popup-card { padding: 30px 25px; max-height: calc(100dvh - 40px); overflow-y: auto; }
}
@media (max-width: 600px) {
  .portfolio-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .portfolio-cover { max-width: 144px; }
  .portfolio-copy { text-align: center; }
  .portfolio-copy h2 { font-size: 30px; }
  .portfolio-copy > p:not(.section-label) { margin-inline: auto; }
  .portfolio-meta, .portfolio-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .language-dialog { padding: 28px 22px; }
  .language-option { padding: 14px; }
  .brand { gap: 10px; }
  .header-controls { gap: 8px; }
  .hero h1 { font-size: clamp(35px, 9.2vw, 46px); }
  .eyebrow, .section-label, .card-label { font-size: 9px; }
  .hero-image > img { height: 310px; }
  .project-grid { grid-template-columns: 1fr; gap: 34px; }
  .project-card:last-child { max-width: none; }
  .project-title h3, .project-card-small h3 { font-size: 28px; }
  .project-title h3 br { display: none; }
  .portfolio-section { padding: 26px 20px; }
  .section-heading h2, .portfolio-copy h2 { font-size: 36px; }
  .contact-heading h2 { font-size: clamp(34px, 9vw, 44px); }
  .contact-details a span { margin-left: 6px; }
  .game-reward-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
