/* kianafatemifar.com - "Concert programme" design system (2026-11-19).
   One stylesheet for the design canvas and the WordPress plugin kiana-site. */

@view-transition { navigation: auto; }

:root {
  --ink: #17131c;
  --ink-2: #241e2b;
  --ivory: #f7f2ea;
  --paper: #fffdf9;
  --silver: #d9dce1;
  --line: #e4dccf;
  --line-dark: #3a3242;
  --muted: #5e5763;
  --muted-dark: #b9b0bf;
  --garnet: #8b2635;
  --garnet-ink: #6e1d2a;
  --rose: #e7a3ae;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
  --step-4: clamp(3rem, 2rem + 5vw, 6.2rem);
  --space: clamp(1rem, 0.7rem + 1.5vw, 2rem);
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius: 14px;
  --max: 1200px;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
.ks-body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: var(--step-0); line-height: 1.65; -webkit-font-smoothing: antialiased; }
.ks-body img { max-width: 100%; height: auto; display: block; }
.ks-body a { color: var(--garnet); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.ks-body a:hover { color: var(--garnet-ink); }
.ks-body :focus-visible { outline: 2px solid var(--garnet); outline-offset: 3px; border-radius: 4px; }
.ks-skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 99; }
.ks-skip:focus { left: 1rem; top: 1rem; }

.ks-wrap { width: min(100% - 2 * var(--space), var(--max)); margin-inline: auto; }
.ks-narrow { width: min(100% - 2 * var(--space), 760px); margin-inline: auto; }
.ks-section { padding-block: var(--section); }
.ks-section--paper { background: var(--paper); }
.ks-section--dark { background: var(--ink); color: var(--ivory); }
.ks-section--dark a { color: var(--rose); }

.ks-eyebrow { font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--garnet); margin: 0 0 1rem; }
.ks-section--dark .ks-eyebrow, .ks-hero .ks-eyebrow { color: var(--rose); }
.ks-h1, .ks-h2, .ks-h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
.ks-h1 { font-size: var(--step-4); }
.ks-h2 { font-size: var(--step-3); }
.ks-h3 { font-size: var(--step-2); line-height: 1.15; }
.ks-h1 em, .ks-h2 em { font-style: italic; color: var(--garnet); }
.ks-hero .ks-h1 em, .ks-section--dark .ks-h2 em { color: var(--rose); }
.ks-lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 52ch; text-wrap: pretty; margin: 1.25rem 0 0; }
.ks-section--dark .ks-lead, .ks-hero .ks-lead { color: var(--muted-dark); }
.ks-prose { max-width: var(--measure); }
.ks-prose p { margin: 0 0 1.2em; text-wrap: pretty; }
.ks-prose p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.6em; float: left; line-height: 0.8; padding: 0.08em 0.1em 0 0; color: var(--garnet); }
.ks-muted { color: var(--muted); }

/* buttons */
.ks-btn { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.75rem 1.35rem; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.ks-body .ks-btn--primary { background: var(--garnet); color: #fff; }
.ks-body .ks-btn--primary:hover { background: var(--garnet-ink); color: #fff; transform: translateY(-1px); }
.ks-body .ks-btn--ghost { border-color: currentColor; color: var(--ink); }
.ks-body .ks-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.ks-hero .ks-btn--ghost, .ks-section--dark .ks-btn--ghost { color: var(--ivory); }
.ks-hero .ks-btn--ghost:hover, .ks-section--dark .ks-btn--ghost:hover { background: var(--ivory); color: var(--ink); }
.ks-btn svg { width: 18px; height: 18px; flex: none; }
.ks-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* header */
.ks-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ivory) 86%, transparent); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.ks-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.ks-logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.ks-body .ks-logo { color: var(--ink); }
.ks-logo svg { height: 34px; width: auto; }
/* header: her original logo (the ornate K with the flute, "iana", "fatemifar"), recoloured to ink */
.ks-logo--classic img { display: block; height: 58px; width: auto; }
.ks-header[data-scrolled="true"] .ks-logo--classic img { height: 46px; }
@media (max-width: 600px) { .ks-logo--classic img { height: 46px; } }
.ks-logo .ks-mark--simple { display: none; }
.ks-header[data-scrolled="true"] .ks-logo .ks-mark--full { display: none; }
.ks-header[data-scrolled="true"] .ks-logo .ks-mark--simple { display: block; }
.ks-header .ks-header__in { transition: min-height .25s ease; }
@media (min-width: 861px) { .ks-header[data-scrolled="true"] .ks-header__in { min-height: 60px; } }
@media (max-width: 600px) { .ks-header .ks-logo .ks-mark--full { display: none; } .ks-header .ks-logo .ks-mark--simple { display: block; } }
.ks-footer .ks-logo svg { height: 52px; }
.ks-logo__word { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.02em; line-height: 1; }
.ks-logo__word small { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.ks-nav { display: flex; align-items: center; gap: 0.25rem; }
.ks-nav a { color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 0.55rem 0.8rem; border-radius: 999px; }
.ks-nav a:hover, .ks-nav a[aria-current="page"] { background: color-mix(in srgb, var(--garnet) 9%, transparent); color: var(--garnet); }
.ks-nav .ks-btn { margin-left: 0.5rem; padding-inline: 1.1rem; }
.ks-menu-btn { display: none; }
@media (max-width: 860px) {
  .ks-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
  .ks-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; padding: 1rem var(--space) 1.5rem; background: var(--ivory); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s ease; }
  .ks-header[data-open="true"] .ks-nav { transform: none; }
  .ks-nav a { padding: 0.9rem 0.6rem; font-size: 1.05rem; }
  .ks-nav .ks-btn { margin: 0.5rem 0 0; justify-content: center; }
}

/* hero */
.ks-hero { position: relative; background: var(--ink); color: var(--ivory); overflow: hidden; isolation: isolate; }
.ks-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(88vh, 820px); }
.ks-hero__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 8vw, 7rem) var(--space) clamp(3rem, 6vw, 5rem) max(var(--space), calc((100vw - var(--max)) / 2)); position: relative; z-index: 2; }
.ks-hero__art { position: relative; margin: 0; overflow: hidden; }
.ks-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.ks-hero__art::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; background: linear-gradient(90deg, var(--ink), transparent); z-index: 1; pointer-events: none; }
.ks-hero__credit { position: absolute; right: 1rem; bottom: 0.8rem; z-index: 2; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ivory); background: rgba(23, 19, 28, 0.78); padding: 0.3rem 0.7rem; border-radius: 999px; }
.ks-hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: 0.88rem; color: var(--muted-dark); }
.ks-hero__meta strong { color: var(--ivory); font-weight: 600; }
@media (max-width: 900px) {
  .ks-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .ks-hero__art { order: -1; aspect-ratio: 4 / 5; max-height: 72vh; }
  .ks-hero__art::before { inset: auto 0 0 0; width: auto; height: 35%; background: linear-gradient(0deg, var(--ink), transparent); }
  .ks-hero__text { padding: 1.5rem var(--space) 3.5rem; margin-top: -2.5rem; }
  .ks-hero__credit { top: 0.8rem; bottom: auto; }
}

/* hero variant: the painting full-bleed behind the text, blending softly into the ink side (as on the design
   canvas). The right page margin sits on the grid, so the text column keeps its measure at every width; on very
   wide screens the whole scene sits on a centred stage with soft edges instead of zooming into the painting. */
.ks-hero__stage { position: relative; }
.ks-hero--full { container-type: inline-size; --stage: 1800px; --hero-pr: max(var(--space), calc((min(100cqi, var(--stage)) - var(--max)) / 2)); --hero-tc: clamp(380px, 38cqi, 560px); }
.ks-hero--full .ks-hero__stage { max-width: var(--stage); margin-inline: auto; }
.ks-hero--full .ks-hero__grid { grid-template-columns: minmax(0, 1fr) var(--hero-tc); padding-right: var(--hero-pr); min-height: min(88vh, 860px); }
.ks-hero--full .ks-hero__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ks-hero--full .ks-hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-position: 30% 42%; }
.ks-hero--full .ks-hero__art::before { inset: 0 -1px 0 auto; width: 62%; background: linear-gradient(270deg, var(--ink) 0%, rgba(23, 19, 28, 0.9) 18%, rgba(23, 19, 28, 0.76) 48%, rgba(23, 19, 28, 0) 100%); }
/* wide screens: the stage's soft ink edges sit on the stage itself and reach 2px past the painting, so the clipped
   edge of the painting is always covered (no hairline, no strip) */
/* wide screens: the credit sits just inside the soft left edge, so the fade never dims it */
@container (min-width: 1801px) { .ks-hero.ks-hero--full .ks-hero__credit { left: calc(9% + 1rem); } }
@container (min-width: 1801px) { .ks-hero--full .ks-hero__stage::after { content: ""; position: absolute; top: 0; bottom: 0; left: -2px; right: -2px; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--ink) 0, var(--ink) 2px, rgba(23, 19, 28, 0) 9%, rgba(23, 19, 28, 0) 91%, var(--ink) calc(100% - 2px), var(--ink) 100%); } }
.ks-hero--full .ks-hero__text { grid-column: 2; padding-left: clamp(1.5rem, 3vw, 3rem); padding-right: 0; padding-top: clamp(2.5rem, 5.5vw, 5rem); padding-bottom: clamp(9rem, 26vh, 14rem); }
.ks-hero--full .ks-hero__credit { left: 1rem; right: auto; }

/* The music staff of the 2022 home page: white, flowing along the bottom of the hero and off the right edge.
   Both ends fade, so it never looks cut off. */
.ks-notes { color: #fff; position: absolute; z-index: 1; bottom: 0.2rem; width: min(48vw, 740px); height: auto; aspect-ratio: 842.53 / 284.32; pointer-events: none; opacity: 0.92; filter: drop-shadow(0 1px 6px rgba(23, 19, 28, 0.35)); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 84%, transparent 100%); }
.ks-hero--full .ks-notes { right: -4cqi; width: min(48cqi, 740px); z-index: 2; }
.ks-notes .ks-notes__lines path { stroke-opacity: 0.85; stroke-dasharray: 1400; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ks-notes .ks-notes__lines path { animation: ks-staff-draw 2.8s cubic-bezier(.4, 0, .2, 1) 0.5s both; }
  .ks-notes .ks-note { animation: ks-note-in 0.6s ease-out both; animation-delay: calc(1s + var(--i) * 50ms); }
}
@keyframes ks-staff-draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes ks-note-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .ks-hero--full .ks-hero__grid { grid-template-columns: 1fr; padding-right: 0; min-height: 0; }
  .ks-hero--full .ks-hero__art { position: relative; inset: auto; aspect-ratio: 4 / 5; }
  .ks-hero--full .ks-hero__art img { object-position: 50% 30%; }
  .ks-hero--full .ks-hero__art::before { inset: auto 0 0 0; width: auto; height: 35%; background: linear-gradient(0deg, var(--ink), transparent); }
  .ks-hero--full .ks-hero__text { grid-column: auto; padding: 1.5rem var(--space) 3.5rem; }
  .ks-hero--full .ks-hero__credit { left: auto; right: 1rem; }
  /* phone: the staff crosses the foot of the painting, where it fades into the dark text area */
  .ks-hero--full .ks-notes { right: -6vw; bottom: auto; top: calc(min(125vw, 72vh) - 35vw - 3.4rem); width: 104vw; }
}

/* facts strip */
.ks-facts-band { border-block: 1px solid var(--line); background: var(--paper); }
.ks-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ks-fact { padding: 1.6rem var(--space); border-right: 1px solid var(--line); }
.ks-fact:last-child { border-right: 0; padding-right: 0; }
.ks-fact:first-child { padding-left: 0; }
.ks-fact b { display: block; font-family: var(--serif); font-size: var(--step-2); font-weight: 500; line-height: 1.1; }
.ks-fact span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 900px) { .ks-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ks-fact:nth-child(2) { border-right: 0; } .ks-fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .ks-fact:nth-child(odd) { padding-left: 0; } .ks-fact:nth-child(even) { padding-right: 0; } }

/* section heads */
.ks-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.ks-head p { margin: 0; max-width: 46ch; color: var(--muted); }
.ks-section--dark .ks-head p { color: var(--muted-dark); }

/* split blocks */
.ks-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ks-split--rev > :first-child { order: 2; }
.ks-figure { margin: 0; position: relative; }
.ks-figure img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.ks-figure figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.6rem; }
.ks-figure--frame::after { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 1px solid var(--garnet); border-radius: var(--radius); z-index: -1; }
@media (max-width: 860px) { .ks-split { grid-template-columns: 1fr; } .ks-split--rev > :first-child { order: 0; } .ks-figure--frame::after { inset: 0.75rem -0.75rem -0.75rem 0.75rem; } }

/* videos */
.ks-videos { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; }
.ks-video { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; color: #fff; text-decoration: none; border: 0; padding: 0; width: 100%; cursor: pointer; }
.ks-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.86; transition: transform .6s ease, opacity .3s ease; }
.ks-video:hover img { transform: scale(1.03); opacity: 1; }
.ks-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ks-video__play { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(23, 19, 28, 0.78); backdrop-filter: blur(6px); padding: 0.55rem 0.9rem 0.55rem 0.6rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.ks-video__play i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--garnet); font-style: normal; }
.ks-video__play svg { width: 12px; height: 12px; margin-left: 2px; }
.ks-vlist { display: flex; flex-direction: column; gap: 0.25rem; }
.ks-vitem { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.6rem; border-radius: 12px; text-decoration: none; color: inherit; background: none; border: 0; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.ks-vitem:hover { background: color-mix(in srgb, var(--ivory) 8%, transparent); }
.ks-section:not(.ks-section--dark) .ks-vitem:hover { background: var(--paper); }
.ks-vitem img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.ks-vitem b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.ks-vitem span { font-size: 0.8rem; color: var(--muted-dark); }
.ks-section:not(.ks-section--dark) .ks-vitem span { color: var(--muted); }
@media (max-width: 900px) { .ks-videos { grid-template-columns: 1fr; } }

.ks-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.75rem 1.5rem; }
.ks-vcard b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.2; margin-top: 0.8rem; }
.ks-vcard span { font-size: 0.85rem; color: var(--muted); }
.ks-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.ks-chip { min-height: 44px; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 0.9rem var(--sans); cursor: pointer; }
.ks-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* cards */
.ks-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.ks-card { container-type: inline-size; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2rem); transition: transform .25s ease, box-shadow .25s ease; }
.ks-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(23, 19, 28, 0.35); }
.ks-card__icon { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: color-mix(in srgb, var(--garnet) 10%, transparent); color: var(--garnet); margin-bottom: 1.1rem; }
.ks-card__icon svg { width: 22px; height: 22px; }
.ks-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.15; margin: 0 0 0.5rem; }
.ks-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.ks-card ul { margin: 0.75rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.95rem; }

/* quote */
.ks-quote { margin: 0; font-family: var(--serif); font-size: var(--step-2); line-height: 1.3; font-style: italic; text-wrap: balance; max-width: 30ch; }
.ks-quote::before { content: "\201C"; display: block; font-size: 4em; line-height: 0.6; color: var(--garnet); font-style: normal; }
.ks-section--dark .ks-quote::before { color: var(--rose); }

/* timeline (CV) */
.ks-cv { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ks-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.92rem; }
.ks-toc a { color: var(--muted); text-decoration: none; padding: 0.45rem 0.8rem; border-left: 2px solid var(--line); }
.ks-toc a:hover, .ks-toc a[aria-current="true"] { color: var(--garnet); border-left-color: var(--garnet); }
.ks-cvsec { scroll-margin-top: 96px; padding-bottom: 3.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.ks-cvsec:last-child { border-bottom: 0; }
.ks-cvsec > h2 { font-family: var(--serif); font-weight: 500; font-size: var(--step-2); margin: 0 0 1.75rem; }
.ks-cvsec h3 { font: 600 0.8rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--garnet); margin: 2rem 0 0.75rem; }
.ks-tl { list-style: none; margin: 0; padding: 0; }
.ks-tl li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.25rem; padding: 0.9rem 0; border-top: 1px dashed var(--line); }
.ks-tl li:first-child { border-top: 0; }
.ks-tl time, .ks-tl .ks-yr { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9rem; padding-top: 0.15rem; }
.ks-tl b { display: block; font-weight: 600; }
.ks-tl span { color: var(--muted); font-size: 0.95rem; }
.ks-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.ks-tags li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.ks-tags li small { color: var(--muted); margin-left: 0.35rem; }
@media (max-width: 900px) { .ks-cv { grid-template-columns: 1fr; } .ks-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.4rem; } .ks-toc a { border: 1px solid var(--line); border-radius: 999px; } .ks-tl li { grid-template-columns: 1fr; gap: 0.15rem; } }

/* steps */
.ks-steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.ks-steps li { counter-increment: step; border-top: 1px solid var(--line-dark); padding-top: 1.25rem; }
.ks-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--rose); line-height: 1; margin-bottom: 0.75rem; }
.ks-steps b { display: block; font-size: 1.05rem; margin-bottom: 0.35rem; }
.ks-steps span { color: var(--muted-dark); font-size: 0.95rem; }

/* gallery */
.ks-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.ks-gallery figure { margin: 0; }
.ks-gallery img { border-radius: 10px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.ks-gallery figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.45rem; }

/* instagram */
.ks-insta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.ks-insta .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; border-radius: 12px !important; }
.ks-insta-tile { display: block; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.ks-insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ks-insta-tile:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .ks-insta { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; } }

/* contact */
.ks-form { display: grid; gap: 1.1rem; }
.ks-form .ks-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ks-field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; }
.ks-field input, .ks-field select, .ks-field textarea { width: 100%; min-height: 48px; padding: 0.75rem 0.95rem; border-radius: 10px; border: 1px solid #cfc5b6; background: var(--paper); font: inherit; color: var(--ink); }
.ks-field textarea { min-height: 150px; resize: vertical; }
.ks-field input:focus, .ks-field select:focus, .ks-field textarea:focus { outline: 2px solid var(--garnet); outline-offset: 1px; border-color: var(--garnet); }
.ks-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ks-note { font-size: 0.85rem; color: var(--muted); }
.ks-alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.25rem; }
.ks-alert--ok { background: #e7f1e8; color: #1f4d2a; }
.ks-alert--err { background: #f6e3e5; color: var(--garnet-ink); }
@media (max-width: 640px) { .ks-form .ks-row { grid-template-columns: 1fr; } }
.ks-socials { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.ks-socials a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.ks-socials a:hover { border-color: var(--garnet); color: var(--garnet); }
.ks-socials svg { width: 18px; height: 18px; }
.ks-section--dark .ks-socials a { background: transparent; border-color: var(--line-dark); color: var(--ivory); }

/* page hero (inner pages) */
.ks-pagehero { padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
/* the same music staff as the home hero, drawn faintly in garnet on the plain page headers */
.ks-pagehero--staff { position: relative; overflow: hidden; isolation: isolate; }
.ks-pagehero--staff > .ks-wrap { position: relative; z-index: 1; }
.ks-pagehero--staff .ks-notes { color: var(--garnet); opacity: 0.16; filter: none; right: -4vw; bottom: -1.5rem; width: min(52vw, 760px); z-index: 0; }
@media (max-width: 900px) { .ks-pagehero--staff .ks-notes { top: auto; bottom: -0.5rem; right: -10vw; width: 90vw; opacity: 0.12; } }
.ks-crumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }

/* footer */
.ks-footer { background: var(--ink); color: var(--muted-dark); padding-block: 4rem 2.5rem; font-size: 0.92rem; }
.ks-footer a { color: var(--ivory); text-decoration: none; }
.ks-footer a:hover { color: var(--rose); }
.ks-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.ks-footer h4, .ks-footer__h { font: 600 0.75rem var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dark); margin: 0 0 1rem; }
.ks-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ks-footer .ks-logo, .ks-footer .ks-logo .ks-logo__word { color: var(--ivory); }
.ks-footer .ks-logo small { color: var(--muted-dark); }
.ks-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line-dark); margin-top: 3rem; padding-top: 1.5rem; font-size: 0.82rem; }
@media (max-width: 760px) { .ks-footer__grid { grid-template-columns: 1fr; } }

/* motion: scroll-driven reveals where supported, never for reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ks-reveal { animation: ks-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .ks-hero__art img { animation: ks-drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
  .ks-hero__text > * { animation: ks-in .9s cubic-bezier(.2, .7, .2, 1) both; }
  .ks-hero__text > *:nth-child(2) { animation-delay: .08s; }
  .ks-hero__text > *:nth-child(3) { animation-delay: .16s; }
  .ks-hero__text > *:nth-child(4) { animation-delay: .24s; }
  .ks-hero__text > *:nth-child(5) { animation-delay: .32s; }
}
@keyframes ks-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes ks-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ks-drift { from { transform: scale(1.07); } to { transform: scale(1.03) translateY(-1.4%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; } @view-transition { navigation: none; } }
