/* YANJIN — responsive art portfolio. Theme base: #98A869 */

:root {

  color-scheme: light;

  --sage: #98a869;

  --sage-deep: #718250;

  --sage-light: #e6ead7;

  --page: #f8f7f0;

  --surface: #fffdf8;

  --surface-muted: #f0f1e7;

  --ink: #29392e;

  --ink-soft: #637064;

  --line: #dce0d3;

  --footer-bg: #2c3c31;

  --footer-text: #f7f4e9;

  --terracotta: #c38d79;

  --font-body: 'DM Sans', sans-serif;

  --font-heading: 'Playfair Display', Georgia, serif;

  --font-ui: 'Manrope', sans-serif;

  --radius-sm: 12px;

  --radius-md: 20px;

  --radius-lg: 28px;

  --container: 1240px;

  --ease: cubic-bezier(.22, 1, .36, 1);

}

:root[data-theme="dark"] {

  color-scheme: dark;

  --page: #19251e;

  --surface: #233228;

  --surface-muted: #2d4033;

  --ink: #f3f1e4;

  --ink-soft: #b7c5b4;

  --line: #405646;

  --sage-light: #354832;

  --sage-deep: #bdc9a2;

  --footer-bg: #111c16;

  --footer-text: #f7f4e9;

}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-body); font-size: 16px; -webkit-font-smoothing: antialiased; transition: background-color .4s ease, color .4s ease; }

body.menu-open { overflow: hidden; }

button, input, select, textarea { font: inherit; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

img { max-width: 100%; }

::selection { background: var(--sage); color: #1c271b; }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }

[hidden] { display: none !important; }

.container { width: min(var(--container), calc(100% - 96px)); margin-inline: auto; }

.section-pad { padding-block: 120px; }

.skip-link { position: fixed; z-index: 500; top: -100px; left: 20px; padding: 12px 20px; background: #fff; color: #222; border-radius: 8px; }

.skip-link:focus { top: 15px; }

/* Header */

.site-header { height: 94px; position: sticky; top: 0; z-index: 100; background: var(--page); border-bottom: 1px solid transparent; transition: *background* .35s, box-shadow .35s, border-color .35s; }

.site-header.is-scrolled { height: 78px; border-color: var(--line); box-shadow: 0 10px 30px rgba(25,45,30,.035); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: 28px; letter-spacing: -1.7px; font-weight: 800; white-space: nowrap; }

.brand-mark { width: 31px; height: 31px; color: var(--sage); }

.brand-period { color: var(--sage-deep); }

.desktop-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 42px); margin-left: auto; margin-right: auto; }

.nav-link { position: relative; font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--ink-soft); transition: color .25s; }

.nav-link:hover, .nav-link.is-current { color: var(--ink); }

.nav-link::after { content: ''; display: block; position: absolute; bottom: -8px; left: 0; width: 100%; height: 2px; background: var(--sage); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }

.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.theme-toggle { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; transition: transform .3s, border-color .3s, *background* .3s; }

.theme-toggle:hover { background: var(--surface-muted); transform: rotate(-14deg); }

.theme-toggle .sun-icon { display: none; }

[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }

.button { border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; gap: 34px; font-family: var(--font-ui); font-size: 13px; font-weight: 800; border: 1px solid transparent; line-height: 1.2; transition: transform .35s var(--ease), *background* .3s, color .3s, box-shadow .3s; }

.button:hover { transform: translateY(-4px); }

.button-small { padding: 14px 22px; background: var(--ink); color: var(--page); gap: 19px; }

.button-small:hover { background: var(--sage-deep); color: var(--surface); }

.button-primary { padding: 20px 29px; background: var(--sage); color: #1c2a20; box-shadow: 0 10px 24px rgba(97,118,65,.12); }

.button-primary:hover { background: #aabb7b; box-shadow: 0 15px 28px rgba(97,118,65,.2); }

.menu-toggle, .mobile-nav { display: none; }

/* Hero */

.hero { padding-top: 68px; padding-bottom: 30px; overflow: hidden; }

.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); gap: clamp(30px, 6vw, 100px); align-items: center; }

.hero-content { position: relative; z-index: 2; padding-top: 15px; }

.eyebrow, .section-kicker { display: flex; align-items: center; gap: 12px; font-family: var(--font-ui); font-size: 10px; font-weight: 800; letter-spacing: .19em; color: var(--sage-deep); }

.tiny-flower { font-size: 19px; color: var(--sage); letter-spacing: 0; }

.eyebrow-rule { width: 25px; height: 1px; background: var(--line); }

.hero-title { position: relative; margin: 25px 0 24px; font-family: var(--font-heading); font-size: clamp(62px, 6.35vw, 99px); letter-spacing: -.067em; font-weight: 500; line-height: 1.1; white-space: nowrap; }

.hero-title em, h2 em { color: var(--sage-deep); font-weight: 400; }

.hero-title-dot { display: inline-block; margin-left: 10px; transform: rotate(-15deg) translateY(-.25em); font-family: var(--font-body); color: var(--terracotta); font-size: .34em; vertical-align: middle; }

.hero-copy { color: var(--ink-soft); font-size: 16px; line-height: 1.95; max-width: 440px; }

.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 29px; margin-top: 32px; }

.text-link { display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 5px; font-size: 12px; font-family: var(--font-ui); font-weight: 800; }

.text-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .25s; }

.text-link:hover svg { transform: translateX(5px); }

.hero-footnote { display: flex; align-items: center; gap: 12px; margin-top: clamp(40px, 6vw, 75px); font-size: 11px; line-height: 1.55; letter-spacing: .02em; color: var(--ink-soft); }

.footnote-mark { font-size: 37px; line-height: 1; color: var(--terracotta); }

.hero-art-wrap { position: relative; min-width: 0; padding: 12px 20px 18px 0; }

.hero-art { position: relative; margin: 0; overflow: hidden; background: #d3ddbc; border-radius: 245px 245px 18px 18px; aspect-ratio: .84; box-shadow: 0 28px 60px rgba(59,81,59,.12); }

.hero-art > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

.hero-art:hover > img { transform: scale(1.04); }

.hero-art-caption { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 18px 24px; color: #fff8e8; background: linear-gradient(transparent, rgba(36,57,47,.45)); font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: .09em; }

.hero-art-decor { position: absolute; pointer-events: none; }

.decor-one { width: 160px; height: 160px; right: -27px; top: -12px; border-radius: 50%; background: var(--sage-light); opacity: .8; }

.decor-two { width: 220px; height: 70px; left: -30px; bottom: -18px; border: 1px solid var(--sage); border-radius: 50%; transform: rotate(-26deg); opacity: .68; }

.floating-sticker { display: grid; place-items: center; width: 133px; height: 133px; position: absolute; left: -67px; bottom: 106px; border-radius: 50%; background: #f5edd5; color: #64774d; border: 6px solid var(--page); transform: rotate(-12deg); box-shadow: 0 10px 25px rgba(32,56,35,.09); }

.floating-sticker svg { width: 109px; height: 109px; fill: currentColor; }

.hero-scroll-note { display: flex; align-items: center; gap: 13px; margin-top: 29px; font-family: var(--font-ui); font-size: 9px; font-weight: 800; letter-spacing: .21em; color: var(--ink-soft); }

.scroll-line { width: 35px; height: 1px; background: var(--sage-deep); }

/* Marquee */

.marquee { overflow: hidden; background: var(--sage); color: #253b2a; margin-top: 38px; padding: 15px 0; transform: rotate(-1.25deg) scale(1.015); }

.marquee-track { display: flex; white-space: nowrap; width: max-content; animation: ticker 30s linear infinite; }

.marquee-track > span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--font-ui); font-size: 13px; letter-spacing: .13em; font-weight: 800; text-transform: uppercase; }

.marquee b { font-size: 23px; font-weight: 400; }

@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 43px; }

.section-kicker { color: var(--ink-soft); }

.kicker-index { display: inline-grid; place-items: center; border: 1px solid var(--sage); border-radius: 50%; width: 27px; height: 27px; color: var(--sage-deep); font-size: 10px; letter-spacing: 0; }

h2 { font-family: var(--font-heading); font-size: clamp(47px, 5.2vw, 75px); font-weight: 500; line-height: 1.19; letter-spacing: -.062em; margin: 18px 0 0; }

.section-heading > p { margin: 0 0 7px; max-width: 300px; font-size: 14px; line-height: 1.9; color: var(--ink-soft); }

/* Gallery */

.work-section { padding-top: 148px; }

.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 35px; }

.filter { color: var(--ink-soft); background: transparent; padding: 12px 21px; border: 1px solid var(--line); border-radius: 100px; font-family: var(--font-ui); font-size: 11px; font-weight: 800; transition: *background* .25s, color .25s, border-color .25s, transform .25s; }

.filter:hover { border-color: var(--sage); transform: translateY(-2px); }

.filter.is-active { color: #263725; background: var(--sage); border-color: var(--sage); }

.filter span { margin-left: 7px; font-size: 9px; opacity: .72; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; align-items: start; }

.art-card { min-width: 0; }

.art-open { display: block; width: 100%; text-align: left; padding: 0; background: none; border: none; color: inherit; }

.art-image { display: block; width: 100%; position: relative; aspect-ratio: .87; overflow: hidden; border-radius: 14px; background: var(--surface-muted); isolation: isolate; }

.art-card:nth-child(3n+2) .art-image { aspect-ratio: .87; }

.art-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }

.art-open:hover .art-image img { transform: scale(1.065); filter: saturate(1.05); }

.art-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(27,44,33,.3)); opacity: 0; transition: opacity .4s; }

.art-open:hover .art-image::after { opacity: 1; }

.art-view { position: absolute; z-index: 1; right: 20px; bottom: 20px; padding: 11px 15px; background: #f5f2e5; border-radius: 100px; color: #263725; font-family: var(--font-ui); font-size: 11px; font-weight: 800; transform: translateY(15px); opacity: 0; transition: opacity .35s, transform .35s var(--ease); }

.art-view span { margin-left: 12px; }

.art-open:hover .art-view, .art-open:focus-visible .art-view { opacity: 1; transform: translateY(0); }

.art-info { display: flex; align-items: start; justify-content: space-between; padding: 17px 3px 1px; gap: 10px; }

.art-info strong { display: block; font-family: var(--font-heading); font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.04em; }

.art-info small { display: block; margin-top: 8px; font-size: 11px; color: var(--ink-soft); }

.art-index { font-size: 11px; color: var(--sage-deep); padding-top: 4px; font-family: var(--font-ui); font-weight: 800; }

.art-card.filter-enter { animation: card-enter .48s var(--ease) both; }

@keyframes card-enter { from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: translateY(0); } }

.gallery-note { margin: 42px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }

/* About */

.about-section { background: var(--surface-muted); overflow: hidden; }

.about-layout { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); gap: clamp(80px, 10vw, 145px); align-items: center; }

.about-visual { position: relative; padding: 0 30px 32px 12px; }

.about-image-frame { aspect-ratio: .9; border-radius: 220px 220px 16px 16px; overflow: hidden; background: #d5ddc7; }

.about-image-frame img { height: 100%; width: 100%; object-fit: cover; transition: transform .9s var(--ease); }

.about-image-frame:hover img { transform: scale(1.05); }

.about-handwriting { position: absolute; left: -24px; bottom: 5px; font-family: var(--font-heading); font-style: italic; font-size: 28px; line-height: 1.18; letter-spacing: -.04em; transform: rotate(-9deg); background: var(--surface); padding: 20px 25px; border-radius: 5px; box-shadow: 0 14px 35px rgba(43,53,34,.09); }

.about-handwriting span { color: var(--terracotta); }

.about-cross { position: absolute; right: 0; top: 45px; color: var(--sage-deep); font-size: 69px; transform: rotate(11deg); }

.about-content h2 { margin-bottom: 29px; }

.about-content p { max-width: 460px; color: var(--ink-soft); font-size: 15px; line-height: 2; margin: 0 0 16px; }

.about-underline { width: 75px; height: 6px; border-radius: 50%; border-top: 3px solid var(--terracotta); transform: rotate(-9deg); margin-bottom: 27px; }

.about-signoff { display: flex; flex-direction: column; gap: 2px; margin-top: 29px; }

.about-signoff span { font-family: var(--font-heading); font-style: italic; font-size: 17px; color: var(--ink-soft); }

.about-signoff strong { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: 31px; color: var(--sage-deep); }

/* Commission cards */

.commission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.commission-card { display: flex; flex-direction: column; min-height: 309px; position: relative; padding: 29px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-md); transition: transform .4s var(--ease), border-color .3s, box-shadow .3s, *background* .3s; }

.commission-card:hover { transform: translateY(-8px); border-color: var(--sage); box-shadow: 0 20px 50px rgba(33,51,34,.06); background: var(--sage-light); }

.commission-num { font-family: var(--font-ui); font-size: 10px; font-weight: 800; color: var(--sage-deep); letter-spacing: .08em; }

.commission-icon { position: absolute; right: 28px; top: 22px; font-size: 39px; color: var(--sage-deep); }

.commission-card h3 { margin: 55px 0 11px; font: 500 28px/1.2 var(--font-heading); letter-spacing: -.035em; }

.commission-card p { max-width: 275px; margin: 0 0 22px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }

.card-link { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; font-family: var(--font-ui); font-size: 11px; font-weight: 800; }

.card-link span { font-size: 16px; transition: transform .25s; }

.card-link:hover span { transform: translate(3px,-3px); }

.commission-note { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 28px auto 0; font-size: 11px; color: var(--ink-soft); }

.status-dot { width: 8px; height: 8px; background: var(--sage); border-radius: 50%; box-shadow: 0 0 0 5px var(--sage-light); }

.divider-mini { color: var(--line); }

/* Contact */

.contact-section { position: relative; overflow: hidden; background: var(--sage-light); }

.contact-layout { display: grid; grid-template-columns: 1fr; gap: 0; align-items: start; }

.contact-intro h2 { font-size: clamp(50px, 5.3vw, 77px); }

.contact-intro p { max-width: 360px; margin: 25px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }

.contact-star { font-size: 145px; color: var(--sage); opacity: .45; margin-top: 20px; transform: rotate(-19deg); line-height: .9; }

.social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 27px; }

.social-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 5px 22px rgba(45,60,33,.05); transition: transform .32s var(--ease), background-color .3s, color .3s, box-shadow .3s, border-color .3s; }

.social-icon svg { width: 21px; height: 21px; display: block; }

.social-icon:hover { transform: translateY(-5px) rotate(-3deg); background: var(--sage); color: #202c1d; border-color: var(--sage); box-shadow: 0 12px 23px rgba(56,73,44,.17); }

.social-icon:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 4px; }

.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form { display: flex; flex-direction: column; gap: 23px; margin-top: 4px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.form-field label { font-family: var(--font-ui); font-size: 11px; font-weight: 800; }

.form-field label span { color: #ac7968; }

.form-field input, .form-field select, .form-field textarea { display: block; width: 100%; appearance: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 15px 17px; font-size: 13px; outline: none; transition: border-color .25s, box-shadow .25s; }

.form-field input::placeholder, .form-field textarea::placeholder { color: #899487; opacity: 1; }

.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(152,168,105,.2); }

.form-field textarea { min-height: 145px; resize: vertical; line-height: 1.7; }

.form-field select { cursor: pointer; background-image: url('data:image/svg+xml,%3Csvg xmlns="http\://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%2384937d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m6 9 6 6 6-6"/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: right 16px center; padding-right: 45px; }

.contact-submit { width: 100%; justify-content: space-between; border: 0; }

.form-disclaimer { margin: -9px 0 0; color: var(--ink-soft); line-height: 1.65; font-size: 10px; }

.form-feedback { min-height: 0; color: var(--sage-deep); font-size: 12px; font-weight: 700; margin: -15px 0 0; }

.form-feedback:empty { display: none; }

.form-feedback[data-state="success"] { color: #416a35; }

.form-feedback[data-state="pending"] { color: var(--ink-soft); }

.contact-submit:disabled { opacity: .62; cursor: wait; filter: saturate(.75); }

@media (max-width: 760px) { .social-links { margin-top: 24px; } .social-icon { width: 46px; height: 46px; border-radius: 14px; } }

/* Footer */

.site-footer { background: var(--footer-bg); color: var(--footer-text); }

.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 47px; border-bottom: 1px solid rgba(255,255,255,.14); }

.footer-brand { font-size: 31px; }

.footer-brand .brand-mark { width: 34px; height: 34px; }

.footer-top > span { font-family: var(--font-ui); font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #cad3bf; }

.back-top { background: none; border: 0; padding: 10px 0; color: inherit; cursor: pointer; font-family: var(--font-ui); font-weight: 800; font-size: 11px; transition: color .2s; }

.back-top:hover { color: #bad18d; }

.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 25px; color: #c9d1c4; font-size: 10px; }

/* Artwork viewer */

.art-dialog { max-width: min(920px, calc(100vw - 32px)); max-height: min(90vh, 900px); width: 100%; padding: 0; border: none; background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: 0 35px 100px rgba(8,20,12,.25); overflow: auto; }

.art-dialog::backdrop { background: rgba(16,30,20,.72); backdrop-filter: blur(8px); }

.art-dialog[open] { animation: modal-in .35s var(--ease) both; }

@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }

.dialog-content { display: grid; grid-template-columns: 1.05fr .95fr; position: relative; }

.dialog-close { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; z-index: 2; width: 40px; height: 40px; border: none; border-radius: 50%; background: var(--surface-muted); color: var(--ink); font-size: 16px; }

.dialog-close:hover { background: var(--sage); color: #1d2a1d; }

.dialog-image-wrap { background: var(--surface-muted); max-height: 700px; min-height: 450px; }

.dialog-image-wrap img { width: 100%; height: 100%; max-height: 700px; object-fit: cover; }

.dialog-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 45px; }

.dialog-kicker { font-family: var(--font-ui); font-size: 10px; font-weight: 800; letter-spacing: .17em; color: var(--sage-deep); text-transform: uppercase; }

.dialog-text h2 { font-size: clamp(32px, 4vw, 54px); margin: 12px 0 19px; }

.dialog-text p { font-size: 14px; color: var(--ink-soft); line-height: 1.9; }

.dialog-note { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; line-height: 1.6; }

/* Scroll reveals: content stays visible without JS or IntersectionObserver */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }

.js .reveal.is-visible { opacity: 1; transform: none; }

/* Tablets and small laptops */

@media (max-width: 1100px) {

  .container { width: min(var(--container), calc(100% - 64px)); }

  .section-pad { padding-block: 100px; }

  .hero { padding-top: 50px; padding-bottom: 28px; }

  .hero-title { font-size: clamp(55px, 6.4vw, 76px); }

  .hero-layout { gap: 44px; }

  .hero-copy { font-size: 14px; }

  .floating-sticker { width: 108px; height: 108px; left: -50px; bottom: 80px; }

  .floating-sticker svg { width: 90px; height: 90px; }

  .about-layout { gap: 65px; }

  .contact-layout { gap: 55px; }

}

@media (max-width: 900px) {

  .site-header { height: 78px; }

  .site-header.is-scrolled { height: 72px; }

  .desktop-nav { gap: 19px; }

  .nav-link { font-size: 11px; }

  .header-cta { display: none; }

  .hero-title { font-size: clamp(52px, 6.7vw, 66px); }

  .hero-layout { grid-template-columns: 1.02fr .98fr; gap: 25px; }

  .hero-buttons { gap: 19px; }

  .hero-buttons .button { padding: 17px 19px; gap: 14px; }

  .hero-footnote { margin-top: 37px; }

  .portfolio-grid { gap: 22px 17px; }

  .art-info strong { font-size: 21px; }

  .commission-card { padding: 23px; }

  .commission-card h3 { font-size: 24px; }

  .about-handwriting { left: -15px; font-size: 22px; }

}

/* Portrait iPad + phones */

@media (max-width: 760px) {

  html { scroll-padding-top: 83px; }

  .container { width: min(100% - 40px, 570px); }

  .section-pad { padding-block: 80px; }

  .desktop-nav { display: none; }

  .site-header, .site-header.is-scrolled { height: 70px; }

  .brand { font-size: 25px; }

  .brand-mark { width: 28px; height: 28px; }

  .header-actions { gap: 12px; }

  .theme-toggle { width: 39px; height: 39px; }

  .menu-toggle { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; padding: 9px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); z-index: 111; }

  .menu-toggle span { height: 2px; width: 19px; background: var(--ink); transition: transform .28s, opacity .28s; transform-origin: center; }

  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }

  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .mobile-nav { display: flex; position: fixed; z-index: 110; top: 70px; left: 0; right: 0; height: calc(100dvh - 70px); background: var(--page); border-top: 1px solid var(--line); padding: 30px max(20px, calc((100vw - 570px)/2)); flex-direction: column; gap: 0; visibility: hidden; opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .3s, transform .3s, visibility .3s; overflow-y: auto; }

  .mobile-nav.is-open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }

  .mobile-nav a { font: 500 clamp(29px, 8vw, 42px)/1.15 var(--font-heading); letter-spacing: -.035em; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 20px 4px; }

  .mobile-nav a span { font: 800 10px var(--font-ui); color: var(--sage-deep); }

  .hero { padding-top: 54px; padding-bottom: 17px; }

  .hero-layout { grid-template-columns: 1fr; gap: 38px; }

  .hero-content { padding: 0; }

  .eyebrow { font-size: 9px; letter-spacing: .12em; gap: 9px; }

  .hero-title { margin: 22px 0 18px; font-size: clamp(53px, 11.35vw, 78px); }

  .hero-copy { font-size: 14px; line-height: 1.9; max-width: 440px; }

  .hero-buttons { margin-top: 29px; gap: 24px; }

  .hero-buttons .button { padding: 17px 22px; gap: 26px; }

  .hero-footnote { display: none; }

  .hero-art-wrap { max-width: 520px; width: 100%; margin-inline: auto; padding: 10px 16px 0 21px; }

  .hero-art { aspect-ratio: .99; border-radius: 215px 215px 14px 14px; }

  .floating-sticker { left: -13px; bottom: 61px; width: 103px; height: 103px; }

  .floating-sticker svg { width: 85px; height: 85px; }

  .hero-scroll-note { margin-top: 26px; }

  .marquee { margin-top: 31px; }

  .marquee-track > span { font-size: 11px; gap: 25px; padding-right: 25px; }

  .work-section { padding-top: 106px; }

  .section-heading { display: block; margin-bottom: 28px; }

  .section-heading > p { margin-top: 16px; font-size: 13px; }

  h2 { font-size: clamp(47px, 9vw, 67px); }

  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 15px; }

  .art-image { border-radius: 10px; }

  .art-info { padding-top: 12px; }

  .art-info strong { font-size: 20px; }

  .art-info small { font-size: 10px; margin-top: 6px; }

  .art-view { opacity: 1; transform: none; padding: 8px 11px; right: 10px; bottom: 10px; font-size: 9px; }

  .art-view span { margin-left: 5px; }

  .about-layout { grid-template-columns: 1fr; gap: 42px; }

  .about-visual { width: 90%; margin: 0 auto; }

  .about-image-frame { aspect-ratio: 1.03; }

  .about-content h2 { font-size: clamp(43px, 8.4vw, 61px); }

  .about-content p { font-size: 14px; }

  .commission-grid { grid-template-columns: 1fr; gap: 15px; }

  .commission-card { min-height: auto; padding: 24px; }

  .commission-card h3 { margin-top: 38px; }

  .commission-card p { max-width: 450px; }

  .commission-note { justify-content: flex-start; }

  .contact-layout { grid-template-columns: 1fr; gap: 36px; }

  .contact-intro h2 { font-size: clamp(47px, 8.5vw, 70px); }

  .contact-intro p { margin-top: 15px; }

  .contact-star { display: none; }

  .footer-top { flex-wrap: wrap; gap: 18px; padding-block: 35px; }

  .footer-top > span { order: 3; flex: 0 0 100%; }

  .footer-bottom { flex-direction: column; gap: 8px; }

}

@media (max-width: 420px) {

  .container { width: calc(100% - 34px); }

  .eyebrow { font-size: 8px; }

  .eyebrow-rule { width: 16px; }

  .hero-title { font-size: clamp(45px, 11.1vw, 55px); }

  .hero-title-dot { margin-left: 3px; }

  .hero-copy { font-size: 13px; }

  .hero-buttons { gap: 17px; }

  .hero-buttons .button { gap: 11px; padding: 16px 17px; font-size: 11px; }

  .text-link { font-size: 11px; }

  .hero-art { aspect-ratio: .93; }

  .floating-sticker { left: -9px; width: 88px; height: 88px; }

  .floating-sticker svg { width: 73px; height: 73px; }

  .filter-bar { gap: 8px; margin-bottom: 22px; }

  .filter { font-size: 10px; padding: 10px 13px; }

  .portfolio-grid { gap: 23px 12px; }

  .art-info strong { font-size: 18px; }

  .art-info small { font-size: 9px; }

  .art-view { padding: 7px 9px; }

  .art-index { font-size: 9px; }

  .about-visual { width: 100%; }

  .about-handwriting { font-size: 19px; padding: 13px 17px; }

  .form-row { grid-template-columns: 1fr; gap: 22px; }

  .footer-top > span { font-size: 8px; }

}

@media (max-width: 345px) {

  .hero-title { font-size: 42px; }

  .hero-buttons { align-items: flex-start; flex-direction: column; }

  .portfolio-grid { grid-template-columns: 1fr; }

  .art-image { aspect-ratio: 1.02; }

}

@media (max-width: 760px) and (orientation: landscape) and (max-height: 500px) { .mobile-nav a { padding: 10px 4px; font-size: 28px; } }

@media (max-width: 680px) {

  .dialog-content { grid-template-columns: 1fr; }

  .dialog-image-wrap { height: min(52vh, 480px); min-height: 0; }

  .dialog-text { padding: 26px; }

  .dialog-text h2 { font-size: 37px; margin-bottom: 8px; }

  .dialog-text p { margin: 8px 0; }

  .dialog-note { margin-top: 15px; }

}

@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }

  .js .reveal { opacity: 1; transform: none; }

}



/* Accessible footer Back to Top control */

.back-top { appearance: none; background: transparent; color: inherit; border: 0; padding: 12px 4px; cursor: pointer; border-radius: 6px; }

.back-top:focus-visible { outline: 2px solid #bad18d; outline-offset: 4px; }



/* Icon-only contact section (form removed) */

.contact-intro { max-width: 780px; }

.contact-intro p { max-width: 560px; }

.contact-star { position: absolute; right: clamp(25px, 9vw, 170px); bottom: 45px; pointer-events: none; }

@media (max-width: 720px) { .contact-star { right: 22px; bottom: 30px; font-size: 90px; opacity: .2; } }


/* Four-step commissions guide */
.commission-process { margin-top: clamp(52px, 7vw, 88px); padding: clamp(26px, 4vw, 56px); background: var(--surface-muted); border: 1px solid var(--line); border-radius: 28px; }
.process-intro { max-width: 650px; margin-bottom: 29px; }
.process-eyebrow { color: var(--sage-deep); font: 800 10px var(--font-ui); letter-spacing: .18em; }
.process-intro h3 { font: 500 clamp(32px, 4.2vw, 49px)/1.2 var(--font-heading); letter-spacing: -.045em; margin: 12px 0; }
.process-intro h3 em { color: var(--sage-deep); font-weight: 400; }
.process-intro p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.process-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.process-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; align-items: center; padding: 23px clamp(19px, 3vw, 32px); position: relative; transition: background-color .3s ease; }
.process-item + .process-item { border-top: 1px solid var(--line); }
.process-item:hover { background: var(--sage-light); }
.process-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--sage-deep); background: var(--sage-light); border-radius: 15px; }
.process-icon svg { display: block; width: 23px; height: 23px; }
.process-number { display: inline-block; margin-bottom: 3px; color: var(--sage-deep); font: 800 10px var(--font-ui); letter-spacing: .13em; }
.process-item h4 { font: 800 16px/1.4 var(--font-ui); margin: 0 0 5px; }
.process-item p { font-size: 13px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
@media (min-width: 850px) { .commission-process { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1fr); align-items: center; gap: clamp(35px, 5vw, 75px); } .process-intro { margin-bottom: 0; } }
@media (max-width: 520px) { .commission-process { border-radius: 20px; padding: 22px 16px; } .process-list { border-radius: 15px; } .process-item { grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 18px 13px; } .process-icon { width: 40px; height: 40px; border-radius: 12px; } .process-icon svg { width: 20px; height: 20px; } .process-item h4 { font-size: 14px; } .process-item p { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .process-item { transition: none; } }
