/* marina.in.kinesis — site styles (chosen direction: underlined menu, square green buttons) */

/* Manrope, self-hosted (variable weight, SIL OFL 1.1 — see /fonts/OFL.txt). Source: @fontsource-variable/manrope 5.3.0 */
@font-face {
  font-family: Manrope; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/fonts/manrope-greek-wght-normal.woff2") format("woff2");
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: Manrope; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Manrope; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --ink: #1E1A17;
  --green: #4f6b58;
  --on-green: #ffffff;
  --page: #ffffff;
  --muted: #4A4038;
  --quiet: #6B5E52;
  --line: #E5E5E5;
  --gutter: clamp(16px, 4vw, 32px);

  /* Button state layers (fallbacks; modern browsers derive them below) */
  --primary-hover: #5d7865;
  --primary-pressed: #647d6b;
  --secondary-hover: #f1f4f2;
  --secondary-pressed: #eaeeeb;
  --btn-transition: 200ms ease;
}
@supports (background: color-mix(in srgb, red 50%, blue)) {
  :root {
    --primary-hover: color-mix(in srgb, var(--green) 92%, var(--on-green));
    --primary-pressed: color-mix(in srgb, var(--green) 88%, var(--on-green));
    --secondary-hover: color-mix(in srgb, var(--page) 92%, var(--green));
    --secondary-pressed: color-mix(in srgb, var(--page) 88%, var(--green));
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
img, video { display: block; max-width: 100%; }
a { color: var(--green); }
a:not(.btn):hover { color: var(--ink); }
button { font: inherit; }
h1, h2, p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 14px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Buttons: state layers, 8% hover / 12% pressed ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .875rem 1.75rem; border: 1px solid var(--green); border-radius: 0;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--btn-transition), color var(--btn-transition), border-color var(--btn-transition);
}
.btn-sm { padding: .5rem .875rem; font-size: .8125rem; min-height: 44px; }
.btn-primary { background-color: var(--green); color: var(--on-green); }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-primary:active { background-color: var(--primary-pressed); }
.btn-secondary { background-color: transparent; color: var(--green); }
.btn-secondary:hover { background-color: var(--secondary-hover); }
.btn-secondary:active { background-color: var(--secondary-pressed); }
/* Neutral variant for navigation chrome (Menu, filters, prev/next) */
.btn-ink { --green: #1E1A17; --secondary-hover: #edecec; --secondary-pressed: #e4e3e3; }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .btn-ink { --secondary-hover: color-mix(in srgb, var(--page) 92%, #1E1A17); --secondary-pressed: color-mix(in srgb, var(--page) 88%, #1E1A17); }
}
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (hover: none) {
  .btn-primary:hover { background-color: var(--green); }
  .btn-secondary:hover { background-color: transparent; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.tx { background: none; border: 0; padding: 10px 0; cursor: pointer; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.tx:hover { color: var(--ink); }

/* ---------- Header + menu ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.logo { font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; }
.logo span { color: var(--green); }
.nav-toggle { display: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: #B9C4BC; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-top: 8px; }
  .nav.open { display: flex; }
  .nav a { font-size: 17px; }
}

main { padding-bottom: 96px; }

/* ---------- Type ---------- */
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }
.display { font-weight: 300; font-size: clamp(48px, 7vw, 96px); line-height: 0.98; }
.page-title { font-weight: 300; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
.h2 { font-weight: 300; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.lead { font-size: clamp(18px, 2.4vw, 24px); font-weight: 300; color: var(--muted); }
.body-lg { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.7; }
.muted { color: var(--muted); }
.quiet { color: var(--quiet); }

/* ---------- Layout ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 5vw, 56px); align-items: center; padding: clamp(32px, 6vw, 56px) 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; }
.cover { width: 100%; object-fit: cover; }
.r45 { aspect-ratio: 4 / 5; } .r32 { aspect-ratio: 3 / 2; } .r34 { aspect-ratio: 3 / 4; } .r43 { aspect-ratio: 4 / 3; }
.mb72 { margin-bottom: 72px; }
/* Green top-rule block (used for sections, classes, offers, piece text) */
.card { border-top: 2px solid var(--green); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Home ---------- */
.hero-img { border-radius: 4px; }
@media (max-width: 480px) {
  .cta-row { flex-wrap: nowrap; gap: 12px; }
  .cta-row .btn { padding: 14px 18px; white-space: nowrap; }
}
.sx { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; margin-bottom: 72px; }
.sx a { border-top: 2px solid var(--green); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.sx a strong { font-weight: 500; font-size: 26px; }
.sx a span { font-size: 15px; line-height: 1.55; color: var(--muted); }
.sx a:hover strong { color: var(--green); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

/* Works strip: scrolls sideways, faint chevrons, caption under each photo */
.strip-nav { display: flex; gap: 4px; }
.arrow { width: 44px; height: 44px; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; opacity: .35; transition: opacity .2s ease; }
.arrow:hover, .arrow:focus-visible { opacity: 1; }
.arrow:disabled { opacity: .12; cursor: default; }
.strip-track { list-style: none; margin: 0; padding: 0 0 16px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.card-item { flex: 0 0 280px; scroll-snap-align: start; }
.card-item a { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; }
.card-media { position: relative; display: block; overflow: hidden; background: var(--ink); }
.card-media img { transition: transform .5s ease; }
.card-over { position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: #fff; background: rgba(20, 17, 15, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.card-cat { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.card-desc { font-size: 16px; line-height: 1.45; }
.card-more { font-size: 14px; font-weight: 600; text-decoration: underline; }
.card-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title { font-size: 16px; font-weight: 500; }
.card-year { font-size: 13px; color: var(--quiet); flex-shrink: 0; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.card-item a:hover .card-over, .card-item a:focus-visible .card-over { opacity: 1; }
.card-item a:hover img, .card-item a:focus-visible img { transform: scale(1.04); }
.card-item a:hover .card-title { color: var(--green); }
@media (hover: none) { .card-over { display: none; } }
@media (max-width: 600px) { .card-item { flex-basis: 72vw; } .strip-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .strip-track { scroll-behavior: auto; } .card-media img, .card-over { transition: none; } }

/* ---------- Work list ---------- */
.work-head { padding: clamp(32px, 6vw, 56px) 0 24px; display: flex; flex-direction: column; gap: 20px; }
.work-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.work-list { list-style: none; margin: 0; padding: 0; flex: 1 1 520px; min-width: 0; border-top: 1px solid var(--ink); }
.work-list li { border-bottom: 1px solid var(--line); }
.work-list li[hidden] { display: none; }
.wr { width: 100%; display: flex; gap: 20px; align-items: center; text-align: left; border: 0; padding: 20px 12px; cursor: pointer; color: var(--ink); background: transparent; text-decoration: none; }
.wr:hover { background: var(--secondary-hover); color: var(--ink); }
.wr-on, .wr-on:hover { background: var(--secondary-pressed); }
.wr .year { font-size: 13px; color: var(--quiet); width: 72px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.wr .text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.wr .title { font-size: 22px; font-weight: 500; }
.wr .line { font-size: 14px; color: var(--muted); }
.wr .cat { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); text-align: right; }
.preview { flex: 1 1 360px; min-width: 0; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--green); padding-top: 20px; }
.preview h2 { font-weight: 500; font-size: 30px; }
.preview .meta { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
@media (max-width: 860px) {
  .preview { display: none; }
  .wr-on, .wr-on:hover { background: transparent; }
}
@media (max-width: 600px) {
  .wr { flex-wrap: wrap; gap: 6px 16px; padding: 18px 4px; }
  .wr .year { width: auto; }
  .wr .cat { order: 3; width: 100%; text-align: left; }
  .wr .text { order: 2; }
  .wr .title { font-size: 20px; }
}

/* ---------- Piece page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 32px; font-size: 14px; }
.piece-title { margin: 8px 0 28px; font-weight: 300; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; }
.piece-top { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.piece-top > img { flex: 3 1 440px; min-width: 0; }
.facts { flex: 2 1 260px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; font-size: 15px; border-top: 1px solid var(--ink); padding-top: 14px; }
.facts dt { font-size: 13px; color: var(--quiet); }
.facts dd { margin: 0; }
.piece-text { display: flex; flex-direction: column; gap: 40px; margin-top: 48px; }
.piece-text .card > p, .piece-text .credits { max-width: 144ch; }
.media-row { margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.video { position: relative; aspect-ratio: 16 / 9; margin-top: 40px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; }
@media (max-width: 600px) { .pager .btn { width: 100%; } }

/* ---------- About ---------- */
.about-hero { position: relative; margin-top: 40px; min-height: clamp(280px, 50vw, 460px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.about-hero img, .about-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.about-hero .text { position: relative; padding: clamp(24px, 5vw, 40px); display: flex; flex-direction: column; gap: 10px; color: #fff; }
.about-hero h1 { font-weight: 300; font-size: clamp(44px, 6vw, 80px); }
@media (prefers-reduced-motion: reduce) { .about-hero video { display: none; } }

/* ---------- CV ---------- */
.cv-head { padding: clamp(48px, 7vw, 72px) 0 24px; scroll-margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.cv-cols { display: flex; flex-wrap: wrap; gap: 36px 48px; }
.cv-col { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.cv-sec { display: flex; flex-direction: column; gap: 12px; }
.cv-sec h2, .cv-sec h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.cv-item { display: flex; gap: 16px; font-size: 15px; line-height: 1.5; }
.cv-item span:first-child { width: 84px; flex-shrink: 0; color: var(--quiet); font-variant-numeric: tabular-nums; }

/* ---------- Contact form ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.fld { padding: 12px; min-height: 48px; border: 1px solid var(--ink); border-radius: 0; background: #fff; font: inherit; font-size: 16px; color: var(--ink); width: 100%; }
.fld:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.form .note { font-size: 14px; color: var(--quiet); }
.hp { position: absolute; left: -9999px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary:disabled:hover, .btn-primary:disabled:active { background-color: var(--green); }
.form-status { margin: 0; font-size: 14px; }
.form-status.ok { color: var(--green); font-weight: 600; }
.form-status.err { color: #8a3b34; }
.form-status.err a { color: inherit; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }

/* ---------- Teaching: weekly timetable + on-request list ---------- */
.tt { width: 100%; border-collapse: collapse; border-top: 2px solid var(--green); }
.tt th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.tt td { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; font-size: 15px; }
.tt td strong { display: block; font-size: 20px; font-weight: 500; }
.tt td span { display: block; color: var(--muted); margin-top: 4px; }
.t-day { font-weight: 600; width: 16%; }
.t-time { color: var(--quiet); width: 14%; font-variant-numeric: tabular-nums; }
.t-where { width: 24%; color: var(--muted); }
.req { display: grid; grid-template-columns: 200px 1fr; gap: 10px 32px; align-items: baseline; margin-top: 40px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.req b { grid-column: 1; grid-row: 1; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.req > .tx { grid-column: 1; grid-row: 2; padding: 0; align-self: start; }
.req > span { grid-column: 2; }
.req > span strong { font-weight: 500; }
@media (max-width: 700px) {
  .tt thead { display: none; }
  .tt tr { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .tt td { border: 0; padding: 2px 0; }
  .tt td:nth-child(3), .tt td:nth-child(4) { grid-column: 1 / -1; }
  .t-day, .t-time, .t-where { width: auto; }
  .req { grid-template-columns: 1fr; }
  .req b, .req > .tx, .req > span { grid-column: 1; grid-row: auto; }
  .req > .tx { margin-bottom: 8px; }
}

/* ---------- About: full-page looping video with the text on top ---------- */
.about-full { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-bottom: -96px; min-height: max(calc(100svh - 89px), 760px); overflow: hidden; background: #E9ECEA; display: flex; align-items: flex-end; }
.about-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-full::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.52) 55%, rgba(255, 255, 255, 0.1) 100%); }
.about-shade { position: absolute; inset: 0; }
.about-in { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(116px, 12vw, 140px) var(--gutter) clamp(48px, 8vw, 96px); color: var(--ink); }
.about-h { font-weight: 300; font-size: clamp(56px, 9vw, 120px); line-height: 0.95; }
.about-sub { margin-bottom: 8px; font-size: clamp(18px, 2vw, 22px); font-weight: 300; color: var(--muted); }
.about-p { font-size: 18px; line-height: 1.7; text-shadow: 0 0 12px rgba(255, 255, 255, 0.6); }
.btn-on-dark { background-color: transparent; color: #fff; border-color: #fff; }
.btn-on-dark:hover { background-color: rgba(255, 255, 255, 0.12); }
.btn-on-dark:active { background-color: rgba(255, 255, 255, 0.2); }
.btn-on-dark:focus-visible { outline-color: #fff; }
@media (max-width: 720px) { .about-shade { background: rgba(255, 255, 255, 0.28); } }
@media (prefers-reduced-motion: reduce) { .about-bg { display: none; } .about-full { background: #E9ECEA url(/media/studio-loop-poster.jpg) center / cover; } }
html, body { overflow-x: clip; }
.about-bg { z-index: 0; } .about-full::before, .about-shade { z-index: 1; } .about-in { z-index: 2; } .about-tabs { z-index: 3; }

/* ---------- Print (also used for the CV PDF) ---------- */
@media print {
  .site-header nav, .nav-toggle, .site-footer, .cv-head .btn, .skip { display: none !important; }
  .site-header { border: 0; }
  main { padding-bottom: 0; }
  .cv-col { flex-basis: 45%; }
}

/* ---------- Home hero lines and Kinesis heading ---------- */
.hero-roles { line-height: 1.35; text-wrap: balance; }
.hero-intro { text-wrap: balance; }
.nowrap { white-space: nowrap; }
@media (max-width: 600px) { .br-d { display: none; } }
.kin-pos { font-size: 20px; font-weight: 400; color: #8A7F75; white-space: nowrap; }
.kin-origin { font-size: 15px; color: #8A7F75; font-style: italic; }

/* ---------- Piece pages ---------- */
.facts > div { display: flex; flex-direction: column; gap: 4px; }
.piece-top.no-photo .facts { flex-basis: 100%; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.credits { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.6; }
[hidden] { display: none !important; }

/* ---------- About: Bio | CV toggle (same spot on both pages) ---------- */
.about-tabs { position: absolute; top: 40px; left: 0; right: 0; }
.cv-tabs { padding-top: 40px; }
.cv-tabs + .cv-head { padding-top: 8px; }
.subtabs { display: grid; grid-template-columns: 1fr 1fr; width: 220px; font-size: 20px; font-weight: 500; border-bottom: 1px solid rgba(30, 26, 23, 0.3); }
.subtabs a { padding: 10px 0; margin-bottom: -1px; color: #6B5E52; text-decoration: none; border-bottom: 3px solid transparent; transition: border-color 0.2s, color 0.2s; }
.subtabs a:hover { color: var(--ink); border-bottom-color: #B9C4BC; }
.subtabs a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--green); }
