/* Seven Hills Labs – homepage styles (tool pages use style.css). */
:root {
  --brand: #0f7a5f;
  --brand-ink: #ffffff;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, transparent);
  --brand-line: color-mix(in srgb, var(--brand) 28%, transparent);
  --bg: #fbfaf7;
  --bg-alt: #f3f1ec;
  --fg: #16191c;
  --muted: #5d646a;
  --line: #e6e3dc;
  --card: #ffffff;
  --ink: #15191c;
  --shadow-sm: 0 1px 2px rgba(16, 20, 24, .05);
  --shadow: 0 1px 2px rgba(16, 20, 24, .04), 0 12px 32px -8px rgba(16, 20, 24, .10);
  --shadow-lg: 0 2px 4px rgba(16, 20, 24, .04), 0 32px 64px -16px rgba(16, 20, 24, .18);
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1012;
    --bg-alt: #14171a;
    --fg: #eef0f1;
    --muted: #9ba3a9;
    --line: #262a2e;
    --card: #171a1d;
    --ink: #0a0c0d;
    --brand-soft: color-mix(in srgb, var(--brand) 18%, transparent);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left)); }
.serif { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; letter-spacing: -0.02em; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.025em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.alt { background: var(--bg-alt); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 .98rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-ghost { background: var(--card); color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.p-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.p-header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.p-header > .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.p-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.p-brand img { width: 30px; height: 30px; }
.p-nav { display: flex; align-items: center; gap: 30px; font-size: .95rem; }
.p-nav a:not(.btn) { color: var(--muted); text-decoration: none; transition: color .2s; }
.p-nav a:not(.btn):hover { color: var(--fg); }
.p-nav .btn { min-height: 40px; padding: 8px 18px; }
@media (max-width: 820px) { .p-nav a:not(.btn) { display: none; } }
@media (prefers-color-scheme: dark) { .p-brand img, .foot-brand img { filter: invert(1) brightness(1.5); } }

/* Hero */
.hero { padding: 150px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 78% 30%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(35% 40% at 12% 10%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 14%, transparent) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .88rem; color: var(--muted); margin-bottom: 26px; }
.pill b { background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: .75rem; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 6.4vw, 5rem); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 400; }
.hero .lead { margin: 0 0 34px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--muted); font-size: .92rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--brand); }

/* Hero showcase: passport before → after */
.showcase { position: relative; aspect-ratio: 1 / .92; }
.sheet { position: absolute; right: -2%; bottom: 2%; width: 56%; aspect-ratio: 3 / 2; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 3.5%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2%; transform: rotate(5deg); }
.sheet div { background: #fff; border: 1px dashed #d8d8d8; border-radius: 2px; overflow: hidden; }
.sheet svg { width: 100%; height: 100%; }
.photo { position: absolute; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.photo svg { width: 100%; height: 100%; }
.photo.before { left: 0; top: 4%; width: 54%; aspect-ratio: 4 / 5; transform: rotate(-4deg); }
.photo.after { left: 30%; top: 16%; width: 44%; aspect-ratio: 1; border: 6px solid #fff; }
.photo .tag { position: absolute; left: 10px; top: 10px; font: 600 .72rem/1 var(--sans); padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: #222; }
.photo.after .tag { background: var(--brand); color: var(--brand-ink); }
.scan { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--brand) 45%, transparent) 50%, transparent); height: 30%; animation: scan 3.2s ease-in-out infinite; mix-blend-mode: multiply; }
@keyframes scan { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(380%); } }
.badge-float { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: 10px 14px; font-size: .85rem; animation: float 6s ease-in-out infinite; }
.badge-float strong { display: block; font-size: .9rem; }
.badge-float span { color: var(--muted); font-size: .78rem; }
.badge-float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.badge-float .dot svg { width: 18px; height: 18px; }
.badge-float.b1 { right: 0; top: 0; }
.badge-float.b2 { left: -4%; bottom: 8%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.guides line { stroke: var(--brand); stroke-width: 1.2; stroke-dasharray: 4 4; }

/* Format strip */
.formats { padding: 28px 0; border-block: 1px solid var(--line); }
.formats .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: .9rem; }
.formats .fmt { font-weight: 700; letter-spacing: .06em; color: color-mix(in srgb, var(--fg) 55%, transparent); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--brand); display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

/* Bento tools */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); gap: 18px; margin-top: 56px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-line); }
.tile h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
.tile p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; max-width: 40ch; }
.tile .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--brand); }
.tile .go svg { width: 16px; height: 16px; transition: transform .25s; }
.tile:hover .go svg { transform: translateX(4px); }
.tile .art { flex: 1; display: grid; place-items: center; min-height: 120px; }
.t-passport { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, var(--card) 40%, var(--brand-soft)); }
.t-compress, .t-merge { grid-column: span 2; }
.t-qr, .t-convert, .t-pdf { grid-column: span 2; }
.t-words { grid-column: span 6; flex-direction: row; align-items: center; }
.t-words .art { flex: none; min-height: 0; }
.featured-label { position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--brand); color: var(--brand-ink); padding: 6px 10px; border-radius: 999px; }

/* Tile illustrations */
.pp-art { display: flex; gap: 22px; align-items: center; }
.pp-art .frame { width: 150px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.pp-art .frame.busy { width: 130px; aspect-ratio: 4/5; transform: rotate(-3deg); }
.pp-art .arrow { color: var(--brand); width: 34px; height: 34px; }
.pp-art .checks { display: grid; gap: 8px; font-size: .85rem; }
.pp-art .checks span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pp-art .checks i { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-style: normal; font-size: .65rem; }
.meter { width: 100%; max-width: 240px; display: grid; gap: 12px; font-size: .8rem; color: var(--muted); }
.meter .bar { height: 12px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: 99px; background: color-mix(in srgb, var(--fg) 25%, transparent); }
.meter .bar.after i { background: var(--brand); width: 12%; animation: shrink 2.8s ease-in-out infinite alternate; }
@keyframes shrink { from { width: 100%; } to { width: 12%; } }
.meter .row { display: flex; justify-content: space-between; }
.pages { position: relative; width: 150px; height: 120px; }
.pages i { position: absolute; width: 74px; height: 96px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-sm); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.pages i::before { content: ""; position: absolute; inset: 14px 12px auto; height: 40px; background: repeating-linear-gradient(to bottom, var(--line) 0 3px, transparent 3px 9px); }
.pages i:nth-child(1) { left: 0; top: 18px; transform: rotate(-10deg); }
.pages i:nth-child(2) { left: 38px; top: 6px; }
.pages i:nth-child(3) { left: 76px; top: 18px; transform: rotate(10deg); }
.tile:hover .pages i:nth-child(1) { transform: translateX(38px) rotate(0); }
.tile:hover .pages i:nth-child(3) { transform: translateX(-38px) rotate(0); }
.qr-art { width: 112px; height: 112px; padding: 10px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.qr-art rect { fill: #111; }
.conv { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.conv span { padding: 10px 14px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); }
.conv span.to { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.conv svg { width: 22px; height: 22px; color: var(--muted); }
.imgpdf { display: flex; align-items: center; gap: 14px; }
.imgpdf .ph { width: 48px; height: 48px; border-radius: 8px; background: linear-gradient(135deg, #c9e4d8, #7fb8a3); box-shadow: var(--shadow-sm); }
.imgpdf .ph:nth-child(2) { background: linear-gradient(135deg, #f1d9c0, #d79f6b); margin-left: -30px; transform: rotate(8deg); }
.imgpdf .doc { width: 70px; height: 90px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: end center; padding-bottom: 8px; font-weight: 800; font-size: .7rem; color: #c2412d; box-shadow: var(--shadow-sm); }
.counter { display: flex; gap: 34px; }
.counter div { text-align: left; }
.counter b { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.4rem; line-height: 1; color: var(--fg); }
.counter span { font-size: .8rem; color: var(--muted); }

/* Mission band */
.mission { background: var(--ink); color: #f2f3f3; overflow: hidden; }
.mission::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -30vw; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 55%, transparent), transparent); opacity: .6; }
.mission .wrap { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.mission .eyebrow { color: color-mix(in srgb, var(--brand) 60%, #fff); }
.mission blockquote { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; }
.mission blockquote em { color: color-mix(in srgb, var(--brand) 55%, #fff); }
.promises { display: grid; gap: 14px; }
.promises > div { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.promises svg { width: 22px; height: 22px; flex: none; color: color-mix(in srgb, var(--brand) 55%, #fff); margin-top: 2px; }
.promises strong { display: block; }
.promises span { color: #a9b0b5; font-size: .92rem; }
.mission .link { display: inline-flex; margin-top: 32px; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }

/* Privacy split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.device { position: relative; aspect-ratio: 1 / .8; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 26px; display: grid; place-items: center; }
.device .lock { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.device .lock svg { width: 46px; height: 46px; }
.device .ring { position: absolute; inset: 18%; border: 1px dashed var(--brand-line); border-radius: 50%; animation: spin 40s linear infinite; }
.device .ring.r2 { inset: 6%; animation-duration: 70s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.device .chip { position: absolute; font-size: .78rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.device .c1 { top: 12%; left: 8%; } .device .c2 { top: 20%; right: 6%; } .device .c3 { bottom: 14%; left: 14%; } .device .c4 { bottom: 10%; right: 12%; }
.points { display: grid; gap: 22px; margin-top: 30px; }
.points > div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.points .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.points .ic svg { width: 22px; height: 22px; }
.points h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.points p { margin: 0; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { max-width: 780px; margin: 48px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--brand-line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* Final CTA */
.cta { padding-top: 0; }
.cta-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(48px, 7vw, 88px); text-align: center; background: var(--brand); color: var(--brand-ink); }
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 20% 0%, rgba(255,255,255,.22), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(0,0,0,.22), transparent 60%); }
.cta-card > * { position: relative; }
.cta-card h2 { color: inherit; }
.cta-card p { opacity: .85; max-width: 52ch; margin: 18px auto 32px; font-size: 1.1rem; }
.cta-card .btn-light { background: #fff; color: #111; }
.cta-card .btn-light:hover { transform: translateY(-2px); }
.cta-card .btn-outline { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.cta-card .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.p-footer { padding: 72px 0 36px; border-top: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.p-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.p-footer h4 { color: var(--fg); font-size: .85rem; margin: 0 0 14px; }
.p-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.p-footer a { text-decoration: none; }
.p-footer a:hover { color: var(--fg); }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 650; margin-bottom: 14px; }
.foot-brand img { width: 30px; height: 30px; }
.p-footer .legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }


/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .mission .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .showcase { max-width: 520px; margin: 20px auto 0; width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-passport { grid-column: span 2; grid-row: auto; }
  .t-compress, .t-merge, .t-qr, .t-convert, .t-pdf { grid-column: span 1; }
  .t-words { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .p-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .t-passport, .t-compress, .t-merge, .t-qr, .t-convert, .t-pdf, .t-words { grid-column: span 1; }
  .t-words { flex-direction: column; align-items: flex-start; }
  .pp-art .checks { display: none; }
  .pp-art .frame { width: 110px; } .pp-art .frame.busy { width: 96px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .badge-float.b2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-color-scheme: dark) {
  .hero h1 em, .eyebrow, .tile .go, .step::before { color: color-mix(in srgb, var(--brand) 60%, #fff); }
}
.p-brand { white-space: nowrap; }
@media (max-width: 620px) {
  .p-nav .btn { display: none; }
  .p-header > .wrap { height: 62px; }
  .hero { padding-top: 104px; }
  .showcase { margin-top: 36px; }
}
@media (max-width: 620px) {
  .counter { gap: 18px; flex-wrap: wrap; }
  .counter b { font-size: 1.8rem; }
}

/* Tiles added for Background Remover and Split PDF */
.t-bg, .t-split { grid-column: span 3; }
.bg-art { display: flex; align-items: center; gap: 18px; }
.bg-art .frame { width: 110px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.bg-art .frame.clear { background: repeating-conic-gradient(#0000000f 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.bg-art .frame svg { width: 100%; height: 100%; }
.bg-art .arrow { width: 30px; height: 30px; color: var(--brand); }
.split-art { display: flex; align-items: center; gap: 10px; }
.split-art i { width: 54px; height: 70px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-sm); position: relative; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.split-art i::before { content: ""; position: absolute; inset: 10px 9px auto; height: 28px; background: repeating-linear-gradient(to bottom, var(--line) 0 3px, transparent 3px 8px); }
.split-art .cut { width: 2px; height: 90px; background: repeating-linear-gradient(to bottom, var(--brand) 0 6px, transparent 6px 11px); }
.tile:hover .split-art i:first-child { transform: translateX(-8px) rotate(-4deg); }
.tile:hover .split-art i:last-child { transform: translateX(8px) rotate(4deg); }
@media (max-width: 980px) { .t-bg, .t-split { grid-column: span 1; } }

/* Phone menu */
.p-menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--fg); border-radius: 10px; cursor: pointer; }
.p-menu-btn svg { width: 24px; height: 24px; }
.p-menu-btn path { transition: transform .2s, opacity .2s; transform-origin: center; }
.p-menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.p-menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.p-menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
.p-header.menu-open { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.p-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0,0,0,.18); max-height: calc(100dvh - 62px); overflow-y: auto; overscroll-behavior: contain; }
.p-menu .wrap { display: grid; gap: 2px; padding-top: 8px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.p-menu-cat { margin: 14px 0 4px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.p-menu a:not(.btn) { display: flex; align-items: center; min-height: 46px; text-decoration: none; font-weight: 500; border-radius: 10px; }
.p-menu a:not(.btn):active { background: var(--bg-alt); }
.p-menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .p-menu-btn { display: grid; place-items: center; } }

a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
