/* CVI / brand book page */
.line { display: block; }
.t-ink { background: var(--ink); color: var(--chalk); }
.t-chalk { background: var(--chalk); color: var(--ink); }
.t-red { background: var(--red); color: var(--ink); }
.small { font-size: 14px; }
figure { margin: 0; }

/* intro */
.cvi-hero { padding-top: clamp(56px, 8vw, 120px); }
.idea { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); }
.idea > div { border-top: 2px solid var(--red); padding-top: 20px; display: grid; gap: 14px; align-content: start; }
.idea p { margin: 0; color: #CFCBC2; }
.idea-n { color: var(--red); font-size: 14px; }
@media (max-width: 860px) { .idea { grid-template-columns: 1fr; row-gap: 36px; } }

/* logo tiles */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: clamp(48px, 6vw, 96px); }
.tile { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px) 56px; min-height: 240px; }
.tile.wide { grid-column: span 2; min-height: 280px; }
.tile.t-chalk { box-shadow: inset 0 0 0 1px #D8D3C8; background: #FAF8F4; }
.tile img { width: 100%; height: auto; }
.tile img.stack { width: auto; max-height: 150px; }
.tile img.mk { width: auto; height: 110px; }
.tile figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 11px; opacity: .7; }
.tile.sizes { grid-column: span 3; }
@media (max-width: 960px) { .tile.sizes { grid-column: span 2; } }
@media (max-width: 560px) { .tile.sizes { grid-column: span 1; } }
.tile.sizes > div { display: flex; align-items: flex-end; gap: 22px; }
.tile.sizes img { width: auto; }
@media (max-width: 960px) { .logo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .logo-grid { grid-template-columns: 1fr; } .tile.wide { grid-column: span 1; } }

.construct { align-items: stretch; margin-bottom: clamp(48px, 6vw, 96px); }
.con-fig { padding: clamp(16px, 2vw, 32px); display: flex; align-items: center; }
.con-fig img { width: 100%; }
.con-rules h3 { margin-bottom: 24px; }
.rules-list { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rules-list li { counter-increment: r; padding: 12px 0 12px 40px; border-bottom: 1px solid #CFCAC0; position: relative; font-size: 16px; }
.rules-list li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 600 12px var(--mono); color: var(--red); }

.space { margin-bottom: clamp(48px, 6vw, 96px); align-items: center; }
.clear { padding: 56px; display: flex; justify-content: center; box-shadow: inset 0 0 0 1px #D8D3C8; background: #FAF8F4; }
.clear-box { position: relative; padding: 9%; outline: 1.5px dashed var(--red); width: 100%; }
.clear-box img { width: 100%; outline: 1px solid rgba(255,58,31,.35); }
.cap { font-size: 12px; margin: 14px 0 0; color: var(--stone-d); }
.minsize dl { margin: 0; display: grid; gap: 0; }
.minsize dl > div { display: grid; grid-template-columns: 1fr 1fr; padding: 16px 0; border-bottom: 1px solid #CFCAC0; gap: 16px; }
.minsize dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone-d); align-self: center; }
.minsize dd { margin: 0; font-weight: 600; }

.dont-h { margin-bottom: 20px; }
.donts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.donts figure { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 28px 22px 48px; overflow: hidden; box-shadow: inset 0 0 0 1px #D8D3C8; }
.donts figure.t-chalk { background: #FAF8F4; }
.donts img { max-width: 100%; max-height: 70px; width: auto; }
.donts figure::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(45deg, transparent calc(50% - 1.5px), var(--red) calc(50% - 1.5px), var(--red) calc(50% + 1.5px), transparent calc(50% + 1.5px)); opacity: .9; pointer-events: none; }
.donts figcaption { position: absolute; left: 12px; right: 12px; bottom: 10px; font-size: 10.5px; line-height: 1.3; color: var(--ink); background: rgba(250,248,244,.9); padding: 4px 6px; z-index: 1; }
.donts .busy { background: repeating-linear-gradient(135deg, #2350FF 0 14px, #FF3A1F 14px 28px, #F2EFE8 28px 42px); }
@media (max-width: 960px) { .donts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .donts { grid-template-columns: 1fr 1fr; } }

/* colour */
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.sw { background: var(--c); color: var(--t); aspect-ratio: 3/4; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; box-shadow: inset 0 0 0 1px rgba(242,239,232,.12); }
.sw b { font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1; margin-bottom: 10px; }
.sw span { font: 500 12px var(--mono); }
.sw i { font-style: normal; font-size: 13px; margin-top: 10px; opacity: .85; line-height: 1.3; }
@media (max-width: 1100px) { .swatches { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .swatches { grid-template-columns: 1fr 1fr; } }
.ratio { display: flex; height: 56px; margin-bottom: clamp(40px, 5vw, 72px); }
.ratio span { display: flex; align-items: center; padding: 0 14px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; }
.ctab { width: 100%; border-collapse: collapse; font-size: 15px; }
.ctab th { text-align: left; font-size: 11px; color: var(--stone); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; padding: 0 0 10px; }
.ctab td { padding: 12px 0; border-top: 1px solid var(--ink-3); }
.ctab td:nth-child(2) { font-family: var(--mono); white-space: nowrap; padding: 12px 16px; }
.chip { display: inline-grid; place-items: center; width: 34px; height: 26px; margin-right: 10px; font-weight: 900; font-style: italic; box-shadow: inset 0 0 0 1px var(--ink-3); }

/* type */
.type-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--col-gap); margin-bottom: clamp(48px, 6vw, 96px); }
.spec-big { background: var(--ink); color: var(--chalk); padding: clamp(24px, 3vw, 48px); display: grid; gap: 20px; align-content: space-between; }
.spec-word { font-size: clamp(48px, 7.4vw, 128px); hyphens: manual; }
.glyphs { margin: 0; font-style: italic; font-weight: 900; font-size: clamp(20px, 2.2vw, 34px); color: var(--red); line-height: 1.1; }
.spec-small { display: grid; gap: 12px; }
.spec-small > div { background: #FAF8F4; box-shadow: inset 0 0 0 1px #D8D3C8; padding: 24px; display: grid; gap: 12px; align-content: start; }
.spec-text { margin: 0; font-size: 19px; line-height: 1.5; }
.spec-mono { margin: 0; font: 500 15px/1.6 var(--mono); letter-spacing: .04em; }
@media (max-width: 960px) { .type-grid { grid-template-columns: 1fr; } }

.caps-rule { align-items: center; margin-bottom: clamp(48px, 6vw, 96px); }
.caps-demo { padding: 40px clamp(24px, 3vw, 48px); }
.caps-lines { font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 6vw, 96px); line-height: 1;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1em - 1px), rgba(255,58,31,.6) calc(1em - 1px), rgba(255,58,31,.6) 1em);
  background-position: 0 0.08em; }
.cl { display: block; }
.caps-rule h3 { margin-bottom: 20px; }
.metrics { margin: 24px 0 0; }
.metrics div { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 0; border-top: 1px solid #CFCAC0; }
.metrics dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone-d); }
.metrics dd { margin: 0; font-weight: 600; font-family: var(--mono); }

.scale > div { display: grid; grid-template-columns: 140px 1fr; align-items: baseline; gap: 24px; padding: 18px 0; border-top: 1px solid #CFCAC0; }
.scale .mono { font-size: 12px; }
@media (max-width: 560px) { .scale > div { grid-template-columns: 1fr; gap: 6px; } }

/* devices */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px var(--col-gap); }
.dev { display: grid; gap: 14px; align-content: start; }
.dev p { margin: 0; color: #CFCBC2; }
.dev-art { aspect-ratio: 16/10; background: var(--ink-2); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.corners span { flex: 1; align-self: stretch; display: flex; align-items: flex-end; padding: 16px; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 24px; }
.corners .r { background: var(--red); color: var(--ink); }
.corners .b { background: var(--blue); color: var(--chalk); justify-content: flex-end; }
.nums { gap: 8px; font-style: italic; font-weight: 900; font-size: clamp(80px, 9vw, 140px); line-height: .8; }
.nums .o { color: transparent; -webkit-text-stroke: 2px var(--chalk); }
.nums .s { color: var(--red); }
.cut span { width: 70%; height: 70%; background: linear-gradient(135deg, #3A3A40, #1E1E22); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28%), calc(100% - 28%) 100%, 0 100%); box-shadow: none; }
.cut::after { content: "45°"; position: absolute; right: 13%; bottom: 13%; font: 600 12px var(--mono); color: var(--red); }
.tagd { flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 0 12%; }
.tape { background: var(--ink-2); }
.tape span { background: var(--red); color: var(--ink); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 22px; padding: 12px 20px; white-space: nowrap; transform: rotate(-4deg); width: 120%; text-align: center; }
.plate { background: linear-gradient(135deg, #3A3A40 0%, #16161A 60%), #222; }
.plate img { width: 34%; height: auto; position: absolute; left: 7%; top: 9%; }
@media (max-width: 960px) { .devices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .devices { grid-template-columns: 1fr; } }

/* applications */
.apps { display: grid; grid-template-columns: 4fr 4fr 2.6fr; gap: var(--col-gap); align-items: end; margin-bottom: 40px; }
.app { container-type: inline-size; }
.app figcaption { font-size: 11px; color: var(--stone-d); margin-top: 12px; }
.poster { position: relative; aspect-ratio: 4/5; background: var(--ink); color: var(--chalk); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.p-photo { position: absolute; inset: 0 0 34% 0; background: radial-gradient(120% 90% at 70% 20%, #4A3A38 0%, #1A1416 55%, #0E0E10 100%);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%); display: flex; align-items: center; justify-content: center; }
.p-photo span { font-size: 10px; color: rgba(242,239,232,.55); }
.p-body { position: relative; padding: 0 7cqw 7cqw; display: grid; gap: 3cqw; }
.p-body .tag { font-size: 2.6cqw; }
.p-title { margin: 0; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 15cqw; line-height: 1; }
.p-title span { display: block; }
.p-meta { margin: 0; font-size: 2.3cqw; color: var(--stone); }
.p-logo { position: absolute; left: 7cqw; top: 7cqw; width: 20cqw; }
.fc { aspect-ratio: 1; background: var(--ink); color: var(--chalk); display: grid; grid-template-rows: auto 1fr auto; }
.fc-head { display: flex; justify-content: space-between; align-items: center; padding: 6cqw 6cqw 4cqw; }
.fc-head img { width: 42cqw; }
.fc-head .mono { font-size: 2.6cqw; color: var(--stone); }
.fc-corners { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.fc-r, .fc-b { display: flex; flex-direction: column; justify-content: flex-end; padding: 5cqw 6cqw; gap: 2cqw; }
.fc-r { background: var(--red); color: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.fc-b { background: var(--blue); color: var(--chalk); text-align: right; align-items: flex-end; }
.fc-r b, .fc-b b { font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 7.4cqw; line-height: 1; }
.fc-r .mono, .fc-b .mono { font-size: 2.4cqw; }
.fc-foot { padding: 4cqw 6cqw; font-size: 2.6cqw; color: var(--stone); text-align: center; }
.story { aspect-ratio: 9/16; background: var(--ink); color: var(--chalk); display: flex; flex-direction: column; padding: 9cqw 8cqw 0; gap: 4cqw; position: relative; overflow: hidden; }
.st-logo { width: 62cqw; margin-bottom: auto; }
.story .tag { font-size: 4cqw; }
.st-win { margin: 0; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 30cqw; line-height: 1; color: var(--red); }
.st-name { margin: 0; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 10cqw; line-height: 1; }
.st-how { margin: 0; font-size: 4.2cqw; color: var(--stone); }
.st-bar { margin: 8cqw -8cqw 0; background: var(--red); color: var(--ink); padding: 5cqw 8cqw; font: italic 900 6cqw var(--f); text-transform: uppercase; }
@media (max-width: 960px) { .apps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .apps { grid-template-columns: 1fr; } }

.lt-wrap { max-width: 68%; }
@media (max-width: 760px) { .lt-wrap { max-width: none; } }
.lt-frame { aspect-ratio: 16/9; background: radial-gradient(90% 90% at 60% 40%, #3A3436, #121214 70%); position: relative; }
.lt { position: absolute; left: 6cqw; bottom: 8cqw; display: flex; align-items: stretch; height: 7.4cqw; }
.lt-corner { width: 1.2cqw; background: var(--red); }
.lt-text { background: var(--ink); color: var(--chalk); padding: 0 3cqw 0 2.2cqw; display: flex; flex-direction: column; justify-content: center; gap: .5cqw; }
.lt-text b { font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 3cqw; line-height: 1; }
.lt-text .mono { font-size: 1.3cqw; color: var(--stone); }
.lt-mark { height: 100%; width: auto; }

/* moodboard */
.refs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: clamp(48px, 6vw, 96px); }
.ref { background: var(--ink-2); padding: 22px; text-decoration: none; display: grid; gap: 12px; align-content: start; transition: background .2s; min-height: 250px; grid-template-rows: auto auto 1fr auto; }
.ref:hover { background: #222227; }
.ref b { font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 20px; line-height: 1.05; }
.ref p { margin: 0; color: #CFCBC2; font-size: 15px; }
.pal { display: flex; gap: 4px; }
.pal i { width: 22px; height: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.take { font-size: 11px; color: var(--red); }
@media (max-width: 1100px) { .refs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .refs { grid-template-columns: 1fr; } }
.avoid { margin-bottom: clamp(48px, 6vw, 96px); }
.avoid h3 { margin-bottom: 18px; }
.xlist, .flist { list-style: none; margin: 0 0 16px; padding: 0; }
.xlist li { padding: 12px 0 12px 30px; border-top: 1px solid var(--ink-3); position: relative; }
.xlist li::before { content: "×"; position: absolute; left: 4px; top: 9px; color: var(--red); font-weight: 900; font-size: 20px; }
.flist li { padding: 12px 0; border-top: 1px solid var(--ink-3); display: grid; gap: 2px; }
.flist a { font-weight: 700; text-decoration: none; }
.flist a:hover { color: var(--red); }
.flist span { color: var(--stone); font-size: 14px; }
.photo h3 { margin-bottom: 18px; }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.ph { aspect-ratio: 4/5; background: radial-gradient(80% 60% at 30% 25%, color-mix(in srgb, var(--a) 45%, #1A1A1D) 0%, #0E0E10 75%); display: flex; align-items: flex-end; padding: 16px; position: relative; overflow: hidden; }
.ph::after { content: ""; position: absolute; inset: 0; opacity: .18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.ph span { font-size: 11px; position: relative; z-index: 1; }
@media (max-width: 760px) { .ph-grid { grid-template-columns: 1fr 1fr; } }

/* files */
.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--col-gap); }
.files a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-top: 1px solid #CFCAC0; text-decoration: none; font-weight: 600; }
.files a:hover { color: var(--red); }
.files .mono { font-size: 11px; color: var(--stone-d); }
@media (max-width: 860px) { .files { grid-template-columns: 1fr; } }
