/* ClickConnect public site — "Site Diary" design system.
   Files load in natural order (1-base, 2-chrome, 3-home, ...); all classes are cc- prefixed.
   Palette follows the logo: sky #12b4f2 → royal #0b4fd8, on warm paper with near-black ink. */

:root {
    --paper: #f2eee6;
    --paper-deep: #e8e2d5;
    --card: #ffffff;
    --ink: #16150f;
    --text: #3a372f;
    --muted: #6b6557;
    --rule: #d3ccbc;
    --rule-soft: #e3ddcf;
    --blue: #0b4fd8;
    --blue-hover: #083fae;
    --sky: #12b4f2;
    --sky-tint: #bfe9fb;
    --grad: linear-gradient(90deg, #12b4f2, #0b4fd8);
    --tape: rgba(226, 214, 184, .88);
    --danger: #b42318;

    --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --f-hand: "Caveat", "Segoe Print", cursive;

    --wrap: 1240px;
    --gutter: 40px;
    --print-shadow: 0 1px 0 var(--rule), 0 14px 32px -20px rgba(22, 21, 15, .5);
}

/* ---------- Base ---------- */
.cc-body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 400 17px/1.6 var(--f-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.cc-body *, .cc-body *::before, .cc-body *::after { box-sizing: border-box; }
/* height:auto lets aspect-ratio win over the width/height attributes (kept to avoid layout shift) */
:where(.cc-body) img { max-width: 100%; height: auto; display: block; }
:where(.cc-body) a { color: inherit; text-decoration: none; }
.cc-body [hidden] { display: none !important; } /* components set display, which would override [hidden] */
.cc-body :focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.cc-body ::selection { background: var(--sky-tint); color: var(--ink); }
.cc-noscroll { overflow: hidden; }

.cc-skip {
    position: absolute; left: 16px; top: -60px; z-index: 300;
    background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 700;
}
.cc-skip:focus { top: 12px; }
.cc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.cc-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.cc-section { padding: 88px 0; }
.cc-section--tight { padding: 56px 0; }
.cc-rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.cc-section + .cc-section:not(.cc-section--ink) { border-top: 1px solid var(--rule); }
.cc-section--ink { background: var(--ink); color: #b9b2a2; }

/* ---------- Type ---------- */
.cc-kicker {
    margin: 0 0 22px; font: 500 12px/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.cc-mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.cc-h1, .cc-h2, .cc-display {
    margin: 0; color: var(--ink); font-weight: 900; text-transform: uppercase;
    font-stretch: 72%; line-height: .9; letter-spacing: -.005em; text-wrap: balance;
}
.cc-h1 { font-size: clamp(56px, 8.2vw, 112px); }
.cc-h2 { font-size: clamp(38px, 4.6vw, 56px); font-stretch: 75%; line-height: .95; }
.cc-h3 { margin: 0; color: var(--ink); font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.cc-lead { margin: 26px 0 0; max-width: 620px; font-size: 21px; line-height: 1.45; color: var(--ink); }
.cc-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }

/* Highlighter pen behind a phrase */
.cc-mark {
    background: linear-gradient(transparent 56%, var(--sky-tint) 56%, var(--sky-tint) 94%, transparent 94%);
    padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* Handwritten note in blue pen */
.cc-hand { font-family: var(--f-hand); font-weight: 600; font-size: 28px; line-height: 1.05; color: var(--blue); }

/* ---------- Links & buttons ---------- */
.cc-link {
    font-weight: 700; color: var(--ink); border-bottom: 2px solid currentColor; padding-bottom: 1px;
    transition: color .15s;
}
.cc-link:hover { color: var(--blue); }
.cc-link--mono { font: 600 13px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; border-bottom-width: 1px; }

.cc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 24px; border: 2px solid transparent; border-radius: 0;
    font: 700 16px/1 var(--f-sans); cursor: pointer; white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s;
}
.cc-btn svg { flex: none; }
.cc-btn--primary { background: var(--blue); color: #fff; }
.cc-btn--primary:hover { background: var(--blue-hover); color: #fff; }
.cc-btn--ink { background: var(--ink); color: var(--paper); }
.cc-btn--ink:hover { background: #2d2b23; color: #fff; }
.cc-btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.cc-btn--line:hover { background: var(--ink); color: var(--paper); }
.cc-btn--light { background: #fff; color: var(--blue); }
.cc-btn--light:hover { background: var(--sky-tint); color: var(--blue-hover); }
.cc-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.cc-btn--outline-light:hover { background: #fff; color: var(--ink); }
.cc-btn--sky { background: var(--sky); color: var(--ink); }
.cc-btn--sky:hover { background: #4cc7f5; color: var(--ink); }
.cc-btn--block { width: 100%; }
.cc-btn[disabled], .cc-btn.is-loading { opacity: .6; pointer-events: none; }

/* ---------- Photo prints, tape and placeholders ---------- */
.cc-print { position: relative; background: #fff; padding: 10px 10px 12px; box-shadow: var(--print-shadow); }
.cc-print > img, .cc-print > .cc-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-deep); }
.cc-print__cap {
    display: flex; justify-content: space-between; gap: 12px; margin-top: 10px;
    font: 500 11px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.cc-print__cap span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-tilt-l { transform: rotate(-1.2deg); }
.cc-tilt-r { transform: rotate(1.4deg); }
.cc-tape {
    position: absolute; z-index: 2; width: 110px; height: 30px; background: var(--tape);
    box-shadow: 0 1px 2px rgba(22, 21, 15, .1); pointer-events: none;
}
.cc-ph {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 120px;
    background: var(--paper-deep); color: var(--muted);
    font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 12px;
}

/* ---------- Tape-measure progress ---------- */
.cc-scale {
    position: relative; display: block; height: 22px; width: 100%;
    border-bottom: 1px solid var(--ink);
    background:
        repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10%) bottom / 100% 7px no-repeat,
        repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50%) bottom / 100% 13px no-repeat;
}
.cc-scale > span {
    position: absolute; left: 0; top: 2px; height: 8px; min-width: 2px;
    background: var(--grad); border: 1px solid var(--ink);
}
.cc-scale--sm { height: 16px; }
.cc-scale--sm > span { height: 6px; }
.cc-scale--light { border-color: #f2eee6; background:
        repeating-linear-gradient(90deg, #f2eee6 0 1px, transparent 1px 10%) bottom / 100% 6px no-repeat,
        repeating-linear-gradient(90deg, #f2eee6 0 1px, transparent 1px 50%) bottom / 100% 11px no-repeat; }
.cc-scale--light > span { border-color: #f2eee6; }
.cc-progress { display: flex; align-items: center; gap: 14px; }
.cc-progress .cc-scale { flex: 1; }
.cc-progress__pct { font: 600 14px var(--f-mono); color: var(--ink); min-width: 42px; text-align: right; }

/* ---------- Text tabs (filters, phase switcher) ---------- */
.cc-tabs { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.cc-tabs a {
    display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0;
    font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; text-transform: capitalize;
    transition: color .15s, border-color .15s;
}
.cc-tabs a:hover { color: var(--ink); }
.cc-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--sky); }
.cc-tabs a span { font: 500 12px var(--f-mono); }

/* ---------- Ledger table ---------- */
.cc-ledger { width: 100%; border-collapse: collapse; }
.cc-ledger th, .cc-ledger td { padding: 18px 12px; border-top: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.cc-ledger th {
    padding-top: 14px; padding-bottom: 14px; border-top: 2px solid var(--ink);
    font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.cc-ledger tbody tr { transition: background-color .15s; }
.cc-ledger tbody tr:hover { background: rgba(255, 255, 255, .55); }

/* ---------- Empty state ---------- */
.cc-empty { padding: 48px 24px; border: 1.5px dashed var(--rule); text-align: center; color: var(--muted); }
.cc-empty .cc-hand { display: block; margin-bottom: 8px; }

@media (max-width: 760px) {
    :root { --gutter: 16px; }
    .cc-section { padding: 64px 0; }
    .cc-section--tight { padding: 40px 0; }
    .cc-lead { font-size: 18px; }
    .cc-ledger th, .cc-ledger td { padding: 14px 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-body *, .cc-body *::before, .cc-body *::after { transition: none !important; animation: none !important; }
}

/* Header, Projects dropdown, mobile menu and footer */

/* ---------- Header ---------- */
.cc-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(242, 238, 230, .94); border-bottom: 1px solid var(--rule);
    -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
    transition: box-shadow .2s;
}
.cc-header.is-scrolled { box-shadow: 0 12px 30px -26px rgba(22, 21, 15, .7); }
.cc-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 84px; }

.cc-brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--ink); }
.cc-brand img { width: 38px; height: 38px; object-fit: contain; }
.cc-brand__name { font-weight: 800; font-size: 23px; font-stretch: 90%; letter-spacing: -.02em; color: var(--ink); }

.cc-nav { align-self: stretch; }
.cc-nav > ul { display: flex; gap: 34px; height: 100%; list-style: none; margin: 0; padding: 0; }
.cc-nav > ul > li { display: flex; align-items: center; }
.cc-nav > ul > li > a {
    display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0;
    font-weight: 600; font-size: 16px; color: var(--ink); border-bottom: 2px solid transparent;
    transition: border-color .15s, color .15s;
}
.cc-nav > ul > li > a:hover { border-bottom-color: var(--rule); }
.cc-nav > ul > li > a[aria-current="page"] { border-bottom-color: var(--ink); }
.cc-nav__live { font: 500 12px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }

.cc-header__actions { display: flex; align-items: center; gap: 24px; flex: none; }
.cc-header__tel { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--f-mono); letter-spacing: .06em; color: var(--ink); white-space: nowrap; }
.cc-header__tel:hover { color: var(--blue); }
.cc-header__quote { min-height: 46px; }
.cc-menu-toggle {
    display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
    font: 600 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Projects dropdown (hover or keyboard focus; the link still goes to /projects) ---------- */
.cc-nav__dropdown { position: static; }
.cc-mega {
    position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px);
    width: min(1160px, calc(100vw - 48px)); display: grid; grid-template-columns: 260px minmax(0, 1fr);
    background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--ink);
    box-shadow: 0 30px 60px -30px rgba(22, 21, 15, .55);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s, visibility .15s;
}
.cc-nav__dropdown:hover .cc-mega, .cc-nav__dropdown:focus-within .cc-mega {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.cc-nav__dropdown.is-closed .cc-mega { opacity: 0; visibility: hidden; pointer-events: none; }
.cc-nav__dropdown:hover > a, .cc-nav__dropdown:focus-within > a { border-bottom-color: var(--ink); }
.cc-mega__label { margin: 0 0 14px; font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc-mega__browse { padding: 28px; border-right: 1px solid var(--rule-soft); background: var(--paper); }
.cc-mega__browse a {
    display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0;
    border-bottom: 1px solid var(--rule); font-weight: 700; color: var(--ink);
}
.cc-mega__browse a:hover { color: var(--blue); }
.cc-mega__browse a span { font: 500 12px var(--f-mono); color: var(--muted); }
.cc-mega__live { padding: 28px 32px; }
.cc-mega__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cc-mega__row {
    display: grid; grid-template-columns: 72px minmax(0, 1fr) 180px 48px; gap: 18px; align-items: center;
    padding: 12px 0; border-top: 1px solid var(--rule-soft); color: var(--text);
}
.cc-mega__row:hover .cc-mega__title { color: var(--blue); }
.cc-mega__row img, .cc-mega__row .cc-ph { width: 72px; height: 54px; min-height: 0; object-fit: cover; padding: 0; }
.cc-mega__title { display: block; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.cc-mega__meta { display: block; margin-top: 2px; font: 500 11px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cc-mega__pct { font: 600 13px var(--f-mono); color: var(--ink); text-align: right; }
.cc-mega__empty { margin: 0; color: var(--muted); }

/* ---------- Mobile menu ---------- */
.cc-drawer {
    position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; overflow-y: auto;
    background: var(--ink); color: #b9b2a2;
}
.cc-drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 var(--gutter); border-bottom: 1px solid #34322a; }
.cc-drawer .cc-brand__name { color: var(--paper); font-size: 19px; }
.cc-drawer .cc-brand img { width: 32px; height: 32px; background: var(--paper); padding: 3px; }
.cc-drawer__close {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    border: 1.5px solid var(--paper); background: transparent; color: var(--paper); cursor: pointer;
    font: 600 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}
.cc-drawer__nav { padding: 8px var(--gutter) 0; }
.cc-drawer__nav a {
    display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid #34322a;
    font-weight: 900; font-stretch: 72%; font-size: 52px; line-height: 1; text-transform: uppercase; color: var(--paper);
}
.cc-drawer__nav a[aria-current="page"] { color: var(--sky); }
.cc-drawer__nav a small { font: 500 11px var(--f-mono); letter-spacing: .06em; color: #8b8474; }
.cc-drawer__nav a small.is-live { color: var(--sky); }
.cc-drawer__live { padding: 26px var(--gutter) 8px; }
.cc-drawer__live .cc-mega__label { color: #8b8474; }
.cc-drawer__project { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 0; color: var(--paper); }
.cc-drawer__project img, .cc-drawer__project .cc-ph { width: 64px; height: 64px; min-height: 0; object-fit: cover; padding: 0; background: #34322a; }
.cc-drawer__project strong { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-drawer__project .cc-mega__meta { color: #8b8474; }
.cc-drawer__actions { margin-top: auto; padding: 16px var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 1px solid #34322a; }
.cc-drawer__actions .cc-btn--sky, .cc-drawer__wide { grid-column: 1 / -1; }
.cc-drawer__tagline { padding: 0 var(--gutter) 18px; text-align: center; color: var(--sky); font-size: 24px; }

@media (max-width: 1100px) {
    .cc-header__tel span { display: none; }
    .cc-nav > ul { gap: 26px; }
}
@media (max-width: 920px) {
    .cc-nav, .cc-header__tel, .cc-header__quote { display: none !important; }
    .cc-menu-toggle { display: inline-flex; }
    .cc-header__inner { min-height: 64px; }
    .cc-brand img { width: 32px; height: 32px; }
    .cc-brand__name { font-size: 20px; }
}
@media (min-width: 921px) {
    .cc-drawer { display: none !important; }
}

/* ---------- Footer ---------- */
.cc-footer { background: var(--ink); color: #b9b2a2; padding: 72px 0 28px; font-size: 15px; }
.cc-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr; gap: 40px; }
.cc-footer__logo { display: inline-flex; align-items: center; gap: 14px; }
.cc-footer__logo img { width: 56px; height: 56px; padding: 6px; background: var(--paper); object-fit: contain; flex: none; }
.cc-footer__brand { display: block; font-weight: 900; font-stretch: 80%; font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--paper); }
.cc-footer__tagline { display: block; margin-top: 4px; font-size: 28px; color: var(--sky); }
.cc-footer__about { margin: 20px 0 0; max-width: 320px; }
.cc-footer h2 { margin: 0 0 14px; font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.cc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cc-footer a, .cc-footer li { color: var(--paper); }
.cc-footer a:hover { color: var(--sky); }
.cc-footer__muted { font: 500 12px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: #8b8474 !important; }
.cc-socials { display: flex; gap: 10px; margin-top: 22px; }
.cc-socials a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #4a473d; color: var(--paper); }
.cc-socials a:hover { border-color: var(--sky); color: var(--sky); }
.cc-footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    margin-top: 56px; padding-top: 22px; border-top: 1px solid #34322a;
    font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #8b8474;
}

@media (max-width: 960px) { .cc-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cc-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .cc-footer { padding-top: 56px; } }

/* Home: hero, tally sentence, on-site log, film strip, steps, site notice */

/* ---------- Hero ---------- */
.cc-hero { padding: 72px 0 104px; border-bottom: 1px solid var(--rule); }
.cc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 72px; align-items: start; }
.cc-hero__title { font-size: clamp(64px, 9.2vw, 124px); }
.cc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 40px; }

.cc-hero__photos { position: relative; padding: 18px 8px 64px 0; }
.cc-hero__main { margin: 0; }
.cc-hero__tape-l { top: 2px; left: -16px; transform: rotate(-24deg); }
.cc-hero__tape-r { top: 4px; right: -14px; transform: rotate(28deg); }
.cc-hero__second { position: absolute; left: -64px; top: 30%; width: 36%; margin: 0; transform: rotate(-4deg); }
.cc-hero__second > img { aspect-ratio: 1; }
.cc-hero__note { position: absolute; right: 4px; bottom: 6px; margin: 0; max-width: 54%; text-align: right; transform: rotate(-3deg); }

/* ---------- Numbers as a sentence ---------- */
.cc-tally { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.cc-tally p { margin: 0; max-width: 1100px; font-size: clamp(26px, 3.3vw, 40px); line-height: 1.25; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.cc-tally b { font-weight: 900; }

/* ---------- On-site log ---------- */
.cc-log { border-top: 2px solid var(--ink); }
.cc-log__head, .cc-log__row {
    display: grid; align-items: center; gap: 16px;
    grid-template-columns: 48px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr) minmax(160px, 1.2fr) 176px;
}
.cc-log__head { padding: 14px 12px; font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc-log__head span:last-child { text-align: right; }
.cc-log__row { padding: 16px 12px; border-top: 1px solid var(--rule); color: var(--text); transition: background-color .15s; }
.cc-log__row:hover { background: rgba(255, 255, 255, .6); }
.cc-log__row:hover .cc-log__title { color: var(--blue); }
.cc-log__n { font: 500 14px var(--f-mono); color: var(--muted); }
.cc-log__title { font-weight: 800; font-size: 20px; line-height: 1.25; color: var(--ink); transition: color .15s; }
.cc-log__now { font-weight: 600; color: var(--ink); text-transform: capitalize; }
.cc-log__photo { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--muted); white-space: nowrap; }
.cc-log__photo img, .cc-log__photo .cc-ph { width: 72px; height: 54px; min-height: 0; object-fit: cover; padding: 0; flex: none; }

/* ---------- Film strip ---------- */
.cc-h2--light { color: var(--paper); }
.cc-film__roll { color: var(--sky); }
.cc-film {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
    padding: 30px 4px; background-color: #050505;
    background-image:
        repeating-linear-gradient(90deg, transparent 0 12px, #2e2c25 12px 26px),
        repeating-linear-gradient(90deg, transparent 0 12px, #2e2c25 12px 26px);
    background-size: 100% 10px; background-position: 0 10px, 0 calc(100% - 10px); background-repeat: no-repeat;
}
.cc-film__frame { display: block; color: var(--sky); }
.cc-film__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: filter .2s; }
.cc-film__frame:hover img { filter: brightness(1.12); }
.cc-film__cap {
    display: flex; justify-content: space-between; gap: 10px; padding: 8px 4px 0;
    font: 500 11px var(--f-mono); letter-spacing: .05em; text-transform: uppercase;
}
.cc-film__cap span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Steps ---------- */
.cc-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.cc-steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.cc-steps__n { display: block; margin-bottom: 14px; font-weight: 900; font-stretch: 72%; font-size: 44px; line-height: 1; color: var(--blue); }
.cc-steps p { margin: 8px 0 0; }

/* ---------- Site notice (call to action) ---------- */
.cc-notice {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px;
    padding: 52px 56px; background: var(--blue); color: #fff;
}
.cc-notice__kicker { margin: 0 0 12px; font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sky-tint); }
.cc-notice__title { color: #fff; font-size: clamp(48px, 6vw, 76px); }
.cc-notice__actions { display: grid; gap: 12px; min-width: 260px; }

@media (max-width: 1080px) {
    .cc-log__head, .cc-log__row { grid-template-columns: 40px minmax(0, 1.5fr) minmax(0, .9fr) minmax(150px, 1.2fr) 96px; }
    .cc-log__where, .cc-log__head span:nth-child(3) { display: none; }
    .cc-log__photo .cc-mono { display: none; }
}
@media (max-width: 960px) {
    .cc-hero { padding: 48px 0 72px; }
    .cc-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .cc-hero__photos { max-width: 560px; }
    .cc-hero__second { left: -6px; width: 38%; }
    .cc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .cc-log__head { display: none; }
    .cc-log__row {
        grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 14px; padding: 16px 0;
        grid-template-areas: "photo title title" "photo now now" "photo progress progress";
    }
    .cc-log__n { display: none; }
    .cc-log__photo { grid-area: photo; justify-content: flex-start; align-self: start; }
    .cc-log__photo img, .cc-log__photo .cc-ph { width: 72px; height: 72px; }
    .cc-log__title { grid-area: title; font-size: 18px; }
    .cc-log__now { grid-area: now; font: 500 12px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
    .cc-log__progress { grid-area: progress; }
    .cc-log__progress .cc-scale { height: 16px; }
    .cc-log__progress .cc-scale > span { height: 6px; }

    .cc-film { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); }
    .cc-film__frame { flex: 0 0 72%; scroll-snap-align: start; }
    .cc-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .cc-notice { padding: 36px 24px; }
    .cc-notice__actions { min-width: 0; width: 100%; }
    .cc-hero__tape-l { left: -6px; }
    .cc-hero__tape-r { right: -6px; }
}

/* Projects register: page head, filters, featured entry, project cards */

.cc-page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--rule); }
.cc-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 48px; }
.cc-search { display: flex; align-items: center; gap: 12px; width: min(360px, 100%); border-bottom: 2px solid var(--ink); }
.cc-search input {
    flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink);
    font: 400 17px var(--f-sans);
}
.cc-search input::placeholder { color: var(--muted); font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.cc-search:focus-within { border-bottom-color: var(--blue); }
.cc-search button {
    border: 0; background: transparent; cursor: pointer; padding: 10px 0; color: var(--ink);
    font: 600 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.cc-search button:hover { color: var(--blue); }

/* ---------- Featured (most recent entry) ---------- */
.cc-featured__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
.cc-featured__photo { position: relative; display: block; }
.cc-featured__photo .cc-print > img { aspect-ratio: 16 / 10; }
.cc-featured__tape { top: -12px; left: 42%; transform: rotate(-3deg); }
.cc-kicker--live { display: flex; align-items: center; gap: 10px; color: var(--blue); margin-bottom: 14px; }
.cc-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(11, 79, 216, .15); }
.cc-featured__title { font-size: clamp(44px, 5.2vw, 68px); }
.cc-featured__title a:hover { color: var(--blue); }
.cc-featured__meta { margin: 14px 0 0; color: var(--muted); }
.cc-featured__overall { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 4px; font-weight: 700; color: var(--ink); }
.cc-featured__overall strong { font-weight: 900; font-stretch: 75%; font-size: 48px; line-height: 1; }
.cc-checklist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; color: var(--ink); }
.cc-checklist li { display: flex; align-items: baseline; gap: 12px; }
.cc-checklist__mark { width: 18px; flex: none; font: 600 14px var(--f-mono); text-align: center; }
.cc-checklist .is-now { font-weight: 800; }
.cc-checklist .is-now .cc-checklist__mark { color: var(--blue); }
.cc-checklist .is-next { color: var(--muted); }
.cc-featured__cta { margin-top: 34px; }

/* ---------- Project cards ---------- */
.cc-pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.cc-pcard { display: flex; flex-direction: column; color: var(--text); }
.cc-pcard__photo { display: block; transition: transform .2s; }
.cc-pcard__photo > img, .cc-pcard__photo > .cc-ph { aspect-ratio: 4 / 3; }
.cc-pcard:hover .cc-pcard__photo { transform: rotate(-.8deg); }
.cc-pcard:hover .cc-pcard__title { color: var(--blue); }
.cc-pcard__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--muted); }
.cc-pcard__meta span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-pcard__title { margin-top: 6px; font-weight: 800; font-size: 25px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); transition: color .15s; }
.cc-pcard__now { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 4px; font-weight: 600; color: var(--ink); }
.cc-pcard__now .cc-mono { font-size: 14px; }
.cc-pcard__foot { margin-top: 12px; color: var(--muted); }
.cc-more { display: flex; justify-content: center; margin-top: 56px; }
.cc-more .cc-link { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font: 700 17px var(--f-sans); }
.cc-more .cc-link.is-loading { opacity: .5; pointer-events: none; }

@media (max-width: 1080px) { .cc-pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
    .cc-featured__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .cc-featured__photo { max-width: 640px; }
}
@media (max-width: 640px) {
    .cc-page-head { padding: 44px 0 28px; }
    .cc-toolbar { margin-top: 32px; }
    .cc-search { width: 100%; }
    .cc-pcards { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Project page: head and site notice, programme chart, site diary, lightbox */

.cc-project { padding: 28px 0 88px; }
.cc-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cc-crumbs a:hover { color: var(--blue); }
.cc-crumbs [aria-current] { color: var(--ink); }
.cc-project__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.cc-project__title { font-size: clamp(52px, 7vw, 96px); }
.cc-project__meta { margin: 18px 0 0; color: var(--muted); }
.cc-project__cover { margin: 36px 0 0; transform: rotate(-.5deg); }
.cc-project__cover > img, .cc-project__cover > .cc-ph { aspect-ratio: 16 / 9; }
.cc-project__about { margin-top: 40px; max-width: 720px; color: var(--text); }
.cc-prose { font-size: 17px; line-height: 1.7; }
.cc-prose > :first-child { margin-top: 0; }
.cc-prose p, .cc-prose ul, .cc-prose ol { margin: 0 0 16px; }
.cc-prose h1, .cc-prose h2, .cc-prose h3 { margin: 28px 0 10px; color: var(--ink); font-weight: 800; font-size: 22px; line-height: 1.25; }
.cc-prose a { color: var(--blue); border-bottom: 1px solid currentColor; }
.cc-prose blockquote { margin: 20px 0; padding-left: 18px; border-left: 3px solid var(--sky); color: var(--ink); }

/* Site notice board */
.cc-board {
    position: sticky; top: 108px; margin-top: 24px; padding: 28px 28px 30px;
    background: var(--card); border-top: 8px solid var(--sky); box-shadow: var(--print-shadow);
}
.cc-board__kicker { margin: 0 0 6px; font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc-board__overall { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; font-weight: 700; font-size: 18px; color: var(--ink); }
.cc-board__overall strong { font-weight: 900; font-stretch: 72%; font-size: 68px; line-height: 1; }
.cc-board__facts { margin: 22px 0 24px; }
.cc-board__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule-soft); }
.cc-board__facts dt { font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc-board__facts dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.cc-board__note { margin: 20px 0 0; text-align: center; font-size: 27px; transform: rotate(-1.5deg); }

/* ---------- Programme (phases on a month scale) ---------- */
.cc-programme { border-bottom: 1px solid var(--rule); }
.cc-programme__scale, .cc-programme__row {
    display: grid; align-items: center; gap: 16px;
    grid-template-columns: 32px minmax(180px, 250px) minmax(0, 1fr) 56px;
}
.cc-programme--list .cc-programme__row { grid-template-columns: 32px minmax(0, 1fr) 56px; }
.cc-programme__scale { padding-bottom: 10px; }
.cc-programme__months { position: relative; height: 16px; }
.cc-programme__months span { position: absolute; top: 0; font: 500 11px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cc-programme__row { padding: 14px 0; border-top: 1px solid var(--rule); color: var(--text); transition: background-color .15s; }
.cc-programme__row:hover { background: rgba(255, 255, 255, .55); }
.cc-programme__row[aria-current] { background: rgba(18, 180, 242, .1); box-shadow: inset 3px 0 0 var(--sky); }
.cc-programme__mark { padding-left: 10px; font: 600 14px var(--f-mono); color: var(--ink); }
.is-in-progress .cc-programme__mark { color: var(--blue); }
.is-delayed .cc-programme__mark { color: var(--danger); }
.is-upcoming .cc-programme__mark { color: var(--muted); }
.cc-programme__name strong { display: block; font-weight: 700; color: var(--ink); text-transform: capitalize; }
.cc-programme__name .cc-mono { font-size: 11px; color: var(--muted); }
.cc-programme__track { position: relative; height: 22px; }
.cc-programme__bar { position: absolute; top: 0; bottom: 0; border: 1.5px solid var(--ink); background: transparent; overflow: hidden; }
.cc-programme__bar > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad); }
.is-done .cc-programme__bar { background: var(--ink); }
.is-done .cc-programme__bar > span { display: none; }
.is-upcoming .cc-programme__bar { border-style: dashed; border-color: var(--muted); }
.is-delayed .cc-programme__bar { border-color: var(--danger); }
.cc-programme__today { position: absolute; top: -15px; bottom: -15px; width: 2px; margin-left: -1px; background: var(--blue); }
.cc-programme__pct { font: 600 14px var(--f-mono); color: var(--ink); text-align: right; }
.cc-programme__legend { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.cc-programme__legend span { width: 2px; height: 14px; background: var(--blue); }
.cc-programme__hint { margin: 14px 0 0; color: var(--muted); }

/* ---------- Site diary ---------- */
.cc-diary { scroll-margin-top: 100px; }
.cc-diary__head { align-items: flex-end; }
.cc-diary__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 14px 0; border-top: 2px solid var(--ink); }
.cc-diary__title { font-weight: 800; font-size: 20px; color: var(--ink); text-transform: capitalize; }
.cc-diary__count { color: var(--muted); }
.cc-diary__desc { margin: 0 0 8px; max-width: 760px; }
.cc-diary.is-loading .cc-diary__days { opacity: .4; transition: opacity .2s; }
.cc-day { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--rule); }
.cc-day__date { margin: 0; font-weight: 900; font-stretch: 72%; font-size: 54px; line-height: .95; text-transform: uppercase; color: var(--ink); }
.cc-day__meta { margin: 10px 0 0; color: var(--muted); }
.cc-day__note { margin: 14px 0 0; font-size: 25px; transform: rotate(-2deg); transform-origin: left; }
.cc-media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-content: start; }
.cc-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-deep); }
.cc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cc-media:hover img { transform: scale(1.04); }
.cc-media__video { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--ink); color: #b9b2a2; font: 500 12px var(--f-mono); text-transform: uppercase; }
.cc-media__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cc-media__play > span { width: 48px; height: 48px; border-radius: 50%; background: rgba(22, 21, 15, .82); display: flex; align-items: center; justify-content: center; }
.cc-media__tag {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff;
    font: 500 10px var(--f-mono); letter-spacing: .05em; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Lightbox ---------- */
.cc-lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; }
.cc-lightbox::backdrop { background: rgba(10, 10, 8, .94); }
.cc-lightbox__stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 80px; }
.cc-lightbox__stage img, .cc-lightbox__stage video { max-width: 100%; max-height: calc(100vh - 150px); background: #fff; padding: 8px; }
.cc-lightbox__caption { margin: 16px 0 0; color: var(--paper); text-align: center; font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.cc-lightbox__btn {
    position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 1.5px solid rgba(242, 238, 230, .6); background: transparent; color: var(--paper); cursor: pointer;
}
.cc-lightbox__btn:hover { background: var(--paper); color: var(--ink); }
.cc-lightbox__close { top: 16px; right: 16px; }
.cc-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.cc-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1080px) {
    .cc-project__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
    .cc-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .cc-project__grid { grid-template-columns: minmax(0, 1fr); }
    .cc-project__grid { gap: 32px; }
    .cc-board { position: static; max-width: 520px; margin-top: 0; }
    .cc-programme__scale, .cc-programme__row { grid-template-columns: 28px minmax(140px, 200px) minmax(0, 1fr) 48px; gap: 12px; }
}
@media (max-width: 760px) {
    .cc-programme__scale { display: none; }
    .cc-programme__row, .cc-programme--list .cc-programme__row {
        grid-template-columns: 28px minmax(0, 1fr) 48px; grid-template-areas: "mark name pct" "mark track track"; row-gap: 10px;
    }
    .cc-programme__mark { grid-area: mark; align-self: start; padding-left: 6px; }
    .cc-programme__name { grid-area: name; }
    .cc-programme__track { grid-area: track; height: 14px; }
    .cc-programme__pct { grid-area: pct; align-self: start; }
    .cc-programme__today { top: -4px; bottom: -4px; }

    .cc-diary__head nav { width: 100%; overflow-x: auto; }
    .cc-diary__head .cc-tabs { flex-wrap: nowrap; white-space: nowrap; }
    .cc-day { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .cc-day__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
    .cc-day__date { font-size: 40px; }
    .cc-day__meta { margin: 0; }
    .cc-day__note { flex-basis: 100%; margin-top: 4px; }
    .cc-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .cc-lightbox__stage { padding: 64px 12px; }
    .cc-lightbox__prev, .cc-lightbox__next { top: auto; bottom: 16px; transform: none; }
}

/* About, Contact and error pages */

/* ---------- About ---------- */
.cc-about { padding: 72px 0 96px; border-bottom: 1px solid var(--rule); }
.cc-about__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: start; }
.cc-about__title { font-size: clamp(48px, 8.4vw, 112px); overflow-wrap: break-word; hyphens: auto; }
.cc-about__title.is-mid { font-size: clamp(40px, 5.6vw, 80px); }
.cc-about__title.is-long { font-size: clamp(34px, 4.2vw, 60px); }
.cc-about__story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.cc-about__story p, .cc-about__story .cc-prose p { margin: 0; }
.cc-about__story > :only-child { grid-column: 1 / -1; max-width: 620px; }
.cc-about__story--stack { grid-template-columns: minmax(0, 1fr); max-width: 640px; gap: 20px; }
.cc-about__story .cc-prose > :not(:first-child) { margin-top: 1em; }
.cc-about__photo { position: relative; padding-top: 24px; }
.cc-about__photo .cc-print > img, .cc-about__photo .cc-print > .cc-ph { aspect-ratio: 4 / 5; }
.cc-about__tape { top: 8px; left: 34%; transform: rotate(4deg); }

.cc-vision { background: var(--ink); padding: 72px 0; }
.cc-vision__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; }
.cc-vision__label { margin: 0; color: var(--sky); }
.cc-vision__text { margin: 0; color: var(--paper); font-size: clamp(44px, 8vw, 104px); overflow-wrap: break-word; hyphens: auto; }
.cc-vision__text.is-mid { font-size: clamp(36px, 5.4vw, 72px); }
.cc-vision__text.is-long { max-width: 30ch; font-size: clamp(24px, 2.7vw, 38px); font-weight: 600; font-stretch: 100%; line-height: 1.3; letter-spacing: -.01em; text-transform: none; }
.cc-vision__text span { color: var(--sky); }

.cc-values { list-style: none; margin: 32px 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
.cc-values li {
    display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: baseline;
    padding: 28px 0; border-top: 1px solid var(--rule);
}
.cc-values li:first-child { border-top: 2px solid var(--ink); }
.cc-values__n { font-weight: 900; font-stretch: 72%; font-size: 48px; line-height: 1; color: var(--blue); }
.cc-values .cc-h3 { font-size: 26px; }
.cc-values p { margin: 0; font-size: 18px; }

/* ---------- Contact ---------- */
.cc-contact__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 72px; align-items: start; }
.cc-sheet { position: relative; padding: 44px 48px; background: var(--card); box-shadow: var(--print-shadow); }
.cc-sheet__tape { top: -14px; left: 46%; transform: rotate(-2deg); }
.cc-sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 30px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.cc-sheet__head .cc-h3 { font-size: 28px; }
.cc-sheet__head .cc-mono { color: var(--muted); }

.cc-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.cc-field { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.cc-field label, .cc-field legend {
    display: block; margin-bottom: 4px; padding: 0;
    font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.cc-field__opt { text-transform: none; letter-spacing: 0; }
.cc-field input, .cc-field textarea {
    display: block; width: 100%; padding: 8px 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
    background: transparent; color: var(--ink); font: 400 18px/1.5 var(--f-sans); outline: 0;
    transition: border-color .15s;
}
.cc-field input { min-height: 44px; }
.cc-field textarea {
    min-height: 150px; resize: vertical; line-height: 40px; padding-top: 0;
    background: repeating-linear-gradient(transparent 0 39px, var(--rule-soft) 39px 40px);
}
.cc-field input:focus, .cc-field textarea:focus { border-bottom-color: var(--blue); box-shadow: 0 1px 0 var(--blue); background-color: rgba(18, 180, 242, .06); }
.cc-field input:focus-visible, .cc-field textarea:focus-visible { outline: 0; }
.cc-field input::placeholder, .cc-field textarea::placeholder { color: #a39d8e; }
.cc-field [aria-invalid="true"] { border-bottom-color: var(--danger); }
.cc-field__error { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--danger); }
.cc-alert { margin-bottom: 24px; padding: 12px 16px; border-left: 3px solid var(--danger); background: #fdf0ee; color: #7a1a12; }
.cc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cc-choices legend { margin-bottom: 12px; }
.cc-choices__list { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-choice { position: relative; display: inline-flex; margin: 0 !important; cursor: pointer; font: inherit !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink) !important; }
.cc-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-choice span {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
    border: 1.5px solid var(--ink); font-weight: 600; font-size: 15px; transition: background-color .15s, color .15s;
}
.cc-choice span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--ink); background: #fff; flex: none; }
.cc-choice:hover span { background: var(--paper); }
.cc-choice input:checked + span { background: var(--ink); color: var(--paper); }
.cc-choice input:checked + span::before { background: var(--sky); border-color: var(--sky); }
.cc-choice input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }

.cc-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
.cc-form__foot .cc-btn { min-width: 220px; }
.cc-form__foot p { margin: 0; color: var(--muted); }

.cc-sent { padding: 24px 0 12px; text-align: center; }
.cc-sent:focus { outline: 0; }
.cc-sent__hand { margin: 0 0 12px; font-size: 40px; transform: rotate(-2deg); }
.cc-sent p { margin: 10px auto 24px; max-width: 420px; }

.cc-contact__lines { font-size: 40px; margin-bottom: 18px; }
.cc-lines { margin: 0; border-bottom: 1px solid var(--rule); }
.cc-lines div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.cc-lines div:first-child { border-top: 2px solid var(--ink); }
.cc-lines dt { padding-top: 3px; font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc-lines dd { display: grid; gap: 2px; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.cc-lines a { font-weight: 700; }
.cc-lines a:hover { color: var(--blue); }

.cc-sticky-note { position: relative; margin-top: 44px; padding: 26px 26px 28px; background: #fffcef; box-shadow: var(--print-shadow); transform: rotate(-1.2deg); }
.cc-sticky-note__tape { top: -14px; left: 36%; width: 90px; transform: rotate(3deg); }
.cc-sticky-note .cc-hand { margin: 0 0 10px; font-size: 32px; }
.cc-sticky-note ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink); }

.cc-map { line-height: 0; border-top: 2px solid var(--ink); }
.cc-map iframe { display: block; width: 100%; height: 400px; border: 0; filter: grayscale(.85) sepia(.15) contrast(1.05); }

/* ---------- Error ---------- */
.cc-error { padding: 96px 0 120px; }
.cc-error__note { margin: 20px 0 0; transform: rotate(-2deg); transform-origin: left; }

@media (max-width: 960px) {
    .cc-about { padding: 48px 0 72px; }
    .cc-about__grid, .cc-contact__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .cc-about__photo { max-width: 480px; }
    .cc-vision__inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .cc-values li { grid-template-columns: 64px minmax(0, 1fr); }
    .cc-values li p { grid-column: 2; }
}
@media (max-width: 640px) {
    .cc-about__story { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .cc-values li { grid-template-columns: 48px minmax(0, 1fr); gap: 8px 16px; }
    .cc-values__n { font-size: 36px; }
    .cc-sheet { padding: 32px 20px; }
    .cc-form__row { grid-template-columns: minmax(0, 1fr); }
    .cc-form__foot .cc-btn { width: 100%; }
    .cc-map iframe { height: 320px; }
}

