/* One to One brand tokens for the case study, in the same pattern as oakfold-brand.css. Fixed brand palette, independent of the site theme. */
.case-one-to-one { --oto-black: #0B0712; --oto-plum: #170226; --oto-violet: #2C1248; --oto-aubergine: #4A1D6B; --oto-ultraviolet: #7950A8; --oto-lavender: #BDA6D8; --oto-opal: #F0EAF5; --oto-serif: "Cormorant Garamond", Didot, "Times New Roman", serif; --oto-sans: "Jost", "Avenir Next", system-ui, sans-serif; }
.case-one-to-one .work-hero img { border-radius: 4px; }
.case-one-to-one .one-website { scroll-margin-top: 100px; }

/* From the brand board: the board as one rounded tile, kept compact; the story follows. */
.oto-board { margin: 0 0 40px; border-radius: 16px; overflow: hidden; background: var(--oto-black); box-shadow: 0 0 0 1px rgba(189, 166, 216, .14); }
.oto-board img { display: block; width: 100%; height: auto; }
.oto-board-copy { max-width: 750px; margin: 0 0 72px; }
.oto-board-copy > p:not(.one-label) { font: 400 20px/1.65 "Barlow Semi Condensed", sans-serif; color: var(--body); margin: 0 0 20px; }
.oto-board-copy > .one-label { margin-bottom: 18px; }
@media (max-width: 760px) {
 .oto-board { border-radius: 12px; margin-bottom: 32px; }
 .oto-board-copy { margin-bottom: 56px; }
 .oto-board-copy > p:not(.one-label) { font-size: 19px; }
}

/* Color system: rounded swatches that lift on hover, with a soft glow in their own colour. */
.case-one-to-one .one-color { border-radius: 16px; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.case-one-to-one .one-swatch code { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
 .case-one-to-one .one-swatch:hover .one-color { transform: translateY(-6px); box-shadow: 0 18px 32px -16px color-mix(in srgb, var(--swatch) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--swatch) 40%, transparent); }
 .case-one-to-one .one-swatch:hover code { color: var(--text); }
}
@media (prefers-reduced-motion: reduce) {
 .case-one-to-one .one-color { transition: box-shadow 200ms ease; }
 .case-one-to-one .one-swatch:hover .one-color { transform: none; }
}
@media (max-width: 650px) { .case-one-to-one .one-color { border-radius: 12px; } }

/* Typography: two compact specimen cards in the brand's own colours, then the scale as the app uses it. */
.oto-type-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
.oto-type-card { display: flex; flex-direction: column; gap: 22px; min-width: 0; margin: 0; padding: 22px 26px 20px; border-radius: 16px; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.oto-type-card--display { background: linear-gradient(180deg, var(--oto-plum) 0%, var(--oto-black) 100%); color: var(--oto-opal); --oto-quiet: rgba(189, 166, 216, .72); --oto-hair: rgba(189, 166, 216, .16); box-shadow: 0 0 0 1px rgba(189, 166, 216, .14); }
.oto-type-card--ui { background: var(--oto-opal); color: var(--oto-plum); --oto-quiet: rgba(23, 2, 38, .58); --oto-hair: rgba(23, 2, 38, .14); }
.oto-type-meta { display: flex; justify-content: space-between; gap: 16px; margin: 0; font: 400 10.5px/1.5 "IBM Plex Mono", monospace; letter-spacing: .07em; text-transform: uppercase; color: var(--oto-quiet); }
.oto-type-body { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; flex: 1; }
.oto-type-glyph { font-size: clamp(76px, 7.4vw, 104px); line-height: .82; letter-spacing: -.01em; padding-bottom: 4px; }
.oto-type-card--display .oto-type-glyph { font-family: var(--oto-serif); font-weight: 300; }
.oto-type-card--ui .oto-type-glyph { font-family: var(--oto-sans); font-weight: 400; letter-spacing: -.03em; }
.oto-type-detail { min-width: 0; }
.oto-type-set { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--oto-quiet); overflow-wrap: anywhere; }
.oto-type-card--display .oto-type-set { font-family: var(--oto-serif); font-weight: 400; letter-spacing: .14em; }
.oto-type-card--ui .oto-type-set { font-family: var(--oto-sans); font-weight: 300; }
.oto-type-sample { margin: 0; font: 300 clamp(24px, 2.3vw, 30px)/1.15 var(--oto-serif); letter-spacing: .08em; text-wrap: balance; }
.oto-type-ui-body { margin: 0 0 12px; font: 300 15px/1.5 var(--oto-sans); letter-spacing: .01em; }
.oto-type-ui-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oto-type-chip { display: inline-flex; padding: 6px 11px; border: 1px solid var(--oto-hair); border-radius: 99px; font: 400 12px/1.2 var(--oto-sans); color: var(--oto-aubergine); background: rgba(74, 29, 107, .08); }
.oto-type-button { display: inline-flex; padding: 9px 16px; border-radius: 99px; font: 400 11px/1.2 var(--oto-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--oto-opal); background: var(--oto-aubergine); }
.oto-type-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--oto-hair); }
.oto-type-specs div { min-width: 0; }
.oto-type-specs dt { font: 400 9.5px/1.5 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--oto-quiet); margin-bottom: 2px; }
.oto-type-specs dd { margin: 0; font: 400 13px/1.35 var(--oto-sans); }
@media (hover: hover) and (pointer: fine) {
 .oto-type-card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -24px rgba(0, 0, 0, .7); }
 .oto-type-card--display:hover { box-shadow: 0 20px 36px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(189, 166, 216, .24); }
}

/* The scale: one aligned table, mono specs in fixed columns. */
.oto-type-scale { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.oto-type-scale caption { text-align: left; margin: 0; padding-bottom: 22px; }
.oto-type-scale th, .oto-type-scale td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--one-rule); text-align: left; vertical-align: baseline; }
.oto-type-scale thead th { white-space: nowrap; padding-top: 0; padding-bottom: 10px; font: 400 9.5px/1.5 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-soft, var(--muted)); }
.oto-type-scale tbody th { width: 128px; font: 400 10.5px/1.5 "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.oto-type-scale td:not(.oto-scale-sample) { width: 1%; white-space: nowrap; font: 400 11px/1.5 "IBM Plex Mono", monospace; color: var(--muted); }
.oto-type-scale th:last-child, .oto-type-scale td:last-child { padding-right: 0; text-align: right; }
.oto-type-scale td:nth-child(3) { padding-right: 32px; }
.oto-type-scale tbody tr { transition: background 200ms ease; }
.oto-scale-sample { color: var(--text); overflow-wrap: anywhere; }
.oto-scale-sample--title { font: 300 32px/38px var(--oto-serif); letter-spacing: .08em; }
.oto-scale-sample--name { font: 400 24px/29px var(--oto-serif); letter-spacing: .04em; }
.oto-scale-sample--subhead { font: 400 19px/23px var(--oto-sans); letter-spacing: .04em; }
.oto-scale-sample--body { font: 300 14px/22px var(--oto-sans); letter-spacing: .01em; }
.oto-scale-sample--label { font: 400 12px/16px var(--oto-sans); letter-spacing: .22em; text-transform: uppercase; }
.oto-scale-sample--micro { font: 300 10px/13px var(--oto-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--body); }
@media (hover: hover) and (pointer: fine) {
 .oto-type-scale tbody tr:hover th, .oto-type-scale tbody tr:hover td:not(.oto-scale-sample) { color: var(--text); }
}
@media (prefers-reduced-motion: reduce) { .oto-type-card { transition: none; } .oto-type-card:hover { transform: none; } }

@media (max-width: 980px) {
 .oto-type-pair { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
 .oto-type-card { padding: 18px 18px 16px; border-radius: 14px; gap: 18px; }
 .oto-type-body { gap: 18px; }
 .oto-type-glyph { font-size: 72px; }
 .oto-type-sample { font-size: 22px; }
 .oto-type-scale thead { display: none; }
 .oto-type-scale tr { display: grid; grid-template-columns: 1fr auto auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--one-rule); }
 .oto-type-scale th, .oto-type-scale td { padding: 0; border: 0; width: auto; }
 .oto-type-scale tbody th { grid-column: 1; grid-row: 1; width: auto; }
 .oto-type-scale td:nth-child(3) { grid-column: 2; grid-row: 1; padding: 0; }
 .oto-type-scale td:nth-child(4) { grid-column: 3; grid-row: 1; }
 .oto-type-scale td:nth-child(5) { display: none; }
 .oto-scale-sample { grid-column: 1 / -1; grid-row: 2; margin-top: 6px; }
 .oto-scale-sample--title { font-size: 28px; line-height: 34px; }
}

/* Design system: intro on top, three principles as an even spec row with their concrete values. */
.oto-system .one-copy { max-width: 750px; margin-bottom: 40px; }
.oto-system-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-block: 1px solid var(--one-rule); }
.oto-system-grid li { display: flex; flex-direction: column; min-width: 0; padding: 26px 28px 24px; border-left: 1px solid var(--one-rule); transition: background 240ms ease; }
.oto-system-grid li:first-child { padding-left: 0; border-left: 0; }
.oto-system-grid li:last-child { padding-right: 0; }
.oto-system-index { font: 400 11px/1.5 "IBM Plex Mono", monospace; color: var(--text); letter-spacing: .06em; margin-bottom: 14px; }
.oto-system-grid h3 { font: 500 26px/1.15 "Barlow Condensed", sans-serif; margin: 0 0 8px; }
.oto-system-grid p { font: 400 17px/1.5 "Barlow Semi Condensed", sans-serif; color: var(--body); margin: 0 0 22px; }
.oto-system-grid dl { display: grid; gap: 10px; margin: auto 0 0; padding-top: 16px; border-top: 1px dashed var(--one-rule); }
.oto-system-grid dt { font: 400 9.5px/1.5 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.oto-system-grid dd { margin: 0; font: 400 12px/1.5 "IBM Plex Mono", monospace; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
 .oto-system-grid li { padding: 22px 20px 20px; }
 .oto-system-grid h3 { font-size: 24px; }
 .oto-system-grid p { font-size: 16px; }
}
@media (max-width: 650px) {
 .oto-system .one-copy { margin-bottom: 28px; }
 .oto-system-grid { grid-template-columns: 1fr; }
 .oto-system-grid li, .oto-system-grid li:first-child, .oto-system-grid li:last-child { padding: 22px 0; border-left: 0; }
 .oto-system-grid li + li { border-top: 1px solid var(--one-rule); }
 .oto-system-grid dl { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Product screens: intro on top, then the phones floating on the dark matte (one-case.js), with the two new screens trimmed like the first two. */
.case-one-to-one .one-section--intro { margin-bottom: 56px; }
.case-one-to-one .one-section--intro > .one-copy { margin-bottom: 0; }
.one-screen-interest { aspect-ratio: 664 / 1422; }
.one-screen-interest img { width: 104.819%; left: -2.711%; top: -.281%; }
.one-screen-aligned { aspect-ratio: 664 / 1436; }
.one-screen-aligned img { width: 106.325%; left: -3.916%; top: -.557%; }
@media (max-width: 650px) {
 .case-one-to-one .one-section--intro { margin-bottom: 40px; }
}
