/* Stefano Marinaz Project Site, Yamako-stijl */

:root {
  --ink: #4a4a4d;
  --ink2: #5a5a5d;
  --ink4: #6e6e72;
  --ink-soft: #9a9a9d;
  --geel: #f5e994;
  --geel-soft: #fbf3c4;
  --sage: #4f7a5e;
  --sage-soft: #e7eee9;
  --line: #ededea;
  --line-soft: #f4f4f1;
  --bg: #ffffff;
  --bg-soft: #fafaf7;

  --fh: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --fb: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --fl: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --fhw: 500;
  --radius: 10px;
  --radius-sm: 6px;

  --gap: 1.25rem;
  --pad: 1.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink2);
  font-family: var(--fb);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--ink);
}

/* Container */

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* Site header */

.site-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
  font-family: var(--fl);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
}

.site-head .brand {
  color: var(--ink);
  font-weight: 500;
}

.site-head .sub {
  color: var(--ink4);
}

/* Page title with highlight */

.page-title {
  font-family: var(--fh);
  font-weight: var(--fhw);
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.page-title .hl {
  background: linear-gradient(transparent 40%, var(--geel) 40%);
  padding: 0 0.1em;
  margin: 0 -0.1em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.page-status {
  font-family: var(--fl);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
  margin-bottom: 0.75rem;
}

.page-status .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: 1px;
}

.page-lead {
  font-size: 1.05rem;
  color: var(--ink2);
  max-width: 60ch;
  margin-bottom: 3rem;
}

/* Nav */

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
  font-family: var(--fl);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav a {
  color: var(--ink4);
  border-bottom: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.site-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Section heading */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.section-head:first-child {
  margin-top: 0;
}

.section-title {
  font-family: var(--fl);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.section-count {
  font-family: var(--fl);
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.section-empty {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 1.5rem 0;
}

/* Item card */

.item {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.item:last-child {
  border-bottom: none;
}

.item-body {
  min-width: 0;
}

.item-title {
  font-family: var(--fh);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.item-title a {
  color: var(--ink);
  border-bottom: none;
}

.item-title a:hover {
  border-bottom: 1px solid var(--ink);
}

.item-desc {
  color: var(--ink2);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.item-meta {
  font-family: var(--fl);
  font-size: 0.72rem;
  color: var(--ink4);
  letter-spacing: 0.03em;
}

.item-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  text-align: right;
  align-items: start;
  justify-items: end;
}

.item-side .status {
  justify-self: end;
}

.item-side .item-date {
  font-family: var(--fl);
  font-size: 0.72rem;
  color: var(--ink4);
  letter-spacing: 0.03em;
  line-height: 1;
}

.item-side .item-action {
  font-family: var(--fl);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  display: inline-block;
  justify-self: end;
}

.item-side .item-action:hover {
  color: var(--sage);
  border-bottom-color: var(--sage);
}

/* Status pills */

.status {
  display: inline-block;
  font-family: var(--fl);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
}

.status-nieuwste {
  background: var(--geel);
  color: var(--ink);
}

.status-briefing {
  background: var(--geel-soft);
  color: var(--ink);
}

.status-concept {
  background: var(--line-soft);
  color: var(--ink2);
}

.status-huidig {
  background: var(--sage-soft);
  color: var(--sage);
}

.status-vorige {
  background: transparent;
  color: var(--ink4);
  border: 1px solid var(--line);
}

/* Logboek timeline */

.kicker {
  font-family: var(--fl);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink4);
  margin: 0 0 0.6rem;
}

.log-list {
  position: relative;
  margin-top: 2.2rem;
  padding-left: 0.2rem;
}

.log-list::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.log-entry {
  position: relative;
  padding: 0 0 1.85rem 1.85rem;
}

.log-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--sage);
  box-sizing: border-box;
}

.log-date {
  font-family: var(--fb);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sage);
  margin: 0 0 0.4rem;
  font-style: italic;
}

.log-entry h3 {
  font-family: var(--fh);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.4rem;
  letter-spacing: -0.005em;
}

.log-entry p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink2);
  margin: 0;
  max-width: 60ch;
}

/* Phase sub-head, used within phase blocks (e.g. Quotes and invoicing) */

.phase-sub-head {
  font-family: var(--fl);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

/* Klant context card */

.context-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: grid;
  gap: 1.5rem;
}

.context-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.context-label {
  font-family: var(--fl);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
}

.quote-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.quote-list li {
  font-family: var(--fb);
  font-size: 0.95rem;
  color: var(--ink);
  font-style: italic;
  padding-left: 0.9rem;
  border-left: 2px solid var(--geel);
  line-height: 1.5;
}

.context-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.context-list li {
  color: var(--ink2);
  font-size: 0.93rem;
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.5;
}

.context-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

/* Seizoen tag, subtle inline label under item title */

.seizoen-tag {
  display: inline-block;
  font-family: var(--fl);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
  background: var(--line-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.55rem;
}

/* Seizoen timeline */

html {
  scroll-behavior: smooth;
}

.phase-card {
  scroll-margin-top: 1.5rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin: 1rem 0 3.5rem;
}

.timeline-wrap {
  position: relative;
  margin: 1rem 0 3.5rem;
}

.timeline-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fh);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 5;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.timeline-arrow:hover {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--ink4);
}

.timeline-arrow-left {
  left: -16px;
}

.timeline-arrow-right {
  right: -16px;
}

.timeline-scroll {
  display: flex;
  grid-template-columns: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 6px 1.5rem 6px;
  margin: 0;
  gap: 0.65rem;
}

.timeline-scroll::-webkit-scrollbar {
  height: 4px;
}

.timeline-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 2px;
}

.timeline-scroll .timeline-cell {
  flex: 0 0 200px;
  scroll-snap-align: start;
}

.timeline-scroll .timeline-cell {
  flex: 0 0 200px;
  scroll-snap-align: start;
}

a.timeline-cell {
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

a.timeline-cell:hover {
  background: var(--bg-soft);
  border-color: var(--ink4);
}

.timeline-cell-side {
  background: transparent;
  border-style: solid;
  border-color: var(--line);
}

.timeline-cell-side .timeline-season {
  color: var(--ink-soft);
}

.timeline-cell {
  background: var(--bg);
  border: 1px solid #d8d5cd;
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-cell-empty {
  background: var(--bg-soft);
  border-style: dashed;
}

.timeline-season {
  font-family: var(--fl);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
}

.timeline-phase {
  font-family: var(--fh);
  font-weight: 500;
  color: var(--ink);
  font-size: 1rem;
  border-bottom: none;
  display: inline-block;
  margin-bottom: 0.1rem;
}

a.timeline-phase {
  cursor: pointer;
}

a.timeline-phase:hover {
  border-bottom: 1px solid var(--ink);
}

.timeline-status-row {
  margin-top: auto;
}

.timeline-empty {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: auto;
}

.timeline-deadline {
  font-family: var(--fl);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  line-height: 1.4;
}

/* Summary tiles (only on dashboard top) */

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
  margin-bottom: 3rem;
  margin-top: 1rem;
}

.summary-tile {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-label {
  font-family: var(--fl);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
  margin-bottom: 0.4rem;
}

.summary-value {
  font-family: var(--fl);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* Detail page */

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--fl);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
}

.detail-meta .meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-meta .meta-label {
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.detail-meta .meta-val {
  color: var(--ink);
  font-size: 0.78rem;
}

.detail-block {
  margin-bottom: 2.5rem;
}

.detail-block-head {
  font-family: var(--fl);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.detail-list {
  list-style: none;
}

.detail-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1.25rem;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--ink2);
}

.detail-list li:last-child {
  border-bottom: none;
}

.detail-list li .li-label {
  min-width: 0;
}

.detail-list li .li-meta {
  font-family: var(--fl);
  font-size: 0.78rem;
  color: var(--ink4);
  text-align: right;
  white-space: nowrap;
}

.detail-list li .li-doel {
  font-family: var(--fl);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 0.35rem;
  white-space: normal;
}

/* Staat (deliverable state) */

.staat {
  display: inline-block;
  font-family: var(--fl);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.28rem 0.5rem;
  border-radius: 2px;
  margin-right: 0.75rem;
  vertical-align: 1px;
  white-space: nowrap;
  min-width: 140px;
  text-align: center;
  box-sizing: border-box;
}

.staat-planned {
  color: var(--ink4);
  background: transparent;
  border: 1px solid var(--line);
}

.staat-productie {
  color: #5a7a4f;
  background: #dfe9c8;
}

.staat-review {
  color: var(--ink);
  background: var(--geel);
}

.staat-opgeleverd {
  color: var(--sage);
  background: var(--sage-soft);
}

.staat-discussion {
  color: var(--ink2);
  background: transparent;
  border: 1px dashed var(--ink4);
}

.staat-onhold,
.staat-awaiting {
  color: #6a6280;
  background: #ecebf2;
}

/* Phase card wrapper, subtle distinction per project block */

.phase-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.phase-card .section-head {
  margin-top: 0;
  padding-top: 0;
}

.phase-card .section-head:first-child {
  margin-top: 0;
}

/* Attention summary, top of page */

.attention-card {
  background: var(--bg);
  border-left: 3px solid var(--geel);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0 2.5rem;
}

.attention-head {
  font-family: var(--fh);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 0.6rem;
  letter-spacing: -0.005em;
  line-height: 1.5;
}

.attention-head .hl-soft {
  background: linear-gradient(transparent 40%, var(--geel) 40%);
  padding: 0 0.15em;
  margin: 0 -0.05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.attention-lead {
  color: var(--ink2);
  font-size: 0.93rem;
  line-height: 1.6;
  max-width: 62ch;
  margin: 0;
}

.derived-list {
  list-style: none;
  margin-top: 0.75rem;
  padding: 0;
}

.derived-list li {
  padding: 0.3rem 0;
  color: var(--ink2);
  font-size: 0.92rem;
  line-height: 1.55;
  display: block;
  border-bottom: none;
}

.derived-list li strong {
  color: var(--ink);
  font-weight: 500;
}

.progressie {
  font-family: var(--fl);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink4);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.phase-status-note {
  background: var(--bg-soft);
  border-left: 2px solid var(--geel);
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  color: var(--ink2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0.5rem 0 1.25rem;
  line-height: 1.5;
}

.deliverables-list li {
  align-items: start;
}

/* Expandable row */

.row-expand {
  width: 100%;
}

.row-expand summary {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1.25rem;
  align-items: baseline;
  cursor: pointer;
  list-style: none;
  outline: none;
  padding-right: 1.25rem;
  position: relative;
}

.row-expand summary::-webkit-details-marker {
  display: none;
}

.row-expand summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--fh);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink4);
  transition: transform 0.18s ease, color 0.18s ease;
  line-height: 1;
}

.row-expand[open] summary::after {
  content: '−';
  color: var(--ink);
}

.row-expand summary:hover::after {
  color: var(--ink);
}

.row-expand-body {
  padding: 0.85rem 0 0.4rem;
  font-size: 0.92rem;
  color: var(--ink2);
  line-height: 1.65;
  max-width: 62ch;
}

.deliverables-list li:has(.row-expand) {
  display: block;
  padding: 0.6rem 0;
}

.detail-list li .li-meta.attention {
  color: var(--ink);
}

.detail-list li .li-meta.done {
  color: var(--sage);
}

/* Acties */

.action-list {
  list-style: none;
}

.action-list li {
  border-left: 2px solid var(--geel);
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 0.35rem 0;
  background: var(--geel-soft);
  color: var(--ink);
  font-size: 0.95rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Prose */

.prose {
  color: var(--ink2);
  font-size: 1rem;
  max-width: 60ch;
}

.prose p + p {
  margin-top: 0.8rem;
}

.subtle-prose {
  color: var(--ink4);
  font-size: 0.92rem;
  max-width: 60ch;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Tarieven table */

.tar {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--fl);
  font-size: 0.88rem;
  table-layout: fixed;
}

.tar td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink2);
  vertical-align: baseline;
}

.tar td:first-child {
  width: auto;
}

.tar td:last-child {
  text-align: right;
  color: var(--ink);
  width: 160px;
}

.tar tr:last-child td {
  border-bottom: none;
}

/* About blocks */

.about-block {
  margin-top: 2.5rem;
}

.about-head {
  font-family: var(--fl);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

/* Gallery */

.gallery-label {
  font-family: var(--fl);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
  margin: 1.75rem 0 0.6rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.gallery-thumb {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: var(--line-soft);
  cursor: pointer;
  border-radius: 4px;
  border: none;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  outline: none;
}

.gallery-thumb:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 22, 0.93);
  display: none;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2rem 4rem;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
  pointer-events: none;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  line-height: 1;
  z-index: 101;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-arrow-left { left: 1.5rem; }
.lightbox-arrow-right { right: 1.5rem; }

@media (max-width: 600px) {
  .lightbox {
    padding: 1rem;
  }
  .lightbox-arrow-left { left: 0.5rem; }
  .lightbox-arrow-right { right: 0.5rem; }
  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Note floating action button */

.note-fab {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--geel);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 50;
}

.note-fab:hover {
  transform: translateX(-50%) translateY(-2px);
}

.note-fab:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.note-fab-icon {
  font-family: var(--fh);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  margin-top: -2px;
}

/* Note modal */

.note-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
  padding: 1rem;
}

.note-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.note-modal-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2.1rem 2.25rem 1.85rem;
  width: 100%;
  max-width: 640px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

@media (max-width: 600px) {
  .note-modal {
    align-items: flex-end;
  }
  .note-modal-card {
    margin-bottom: 5rem;
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

.note-modal.open .note-modal-card {
  transform: translateY(0);
}

.note-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  font-family: var(--fh);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink4);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.note-close:hover {
  color: var(--ink);
}

.note-modal-head {
  font-family: var(--fh);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.note-lead {
  color: var(--ink2);
  font-size: 0.93rem;
  margin-bottom: 1rem;
  max-width: 60ch;
  line-height: 1.5;
}

.note-list {
  max-height: 340px;
  overflow-y: auto;
  margin: 1.25rem 0 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-bubble {
  margin-bottom: 1.35rem;
}

.note-bubble:last-child {
  margin-bottom: 0;
}

.note-bubble-date {
  font-family: var(--fl);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink4);
  margin-bottom: 0.45rem;
}

.note-bubble-text {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.note-empty {
  color: var(--ink-soft);
  font-size: 0.93rem;
  text-align: center;
  padding: 2rem 0;
  margin: 0;
}

.note-input-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.note-input-row .note-input {
  flex: 1;
  min-height: 4rem;
  padding: 0.95rem 1.1rem;
  font-size: 0.96rem;
}

.note-input-row .note-submit {
  align-self: stretch;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.note-status {
  margin-top: 0.85rem;
}

.note-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--fb);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.5;
  resize: vertical;
  min-height: 6rem;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.note-input:focus {
  outline: none;
  border-color: var(--ink4);
}

.note-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.note-status {
  font-family: var(--fl);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink4);
}

.note-submit {
  font-family: var(--fl);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--geel);
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.note-submit:hover {
  background: var(--geel-soft);
}

/* Footer */

.site-foot {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--fl);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile */

@media (max-width: 600px) {
  .wrap {
    padding: 1.5rem 1.1rem 3.5rem;
  }

  .page-title {
    font-size: 1.55rem;
  }

  .item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.1rem 0;
  }

  .item-side {
    text-align: left;
    grid-template-columns: auto auto auto;
    gap: 0.75rem;
    align-items: center;
    justify-content: start;
  }

  .item-side .status {
    justify-self: start;
  }

  .item-side .item-action {
    justify-self: start;
  }

  .summary {
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline-cell {
    min-height: auto;
  }

  .site-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .detail-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .detail-list li .li-meta {
    text-align: left;
  }

  .row-expand summary {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-right: 1.75rem;
  }

  .row-expand summary .li-meta {
    text-align: left;
    font-size: 0.72rem;
    color: var(--ink4);
    white-space: normal;
  }

  .row-expand summary::after {
    top: 0.1rem;
  }

  .row-expand-body {
    font-size: 0.88rem;
    padding-top: 0.65rem;
  }

  .staat {
    min-width: 0;
    padding: 0.22rem 0.55rem;
    font-size: 0.58rem;
    margin-right: 0;
    margin-bottom: 0.15rem;
  }

  .li-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .li-label a,
  .li-label span:not(.staat) {
    line-height: 1.35;
  }

  .li-doel {
    margin-top: 0.2rem;
  }

  .phase-card {
    padding: 1.25rem 1rem;
  }

  .attention-card {
    padding: 1rem 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
  }

  .attention-head {
    font-size: 1rem;
  }

  .attention-lead {
    font-size: 0.88rem;
  }

  .section-title {
    font-size: 0.68rem;
  }

  .phase-status-note {
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
  }

  .phase-sub-head {
    font-size: 0.62rem;
    margin-top: 1.5rem;
  }

  .progressie {
    font-size: 0.62rem;
  }

  .timeline-deadline {
    font-size: 0.58rem;
  }

  .timeline-scroll .timeline-cell {
    flex: 0 0 180px;
  }

  .gallery {
    gap: 0.35rem;
  }

  .gallery-label {
    margin-top: 1.25rem;
  }

  .note-modal-card {
    padding: 1.5rem 1.1rem 1.25rem;
  }

  .note-modal-head {
    font-size: 1rem;
  }

  .note-list {
    max-height: 220px;
  }

  .note-bubble-text {
    font-size: 0.9rem;
  }

  .log-entry h3 {
    font-size: 0.95rem;
  }

  .log-entry p {
    font-size: 0.88rem;
  }
}

@media (max-width: 393px) {
  .wrap {
    padding: 1.2rem 1rem 3rem;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .attention-head {
    font-size: 0.95rem;
  }

  .timeline-scroll .timeline-cell {
    flex: 0 0 170px;
  }

  .gallery {
    gap: 0.3rem;
  }

  .phase-card {
    padding: 1.15rem 0.85rem;
  }
}
