/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 */
/* Hallmark · macrostructure: Split Studio · tone: reference-led minimal · accent: cobalt · nav: floating pill */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--color-white); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 4px; }
::selection { background: var(--color-accent-soft); color: var(--color-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: var(--space-sm); left: var(--space-sm); z-index: 100; padding: var(--space-sm) var(--space-md); background: var(--color-white); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.page-shell { width: 100%; min-height: 100vh; background: var(--color-white); }
.section-wrap { width: min(100% - 9.5rem, 1330px); margin-inline: auto; }
h1, h2, h3 { min-width: 0; margin-top: 0; font-family: var(--font-display); font-style: normal; }
p { min-width: 0; }

/* Navigation */
.site-header { position: relative; z-index: 20; height: 138px; padding-top: 37px; }
.nav-pill { display: flex; align-items: center; gap: var(--space-xl); width: min(100% - 9.5rem, 1320px); min-height: 61px; margin: auto; padding: 7px 8px 7px 18px; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-white); box-shadow: 0 9px 24px var(--color-shadow-soft); }
.brand { display: inline-flex; align-items: center; gap: 7px; flex: none; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.07em; line-height: 1; white-space: nowrap; }
.brand-mark { display: block; width: 31px; height: 23px; flex: none; background: url("assets/l7-logo.png") center / auto 260% no-repeat; }
.brand-name { color: var(--color-ink); }
.nav-links { display: flex; align-items: center; gap: clamp(0.7rem, 1.7vw, 2rem); margin-left: var(--space-md); }
.nav-links a { color: var(--color-ink-soft); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; transition: color var(--dur-fast) var(--ease-out); }
.nav-links a:hover, .nav-links a.active { color: var(--color-blue); }
.nav-actions { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 1px solid var(--color-rule); border-radius: 50%; background: var(--color-white); color: var(--color-ink); transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.theme-toggle:hover { border-color: var(--color-blue); background: var(--color-accent-soft); }
.theme-icon { width: 19px; height: 19px; }
.theme-icon-sun, html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: block; }
.language-wrap { position: relative; display: inline-flex; align-items: center; }
.language-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 10px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-soft); font-size: var(--text-sm); font-weight: 700; white-space: nowrap; }
.language-toggle:hover, .language-toggle[aria-expanded="true"] { background: var(--color-accent-soft); }
.language-flag { display: block; width: 24px; height: 16px; flex: none; border: 1px solid var(--color-rule); border-radius: 2px; object-fit: cover; }
.language-chevron { width: 7px; height: 7px; margin: -4px 2px 0 4px; border-right: 1.5px solid var(--color-muted); border-bottom: 1.5px solid var(--color-muted); transform: rotate(45deg); transition: transform var(--dur-fast) var(--ease-out); }
.language-toggle[aria-expanded="true"] .language-chevron { margin-top: 3px; transform: rotate(225deg); }
.language-menu { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; display: grid; min-width: 190px; padding: 6px; border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-white); box-shadow: 0 14px 35px var(--color-shadow-soft); }
.language-menu[hidden] { display: none; }
.language-menu button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--color-ink-soft); font-size: var(--text-sm); font-weight: 600; text-align: left; white-space: nowrap; }
.language-menu button:hover, .language-menu button:focus-visible, .language-menu button[aria-checked="true"] { background: var(--color-accent-soft); color: var(--color-ink); }
.outline-accent { border: 2px solid var(--color-blue); border-radius: var(--radius-pill); background: var(--color-white); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; font-size: var(--text-sm); font-weight: 700; white-space: nowrap; transition: transform var(--dur-fast) var(--ease-out); }
.nav-cta:hover, .primary-button:hover { transform: translateY(-2px); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--color-accent-soft); }
.menu-toggle span { display: block; width: 17px; height: 2px; margin: 5px auto; background: var(--color-ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.97fr) minmax(0, 1.03fr); align-items: center; min-height: 520px; gap: var(--space-xl); padding-bottom: 53px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 10px; }
.eyebrow, .section-label { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--color-muted); font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 24px; height: 2px; background: var(--color-blue); }
h1 { margin: 0; font-size: clamp(3.1rem, 5vw, var(--text-display)); line-height: 1.05; font-weight: 700; letter-spacing: -0.075em; overflow-wrap: anywhere; }
.display-emphasis { color: var(--color-ink); }
.hero-description { max-width: 460px; margin: 27px 0 29px; color: var(--color-ink-soft); font-size: var(--text-lg); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 27px; flex-wrap: wrap; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; min-width: 196px; min-height: 49px; padding: 0 14px 0 19px; font-size: var(--text-sm); font-weight: 700; white-space: nowrap; transition: transform var(--dur-fast) var(--ease-out); }
.button-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-blue); }
.text-link { border-bottom: 1px solid var(--color-ink); padding-bottom: 2px; font-size: var(--text-sm); font-weight: 700; white-space: nowrap; transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.text-link:hover { color: var(--color-blue); border-color: var(--color-blue); }
.hero-art { position: relative; min-width: 0; height: 470px; perspective: 1000px; }
.art-halo { position: absolute; width: 80%; height: 76%; top: 8%; left: 10%; border-radius: 46%; background: var(--color-paper); opacity: 0.3; }
.float-card { position: absolute; box-shadow: 0 14px 35px var(--color-shadow); will-change: transform; transition: transform var(--dur-slow) var(--ease-out); }
.main-card { z-index: 3; left: 30%; top: 8%; width: 50%; height: 79%; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 18px 18px 23px; overflow: hidden; border-radius: 16px; background: var(--color-dark); color: var(--color-on-dark); transform: rotate(9deg) translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0); }
.main-card-logo { width: 100%; height: 78%; object-fit: cover; object-position: center; }
.main-card-domain { align-self: stretch; padding-top: 14px; border-top: 1px solid var(--color-dark-rule); font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.mini-site { z-index: 4; left: 1%; top: 7%; width: 47%; height: 43%; padding: 7px; overflow: hidden; border: 1px solid var(--color-rule); border-radius: 12px; background: var(--color-white); transform: rotate(-9deg) translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0); }
.mini-site-image { position: relative; height: 76%; overflow: hidden; background: var(--color-paper); }
.mini-site-image img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.mini-site-image iframe, .game-sky iframe { border: 0; pointer-events: none; }
.mini-site-bottom { display: flex; flex-direction: column; gap: 1px; padding: 6px 5px 0; line-height: 1.15; }
.mini-site-bottom strong { font-size: 0.72rem; }
.mini-site-bottom span { color: var(--color-muted); font-size: 0.6rem; }
.game-card { z-index: 5; right: 0; top: 30%; width: 45%; height: 42%; padding: 7px; overflow: hidden; border: 1px solid var(--color-rule); border-radius: 12px; background: var(--color-white); transform: rotate(6deg) translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0); }
.game-sky { position: relative; height: 76%; overflow: hidden; background: var(--color-paper); }
.game-sky img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.game-card-copy { display: flex; flex-direction: column; gap: 1px; padding: 6px 5px 0; line-height: 1.15; }
.game-card-copy span { color: var(--color-muted); font-size: 0.6rem; }
.game-card-copy strong { font-size: 0.72rem; }
.code-card, .craft-card { z-index: 6; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--color-rule); border-radius: 11px; background: var(--color-white); font-size: 0.62rem; font-weight: 700; }
.code-card { left: 8%; bottom: 12%; transform: rotate(-7deg) translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0); }
.code-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--color-pale-blue); color: var(--color-blue); font-size: 0.8rem; }
.craft-card { right: 3%; bottom: 8%; transform: rotate(5deg) translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0); }
.craft-dots { display: flex; gap: 3px; }
.craft-dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--color-blue); }
.craft-dots i:nth-child(2) { background: var(--color-muted); }
.craft-dots i:nth-child(3) { background: var(--color-ink); }

/* Selected work */
.capability-strip { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); min-height: 91px; border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); font-size: var(--text-sm); }
.capability-strip > span { flex: none; font-weight: 700; }
.capability-list { display: flex; gap: clamp(1rem, 3vw, 3.2rem); flex-wrap: wrap; color: var(--color-muted); font-weight: 700; }
.section-label { margin-bottom: 17px; }
.work, .expertise { padding-top: 110px; padding-bottom: 103px; scroll-margin-top: 30px; }
.work { padding-bottom: 10px; }
.work-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--space-3xl); margin-bottom: 35px; }
.work-heading h2, .section-heading h2, .approach h2, .about h2, .contact h2 { margin: 0; font-size: clamp(2.45rem, 3.8vw, var(--text-4xl)); font-weight: 700; line-height: 1.12; letter-spacing: -0.065em; overflow-wrap: anywhere; }
.work-heading > p, .section-heading > p:last-child, .approach-lead > p:last-child { max-width: 525px; margin: 20px 0 0; color: var(--color-muted); font-size: var(--text-base); line-height: 1.65; }
.work-heading > p { max-width: 380px; margin: 0 0 4px; }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr); gap: 28px; }
.preview-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.preview-card { min-width: 0; border: 0; overflow: visible; background: var(--color-white); text-align: left; padding: 0; transition: transform var(--dur-medium) var(--ease-out); }
.preview-main { display: block; }
.preview-demo-link { display: inline-flex; margin-top: 12px; border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--color-blue); font-size: var(--text-sm); font-weight: 700; }
.preview-demo-link:hover { color: var(--color-ink); }
.preview-card:nth-child(even) { margin-top: 45px; }
.preview-card:hover { transform: translateY(-4px); }
.preview-image { position: relative; height: clamp(220px, 30vw, 330px); overflow: hidden; border-radius: var(--radius-sm); background: var(--color-pale-blue); }
.preview-grid:has(> :only-child) .preview-image { height: clamp(340px, 42vw, 520px); }
.preview-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform var(--dur-slow) var(--ease-out); }
.preview-frame { display: block; border: 0; pointer-events: none; }
iframe[data-preview-fit] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; transform-origin: top left; }
.preview-card:hover .preview-image img { transform: scale(1.025); }
.preview-count { position: absolute; bottom: 12px; right: 12px; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--color-white); font-size: var(--text-xs); font-weight: 700; }
.preview-copy { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 18px 0 0; }
.preview-copy small { display: block; color: var(--color-muted); font-size: var(--text-sm); font-weight: 600; }
.lightbox-info span { display: block; color: var(--color-muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.preview-copy h3 { margin: 4px 0 0; font-size: var(--text-xl); letter-spacing: -0.045em; }
.preview-empty { padding: var(--space-xl); border-top: 1px solid var(--color-rule); color: var(--color-muted); }

/* Services: one lead item and three plain rows */
.expertise { padding-top: 110px; }
.service-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 0 clamp(3rem, 6vw, 7rem); margin-top: 46px; }
.service-card { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.service-feature { grid-row: 1 / span 3; min-height: 600px; padding: clamp(2rem, 4vw, 3.5rem); background: var(--color-pale-blue); }
.service-item { min-height: 190px; padding: 23px 0 27px; border-top: 1px solid var(--color-rule); }
.service-item:last-child { border-bottom: 1px solid var(--color-rule); }
.service-top { display: flex; align-items: start; justify-content: space-between; gap: var(--space-md); color: var(--color-muted); font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.service-glyph { display: grid; place-items: center; width: 42px; height: 42px; }
.service-glyph img { width: 40px; height: 40px; object-fit: contain; filter: grayscale(1) contrast(1.25); }
.service-feature .service-glyph { width: 55px; height: 55px; }
.service-feature .service-glyph img { width: 52px; height: 52px; }
.service-card h3 { margin: 0 0 9px; font-size: clamp(1.4rem, 2vw, var(--text-2xl)); line-height: 1.15; letter-spacing: -0.05em; }
.service-card p { max-width: 42ch; margin: 0; color: var(--color-muted); font-size: var(--text-base); line-height: 1.6; }
.service-feature h3 { max-width: 12ch; font-size: clamp(2.75rem, 4vw, var(--text-4xl)); line-height: 1.1; }
.service-feature p { max-width: 31ch; font-size: var(--text-lg); }
.service-bottom { padding-top: 20px; border-top: 1px solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; }

/* Process and about */
.approach { padding: 103px 0; background: var(--color-white); border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); scroll-margin-top: 30px; }
.approach-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(3rem, 8vw, 8rem); }
.approach-lead { position: sticky; top: 38px; align-self: start; }
.approach h2 { max-width: 12ch; }
.approach-steps { border-top: 1px solid var(--color-rule); }
.approach-step { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 12px; padding: 27px 0 30px; border-bottom: 1px solid var(--color-rule); }
.step-mark { width: 8px; height: 8px; margin-top: 12px; border-radius: 50%; background: var(--color-blue); }
.approach-step h3 { margin: 0 0 7px; font-size: var(--text-xl); letter-spacing: -0.045em; }
.approach-step p { max-width: 39ch; margin: 0; color: var(--color-muted); font-size: var(--text-base); }
.about { padding-top: 105px; padding-bottom: 105px; scroll-margin-top: 30px; }
.about-card { display: grid; grid-template-columns: 0.76fr 1.24fr; min-height: 420px; border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); background: var(--color-white); }
.about-accent { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--color-paper); }
.about-accent img { width: min(100%, 500px); object-fit: contain; }
.about-accent.sequence-active img { opacity: 0; }
.about-accent canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.about-accent canvas[hidden] { display: none; }
.about-copy { padding: clamp(2rem, 5vw, 4.5rem); }
.about h2 { max-width: 13ch; margin-bottom: 20px; }
.about-copy p:not(.section-label) { max-width: 49ch; color: var(--color-muted); }
.about-signature { display: flex; flex-direction: column; margin-top: 28px; padding-top: 17px; border-top: 1px solid var(--color-rule); }
.about-signature span:first-child { font-weight: 700; }
.about-signature span:last-child { color: var(--color-muted); font-size: var(--text-sm); }

/* Contact and footer */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 0 clamp(3rem, 7vw, 8rem); padding: 28px 0 105px; scroll-margin-top: 30px; }
.contact-head { grid-column: 1; grid-row: 1; }
.contact .project-form { grid-column: 2; grid-row: 1 / span 2; }
.contact-methods { grid-column: 1; grid-row: 2; }
.payment-methods { grid-column: 1 / -1; grid-row: 3; }
.contact h2 { font-size: clamp(3rem, 4.7vw, 5.3rem); }
.contact-head > p:last-child { max-width: 48ch; margin: 22px 0 0; color: var(--color-muted); font-size: var(--text-base); }
.contact-methods { display: flex; flex-direction: column; align-self: center; border-top: 1px solid var(--color-rule); }
.contact-method { display: flex; align-items: center; width: 100%; min-height: 98px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--color-rule); background: transparent; text-align: left; transition: transform var(--dur-medium) var(--ease-out); }
.contact-method:hover { transform: translateX(4px); }
.contact-method-copy { min-width: 0; display: flex; flex-direction: column; }
.contact-method-copy small { color: var(--color-muted); font-size: var(--text-sm); }
.contact-method-copy strong { overflow-wrap: anywhere; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.contact-note { grid-column: 2; margin: 12px 0 0; color: var(--color-muted); font-size: var(--text-sm); }
.project-form { display: grid; gap: 1.15rem; align-self: start; padding: 2rem; border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-white); box-shadow: 0 16px 48px var(--color-shadow-soft); }
.project-form label { display: grid; gap: .55rem; min-width: 0; color: var(--color-ink); font-size: var(--text-sm); font-weight: 700; }
.form-field { display: grid; gap: .55rem; min-width: 0; }
.form-select-wrap { position: relative; min-width: 0; }
.form-select-wrap.is-enhanced select { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.form-select-toggle { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 48px; padding: .5rem .85rem; border: 1px solid var(--color-rule); border-radius: .65rem; background: var(--color-white); text-align: left; color: var(--color-ink); font-size: var(--text-sm); font-weight: 700; }
.form-select-toggle:hover, .form-select-toggle[aria-expanded="true"] { border-color: var(--accent); background: var(--color-accent-soft); }
.form-select-toggle[aria-expanded="true"] .language-chevron { margin-top: 3px; transform: rotate(225deg); }
.form-select-toggle[hidden], .form-select-menu[hidden] { display: none; }
.form-select-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 1.8rem; height: 1.8rem; flex: none; padding: 0 .25rem; border-radius: .4rem; background: var(--color-accent-soft); color: var(--color-blue); font-family: var(--font-display); font-size: .72rem; font-weight: 800; }
.form-select-value { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-select-menu { position: absolute; z-index: 45; top: calc(100% + 8px); left: 0; width: max-content; min-width: 100%; max-width: min(440px, calc(100vw - 3rem)); max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-white); box-shadow: 0 14px 35px var(--color-shadow-soft); }
.form-select-menu.open-up { top: auto; bottom: calc(100% + 8px); }
.form-select-menu button { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 42px; padding: .5rem .65rem; border: 0; border-radius: .5rem; background: transparent; color: var(--color-ink-soft); text-align: left; font-size: var(--text-sm); font-weight: 600; white-space: normal; }
.form-select-menu button:hover, .form-select-menu button:focus-visible, .form-select-menu button[aria-checked="true"] { background: var(--color-accent-soft); color: var(--color-ink); }
.form-select-menu button .form-select-icon { background: var(--color-white); }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-form input, .project-form select, .project-form textarea { width: 100%; min-width: 0; padding: .85rem 1rem; border: 1px solid var(--color-rule); border-radius: .65rem; background: var(--color-white); color: var(--color-ink); font: inherit; font-weight: 500; outline: none; }
.project-form input:focus, .project-form select:focus, .project-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.project-form textarea { resize: vertical; min-height: 7rem; }
.project-form input::placeholder, .project-form textarea::placeholder { color: var(--color-muted); }
.form-hint { margin: -.6rem 0 0; color: var(--color-muted); font-size: var(--text-xs); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; padding-top: .25rem; }
.form-actions .primary-button { cursor: pointer; }
.form-actions .primary-button:disabled { opacity: .58; cursor: wait; }
.form-actions .text-link { border: 0; padding: .4rem 0; background: transparent; cursor: pointer; }
.form-status { min-height: 1.2em; margin: -.4rem 0 0; color: var(--color-ink-soft); font-size: var(--text-sm); }
.payment-methods { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--color-rule); }
.payment-methods h3 { margin: 0 0 .7rem; font-size: var(--text-2xl); letter-spacing: -.05em; }
.payment-methods p { max-width: 39ch; margin: 0; color: var(--color-muted); }
.payment-methods ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 0; padding: 0; list-style: none; }
.payment-methods li { padding: .75rem 0; border-bottom: 1px solid var(--color-rule); font-weight: 700; }
.site-footer { display: flex; justify-content: space-between; gap: 25px; padding-top: 25px; padding-bottom: 35px; border-top: 1px solid var(--color-rule); }
.footer-brand { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: -0.06em; }
.site-footer p, .footer-right { margin: 4px 0 0; color: var(--color-muted); font-size: var(--text-sm); }
.footer-right { display: flex; gap: 25px; align-items: end; }
.footer-right a:hover { color: var(--color-blue); }
.cookie-settings { border: 0; border-bottom: 1px solid currentColor; padding: 0 0 2px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.cookie-settings:hover { color: var(--color-blue); }
.consent-overlay { position: fixed; z-index: 1200; inset: 0; display: flex; align-items: end; justify-content: center; padding: 24px; background: var(--color-overlay); }
.consent-overlay[hidden] { display: none; }
.consent-panel { width: min(100%, 720px); padding: clamp(24px, 4vw, 36px); border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-white); box-shadow: 0 25px 70px var(--color-shadow); }
.consent-panel h2 { margin: 0 0 12px; font-size: var(--text-2xl); letter-spacing: -0.05em; }
.consent-panel p { margin: 0; color: var(--color-ink-soft); line-height: 1.65; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.consent-actions button { min-height: 44px; padding: 9px 16px; border: 1px solid var(--color-blue); border-radius: var(--radius-pill); color: var(--color-ink); font-size: var(--text-sm); font-weight: 700; }
.consent-accept { background: var(--color-accent-soft); }
.consent-reject { background: var(--color-white); }
.consent-actions button:hover { transform: translateY(-2px); }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--color-dark); color: var(--color-on-dark); font-size: var(--text-sm); opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Project gallery */
.lightbox { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: var(--color-overlay); }
.lightbox-panel { position: relative; width: min(100%, 1050px); max-height: min(92vh, 930px); overflow: auto; border-radius: var(--radius-md); background: var(--color-white); box-shadow: 0 20px 70px var(--color-shadow); }
.lightbox-close { position: absolute; z-index: 3; top: 12px; right: 12px; width: 37px; height: 37px; border: 0; border-radius: 50%; background: var(--color-white); font-size: var(--text-2xl); line-height: 1; }
.lightbox-image-wrap { position: relative; display: grid; place-items: center; height: min(60vh, 570px); background: var(--color-paper); overflow: hidden; }
.lightbox-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-arrow { position: absolute; top: 50%; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--color-white); font-size: var(--text-2xl); line-height: 1; transform: translateY(-50%); }
.lightbox-arrow:disabled { display: none; }
.lightbox-arrow.previous { left: 13px; }
.lightbox-arrow.next { right: 13px; }
.lightbox-info { display: flex; justify-content: space-between; gap: var(--space-lg); padding: 22px 28px 12px; }
.lightbox-info h2 { margin: 3px 0 7px; font-size: clamp(1.5rem, 3vw, var(--text-2xl)); letter-spacing: -0.05em; }
.lightbox-info p { margin: 0; color: var(--color-muted); }
.lightbox-info > span { flex: none; }
.lightbox-thumbs { display: flex; gap: 8px; padding: 8px 28px 25px; overflow-x: auto; }
.lightbox-thumbs button { flex: 0 0 83px; height: 58px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: var(--color-paper); }
.lightbox-thumbs button.current { border-color: var(--color-blue); }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-art.reveal { transform: translateY(24px) scale(0.98); }
.hero-art.reveal.is-visible { transform: translateY(0) scale(1); }
html.motion-enhanced { scroll-behavior: auto; }
.motion-enhanced .reveal { transition: none; }
.motion-enhanced .art-halo, .motion-enhanced .about-accent canvas { will-change: transform; }

@media (max-width: 1080px) {
  .section-wrap, .nav-pill { width: min(100% - 4rem, 1330px); }
  .nav-links { gap: 1rem; margin-left: 0; }
  .nav-pill { gap: var(--space-md); }
  .hero { gap: 0; }
  .hero-art { height: 420px; }
  .main-card { width: 54%; }
  .service-grid { column-gap: var(--space-2xl); }
}
@media (max-width: 800px) {
  .site-header { height: 110px; padding-top: 20px; }
  .nav-pill { width: min(100% - 2rem, 1330px); }
  .nav-links { position: absolute; top: 90px; left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px; border: 1px solid var(--color-rule); border-radius: var(--radius-md); background: var(--color-white); box-shadow: 0 15px 35px var(--color-shadow-soft); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: var(--text-base); }
  .menu-toggle { display: block; }
  .section-wrap { width: min(100% - 2.5rem, 700px); }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 12px; padding-bottom: 55px; }
  .hero-copy { padding: 20px 0 0; }
  .hero-art { height: 460px; max-width: 570px; width: 100%; margin: auto; }
  .capability-strip { align-items: start; flex-direction: column; gap: 10px; padding-block: 20px; }
  .capability-list { gap: 9px 23px; }
  .work-heading { flex-direction: column; align-items: start; gap: 10px; }
  .work-heading > p { max-width: 48ch; }
  .service-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .service-feature { grid-row: auto; min-height: 390px; margin-bottom: var(--space-xl); }
  .service-item { min-height: 170px; }
  .approach-inner { grid-template-columns: 1fr; gap: 33px; }
  .approach-lead { position: static; }
  .approach h2 { max-width: 15ch; }
  .contact { grid-template-columns: 1fr; gap: 34px; }
  .contact-head, .contact .project-form, .contact-methods, .payment-methods { grid-column: 1; grid-row: auto; }
  .payment-methods { grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
  .contact-note { grid-column: 1; margin-top: -22px; }
}
@media (max-width: 560px) {
  .section-wrap { width: min(100% - 2rem, 480px); }
  .site-header { height: 100px; }
  .nav-pill { min-height: 56px; padding-left: 11px; gap: 6px; }
  .brand { font-size: var(--text-lg); }
  .brand-mark { width: 27px; height: 20px; }
  .nav-cta { display: none; }
  .language-toggle { gap: 5px; padding-inline: 5px; font-size: var(--text-xs); }
  .language-flag { width: 21px; height: 14px; }
  .theme-toggle { width: 36px; height: 36px; }
  .hero-copy { padding-top: 8px; }
  .hero h1 { font-size: clamp(2.45rem, 10.3vw, 4.1rem); }
  .hero-description { margin-top: 19px; font-size: var(--text-base); }
  .hero-actions { gap: 18px; }
  .hero-art { height: 350px; }
  .main-card { left: 28%; width: 55%; height: 80%; padding: 13px; border-radius: 14px; }
  .main-card-domain { padding-top: 9px; font-size: var(--text-xs); }
  .mini-site { width: 48%; padding: 5px; }
  .game-card { width: 47%; padding: 5px; }
  .code-card, .craft-card { padding: 6px 8px; }
  .code-icon { width: 22px; height: 22px; font-size: 0.6rem; }
  .work, .expertise { padding-top: 75px; padding-bottom: 70px; }
  .work { padding-bottom: 0; }
  .preview-grid { grid-template-columns: 1fr; gap: 27px; }
  .preview-card:nth-child(even) { margin-top: 0; }
  .preview-image { height: 220px; }
  .service-feature { min-height: 350px; }
  .service-feature h3 { max-width: 15ch; font-size: var(--text-3xl); }
  .approach { padding: 73px 0; }
  .about { padding-top: 75px; padding-bottom: 75px; }
  .about-card { grid-template-columns: 1fr; }
  .about-accent { height: 185px; }
  .about-accent img { width: min(100%, 360px); }
  .contact { padding-bottom: 75px; }
  .project-form { padding: 1.3rem; }
  .form-pair, .payment-methods ul { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .footer-right { justify-content: space-between; }
  .consent-overlay { padding: 12px; }
  .consent-actions button { flex: 1 1 170px; }
  .lightbox { padding: 10px; }
  .lightbox-image-wrap { height: 48vh; }
  .lightbox-info { padding: 17px 18px 10px; }
  .lightbox-thumbs { padding: 8px 18px 18px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: clamp(2.15rem, 10.2vw, 2.45rem); }
  #current-language { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .hero-art.reveal { opacity: 1; transform: none; }
}
