
:root { --ivory: #f2eee5; --paper: #e9e3d7; --sand: #cfc0a8; --terracotta: #b66249; --moss: #294b3c; --charcoal: #1b211e; --bronze: #a9865c; --line: rgba(27,33,30,.16); --mono: 'JetBrains Mono', ui-monospace, monospace; --sans: 'DM Sans', Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
.container { width: min(88vw, 1440px); margin-inline: auto; }
.site-shell { overflow: hidden; background: var(--ivory); }
.nav { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.mark { font-size: 20px; font-weight: 800; letter-spacing: -.12em; }
.nav-links { display: flex; gap: 34px; font-size: 12px; letter-spacing: .05em; }
.nav-links a:hover, .text-link:hover { color: var(--terracotta); }
.nav-actions { display: flex; align-items: center; gap: 18px; font: 10px var(--mono); letter-spacing: .08em; }
.nav-actions b { color: var(--terracotta); }
.button { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 13px 19px; font-size: 11px; letter-spacing: .04em; transition: .25s ease; }
.button-dark { background: var(--charcoal); color: var(--ivory); }.button-dark:hover { background: var(--terracotta); }.button-small { padding: 10px 14px; font-size: 10px; }
.hero { min-height: calc(100vh - 82px); position: relative; display: flex; align-items: center; color: var(--ivory); }
.hero-image, .hero-vignette { position: absolute; inset: 0; }.hero-image { background: url('assets/hero.jpg') center/cover; filter: saturate(.8); }.hero-vignette { background: linear-gradient(90deg, rgba(20,28,25,.9) 0%, rgba(20,28,25,.5) 55%, rgba(20,28,25,.58)), radial-gradient(ellipse at center, transparent 20%, rgba(10,15,12,.45)); }.hero-content { position: relative; padding-block: 12vh; }.eyebrow { color: var(--terracotta); font: 10px var(--mono); letter-spacing: .18em; margin: 0 0 24px; }.eyebrow.light { color: #e5b49f; }
h1, h2, h3, p { margin-top: 0; } h1, h2 { letter-spacing: -.075em; font-weight: 700; line-height: .92; } h1 { font-size: clamp(58px, 8.2vw, 128px); margin: 0 0 34px; max-width: 900px; } h1 em, h2 em { color: #d8a895; font-style: normal; } h2 { font-size: clamp(48px, 6.5vw, 98px); margin-bottom: 38px; } h3 { letter-spacing: -.04em; }
.hero-sub { max-width: 470px; font-size: 16px; line-height: 1.5; color: rgba(242,238,229,.78); }.hero-actions { display: flex; gap: 10px; margin: 34px 0 24px; }.button-paper { background: var(--ivory); color: var(--charcoal); }.button-paper:hover { background: var(--terracotta); color: white; }.button-outline-light { border: 1px solid rgba(242,238,229,.55); }.button-outline-light:hover { border-color: var(--ivory); background: rgba(255,255,255,.1); }.availability { font: 10px var(--mono); color: rgba(242,238,229,.7); }.availability span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a6c77f; margin-right: 7px; }.scroll-cue { position: absolute; bottom: 30px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 9px; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: rgba(242,238,229,.7); }.scroll-cue i { display: block; width: 1px; height: 48px; background: var(--ivory); }
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }.stat { min-height: 145px; padding: 30px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }.stat:first-child { padding-left: 0; }.stat:last-child { border: 0; }.stat strong { font: 29px var(--mono); letter-spacing: -.08em; }.stat span, .mono { font: 10px var(--mono); line-height: 1.5; color: rgba(27,33,30,.62); }
.section { padding-block: 140px; }.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 62px; }.section-head h2 { margin-bottom: 0; }.section-head > p { max-width: 330px; line-height: 1.6; color: rgba(27,33,30,.68); font-size: 14px; }.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }.project-card { height: 560px; perspective: 1000px; cursor: pointer; }.project-inner { height: 100%; position: relative; transition: transform .7s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }.project-card.is-flipped .project-inner { transform: rotateY(180deg); }.project-front, .project-back { position: absolute; inset: 0; backface-visibility: hidden; border: 1px solid var(--line); background: #ece6da; }.project-back { transform: rotateY(180deg); background: var(--moss); color: var(--ivory); padding: 28px; display: flex; flex-direction: column; }.project-art { height: 250px; position: relative; overflow: hidden; background: #52645a; }.art-0 { background: linear-gradient(135deg,#6d7568,#c07b61 50%,#273e34); }.art-1 { background: linear-gradient(145deg,#b49f7f,#51695c 45%,#d1b18d); }.art-2 { background: linear-gradient(150deg,#344d43,#b5765e 58%,#d4c1a6); }.art-3 { background: linear-gradient(160deg,#c9a77f,#294b3c 55%,#b66249); }.project-art:after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 29px, rgba(242,238,229,.16) 30px 31px); mix-blend-mode: screen; }.project-art > span { position: absolute; z-index: 1; right: 20px; bottom: 15px; color: rgba(242,238,229,.8); font: 12px var(--mono); }.art-lines { position: absolute; inset: 45px; border: 1px solid rgba(242,238,229,.42); z-index: 1; }.art-lines:after { content: ''; position: absolute; width: 40%; height: 30%; border: 1px solid rgba(242,238,229,.7); top: 22%; left: 28%; }
.project-copy { padding: 24px; }.card-meta { display: flex; justify-content: space-between; align-items: center; }.badge { border: 1px solid var(--terracotta); color: var(--terracotta); padding: 5px 8px; font: 9px var(--mono); letter-spacing: .08em; }.badge-dark { border-color: rgba(242,238,229,.5); color: #e5b49f; }.project-copy h3, .project-back h3 { font-size: 26px; line-height: .95; margin: 26px 0 10px; }.project-copy p { font-size: 13px; line-height: 1.5; color: rgba(27,33,30,.66); }.tags { display: flex; flex-wrap: wrap; gap: 6px; }.tags span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; font: 9px var(--mono); }.project-back ul { list-style: none; padding: 0; margin: 25px 0 auto; }.project-back li { padding: 13px 0; border-bottom: 1px solid rgba(242,238,229,.22); font-size: 13px; }.project-back li:before { content: '↳'; color: #d8a895; margin-right: 9px; }.metric-row { display: flex; gap: 15px; }.metric-row strong { font: 12px var(--mono); color: #e5b49f; }.text-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 35px; font: 11px var(--mono); border-bottom: 1px solid var(--charcoal); padding-bottom: 5px; }
.experience { background: var(--moss); color: var(--ivory); padding: 120px 0 0; }.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; }.experience h2 { margin-bottom: 65px; }.exp-company { font-size: 17px; margin-bottom: 8px; }.exp-role { color: #d8a895; font-size: 14px; line-height: 1.55; }.exp-role span { color: rgba(242,238,229,.62); font: 10px var(--mono); }.achievements { padding-top: 44px; }.achievements p { border-top: 1px solid rgba(242,238,229,.23); padding: 22px 0; display: grid; grid-template-columns: 45px 1fr; font-size: 14px; line-height: 1.4; }.achievements b { color: #d8a895; font: 11px var(--mono); }.education { margin-top: 100px; padding-block: 25px; border-top: 1px solid rgba(242,238,229,.25); display: grid; grid-template-columns: 1fr 2fr 1fr; color: rgba(242,238,229,.68); font: 10px var(--mono); }.education strong { color: var(--ivory); font: 14px var(--sans); }.education p { text-align: right; margin: 0; }
.approach { display: grid; grid-template-columns: .9fr 1.1fr; gap: 11vw; align-items: center; }.approach-image { background: var(--sand); min-height: 620px; position: relative; }.approach-photo { height: 100%; min-height: 620px; background: url('assets/hero.jpg') 63% center/cover; filter: sepia(.25) saturate(.7); mix-blend-mode: multiply; }.approach-image p { position: absolute; bottom: 0; left: 0; margin: 0; background: var(--paper); padding: 18px 22px; font-size: 12px; line-height: 1.35; }.approach-content h2 { margin-bottom: 50px; }.step { display: grid; grid-template-columns: 48px 1fr 20px; gap: 14px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }.step > span { font: 11px var(--mono); color: var(--terracotta); }.step h3 { font-size: 22px; margin: 0 0 4px; }.step p { margin: 0; font-size: 13px; color: rgba(27,33,30,.65); }.step svg { color: var(--terracotta); }
.skills { padding-top: 25px; }.skill-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }.skill-column { padding: 35px 30px 0 0; min-height: 190px; border-right: 1px solid var(--line); }.skill-column + .skill-column { padding-left: 30px; }.skill-column:last-child { border: 0; }.skill-column h3 { font: 10px var(--mono); letter-spacing: .16em; color: var(--terracotta); margin-bottom: 24px; }
.contact { background: var(--paper); padding-bottom: 110px; }.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; align-items: end; }.contact h2 { margin-bottom: 65px; }.contact-cards { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }.contact-cards a { display: grid; grid-template-columns: 28px 1fr 18px; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding: 15px 0; }.contact-cards svg { color: var(--terracotta); }.contact-cards span { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }.contact-cards small { color: var(--terracotta); font: 9px var(--mono); letter-spacing: .12em; }
footer { background: var(--charcoal); color: var(--ivory); padding: 28px 0; }.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; align-items: center; font: 10px var(--mono); color: rgba(242,238,229,.62); }.footer-inner .mark { color: var(--ivory); font: 20px var(--sans); }.footer-inner div { text-align: right; color: #d8a895; }

@media (max-width: 800px) { .container { width: min(90vw, 620px); }.nav { height: 70px; }.nav-links { display: none; }.nav-actions > span { display: none; } h1 { font-size: 17vw; }.hero { min-height: calc(100vh - 70px); }.stats-grid, .project-grid, .skill-grid, .exp-grid, .contact-grid, .approach { grid-template-columns: 1fr; }.stat { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }.stat:last-child { border-bottom: 0; }.section { padding-block: 90px; }.section-head { display: block; }.section-head > p { margin-top: 30px; }.project-card { height: 570px; }.exp-grid { gap: 35px; }.experience { padding-top: 90px; }.education { display: flex; flex-direction: column; gap: 12px; margin-top: 65px; }.education p { text-align: left; }.approach-image, .approach-photo { min-height: 450px; }.approach-content { padding-top: 25px; }.skill-column, .skill-column + .skill-column { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; min-height: auto; }.skill-column:last-child { border-bottom: 0; }.contact h2 { margin-bottom: 45px; }.footer-inner { grid-template-columns: 1fr 1fr; gap: 18px; }.footer-inner div { text-align: left; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.project-inner { transition: none; } }

/* added: language toggle, card links, other projects */
.lang { display: flex; gap: 2px; }.lang button { background: none; border: 0; padding: 4px; font: 10px var(--mono); letter-spacing: .08em; color: inherit; cursor: pointer; }.lang button[aria-pressed="true"] { color: var(--terracotta); font-weight: 700; }
.project-card:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; }
.card-link { font: 9px var(--mono); letter-spacing: .08em; border-bottom: 1px solid currentColor; }.card-link:hover { color: var(--terracotta); }.project-back .card-link { color: #e5b49f; }
.private { font: 9px var(--mono); letter-spacing: .08em; color: rgba(27,33,30,.5); }.project-back .private { color: rgba(242,238,229,.55); }
.flip-hint { font: 9px var(--mono); color: rgba(27,33,30,.5); margin-top: 18px; }
.others { margin-top: 110px; }.others h3 { font: 10px var(--mono); letter-spacing: .16em; color: var(--terracotta); margin-bottom: 18px; }
.other-row { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }.other-row:last-child { border-bottom: 1px solid var(--line); }
.other-row strong { font-size: 19px; letter-spacing: -.04em; }.other-row p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(27,33,30,.68); }.other-row .mono { color: var(--terracotta); }
@media (max-width: 800px) { .other-row { grid-template-columns: 1fr; gap: 8px; }.nav-actions .lang { display: flex; } }
@media (min-width: 801px) and (max-width: 1100px) { .project-card { height: 620px; } }

/* portfolio pieces: about, terminal panels, ADR card, now card */
.about { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; align-items: center; }
.about-photo { margin: 0; background: var(--sand); }.about-photo img { display: block; width: 100%; height: auto; filter: grayscale(.25) contrast(1.02); }
.about-text { max-width: 560px; font-size: 16px; line-height: 1.65; color: rgba(27,33,30,.78); }
.facts { margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }.facts dt { font: 9px var(--mono); letter-spacing: .14em; color: var(--terracotta); margin-bottom: 6px; }.facts dd { margin: 0; font-size: 14px; }
.term { margin: 0; padding: 34px 28px; background: var(--charcoal); color: rgba(242,238,229,.86); font: 13px/1.9 var(--mono); white-space: pre-wrap; display: block; padding-top: 58px; }
.term::after { display: none; }.term b { color: #a6c77f; font-weight: 400; margin-right: 8px; }.term i { font-style: normal; color: #e5b49f; }
.adr { border: 1px solid var(--line); background: #ece6da; padding: 30px; }
.adr-head { display: flex; justify-content: space-between; font: 10px var(--mono); letter-spacing: .12em; color: var(--terracotta); margin-bottom: 18px; }
.adr-status { border: 1px solid #5b7f4a; color: #3f6332; padding: 3px 7px; }
.adr h3 { font-size: 24px; margin-bottom: 18px; }
.adr pre { margin: 0 0 20px; padding: 18px; background: var(--charcoal); color: #e9e3d7; font: 12px/1.7 var(--mono); overflow-x: auto; }
.adr p { display: grid; grid-template-columns: 90px 1fr; gap: 12px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.adr p b { font: 9px var(--mono); letter-spacing: .12em; color: var(--terracotta); padding-top: 3px; }
.adr small { display: block; margin-top: 14px; font: 9px var(--mono); color: rgba(27,33,30,.5); }
.now { background: var(--charcoal); color: var(--ivory); padding: 30px; }
.now-head { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 10px var(--mono); letter-spacing: .14em; }.now-head b { font-weight: 400; }
.now-head span { width: 7px; height: 7px; border-radius: 50%; background: #a6c77f; box-shadow: 0 0 0 4px rgba(166,199,127,.18); }
.now dl { margin: 0; }.now dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(242,238,229,.16); }
.now dt { font: 9px var(--mono); letter-spacing: .12em; color: #e5b49f; padding-top: 3px; }.now dd { margin: 0; font-size: 14px; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; gap: 40px; }.about-photo { max-width: 320px; }.facts { grid-template-columns: 1fr; }.adr, .now { padding: 22px; }.adr p, .now dl div { grid-template-columns: 1fr; gap: 4px; } }
.approach > *, .about > * { min-width: 0; }
@media (min-width: 801px) and (max-width: 1100px) { .skill-grid { grid-template-columns: repeat(2,1fr); }.skill-column:nth-child(2) { border-right: 0; }.skill-column:nth-child(3) { padding-left: 0; } }
