:root {
  --background: #f8fbfb;
  --ink: #252624;
  --muted: #535553;
  --pale: #eff3d7;
  --accent: #d9ff37;
  --footer: #22251c;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
@media (hover: hover) and (pointer: fine) {
  html, html * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='32' viewBox='0 0 27 32'%3E%3Cpath d='M3 2L3 25L9 19L14 30L19 28L14 17L23 17Z' fill='%23d9ff37' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto !important; }
}
.cursor-trail-dot { position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #d9ff37; pointer-events: none; z-index: 9999; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #769817; outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page { max-width: 1440px; margin-inline: auto; padding-top: 50px; }
.shell { width: 75%; max-width: 1080px; margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px; z-index: 10; background: var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.header { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 5; height: 50px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-inline: 0px; background: var(--background); }
.header a { padding: 8px 20px; margin-inline: -8px; border-radius: 40px; text-decoration: none; font-size: 16px; font-weight: 700; transition: background .2s, color .2s; }
.header .wordmark { font-size: 20px; font-weight: 800; letter-spacing: -.7px; }
.header nav { display: flex; gap: 40px; }
.header a:hover, .header nav a[aria-current="location"] { background: #000; color: #fff; }
.hero { position: relative; isolation: isolate; padding-block: 200px 200px; }
.hero::before { content: "FUMI ONO" / ""; position: absolute; top: 50%; left: 50%; z-index: -1; width: 100vw; transform: translate(-50%, -50%); color: var(--pale); opacity: 0.4; font-size: 30vw; line-height: 1; font-weight: 800; letter-spacing: -.015em; text-align: center; white-space: normal; overflow-wrap: anywhere; pointer-events: none; user-select: none; }
.hero h1 { font-size: clamp(72px, 6.95vw, 100px); line-height: 1.2; letter-spacing: -3px; font-weight: 750; margin-bottom: 24px; white-space: nowrap; }
.hero p { font-size: clamp(40px, 3.34vw, 52px); font-weight: 600; line-height: 1.45; letter-spacing: -.5px; }
.highlight { background: linear-gradient(transparent 69%, var(--accent) 69%, var(--accent) 94%, transparent 94%); background-size: 100% 100%; background-repeat: no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.highlight-pending { background-size: 0% 100%; }
.section { position: relative; }
.side-heading { position: absolute; top: -8px; left: -10px; writing-mode: vertical-rl; font-size: 120px; line-height: 1; font-weight: 700; color: var(--pale); user-select: none; }
.project-list { display: grid; gap: 80px; }
.project-card { display: grid; grid-template-columns: 40% 60%; padding: 60px 40px 0; background: var(--pale); border-radius: 6px; overflow: hidden; }
.project-card:hover { opacity: 0.8; }
.project-info { display: flex; flex-direction: column; gap: 24px; padding-bottom: 40px; position: relative; z-index: 1; }
.project-info h3 { font-size: 52px; line-height: 1.15; letter-spacing: -.8px; }
.project-details { margin-top: auto; padding-top: 0; }
.date { font-size: 20px; margin-bottom: 16px; }
.project-details ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.project-details li { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.2; font-weight: 600; }
.project-details .icon { width: 18px; height: 18px; }
.project-image { align-self: start; justify-self: end; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 4px 4px 0 0; transition: transform .6s ease; }
@media (hover: hover) {
  .project-card:hover .project-image { transform: scale(1.02); }
}
.app-image { width: calc(100% - 20px); align-self: start; }
.other-projects { margin-top: 80px; }
.other-projects h3, .about-content section h3 { font-size: 20px; line-height: 1.4; font-weight: 700; margin-bottom: 20px; }
.project-gallery { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; overscroll-behavior-y: none; touch-action: pan-x pinch-zoom; scrollbar-width: none; padding-bottom: 8px; }
.project-gallery::-webkit-scrollbar { display: none; }
.gallery-card { position: relative; width: 320px; height: 180px; flex: 0 0 320px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--pale); color: white; text-align: left; cursor: pointer; }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform .6s ease; }
.gallery-card:focus-visible { outline-offset: -3px; }
.gallery-details { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 10px; border-radius: inherit; background: rgb(34 37 28 / 75%); }
.gallery-details[hidden] { display: none; }
@media (hover: hover) {
  .gallery-card:hover .gallery-details[hidden] { display: flex; }
  .gallery-card:hover img { transform: scale(1.02); }
}
.gallery-title { font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -1px; }
.gallery-meta { display: grid; gap: 4px; }
.gallery-year { font-size: 12px; line-height: 1.2; margin-bottom: 3px; }
.gallery-detail { display: flex; align-items: flex-start; gap: 4px; font-size: 12px; line-height: 1.2; font-weight: 600; }
.gallery-detail .icon { width: 12px; height: 12px; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 0px; }
.gallery-controls[hidden] { display: none; }
.gallery-arrow { display: none; width: 24px; height: 24px; flex: 0 0 24px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: white; color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; }
.gallery-arrow:hover:enabled { background: var(--ink); color: white; }
.gallery-arrow:disabled { opacity: .3; cursor: default; }
.gallery-indicators { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.gallery-indicator { display: grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.gallery-indicator::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #b7bca9; }
.gallery-indicator[aria-current="true"]::after { width: 12px; height: 12px; background: var(--ink); }
.about { margin-top: 196px; padding-bottom: 120px; }
.about-content { width: 62.5%; max-width: 900px; margin-inline: auto; }
.profile { display: flex; align-items: flex-start; gap: 70px; padding-inline: 50px 0; margin-bottom: 60px; }
.portrait { width: 200px; height: 204px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.profile-info { padding-top: 2px; }
.profile-info h3 { font-size: 32px; line-height: 1.2; margin-bottom: 22px; }
.roles { font-size: 16px; line-height: 1.5; white-space: nowrap; }
.tools { display: flex; align-items: center; gap: 12px; width: 290px; height: 44px; margin-block: 18px; }
.tools img { width: calc((100% - 60px) / 6); aspect-ratio: 1; object-fit: contain; flex-shrink: 0; }
@keyframes tool-shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20%, 60% { transform: translateX(-2px) rotate(-5deg); }
  40%, 80% { transform: translateX(2px) rotate(5deg); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tools img:hover { animation: tool-shake .45s ease-in-out; }
  .portrait:hover { animation: tool-shake 1.2s ease-in-out; }
}
.location { font-size: 16px; line-height: 1.5; }
.biography { color: var(--ink); font-size: 24px; line-height: 1.5; }
.biography p + p { margin-top: 28px; }
.biography strong { font-weight: 700; }
.contributions { margin-top: 80px; }
.contribution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contribution { background: var(--pale); padding: 22px 20px 18px; border-radius: 4px; }
.contribution .icon { width: 30px; height: 30px; margin-bottom: 22px; }
.contribution p { font-size: 20px; line-height: 1.4; }
.skills { margin-top: 60px; }
.skills dl { margin: 0; color: var(--muted); }
.skills dl > div { display: grid; grid-template-columns: 200px 1fr; column-gap: 24px; margin-top: 20px; }
.skills dt { color: var(--ink); font-size: 18px; font-weight: 700; }
.skills dd { margin: 0; font-size: 14px; line-height: 1.5; }
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--footer); color: white; padding-top: 120px; }
.contact::before { content: "FUMI ONO" / ""; position: absolute; top: 50%; left: 50%; z-index: -1; width: 100%; transform: translate(-50%, -50%); color: var(--pale); opacity: .04; font-size: 30vw; line-height: 1; font-weight: 800; letter-spacing: -.015em; text-align: center; white-space: normal; overflow-wrap: anywhere; pointer-events: none; user-select: none; }
.contact-content { width: 62.5%; max-width: 900px; margin-inline: auto; }
.contact h2 { font-size: 40px; line-height: 1.2; letter-spacing: -.6px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 60px; }
.contact-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 14px 40px; border: 1px solid #fff; border-radius: 40px; color: white; background: transparent; font-size: 20px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.contact-link.linkedin { color: #111; border-color: var(--accent); background: var(--accent); }
.contact-link:hover { background: white; color: var(--footer); }
.copy-status { min-height: 24px; margin-top: 16px; font-size: 16px; }
.copyright { border-top: 1px solid #c6c9bf; margin-top: 60px; padding-block: 24px; font-size: 12px; }
@media (min-width: 1441px) {
  .project-gallery { justify-content: safe center; }
}
@media (max-width: 1200px) {
  .hero h1 { letter-spacing: -2px; }
  .hero { padding-block: 90px 100px; }
  .project-card { padding: 40px 30px 0; }
  .project-info h3 { font-size: 40px; }
  .project-details li { font-size: 14px; gap: 8px; }
  .date { font-size: 16px; }
  .side-heading { font-size: 90px; }
  .profile { gap: 36px; padding-left: 0; }
  .portrait { width: 160px; height: 163px; }
  .roles { white-space: normal; }
  .profile-info h3 { margin-bottom: 14px; }
  .tools { width: 230px; height: auto; margin-block: 12px; }
  .biography { font-size: 20px; }
  .contribution p { font-size: 17px; }
  .contact h2 { font-size: 32px; }
  .contact-link { font-size: 16px; padding: 12px 24px; min-height: 52px; }
  .contact-actions { gap: 16px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 84px; }
  .page { padding-top: 64px; }
  .shell, .about-content, .contact-content { width: calc(100% - 48px); }
  .header { width: 100%; max-width: none; height: 64px; padding-inline: 24px; }
  .header nav { gap: 24px; }
  .hero { padding-block: 76px 80px; }
  .hero h1 { font-size: clamp(52px, 6.5vw, 72px); letter-spacing: -1.6px; white-space: normal; }
  .hero p { font-size: clamp(21px, 3.3vw, 28px); letter-spacing: -.3px; }
  .side-heading { top: -4px; left: 0; font-size: 32px; margin: 0; }
  .project-list, .about-content, .other-projects > h3, .gallery-controls { width: calc(100% - 44px); margin-left: 20px; margin-right: 24px; }
  .about-content, .project-card { min-width: 320px; }
  .project-list { gap: 32px; }
  .project-card { padding: 30px 24px 0; grid-template-columns: 42% 58%; }
  .project-info h3 { font-size: 32px; }
  .project-details li { font-size: 12px; gap: 6px; }
  .project-details .icon { width: 15px; height: 15px; }
  .app-image { align-self: start; width: 100%; }
  .other-projects { margin-top: 48px; }
  .project-gallery { padding-left: 20px; padding-right: 24px; gap: 16px; scroll-snap-type: x proximity; scroll-padding-left: 20px; scroll-padding-right: 24px; }
  .gallery-card { width: 280px; height: 157.5px; flex-basis: 280px; scroll-snap-align: start; }
  .gallery-controls { gap: 8px; }
  .gallery-indicator { width: 28px; }
  .gallery-title { font-size: 26px; }
  .gallery-detail { font-size: 10px; }
  .about { margin-top: 80px; padding-bottom: 80px; }
  .profile { margin-bottom: 36px; gap: 28px; }
  .portrait { width: 140px; height: 143px; }
  .profile-info h3 { font-size: 28px; margin-bottom: 12px; }
  .roles, .location { font-size: 14px; }
  .biography { font-size: 18px; line-height: 1.65; }
  .contributions { margin-top: 48px; }
  .contribution { padding: 18px 16px; }
  .contribution p { font-size: 16px; }
  .skills dl > div { grid-template-columns: 160px 1fr; gap: 20px; }
  .skills dt { font-size: 16px; }
  .contact { padding-top: 64px; }
  .contact h2 { font-size: 28px; line-height: 1.35; }
  .contact-actions { margin-top: 36px; }
  .copyright { margin-top: 36px; }
}
@media (max-width: 520px) {
  .header .wordmark { font-size: 18px; }
  .header a { font-size: 13px; }
  .header nav { gap: 18px; }
  .hero { padding-top: 120px; padding-bottom: 64px; }
  .hero h1 { font-size: 64px; line-height: 1.15; }
  .hero p { font-size: 32px; line-height: 1.4; }
  .hero p br { display: none; }
  .hero .highlight { display: inline; }
  .project-card { display: flex; flex-direction: column; padding: 28px 24px 0; }
  .project-info { gap: 24px; }
  .project-info h3 { font-size: 34px; }
  .project-info h3 br { display: none; }
  .project-info h3 br::after { content: ' '; }
  .project-details { padding-top: 0; }
  .project-details li { font-size: 14px; }
  .project-details ul { gap: 10px; }
  .date { margin-bottom: 14px; }
  .project-image { width: 100%; height: auto; max-height: 320px; object-fit: cover; object-position: top; }
  .app-image { max-height: none; width: 100%; }
  .profile { gap: 20px; align-items: center; }
  .portrait { width: 100px; height: 102px; }
  .profile-info h3 { font-size: 26px; }
  .roles { font-size: 12px; line-height: 1.5; }
  .tools { width: 190px; margin-block: 10px; }
  .location { font-size: 12px; }
  .contribution-grid { grid-template-columns: 1fr; gap: 12px; }
  .contribution { display: flex; align-items: flex-start; gap: 20px; padding: 24px; }
  .contribution .icon { margin-bottom: 0; }
  .contribution p { font-size: 18px; }
  .skills { margin-top: 44px; }
  .skills dl > div { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .skills dt br { display: none; }
  .skills dd { font-size: 14px; }
  .contact h2 { font-size: 25px; }
  .contact-actions { gap: 12px; }
  .contact-link { padding-inline: 24px; }
  .contact-link.email { padding-inline: 20px; font-size: 15px; }
}
.back-to-top { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 56px; height: 56px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: white; color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.back-to-top[hidden] { display: none; }
.back-to-top > span:first-child { font-size: 22px; line-height: 1; }
.back-to-top:hover { background: var(--ink); color: white; border-color: white; }
.pop-icon { transform-box: fill-box; transform-origin: center; }
.iterate-icon { transform-box: view-box; transform-origin: center; }
.pop-pending { opacity: 0; }
.reveal-pending, .project-card.reveal-pending { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .project-image, .project-gallery img { transition: none; }
  html { scroll-behavior: auto; }
  .contact-link, .header a, .back-to-top { transition: none; }
  .reveal-pending, .project-card.reveal-pending { opacity: 1; }
  .highlight-pending { background-size: 100% 100%; }
  .pop-pending { opacity: 1; }
}
