@view-transition { navigation: auto; }
:root { color-scheme: dark; --bg:#181618; --text:#f1eceb; --muted:#b8afb3; --accent:#791d35; --wine:#4d1023; --line:#3d343a; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:Arial,Helvetica,sans-serif; -webkit-font-smoothing:antialiased; display:flex; flex-direction:column; min-height:100svh; }
a { color:inherit; text-decoration:none; }
a:focus-visible { outline:2px solid var(--text); outline-offset:6px; }
img { display:block; max-width:100%; }
main { flex:1; animation:enter .35s ease both; }
header { height:88px; padding:0 5%; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; font-size:22px; letter-spacing:-1px; font-weight:800; }
.brand span { font-weight:400; margin-left:3px; }
.brand i { width:8px; height:8px; background:var(--accent); border-radius:50%; margin-left:6px; align-self:flex-start; margin-top:1px; }
nav { display:flex; gap:36px; font-size:14px; }
nav a { padding:10px 0; border-bottom:1px solid transparent; }
nav a:hover,nav a[aria-current] { color:var(--text); border-color:var(--accent); }
.eyebrow { font-size:11px; letter-spacing:2px; font-weight:600; color:var(--muted); }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(48px,5.7vw,88px); line-height:1.02; letter-spacing:-.055em; font-weight:500; }
h1 span { color:var(--text); text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:3px; text-underline-offset:.12em; }
p { font-size:17px; line-height:1.7; color:var(--muted); }
.button { display:inline-flex; align-items:center; justify-content:space-between; gap:40px; padding:19px 24px; background:var(--wine); border:1px solid #791d35; color:var(--text); font-size:14px; transition:background .2s; }
.button:hover { background:#69182e; }
.flip { display:block; height:17px; overflow:hidden; }
.flip span { display:block; line-height:17px; transition:transform .25s ease; }
.button:hover .flip span,.button:focus-visible .flip span { transform:translateY(-100%); }
.hero { display:grid; grid-template-columns:47% 53%; height:calc(100svh - 157px); min-height:490px; padding:30px 5%; gap:0; }
.hero-copy { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding-right:30px; }
.hero h1 { margin:25px 0; }
.hero p { max-width:430px; font-size:16px; }
.hero .button { margin-top:26px; }
.hero-note { margin-top:30px; font-size:10px; letter-spacing:1.5px; color:var(--muted); }
.hero-image { display:flex; flex-direction:column; min-height:0; padding:0 0 0 24px; }
.hero-image img { flex:1; min-height:0; width:100%; object-fit:contain; }
.hero-image-label { display:flex; justify-content:space-between; gap:15px; padding-top:14px; font-size:10px; letter-spacing:1px; color:var(--muted); }
footer { min-height:69px; padding:22px 5%; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:20px; font-size:11px; color:var(--muted); }
footer a:hover { color:var(--text); }
.page-intro { padding:72px 5% 48px; }
.page-intro h1 { margin:22px 0; }
.work { padding:0 5% 80px; }
.project-grid { display:grid; grid-template-columns:1fr 1fr; gap:50px 28px; }
.card-image { position:relative; background:#222023; height:clamp(250px,33vw,520px); padding:16px; }
.card-image img { width:100%; height:100%; object-fit:contain; }
.card-arrow { position:absolute; right:24px; bottom:24px; background:var(--wine); width:42px; height:42px; display:grid; place-items:center; transition:transform .2s; }
.project-card:hover .card-arrow { transform:rotate(45deg); }
.card-caption { display:flex; align-items:baseline; gap:20px; padding:18px 0; }
.card-caption h2 { font-size:24px; font-weight:400; }
.card-caption span,.card-caption small { font-size:12px; color:var(--muted); }
.card-caption small { margin-left:auto; }
.about-layout { display:grid; grid-template-columns:1fr 1fr; gap:7%; padding:80px 5%; }
.about-layout h1 { margin-top:28px; font-size:clamp(46px,5.5vw,85px); }
.aside { font-size:13px; margin-top:32px; max-width:300px; }
.about-copy h2 { font-size:30px; font-weight:400; margin-bottom:24px; }
.about-copy p { margin-bottom:20px; }
.skills { margin:35px 0; }
.skills dt { border-top:1px solid var(--line); padding-top:17px; color:var(--text); }
.skills dd { margin:7px 0 20px; color:var(--muted); font-size:14px; line-height:1.6; }
.contact-layout { padding:80px 5% 110px; }
.contact-layout h1 { margin:28px 0; }
.email { display:inline-block; margin:50px 0; font-size:clamp(18px,3.5vw,50px); letter-spacing:-.03em; overflow-wrap:anywhere; }
.email:hover { text-decoration:underline; text-decoration-color:var(--accent); }
.contact-details { display:flex; gap:50px; font-size:14px; color:var(--muted); }
.case-head { padding:48px 5%; }
.back { display:inline-block; font-size:13px; margin-bottom:45px; color:var(--muted); }
.case-head h1 { margin:20px 0 35px; }
.case-intro { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.case-intro h2 { font-size:28px; font-weight:400; }
.case-cover { margin:0 5% 50px; background:#222023; }
.case-cover img { margin:auto; max-height:85svh; object-fit:contain; }
.gallery { padding:0 5% 65px; display:grid; grid-template-columns:1fr 1fr; gap:35px; }
figure { margin:0; }
.gallery img { width:100%; height:550px; object-fit:contain; background:#222023; }
figcaption { font-size:11px; color:var(--muted); padding-top:12px; }
.next { padding:45px 5% 65px; border-top:1px solid var(--line); }
.next a { display:flex; justify-content:space-between; margin-top:20px; font-size:clamp(32px,5vw,70px); letter-spacing:-.04em; }
.next a:hover { text-decoration:underline; text-decoration-color:var(--accent); }
.skip { position:fixed; left:20px; top:-100px; padding:16px; background:var(--wine); z-index:10; }
.skip:focus { top:10px; }
@keyframes enter { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
@media(min-width:761px) and (max-height:800px) {
 .hero h1 { font-size:clamp(46px,5.4vw,75px); margin:18px 0; }
 .hero .button { margin-top:20px; }
 .hero-note { margin-top:22px; }
}
@media(max-width:760px) {
 header { height:76px; } .brand { font-size:18px; } nav { gap:18px; font-size:12px; }
 .hero { height:auto; min-height:0; grid-template-columns:1fr; padding:45px 5% 30px; gap:36px; }
 .hero-copy { padding:0; } .hero h1 { font-size:clamp(50px,10vw,76px); }
 .hero-image { padding:0; } .hero-image img { flex:auto; height:auto; max-height:70svh; }
 .hero-image-label { font-size:9px; } footer { flex-wrap:wrap; gap:14px 25px; line-height:1.5; }
 footer span:first-child { width:100%; }
 .page-intro,.contact-layout { padding:48px 5%; }
 .project-grid,.about-layout,.case-intro,.gallery { grid-template-columns:1fr; }
 .card-image { height:350px; } .card-caption { gap:12px; } .card-caption h2 { font-size:22px; }
 .card-caption span { font-size:11px; } .about-layout { padding:50px 5%; gap:50px; }
 .about-layout h1 { font-size:clamp(48px,10vw,76px); } .gallery img { height:auto; max-height:80svh; }
 .contact-details { flex-direction:column; gap:20px; } .email { margin:35px 0; }
}
@media(prefers-reduced-motion:reduce) {
 *,*::before,*::after { animation:none!important; transition:none!important; }
 ::view-transition-old(root),::view-transition-new(root) { animation:none!important; }
}
