/* ==========================================================================================================
   SleptOn Studio - white ink-wash (sumi-e) theme, layered on the base layout in styles.css. Washi paper, ink-black
   type, vermilion seal accents, ink mountains fading into drifting mist, falling petals. All art original
   (build_ink.py, build_enso.py).
   ========================================================================================================== */
:root {
  --bg: #f6f3ec;
  --surface: #fdfcf8;
  --frosted: rgba(253, 252, 248, .78);
  --ink: #1d1c1a;
  --muted: #6b6760;
  --line: #e3ddd0;
  --accent: #c8372d;           /* vermilion: the seal colour */
  --accent-soft: #f4e4dd;
  --frost: #ece6d8;
  --edge: #dcd4c3;
  --open: #4c8b5a;
  --shadow: 0 1px 2px rgba(40, 35, 25, .05), 0 10px 28px rgba(60, 50, 35, .08);
  --shadow-lift: 0 2px 6px rgba(40, 35, 25, .07), 0 22px 46px rgba(60, 50, 35, .14);
  --display: "Shippori Mincho B1", "Shippori Mincho", "Yu Mincho", Georgia, serif;
  --body: "Zen Kaku Gothic New", "Nunito Sans", system-ui, sans-serif;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23c8372d' d='M10 2c3 0 7 3 7 8s-4 8-7 8-7-3-7-8 4-8 7-8z'/%3E%3C/svg%3E");
}
body {
  background-color: var(--bg);
  /* washi: soft paper grain */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f1ede4 0%, var(--bg) 35%, #f9f7f1 100%);
  background-attachment: fixed;
}

/* ---------- the ink backdrop ---------- */
.ink { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ink-sky { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.ink-sky .layer { will-change: transform; }
.ink-sky .sun { animation: sun-breathe 12s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ink .mist { position: absolute; left: -40%; width: 180%; height: 30vh; pointer-events: none;
  background: radial-gradient(30% 50% at 25% 50%, rgba(250, 248, 242, .95), transparent 70%),
              radial-gradient(26% 46% at 60% 55%, rgba(250, 248, 242, .85), transparent 70%),
              radial-gradient(32% 50% at 88% 45%, rgba(250, 248, 242, .92), transparent 70%);
  animation: ink-drift 80s linear infinite alternate; }
.ink .mist--1 { bottom: 34vh; opacity: .75; }
.ink .mist--2 { bottom: 18vh; opacity: .9; animation-duration: 110s; animation-direction: alternate-reverse; }
.ink .mist--3 { bottom: -6vh; height: 34vh; opacity: 1; animation-duration: 140s; }
.branch { position: absolute; left: -10px; top: 56px; width: min(560px, 62vw); opacity: .92; }
.branch-sway { transform-origin: 0 60px; animation: sway 9s ease-in-out infinite; }
.blooms ellipse { fill: #f3d3d6; stroke: #d9a5ab; stroke-width: .6; }
.blooms .heart { fill: #b8424a; }
.bloom { transform-box: fill-box; transform-origin: center; animation: bloom-breathe 6s ease-in-out infinite; }
.bloom:nth-child(3n) { animation-delay: -2s; }
.bloom:nth-child(3n+1) { animation-delay: -4s; }
#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

/* ---------- top bar + tabs ---------- */
.topbar { background: rgba(246, 243, 236, .78); border-bottom: 1px solid rgba(220, 212, 195, .7); }
.brand { gap: 10px; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.wordmark { display: flex; align-items: center; gap: 10px; }
.wm-text { display: flex; flex-direction: column; }
.wm-name { font: 800 23px/1 var(--display); letter-spacing: .02em; color: var(--ink); }
.wm-sub { font: 700 9.5px/1 var(--body); letter-spacing: .5em; color: var(--muted); margin-top: 5px; }
.seal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--accent);
  color: #fdf3ee; font: 700 17px/1 var(--display); box-shadow: inset 0 0 0 2px rgba(255, 240, 230, .3), 0 2px 6px rgba(200, 55, 45, .25);
  transform: rotate(-4deg); flex: none; }
.tabs { background: rgba(253, 252, 248, .82); border-color: var(--line); }
.tab { color: var(--muted); }
.tab[aria-selected="true"] { color: #fdfcf8; background: var(--ink); box-shadow: 0 4px 14px rgba(29, 28, 26, .25); }

/* ---------- headings: a brush stroke under each ---------- */
.section-head h2 { font: 700 34px/1.15 var(--display); position: relative; padding-bottom: 8px; }
.section-head h2::before { width: 12px; height: 12px; opacity: 1; }
.section-head h2::after { content: ""; position: absolute; left: 24px; right: -12px; bottom: -2px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8C40 3 90 4 150 5S260 7 298 3C270 9 200 10 150 9S40 11 2 8Z' fill='%231d1c1a' opacity='.82'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* ---------- buttons ---------- */
.btn { border-color: #d8d0bf; background: linear-gradient(180deg, #fffefb, #f4efe4); color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 #e2d9c6, 0 6px 16px rgba(60, 50, 35, .1); }
.btn:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 #e2d9c6, 0 12px 26px rgba(60, 50, 35, .16); }
.btn--primary { border-color: #1d1c1a; background: linear-gradient(180deg, #3a3833, #1d1c1a); color: #fdfcf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -3px 0 #000, 0 8px 22px rgba(29, 28, 26, .28); }
.btn--primary::after { background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); background-size: 250% 100%; }
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -3px 0 #000, 0 14px 30px rgba(29, 28, 26, .36); }
.btn:focus-visible, .tab:focus-visible, .link:focus-visible, .tile:focus-visible, .chip-btn:focus-visible { outline-color: rgba(200, 55, 45, .45); }

/* ---------- hero ---------- */
.enso-wrap { position: relative; width: 210px; height: 210px; margin: 0 auto -4px; }
.enso-wrap::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(circle, rgba(253, 252, 248, .95), transparent 65%); }
.enso { position: relative; width: 100%; height: 100%; animation: enso-in 1.8s var(--ease) both, float 9s 1.8s ease-in-out infinite; }
.logo { margin: 0; font: 800 clamp(44px, 9vw, 76px)/1.05 var(--display); letter-spacing: .02em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 16px; }
.logo .seal { width: clamp(38px, 6vw, 52px); height: clamp(38px, 6vw, 52px); font-size: clamp(22px, 3.6vw, 31px); border-radius: 10px; }
.logo-sub { display: block; margin: 10px 0 14px; font: 700 13px/1 var(--body); letter-spacing: .6em; text-indent: .6em; color: var(--muted); }
.tagline { font-family: var(--display); font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.status { background: rgba(253, 252, 248, .85); }
.status.is-open { color: #3f7a4d; }
.bio { color: #3b3833; }

/* ---------- links, chips, cards ---------- */
.link { background: rgba(253, 252, 248, .88); box-shadow: inset 0 -3px 0 #ece5d6, var(--shadow); }
.link:hover { background: #fffefb; box-shadow: inset 0 -3px 0 #ece5d6, var(--shadow-lift); }
.link .ico, .card .ico { background: linear-gradient(160deg, #fffefb, #f1ebdf); color: var(--ink); box-shadow: inset 0 0 0 1px #e6dfd0; }
.ico svg, .thumb--soon svg { filter: url(#brush); }
.link .ico svg { stroke-width: 2.2; }
.chip { background: rgba(253, 252, 248, .86); color: #4d4a44; }
.card { background: rgba(253, 252, 248, .93); border-color: var(--line); }
.card h3 { font: 700 23px/1.2 var(--display); }
.card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card .ico .dot { fill: var(--accent); stroke: none; }
.card--featured { border-color: #e7b9b2; box-shadow: 0 0 0 4px rgba(200, 55, 45, .08), var(--shadow); }
.ribbon { color: #fff7f2; background: var(--accent); border-color: transparent; box-shadow: 0 4px 12px rgba(200, 55, 45, .3); }
.price { font: 700 28px/1 var(--display); color: var(--ink); }
.badge { background: rgba(253, 252, 248, .92); }
.badge--new { color: #fff7f2; background: var(--accent); border-color: transparent; }
.thumb { background: linear-gradient(170deg, #ece6d8, #f6f3ec 60%, #fdfcf8); }
.thumb--soon { color: #8a857b; }
.thumb--soon::before { background: radial-gradient(50% 50% at 50% 50%, rgba(253, 252, 248, .95), transparent 70%); }
.tag { color: var(--accent); }
.chip-btn[aria-pressed="true"] { color: #fdfcf8; background: var(--ink); border-color: var(--ink); box-shadow: none; }
.play-badge { color: #fff7f2; background: rgba(200, 55, 45, .92); }
.pay-note { border-color: #dcd2bf; }
.pay-note svg { stroke: var(--accent); }
.pay-note b, .modal b { color: var(--ink); }
.modal a:not(.btn) { color: var(--accent); }
.modal-backdrop { background: rgba(240, 236, 226, .8); }
.modal .amount { background: linear-gradient(160deg, #fffefb, #f1ebdf); }
.toast { background: rgba(29, 28, 26, .92); }
.thumb--tall img { object-position: center 30%; }
.viewer-cta { margin-top: 14px; }
.thumb img, .thumb video { transition: transform .8s var(--ease); }
.tile:hover .thumb img, .tile:hover .thumb video { transform: scale(1.04); }
.grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- the portfolio wall: sections of everything we've made ---------- */
.work-section { margin-top: 48px; }
.work-section .section-head { margin: 0 0 16px; }
.work-section .section-head h3 { margin: 0; font: 700 26px/1.15 var(--display); }
.work-section .section-head p { font-size: 14px; }
.wall { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-flow: dense; }
.wall .tile .body { padding: 10px 14px 14px; }
.wall .tile h3 { font-size: 17px; }
.wall .tile p { font-size: 13px; margin-top: 4px; }
.wall .thumb { aspect-ratio: 4 / 3; background: #fbfaf6; }
.wall .tile.wide { grid-column: span 2; }
.wall .tile.wide .thumb { aspect-ratio: 8 / 3; }
.wall .thumb img { object-fit: contain; }
.wall .thumb.cover img, .wall .thumb video { object-fit: cover; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; margin-left: 8px; border-radius: 99px;
  background: var(--ink); color: #fdfcf8; font: 700 11.5px/1 var(--body); vertical-align: 5px; }

/* ---------- seigaiha wave band above the footer ---------- */
.footer { padding-top: 76px; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48px; opacity: .2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%231d1c1a' stroke-width='1.2'%3E%3Ccircle cx='24' cy='24' r='22'/%3E%3Ccircle cx='24' cy='24' r='16'/%3E%3Ccircle cx='24' cy='24' r='10'/%3E%3Ccircle cx='0' cy='24' r='22'/%3E%3Ccircle cx='0' cy='24' r='16'/%3E%3Ccircle cx='0' cy='24' r='10'/%3E%3Ccircle cx='48' cy='24' r='22'/%3E%3Ccircle cx='48' cy='24' r='16'/%3E%3Ccircle cx='48' cy='24' r='10'/%3E%3C/g%3E%3C/svg%3E") repeat-x; }

/* ---------- motion ---------- */
@keyframes ink-drift { from { transform: translateX(0); } to { transform: translateX(22%); } }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(1.6deg); } }
@keyframes bloom-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes sun-breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes enso-in { from { opacity: 0; clip-path: circle(0% at 50% 50%); transform: rotate(-30deg) scale(.9); } to { opacity: 1; clip-path: circle(75% at 50% 50%); transform: none; } }

@media (max-width: 700px) {
  .topbar { background: rgba(246, 243, 236, .96); }
  .tabs { background: rgba(253, 252, 248, .97); }
  .wm-name { font-size: 20px; }
  .brand-mark { width: 38px; height: 38px; }
  .branch { width: 80vw; top: 50px; opacity: .8; }
  .ink-sky { height: 58vh; }  /* (a tall phone would zoom the scene right in: keep it to the lower part) */
  .enso-wrap { width: 160px; height: 160px; }
  .grid { grid-template-columns: 1fr; }
  .wall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wall .tile h3 { font-size: 15px; }
  .tab { min-height: 52px; }
}

/* ==========================================================================================================
   2026-11-04: the ink-wash art is the BACKGROUND only (user: "i just wanted the background to look nice").
   The foreground is the studio's own look again: Fredoka + Nunito, studio indigo/purple, clean icons.
   ========================================================================================================== */
:root {
  --ink: #23224a;
  --muted: #6a6987;
  --accent: #7b5cf0;
  --accent-soft: #efeafe;
  --display: "Fredoka", "Nunito Sans", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%237b5cf0' d='M10 0Q12 8 20 10Q12 12 10 20Q8 12 0 10Q8 8 10 0Z'/%3E%3C/svg%3E");
}
.ico svg, .thumb--soon svg { filter: none; }
.section-head h2 { font-weight: 600; padding-bottom: 0; }
.section-head h2::after { display: none; }
.footer::before { display: none; }
.footer { padding-top: 24px; }
.card h3, .logo, .price, .modal h3, .work-section .section-head h3 { font-family: var(--display); font-weight: 600; }
.tagline { font-family: var(--body); font-weight: 700; letter-spacing: .05em; }
.wm-name { font: 700 23px/1 var(--display); }
.tab[aria-selected="true"], .chip-btn[aria-pressed="true"], .count { background: var(--ink); }
.btn--primary { border-color: #23224a; background: linear-gradient(180deg, #3a3870, #23224a); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -3px 0 #141331, 0 8px 22px rgba(35, 34, 74, .28); }
.ribbon, .badge--new, .play-badge { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(123, 92, 240, .3); }
.play-badge { background: rgba(123, 92, 240, .92); }
.card--featured { border-color: #cfc2fb; box-shadow: 0 0 0 4px rgba(123, 92, 240, .08), var(--shadow); }
.link .ico, .card .ico { color: var(--accent); }
.pay-note svg { stroke: var(--accent); }
.logo { font-size: clamp(44px, 9vw, 74px); }
.logo-sub { letter-spacing: .5em; }

/* the studio mark + a refined typeface to match it (2026-11-04: "follow a white style", not childish) */
:root { --display: "Manrope", "Nunito Sans", system-ui, sans-serif; }
.wm-name { font: 800 22px/1 var(--display); letter-spacing: -.01em; }
.wm-sub { font: 600 9.5px/1 var(--display); letter-spacing: .55em; }
.logo { font-weight: 800; letter-spacing: -.02em; }
.section-head h2, .card h3, .work-section .section-head h3 { font-weight: 700; letter-spacing: -.01em; }
.enso-wrap { width: 180px; height: 180px; }
.enso { animation: float 9s ease-in-out infinite; }
@media (max-width: 700px) { .enso-wrap { width: 140px; height: 140px; } }
.price .unit { margin-left: 8px; font: 600 13px/1 var(--body); color: var(--muted); letter-spacing: 0; text-transform: none; }

/* no save routes on media (long-press save on phones, drag-out, selection) */
img, video, audio, .thumb { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }

/* an example clip at the top of each commission card (click to watch it big) */
.card-example { position: relative; display: block; margin: -22px -22px 16px; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; font: inherit; }
.card-example .thumb { aspect-ratio: 16 / 9; }
.card-example .ex-label { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(253, 252, 248, .92);
  color: var(--ink); font: 700 12px/1 var(--body); box-shadow: 0 4px 12px rgba(35, 34, 74, .15); }
.card-example:hover .thumb video, .card-example:hover .thumb img { transform: scale(1.04); }
.card--featured .card-example { margin-top: -22px; }
.ribbon { z-index: 3; }
