@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f9f8f5;
  --white: #fff;
  --ink: #20211f;
  --muted: #565953;
  --line: #deded7;
  --control: #62655f;
  --accent: #ed6324;
  --accent-ink: #a6410b;
  --soft: #f0efeb;
  --on-ink: #fff;
  --portrait-bg: #eee9e1;
  --dialog-visual-bg: #eae8e3;
  --contact-bg: #242422;
  --font: 'DM Sans', Arial, Helvetica, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191c1a;
  --white: #242824;
  --ink: #f1f0eb;
  --muted: #c0c5bd;
  --line: #3d433d;
  --control: #aeb5aa;
  --accent: #ffaa70;
  --accent-ink: #ffaa70;
  --soft: #2a2e2a;
  --on-ink: #191c1a;
  --portrait-bg: #30342f;
  --dialog-visual-bg: #30342f;
  --contact-bg: #101311;
}

@media (prefers-reduced-motion: no-preference) {
  body, .topbar, .filter-row, .project-dialog, .contact-section, .portrait-wrap, .dialog-visual, .brand-mark, .primary-button, .header-cv, .lang-button, .theme-button {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  }
}

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 0; }
::view-transition-new(root) { z-index: 1; }
html.theme-switching body, html.theme-switching .topbar, html.theme-switching .filter-row, html.theme-switching .project-dialog, html.theme-switching .contact-section, html.theme-switching .portrait-wrap, html.theme-switching .dialog-visual, html.theme-switching .brand-mark, html.theme-switching .primary-button, html.theme-switching .header-cv, html.theme-switching .lang-button, html.theme-switching .theme-button, html.theme-switching .theme-icon { transition-duration: 0s !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; left: 12px; top: -70px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; min-height: 44px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar { height: 76px; padding: 0 clamp(20px, 3vw, 52px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; min-height: 44px; }
.brand-mark { display: flex; align-items: center; justify-content: center; position: relative; width: 38px; height: 38px; background: var(--ink); color: var(--on-ink); border-radius: 10px; font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -.08em; padding-right: 3px; }
.brand-mark span { position: absolute; right: 8px; bottom: 7px; color: #ffaa70; font-size: 15px; line-height: 1; }
html[data-theme="dark"] .brand-mark span { color: #a6410b; }
.brand-copy { display: flex; flex-direction: column; gap: 4px; line-height: 1.1; }
.brand-copy strong { font-size: 14px; letter-spacing: -.03em; }
.brand-copy small { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .09em; }
.topnav { display: flex; align-items: center; gap: 30px; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a:active { color: var(--accent-ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 11px; }
.theme-button { position: relative; flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--control); border-radius: 7px; background: transparent; color: var(--ink); }
.theme-button:hover, .theme-button:active { background: var(--soft); }
.theme-icon { position: absolute; width: 20px; height: 20px; transition: opacity .25s ease, transform .45s cubic-bezier(.2, 0, 0, 1); }
.theme-icon-moon { fill: currentColor; stroke: none; }
.theme-icon-sun { opacity: 0; transform: rotate(-45deg) scale(.75); }
html[data-theme="dark"] .theme-icon-sun { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .theme-icon-moon { opacity: 0; transform: rotate(45deg) scale(.75); }
.lang-button { min-width: 44px; min-height: 44px; border: 1px solid var(--control); border-radius: 7px; background: transparent; padding: 8px 10px; font-size: 12px; font-weight: 700; }
.lang-button:hover, .lang-button:active { background: var(--soft); }
.header-cv { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 9px; border: 1px solid var(--ink); border-radius: 7px; padding: 9px 14px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.header-cv svg { width: 16px; height: 16px; }
.header-cv:hover, .header-cv:active { background: var(--ink); color: var(--on-ink); }

.portfolio-shell { max-width: 1770px; margin: auto; display: grid; grid-template-columns: minmax(230px, 260px) minmax(280px, 326px) minmax(0, 1fr); min-height: calc(100vh - 76px); }
.profile-column { border-right: 1px solid var(--line); padding: 31px 25px 28px clamp(22px, 3vw, 47px); min-width: 0; }
.profile-inner, .intro-inner { position: sticky; top: 109px; }
.portrait-wrap { width: 112px; height: 112px; overflow: hidden; border-radius: 50%; background: var(--portrait-bg); display: flex; align-items: flex-start; justify-content: center; }
.portrait-wrap img { width: 124px; height: 150px; max-width: none; object-fit: contain; object-position: center top; margin-top: -2px; }
.profile-kicker { margin: 24px 0 8px; color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.profile-name { font-size: 24px; line-height: 1.11; letter-spacing: -.06em; margin: 0; font-weight: 700; }
.surname { display: block; }
.name-period { color: var(--accent); }
.profile-role { margin: 10px 0 23px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.profile-role > span { display: block; }
.profile-facts { display: grid; gap: 12px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.profile-facts div { display: flex; align-items: center; gap: 9px; }
.profile-facts svg { width: 16px; height: 16px; stroke-width: 1.8; }
.profile-actions { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 27px; }
.primary-button { background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); min-height: 44px; padding: 10px 15px; border-radius: 7px; display: inline-flex; gap: 10px; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.profile-actions .primary-button { flex: 1 1 auto; min-width: 0; padding: 8px 7px; gap: 5px; font-size: 12px; line-height: 1.2; white-space: nowrap; text-align: center; }
.profile-actions .primary-button svg { flex: none; }
.primary-button:hover, .primary-button:active { background: var(--accent-ink); border-color: var(--accent-ink); }
.primary-button svg { width: 16px; height: 16px; }
.icon-button { flex: 0 0 44px; width: 44px; height: 44px; aspect-ratio: 1; box-sizing: border-box; padding: 0; display: grid; place-items: center; border: 1px solid var(--control); border-radius: 50%; }
.icon-button:hover, .icon-button:active { background: var(--soft); }
.icon-button img { width: 21px; height: 21px; }
.side-links { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 1px; }
.side-links a { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; min-height: 44px; padding: 8px 3px; font-size: 12.5px; font-weight: 600; }
.side-links a:hover, .side-links a:active { color: var(--accent-ink); }
.side-icon { font-size: 11px; font-weight: 700; color: var(--accent-ink); }
.profile-footnote { margin-top: 49px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.upn-logo { width: 22px; height: 22px; object-fit: contain; flex: none; }

.intro-column { padding: 39px 29px 44px 32px; min-width: 0; }
.eyebrow, .section-overline { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.intro-column h1 { font-size: clamp(33px, 3vw, 53px); line-height: 1.08; letter-spacing: -.07em; font-weight: 600; margin: 55px 0 28px; max-width: 330px; }
.intro-lead { font-size: 15.5px; line-height: 1.55; font-weight: 600; letter-spacing: -.02em; margin: 0 0 14px; }
.intro-body { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0; }
.intro-divider { height: 1px; background: var(--line); margin: 26px 0 19px; }
.focus-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.focus-list span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.focus-list span:not(:last-child)::after { content: '/'; color: var(--accent-ink); margin-left: 14px; }
.intro-links { display: flex; gap: 17px; margin-top: 32px; flex-wrap: wrap; }
.intro-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 700; white-space: nowrap; border-bottom: 1px solid transparent; }
.intro-links a:hover, .intro-links a:active { color: var(--accent-ink); border-bottom-color: var(--accent); }
.intro-links span { font-size: 14px; margin-left: 2px; }
.intro-links img { width: 16px; height: 16px; object-fit: contain; margin-right: 6px; flex: none; }
.intro-note { margin-top: 28px; color: var(--muted); font-size: 11.5px; line-height: 1.6; max-width: 270px; }

.work-column { padding: 38px clamp(22px, 3vw, 47px) 70px 28px; min-width: 0; scroll-margin-top: 90px; }
.work-heading-row { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 26px; }
.work-heading-row h2 { margin: 8px 0 0; font-size: 22px; letter-spacing: -.05em; line-height: 1.2; font-weight: 600; }
.project-total { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.filter-row { display: inline-flex; gap: 2px; border: 1px solid var(--control); background: var(--white); border-radius: 7px; padding: 4px; margin-bottom: 26px; max-width: 100%; }
.filter-button { background: transparent; color: var(--muted); border: 0; border-radius: 4px; min-height: 44px; padding: 9px 13px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.filter-button:hover, .filter-button:active { background: var(--soft); color: var(--ink); }
.filter-button.is-active { background: var(--ink); color: var(--on-ink); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 19px; align-items: start; }
.project-card { min-width: 0; }
.project-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; border-radius: 4px; }
.project-open:focus-visible { outline-offset: 6px; }
.project-visual { display: flex; align-items: center; justify-content: center; position: relative; aspect-ratio: 1.48; border-radius: 2px; overflow: hidden; background: var(--visual-bg, #eceae7); }
.project-card:nth-child(-n+2) .project-visual { aspect-ratio: 1.19; }
.project-visual::after { content: ''; position: absolute; inset: 0; background: #20211f15; opacity: 0; transition: opacity .18s ease; }
.project-open:hover .project-visual::after, .project-open:focus-visible .project-visual::after { opacity: 1; }
.project-image { height: 86%; width: 89%; object-fit: contain; transition: transform .2s ease; }
.project-card:nth-child(-n+2) .project-image { height: 93%; width: 95%; }
.project-card .project-image.is-cover { width: 100%; height: 100%; object-fit: cover; }
.showcase { position: absolute; inset: 0; display: block; overflow: hidden; }
.showcase-copy { position: absolute; z-index: 1; top: 10%; left: 7%; width: 35%; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.showcase-kicker { font-size: 9px; font-weight: 700; letter-spacing: .13em; margin-bottom: 12px; }
.showcase-copy strong { font-size: clamp(19px, 1.7vw, 27px); font-weight: 700; letter-spacing: -.055em; overflow-wrap: anywhere; }
.showcase-note { display: block; margin-top: 9px; max-width: 150px; font-size: 10px; line-height: 1.35; }
.showcase-darurat .showcase-note, .showcase-ecc .showcase-note { width: 100%; max-width: 100%; }
.showcase-device { position: absolute; width: 88%; height: 145%; max-width: none; right: -9%; bottom: -32%; object-fit: contain; }
.showcase-laptop { position: absolute; display: block; width: 66%; right: 2%; top: 51%; transform: translateY(-50%); filter: drop-shadow(0 9px 7px #0003); }
.laptop-screen { display: block; width: 100%; aspect-ratio: 1.6; box-sizing: border-box; background-repeat: no-repeat; background-color: #fff; border: 6px solid #202020; border-radius: 8px; }
.showcase-recruitment { container-type: inline-size; background: #317ffc; color: #fff; }
.recruitment-pages { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: .43; mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, #000 28%, transparent 100%); }
.recruitment-row { position: absolute; display: flex; gap: 2cqw; width: max-content; }
.recruitment-row:nth-child(1) { top: -5cqw; left: -15cqw; }
.recruitment-row:nth-child(2) { top: 17cqw; left: -27cqw; }
.recruitment-row:nth-child(3) { top: 39cqw; left: -15cqw; }
.recruitment-tile { flex: 0 0 24cqw; width: 24cqw; height: 19cqw; background-color: #dcecff; background-image: url('./images/recruitment-laptop.png'); background-size: 54cqw 48.2cqw; background-repeat: no-repeat; border: .35cqw solid #e9f5ff; box-shadow: 0 .6cqw 1.5cqw #07386b42; }
.recruitment-tile-hero { background-position: -12cqw -8cqw; }
.recruitment-tile-partners { background-position: -12cqw -25cqw; }
.recruitment-tile-mobile { background-image: url('./images/recruitment-mobile.png'); background-size: 66cqw 58.9cqw; background-position: -20cqw -13cqw; }
.recruitment-wash { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0c4d9ab8 0%, #0c4d9a8c 44%, #317ffc2e 100%); }
.showcase-recruitment .showcase-copy { z-index: 4; top: 8%; left: 7%; width: 36%; }
.showcase-recruitment .showcase-kicker { margin-bottom: 2cqw; font-size: clamp(8px, 2.5cqw, 12px); }
.showcase-recruitment .showcase-copy strong { font-size: clamp(14px, 4cqw, 22px); overflow-wrap: normal; word-break: normal; }
.showcase-recruitment .showcase-note { margin-top: 2cqw; font-size: clamp(9px, 2.7cqw, 13px); }
.recruitment-description { display: block; margin-top: 3cqw; font-size: clamp(9px, 2.7cqw, 13px); line-height: 1.3; }
.recruitment-tools { display: block; margin-top: 3cqw; font-size: clamp(9px, 2.7cqw, 13px); line-height: 1.3; }
.recruitment-tools b { font-weight: 700; }
.showcase-recruitment .recruitment-laptop,
.showcase-recruitment .recruitment-mobile { position: absolute; z-index: 3; display: block; max-width: none; height: auto; object-fit: contain; }
.showcase-recruitment .recruitment-laptop { width: 70cqw; left: 36cqw; top: 70%; transform: translateY(-50%); }
.showcase-recruitment .recruitment-mobile { width: 42cqw; left: 65cqw; top: 70%; transform: translateY(-50%); filter: drop-shadow(0 1.3cqw 1.6cqw #0a2e6673); }
.showcase-darurat, .showcase-magank { color: #fff; }
.showcase-darurat .showcase-kicker { color: #f3aaa9; }
.showcase-ecc { color: #32251d; }
.showcase-ecc .showcase-kicker { color: #ab4b1a; }
.showcase-ecc .showcase-device { right: -14%; bottom: -32%; }
.showcase-laundry { color: #fff; }
.showcase-magank .showcase-copy strong { font-size: clamp(18px, 1.5vw, 22px); }
.showcase-magank .showcase-laptop { width: 50%; right: 3%; }
.showcase-laundry { container-type: inline-size; background: #0874c7; }
.laundry-pages { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: .48; mask-image: radial-gradient(ellipse 88% 86% at 50% 51%, #000 32%, transparent 100%); }
.laundry-row { position: absolute; display: flex; gap: 2cqw; width: max-content; }
.laundry-row:nth-child(1) { top: -4cqw; left: -20cqw; }
.laundry-row:nth-child(2) { top: 23cqw; left: -31cqw; }
.laundry-row:nth-child(3) { top: 50cqw; left: -20cqw; }
.laundry-tile { flex: 0 0 22cqw; width: 22cqw; height: 26cqw; background-image: url('./images/figma/laundry-board.jpg'); background-size: 192cqw 108cqw; background-repeat: no-repeat; border: .5cqw solid #eaf7ff; box-shadow: 0 1cqw 2cqw #063a6866; }
.laundry-tile-home { background-position: -28cqw -32cqw; }
.laundry-tile-service { background-position: -51cqw -32cqw; }
.laundry-tile-outlet { background-position: -74cqw -32cqw; }
.laundry-tile-about { background-position: -97cqw -32cqw; }
.laundry-tile-blog { background-position: -120cqw -32cqw; }
.laundry-tile-detail { background-position: -143cqw -32cqw; }
.laundry-wash { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #075da6eb 0%, #075da6ad 36%, #075da610 75%); }
.showcase-laundry .showcase-copy { z-index: 4; top: 9%; left: 7%; width: 38%; }
.showcase-laundry .showcase-kicker { margin-bottom: 2cqw; font-size: clamp(8px, 2.5cqw, 12px); }
.showcase-laundry .showcase-copy strong { font-size: clamp(17px, 5cqw, 27px); }
.showcase-laundry .showcase-note { margin-top: 2cqw; font-size: clamp(9px, 2.7cqw, 13px); }
.laundry-description { display: block; margin-top: 5.2cqw; font-size: clamp(9px, 2.7cqw, 13px); line-height: 1.3; }
.laundry-tools { display: block; margin-top: 4cqw; font-size: clamp(9px, 2.7cqw, 13px); line-height: 1.3; }
.laundry-tools b { font-weight: 700; }
.showcase-laundry .showcase-laptop { z-index: 3; width: 48%; right: 3%; top: 72%; filter: drop-shadow(0 1.5cqw 1.5cqw #03426d85); }
.showcase-ruangmovie { color: #2e2a24; }
.showcase-ruangmovie .showcase-kicker { color: #8d5a00; }
.showcase-ruangmovie .showcase-copy { width: 31%; }
.showcase-ruangmovie .showcase-copy strong { font-size: clamp(15px, 1.4vw, 20px); }
.showcase-ruangmovie .showcase-laptop { width: 53%; right: 5%; }
.showcase-magank, .showcase-ruangmovie { container-type: inline-size; }
.case-pages { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: .3; mask-image: radial-gradient(ellipse 90% 88% at 50% 50%, #000 29%, transparent 100%); }
.showcase-ruangmovie .case-pages { opacity: .26; }
.case-row { position: absolute; display: flex; gap: 2cqw; width: max-content; }
.case-row:nth-child(1) { top: -2cqw; left: -17cqw; }
.case-row:nth-child(2) { top: 24cqw; left: -31cqw; }
.case-row:nth-child(3) { top: 50cqw; left: -17cqw; }
.case-page { flex: 0 0 28cqw; width: 28cqw; height: 24cqw; background-repeat: no-repeat; border: .4cqw solid #fff5; }
.showcase-magank .case-page { background-image: url('./images/figma/magank-home.jpg'); background-size: 110cqw 61.9cqw; }
.showcase-magank .case-page-primary { background-position: -23cqw -9cqw; }
.showcase-magank .case-page-secondary { background-position: -64cqw -9cqw; }
.showcase-ruangmovie .case-page { background-image: url('./images/figma/ruangmovie-home.jpg'); border-color: #7c716a55; }
.showcase-ruangmovie .case-page-primary { background-size: 72cqw 40.5cqw; background-position: -19.7cqw -6.2cqw; }
.showcase-ruangmovie .case-page-secondary { background-size: 120cqw 67.5cqw; background-position: -92.5cqw -10cqw; }
.case-wash { position: absolute; inset: 0; z-index: 1; }
.showcase-magank .case-wash { background: linear-gradient(90deg, #262522f2 0%, #262522c9 39%, #26252245 100%); }
.showcase-ruangmovie .case-wash { background: linear-gradient(90deg, #eeeae4f2 0%, #eeeae4c7 39%, #eeeae447 100%); }
.showcase-magank .showcase-copy, .showcase-ruangmovie .showcase-copy { z-index: 4; top: 9%; left: 7%; width: 38%; }
.showcase-magank .showcase-kicker, .showcase-ruangmovie .showcase-kicker { margin-bottom: 2cqw; font-size: clamp(8px, 2.5cqw, 12px); }
.showcase-magank .showcase-copy strong, .showcase-ruangmovie .showcase-copy strong { font-size: clamp(17px, 5cqw, 27px); }
.showcase-magank .showcase-note, .showcase-ruangmovie .showcase-note { margin-top: 2cqw; font-size: clamp(9px, 2.7cqw, 13px); }
.case-description { display: block; margin-top: 5.2cqw; font-size: clamp(9px, 2.7cqw, 13px); line-height: 1.3; }
.case-tools { display: block; margin-top: 4cqw; font-size: clamp(9px, 2.7cqw, 13px); line-height: 1.3; }
.case-tools b { font-weight: 700; }
.showcase-magank .showcase-laptop, .showcase-ruangmovie .showcase-laptop { z-index: 3; width: 48%; right: 3%; top: 72%; filter: drop-shadow(0 1.5cqw 1.5cqw #0004); }
.project-open:hover .project-image, .project-open:focus-visible .project-image { transform: scale(1.035); }
.project-image.is-tall { height: 79%; width: auto; border: 2px solid #232323; border-radius: 15px; box-shadow: 0 8px 19px #23232326; }
.project-card-cta { position: absolute; left: 50%; top: 50%; z-index: 10; transform: translate(-50%, -40%); opacity: 0; background: var(--ink); color: var(--on-ink); border-radius: 4px; padding: 10px 14px; font-size: 12px; font-weight: 700; white-space: nowrap; transition: opacity .18s ease, transform .18s ease; }
.project-open:hover .project-card-cta, .project-open:focus-visible .project-card-cta { opacity: 1; transform: translate(-50%, -50%); }
.project-index { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; font-size: 11px; line-height: 1.35; }
.project-number { color: var(--accent-ink); font-weight: 700; letter-spacing: .04em; }
.project-organization { color: var(--muted); }
.project-card-title { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.03em; line-height: 1.38; margin: 7px 0 4px; text-wrap: pretty; }
.project-open:hover .project-card-title, .project-open:focus-visible .project-card-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.project-card-summary { display: block; font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.project-read-mobile { display: none; }
.image-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 20px; color: var(--ink); font-size: 13px; text-align: center; }
.loading-state, .empty-state, .error-state { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px solid var(--line); color: var(--muted); }

.about-section { border-top: 1px solid var(--line); max-width: 1770px; margin: auto; padding: 75px clamp(22px, 3vw, 47px) 85px; display: grid; grid-template-columns: minmax(220px, 36%) minmax(0, 1fr); gap: 7vw; scroll-margin-top: 90px; }
.about-label h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.13; letter-spacing: -.06em; font-weight: 600; margin: 18px 0 0; max-width: 550px; }
.about-content > p { max-width: 680px; font-size: 16px; color: var(--muted); line-height: 1.75; margin: 0 0 32px; }
.experience-list { border-top: 1px solid var(--line); }
.experience-item { border-bottom: 1px solid var(--line); }
.experience-item summary { display: grid; grid-template-columns: 135px minmax(130px, 1fr) minmax(170px, 1.3fr) 20px; align-items: baseline; gap: 15px; padding: 17px 0; cursor: pointer; list-style: none; }
.experience-item summary::-webkit-details-marker { display: none; }
.experience-item summary:hover strong { color: var(--accent-ink); }
.experience-item summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.experience-item summary > span:first-child { font-size: 12px; color: var(--accent-ink); font-weight: 700; }
.experience-item strong { font-size: 14px; letter-spacing: -.02em; }
.experience-item small { font-size: 13px; color: var(--muted); }
.experience-chevron { position: relative; display: block; justify-self: end; width: 20px; height: 20px; color: var(--ink); font-size: 0; transition: transform .2s ease, color .2s ease; }
.experience-chevron::before { content: ''; position: absolute; left: 1px; top: 9px; width: 16px; border-top: 1.5px solid currentColor; }
.experience-chevron::after { content: ''; position: absolute; left: 11px; top: 5px; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.experience-item summary:hover .experience-chevron, .experience-item[open] .experience-chevron { color: var(--accent-ink); }
.experience-item[open] .experience-chevron { transform: rotate(90deg); }
.experience-detail { max-width: 720px; margin: 0 35px 19px 150px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.experience-detail ul { margin: 0; padding-left: 18px; }
.experience-detail li + li { margin-top: 5px; }
.certificates-section { border-top: 1px solid var(--line); max-width: 1770px; margin: auto; padding: 75px clamp(22px, 3vw, 47px) 76px; display: grid; grid-template-columns: minmax(220px, 36%) minmax(0, 1fr); gap: 7vw; scroll-margin-top: 90px; }
.certificates-heading h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.13; letter-spacing: -.06em; font-weight: 600; margin: 18px 0 18px; }
.certificates-heading > p:last-child { max-width: 370px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.certificates-list { border-top: 1px solid var(--line); }
.certificate-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 13px; align-items: start; padding: 21px 0; border-bottom: 1px solid var(--line); }
.certificate-number { color: var(--accent-ink); font-size: 11px; font-weight: 700; padding-top: 4px; }
.certificate-row h3 { font-size: 16px; line-height: 1.4; margin: 0 0 5px; letter-spacing: -.025em; }
.certificate-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.certificate-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.certificate-preview-link { display: inline-flex; align-items: center; justify-self: end; align-self: center; gap: 3px; min-height: 44px; margin-left: 16px; border-bottom: 1px solid transparent; font-size: 12px; font-weight: 700; white-space: nowrap; }
.certificate-preview-link:hover, .certificate-preview-link:active { color: var(--accent-ink); border-bottom-color: var(--accent); }
.contact-section { max-width: 1770px; margin: auto; background: var(--contact-bg); color: #f8f8f5; padding: 72px clamp(22px, 5vw, 80px) 88px; scroll-margin-top: 76px; }
.contact-actions { display: block; }
.back-to-top { position: fixed; z-index: 25; right: clamp(16px, 2vw, 32px); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #ffffffb3; border-radius: 50%; background: linear-gradient(145deg, #ffffffe0, #e8ece8a8); color: #1e2925; box-shadow: 0 5px 18px #17241c30, inset 0 1px 0 #ffffffd9; backdrop-filter: blur(14px) saturate(1.25); -webkit-backdrop-filter: blur(14px) saturate(1.25); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease, visibility .22s, background .22s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover, .back-to-top:active { background: linear-gradient(145deg, #ffffffed, #e8ece8c9); color: #1e2925; box-shadow: 0 7px 21px #17241c3d, inset 0 1px 0 #fff; }
html[data-theme="dark"] .back-to-top { border-color: #ffffff45; background: linear-gradient(145deg, #48514bc7, #252d29b8); color: #f8f8f5; box-shadow: 0 6px 20px #0006, inset 0 1px 0 #ffffff36; }
html[data-theme="dark"] .back-to-top:hover, html[data-theme="dark"] .back-to-top:active { background: linear-gradient(145deg, #59635cdd, #303934d4); color: #fff; }
.back-to-top svg { width: 20px; height: 20px; }
.contact-section .section-overline { color: var(--accent); }
.contact-section h2 { font-size: clamp(34px, 4.5vw, 68px); line-height: 1.1; letter-spacing: -.06em; font-weight: 500; max-width: 800px; margin: 22px 0 31px; }
.contact-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; gap: 16px; font-size: clamp(16px, 2vw, 23px); font-weight: 600; border-bottom: 1px solid var(--accent); overflow-wrap: anywhere; }
.contact-link:hover, .contact-link:active { color: var(--accent); }
.contact-section :focus-visible { outline-color: var(--accent); }
.footer { max-width: 1770px; margin: auto; display: flex; justify-content: space-between; gap: 20px; padding: 20px clamp(22px, 3vw, 47px) 26px; color: var(--muted); font-size: 12px; }

.project-dialog { width: min(870px, calc(100% - 28px)); max-height: min(92dvh, 940px); border: 1px solid var(--line); border-radius: 12px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 25px 70px #0005; overflow: auto; }
.project-dialog::backdrop { background: #151614b8; }
.dialog-close { position: sticky; top: 12px; left: calc(100% - 56px); z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); border: 0; border-radius: 50%; font-size: 26px; line-height: 1; margin: 12px 12px -56px auto; }
.dialog-close:hover, .dialog-close:active { background: var(--accent-ink); }
.dialog-visual { position: relative; height: 340px; background: var(--dialog-visual-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dialog-visual img { width: 78%; height: 90%; object-fit: contain; }
.dialog-visual img.is-tall { height: 84%; width: auto; border: 3px solid #232323; border-radius: 20px; box-shadow: 0 12px 28px #2323232e; }
.dialog-visual img.is-cover { width: 100%; height: 100%; object-fit: contain; }
.dialog-visual .showcase-copy { top: 16%; left: 7%; }
.dialog-visual .showcase-copy strong { font-size: clamp(29px, 4vw, 48px); }
.dialog-visual .showcase-kicker { font-size: 11px; }
.dialog-visual .showcase-note { font-size: 13px; max-width: 190px; }
.dialog-visual .showcase-device { width: 66%; height: 145%; right: 0; bottom: -35%; }
.dialog-visual .showcase-ecc .showcase-device { right: -4%; }
.dialog-visual .showcase-laptop { width: 64%; right: 4%; }
.dialog-visual .showcase-recruitment .showcase-copy { top: 8%; left: 7%; width: 36%; }
.dialog-visual .showcase-recruitment .showcase-copy strong { font-size: clamp(14px, 4cqw, 22px); }
.dialog-visual .showcase-recruitment .recruitment-laptop { width: 66cqw; left: 38cqw; top: 65%; }
.dialog-visual .showcase-recruitment .recruitment-mobile { width: 40cqw; left: 63cqw; top: 58%; }
.recruitment-source-preview { position: relative; background: #317ffc; }
.dialog-visual .showcase-laundry { position: relative; inset: auto; flex: 0 0 auto; width: min(100%, 520px); height: 100%; }
.dialog-visual .showcase-laundry .showcase-copy { top: 9%; left: 7%; width: 38%; }
.dialog-visual .showcase-laundry .showcase-copy strong { font-size: clamp(17px, 5cqw, 27px); }
.dialog-visual .showcase-laundry .showcase-laptop { width: 48%; right: 3%; top: 72%; }
.dialog-visual :is(.showcase-magank, .showcase-ruangmovie) .showcase-copy { top: 9%; left: 7%; width: 38%; }
.dialog-visual :is(.showcase-magank, .showcase-ruangmovie) .showcase-copy strong { font-size: clamp(17px, 5cqw, 27px); }
.dialog-visual :is(.showcase-magank, .showcase-ruangmovie) .showcase-laptop { width: 48%; right: 3%; top: 72%; }
.dialog-content { padding: 35px clamp(25px, 5vw, 64px) 45px; }
.dialog-overline { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent-ink); margin: 0 0 13px; text-transform: uppercase; }
.dialog-content h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -.06em; margin: 0 0 15px; max-width: 660px; }
.dialog-summary { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 680px; margin: 0 0 23px; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 28px; }
.dialog-meta span { border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; font-size: 12px; color: var(--muted); }
.dialog-story { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dialog-story.is-single { grid-template-columns: minmax(0, 1fr); }
.dialog-story h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin: 0 0 10px; }
.dialog-story p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }
.dialog-source:not(:empty) { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 23px; }
.dialog-source-label { margin: 0 0 12px; color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.dialog-source img { display: block; width: 100%; height: auto; max-height: 470px; object-fit: contain; background: var(--soft); }
.dialog-source .showcase-recruitment img { background: transparent; }
.figma-source-preview { width: 100%; aspect-ratio: 1.5; background: var(--soft); overflow: hidden; }
.figma-source-shot { display: block; width: 100%; height: 100%; background-repeat: no-repeat; }
.figma-embed-preview { width: 100%; aspect-ratio: 1.5; min-height: 360px; border: 1px solid var(--line); background: var(--soft); }
.figma-embed-preview iframe { display: block; width: 100%; height: 100%; border: 0; }
.figma-fallback { margin-top: 10px; }
.figma-fallback summary { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); font-size: 12px; cursor: pointer; }
.figma-fallback summary:hover { color: var(--ink); }
.figma-fallback summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.figma-fallback img { margin-top: 8px; }
.dialog-source a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 13px; border-bottom: 1px solid var(--accent); font-size: 13px; font-weight: 700; }
.dialog-source a:hover, .dialog-source a:active { color: var(--accent-ink); }
.dialog-bottom { border-top: 1px solid var(--line); margin-top: 35px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
.dialog-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--accent); }
.dialog-bottom a:hover, .dialog-bottom a:active { color: var(--accent-ink); }

@media (max-width: 1380px) {
  .portfolio-shell { grid-template-columns: 240px 290px minmax(0, 1fr); }
  .profile-column { padding-left: 26px; }
  .work-column { padding-right: 27px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1381px) {
  .project-card:nth-child(3) .project-visual { aspect-ratio: 1.19; }
  .project-card:nth-child(3) .project-image { height: 93%; width: 95%; }
  .project-card:nth-child(3) .project-image.is-cover { width: 100%; height: 100%; }
}

@media (max-width: 1120px) {
  .portfolio-shell { grid-template-columns: 245px minmax(0, 1fr); min-height: 0; }
  .profile-column { grid-column: 1; grid-row: 1; border-bottom: 1px solid var(--line); }
  .profile-inner, .intro-inner { position: static; }
  .intro-column { grid-column: 2; grid-row: 1; padding-bottom: 45px; }
  .intro-column h1 { max-width: 620px; margin-top: 30px; }
  .intro-note { max-width: 520px; }
  .work-column { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); padding: 36px clamp(26px, 4vw, 54px) 72px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 22px; }
  .about-section { gap: 35px; }
  .certificates-section { gap: 35px; }
  .experience-item summary { grid-template-columns: 115px minmax(130px, 1fr) minmax(170px, 1.3fr) 20px; }
  .experience-detail { margin-left: 130px; }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .profile-column { grid-row: 1 / span 2; align-self: stretch; border-bottom: 0; }
  .profile-inner { position: sticky; top: 109px; }
  .intro-column { padding-bottom: 26px; }
  .work-column { grid-column: 2; grid-row: 2; padding-top: 30px; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .topbar { position: relative; height: auto; grid-template-columns: 1fr auto; gap: 7px 10px; padding: 11px 20px 0; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand-copy small { font-size: 9px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 7px; }
  .topnav { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
  .topnav a { min-height: 46px; font-size: 13px; }
  .portfolio-shell { display: flex; flex-direction: column; min-height: 0; }
  .profile-column { border-right: 0; padding: 25px 20px 24px; }
  .profile-inner { display: grid; grid-template-columns: 82px 1fr; column-gap: 16px; }
  .portrait-wrap { width: 82px; height: 82px; grid-row: 1 / span 4; }
  .portrait-wrap img { width: 98px; height: 118px; }
  .profile-kicker { margin: 1px 0 4px; font-size: 10px; }
  .profile-name { font-size: 23px; }
  .surname { display: inline; margin-left: 5px; }
  .profile-role { margin: 4px 0 0; }
  .profile-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 19px; }
  .profile-actions { grid-column: 1 / -1; margin-top: 17px; }
  .profile-actions .primary-button { flex: none; padding: 10px 14px; gap: 8px; }
  .side-links { display: none; }
  .profile-footnote { grid-column: 1 / -1; margin-top: 18px; }
  .intro-column { padding: 32px 20px 28px; }
  .intro-column h1 { font-size: clamp(37px, 8.8vw, 58px); max-width: 610px; margin: 23px 0 22px; }
  .intro-lead { font-size: 16px; }
  .intro-body { font-size: 15px; max-width: 650px; }
  .intro-links { margin-top: 22px; }
  .intro-note { margin-top: 20px; }
  .work-column { padding: 31px 20px 54px; }
  .work-column, .about-section, .contact-section { scroll-margin-top: 12px; }
  .project-grid { gap: 30px 16px; }
  .project-card-cta { display: none; }
  .project-read-mobile { display: inline-block; margin-top: 10px; color: var(--accent-ink); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--accent); }
  .about-section { display: block; padding: 58px 20px; }
  .about-label h2 { max-width: 650px; margin-bottom: 25px; }
  .certificates-section { display: block; padding: 58px 20px; }
  .certificates-heading { margin-bottom: 25px; }
  .experience-item summary { grid-template-columns: 120px minmax(130px, 1fr) minmax(170px, 1.3fr) 20px; }
  .experience-detail { margin-left: 135px; }
  .contact-section { padding: 58px 20px 70px; }
  .footer { padding: 20px 20px 25px; }
  .dialog-visual { height: 290px; }
}

@media (max-width: 560px) {
  .certificate-row { grid-template-columns: 38px minmax(0, 1fr); }
  .certificate-preview-link { grid-column: 2; margin: 4px 0 0; }
  .header-cv { width: 44px; padding: 0; }
  .header-cv span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .project-grid { grid-template-columns: 1fr; gap: 35px; }
  .project-card:nth-child(-n+2) .project-visual { aspect-ratio: 1.3; }
  .project-card:nth-child(-n+2) .project-image { height: 92%; }
  .project-card:nth-child(-n+2) .showcase-device { bottom: -26%; }
  .project-card-title { font-size: 17px; }
  .project-card-summary { font-size: 13px; }
  .project-card:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 19px; }
  .project-card:nth-child(n+3) .project-open { display: grid; grid-template-columns: minmax(105px, 33%) minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .project-card:nth-child(n+3) .project-visual { grid-column: 1; grid-row: 1 / span 4; aspect-ratio: .85; }
  .project-card:nth-child(n+3) .project-image { width: 94%; height: 74%; }
  .project-card:nth-child(n+3) .project-image.is-cover { width: 100%; height: 100%; object-position: var(--mobile-position, center); }
  .project-card:nth-child(n+3) .project-image.is-tall { width: auto; height: 79%; }
  .project-card:nth-child(n+3) .showcase-copy { display: none; }
  .project-card:nth-child(n+3) .showcase-recruitment .recruitment-laptop { width: 116cqw; left: -7cqw; top: 55%; }
  .project-card:nth-child(n+3) .showcase-recruitment .recruitment-mobile { width: 68cqw; left: 48cqw; top: 52%; }
  .project-card:nth-child(n+3) .showcase-laptop { width: 98%; right: 1%; }
  .project-card:nth-child(n+3) .showcase-device { width: 175%; height: 140%; right: -37%; bottom: -27%; }
  .project-card:nth-child(n+3) .project-index { grid-column: 2; grid-row: 1; margin: 0; flex-wrap: wrap; gap: 2px 8px; }
  .project-card:nth-child(n+3) .project-card-title { grid-column: 2; grid-row: 2; font-size: 15px; margin: 9px 0 4px; }
  .project-card:nth-child(n+3) .project-card-summary { grid-column: 2; grid-row: 3; font-size: 12px; }
  .project-card:nth-child(n+3) .project-read-mobile { grid-column: 2; grid-row: 4; justify-self: start; margin-top: 8px; }
  .work-heading-row h2 { font-size: 23px; }
  .filter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .filter-button { padding: 9px 6px; }
  .experience-item summary { grid-template-columns: 100px minmax(0, 1fr) 20px; gap: 4px 12px; }
  .experience-item small { grid-column: 2; }
  .experience-chevron { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .experience-detail { margin: 0 22px 18px 112px; }
  .footer { display: block; }
  .footer > span { display: block; margin-bottom: 4px; }
  .dialog-story { grid-template-columns: 1fr; gap: 24px; }
  .dialog-bottom { display: block; }
  .dialog-bottom a { display: flex; margin-top: 8px; width: max-content; }
  .dialog-content { padding: 29px 24px 37px; }
  .dialog-visual { height: 250px; }
  .figma-embed-preview { min-height: 280px; }
  .dialog-visual .showcase-copy { left: 6%; width: 36%; }
  .dialog-visual .showcase-copy strong { font-size: 23px; }
  .dialog-visual .showcase-laptop { width: 55%; right: 2%; }
  .dialog-visual .showcase-ruangmovie .showcase-copy strong { font-size: 20px; }
}

@media (max-width: 380px) {
  .topbar { padding-inline: 16px; }
  .brand { gap: 7px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { display: none; }
  .header-actions { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
