/* Bluedify Group front page (M137, Bulut 19 Nov). Builds on t.css tokens; each desk keeps its own accent.
   CSP: no inline styles, no external hosts. */
.group { --b: #D2774F; --a: #E2A84E; --c: #8FB6D8; --t: #6CBF8B; --night: #161210; }
.g-k { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(18px, 2.4vw, 30px); font: 500 .75rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--clay); }
.g-k::before { content: ""; width: 34px; height: 1px; background: currentColor; }

/* ---------- 1. hero: what a brand checks first (who buys, how they pay, where the stock goes) ---------- */
.gh { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 100vh; min-height: 100svh; background: var(--night); color: var(--white); overflow: hidden; isolation: isolate; }
.gh-bg, .gh-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gh-bg { z-index: -2; }
.gh-bg img { object-fit: cover; opacity: 0; filter: brightness(1.06) saturate(1.04);   /* M146: a touch more light */ animation: gh-fade 28s linear infinite both; }
.gh-bg img:nth-child(2) { animation-delay: 7s; } .gh-bg img:nth-child(3) { animation-delay: 14s; } .gh-bg img:nth-child(4) { animation-delay: 21s; }
@keyframes gh-fade { 0% { opacity: 0; transform: scale(1.12); } 5% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.gh::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 11, 9, .86) 0%, rgba(14, 11, 9, .62) 42%, rgba(14, 11, 9, .28) 72%, rgba(14, 11, 9, .46) 100%), linear-gradient(0deg, rgba(14, 11, 9, .9) 0%, rgba(14, 11, 9, 0) 34%); }
.gh::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 80% at 80% 10%, rgba(226, 168, 78, .1), transparent 60%); }
.gh-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 26.75rem); gap: clamp(32px, 5vw, 90px); align-items: end; padding: calc(var(--top-h) + clamp(40px, 9vh, 110px)) var(--pad) clamp(30px, 5vh, 56px); }
.gh-eyebrow { display: flex; align-items: center; gap: 12px; font: 500 .75rem/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 253, 249, .74); }
.gh-eyebrow::before { content: ""; flex: none; width: 34px; height: 1px; background: var(--gold); }
.gh h1 { margin-top: clamp(18px, 3vh, 30px); font-size: clamp(2.9rem, 1rem + 5.2vw, 7.2rem); line-height: .92; letter-spacing: -.02em; }
.gh h1 em { font-style: italic; font-weight: 400; color: #F3D9B4; }
/* The headline is the largest paint: it slides up already visible (a start at opacity 0 delayed LCP by 1.6 s). */
@keyframes g-slide { from { transform: translateY(26px); } to { transform: none; } }
.gh-l { display: block; animation: g-slide 1.3s var(--ease) both; }
.gh-l + .gh-l { animation-delay: .18s; }
.gh-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-top: clamp(20px, 3vh, 32px); font: 500 .8125rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 253, 249, .66); animation: g-rise 1.3s .36s var(--ease) both; }
.gh-words { display: inline-grid; font-family: var(--serif); font-size: clamp(1.5rem, 1rem + 1.2vw, 2.2rem); font-style: italic; letter-spacing: 0; text-transform: none; }
.gh-words b { grid-area: 1 / 1; font-weight: 500; opacity: 0; animation: gh-word 28s linear infinite both; }
.gh-words b:nth-child(2) { animation-delay: 7s; } .gh-words b:nth-child(3) { animation-delay: 14s; } .gh-words b:nth-child(4) { animation-delay: 21s; }
@keyframes gh-word { 0% { opacity: 0; transform: translateY(.5em); } 3% { opacity: 1; transform: none; } 23% { opacity: 1; transform: none; } 26% { opacity: 0; transform: translateY(-.5em); } 100% { opacity: 0; } }
.gw-b { color: var(--b); --dc: var(--b); } .gw-a { color: var(--a); --dc: var(--a); } .gw-c { color: var(--c); --dc: var(--c); } .gw-t { color: var(--t); --dc: var(--t); }
.gh-lead { max-width: 37rem; margin-top: clamp(16px, 2.4vh, 24px); font-size: clamp(1rem, .95rem + .25vw, 1.1875rem); line-height: 1.6; color: rgba(255, 253, 249, .8); animation: g-rise 1.3s .5s var(--ease) both; }
.gh-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: clamp(24px, 4vh, 40px); animation: g-rise 1.3s .62s var(--ease) both; }
.gh .gh-pill { background: var(--white); border-color: var(--white); color: var(--ink); }
.gh .gh-pill:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.gh-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 5px; border-bottom: 1px solid rgba(255, 253, 249, .5); color: inherit; text-decoration: none; font-size: .9375rem; font-weight: 500; }
.gh-link .ico { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .3s var(--ease); }
.gh-link:hover .ico { transform: rotate(90deg) translateX(4px); }
.gh-card { padding: clamp(24px, 2.2vw, 33px); border: 1px solid rgba(255, 253, 249, .18); border-radius: 14px; background: rgba(22, 18, 16, .55); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: g-rise 1.4s .7s var(--ease) both; }
.gh-card-k { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 253, 249, .16); font: 500 .6875rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.gh-card-k::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7FC48E; box-shadow: 0 0 0 4px rgba(127, 196, 142, .18); }
.gh-card dl { margin: 0; }
.gh-card dl div { display: grid; grid-template-columns: 6.8rem minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 253, 249, .1); font-size: .9063rem; line-height: 1.42; }
.gh-card dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.gh-card dt { padding-top: 2px; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 253, 249, .5); }
.gh-card dd { margin: 0; color: rgba(255, 253, 249, .92); }
.gh-card dd span { color: rgba(255, 253, 249, .5); font-size: .8125rem; }
.gh-card a { color: inherit; text-underline-offset: 4px; text-decoration-color: rgba(255, 253, 249, .4); }
.gh-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 var(--pad); padding: 0; list-style: none; border-top: 1px solid rgba(255, 253, 249, .16); }
.gh-proof li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: clamp(18px, 3vh, 28px) clamp(10px, 1.6vw, 24px) clamp(18px, 3vh, 28px) 0; }
.gh-proof li + li { padding-left: clamp(10px, 1.6vw, 24px); border-left: 1px solid rgba(255, 253, 249, .1); }
.gh-proof strong { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: clamp(1.9rem, 1.1rem + 1.4vw, 2.8rem); font-weight: 500; line-height: 1; color: var(--white); }
.gh-proof strong .g1 { display: inline-block; margin-right: .04em; font-size: 1.26em; font-weight: 600; line-height: .8; }
.gh-proof span { max-width: 17rem; font-size: .8125rem; line-height: 1.35; color: rgba(255, 253, 249, .66); }
.gh-bars { position: absolute; right: var(--pad); top: calc(var(--top-h) + 26px); display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.gh-bars li { position: relative; min-width: clamp(54px, 5vw, 80px); padding: 10px 2px 0 0; white-space: nowrap; font: 500 .625rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 253, 249, .55); }
.gh-bars li::before, .gh-bars li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: rgba(255, 253, 249, .2); }
.gh-bars li::after { background: var(--dc); transform: scaleX(0); transform-origin: left; animation: gh-bar 28s linear infinite both; }
.gh-bars li:nth-child(2)::after { animation-delay: 7s; } .gh-bars li:nth-child(3)::after { animation-delay: 14s; } .gh-bars li:nth-child(4)::after { animation-delay: 21s; }
@keyframes gh-bar { 0% { transform: scaleX(0); opacity: 1; } 25% { transform: scaleX(1); opacity: 1; } 26.5% { transform: scaleX(1); opacity: 0; } 100% { transform: scaleX(0); opacity: 0; } }
@media (max-width: 1000px) {
  .gh-in { grid-template-columns: 1fr; align-items: start; }
  .gh-card { max-width: 34rem; }
  .gh-proof { grid-template-columns: 1fr 1fr; }
  .gh-proof li:nth-child(3) { padding-left: 0; border-left: 0; }
  .gh-proof li:nth-child(n+3) { border-top: 1px solid rgba(255, 253, 249, .1); }
  .gh-bars { display: none; }
}
@media (max-width: 520px) {
  .gh-proof li { flex-direction: column; gap: 6px; }
  .gh-card dl div { grid-template-columns: 5.4rem minmax(0, 1fr); }
  .gh-eyebrow { letter-spacing: .14em; }
}

/* shared: the checks table and the numbered steps */
.mx-wrap { margin-top: clamp(40px, 5vw, 70px); overflow-x: auto; contain: paint; border-top: 1px solid var(--ink); }   /* contain: phone Chrome otherwise widens the page to the table */
.mx-wrap:focus-visible { outline-offset: 6px; }
.mx { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9375rem; }
.mx th, .mx td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.mx thead th { font: 500 .75rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); vertical-align: bottom; }
.mx thead th:first-child, .mx tbody th { text-align: left; padding-left: 0; }
.mx tbody th { font-weight: 400; color: var(--ink); width: 44%; }
.mx thead th[class^="c-"]::before { content: ""; display: block; width: 9px; height: 9px; margin: 0 auto 10px; border-radius: 50%; background: var(--dc); }
.c-b { --dc: #B4532F; } .c-a { --dc: #B07A1E; } .c-c { --dc: #3F6E95; } .c-t { --dc: #2F8A57; }
.mx td::before { content: ""; display: inline-block; vertical-align: middle; }
.mx td.y::before { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.mx td.n::before { width: 14px; height: 1px; background: rgba(31, 26, 23, .3); }
.mx td:nth-child(2).y::before { background: #B4532F; }
.mx td:nth-child(3).y::before { background: #B07A1E; }
.mx td:nth-child(4).y::before { background: #3F6E95; }
.mx td:nth-child(5).y::before { background: #2F8A57; }
.mx tbody tr { transition: background .25s ease; }
.mx tbody tr:hover { background: rgba(31, 26, 23, .04); }
.mx-note { margin-top: 18px; font-size: .875rem; color: var(--mut); }
.gone-steps { margin: 0; padding: 0; list-style: none; }
.gone-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.gone-steps li:last-child { border-bottom: 1px solid var(--line); }
.gone-steps span { grid-row: span 2; font-family: var(--serif); font-size: 3rem; line-height: .9; color: var(--clay); }
.gone-steps h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); }
.gone-steps p { margin-top: 8px; color: var(--ink-2); }
/* ---------- 3. working with us (left) + the rules of each field (right): one screen ---------- */
.gwork { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 96px); align-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--top-h) + clamp(20px, 3.4vh, 44px)) var(--pad) clamp(24px, 4vh, 50px); background: var(--cream-2); }
.gwork { position: relative; isolation: isolate; overflow: hidden; }
.gwork > :not(.gwork-pen) { position: relative; }
/* M144: one unbroken pen line per corner (top left looking in, bottom right mirrored). The stroke draws as the section
   scrolls through the screen (g.js sets --pd from 1 to 0); g.js also sizes each face to the free corner it sits in. */
.gwork { --pen: 200px; }
@media (min-width: 961px) {
  .gwork { padding-bottom: clamp(40px, 7vh, 90px); }
  .gwork-l { align-self: end; padding-top: clamp(170px, 27vh, 290px); padding-bottom: clamp(0px, 3vh, 40px); }   /* room above for the face */   /* the copy sits low so the top-left corner is free for the face */
}
.gwork-pen { position: absolute; z-index: -1; overflow: visible; opacity: .85; pointer-events: none; }
/* M145 face drawing removed in M197 (2 Dec, unlicensed); the pen now writes only the signature */
.gwork-pen .pen-m { fill: none; stroke: #FFFFFF; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.gwork-pen-l { top: calc(var(--top-h) + 6px); left: clamp(8px, 1.6vw, 28px); height: var(--pen-l, var(--pen)); width: calc(var(--pen-l, var(--pen)) * .8); }
.gwork-pen-r { bottom: 0; right: clamp(8px, 2.4vw, 40px); height: var(--pen-r, var(--pen)); width: calc(var(--pen-r, var(--pen)) * .8);
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%); mask-image: linear-gradient(to top, transparent 0, #000 22%); }
.gwork-pen-l { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 12%); mask-image: linear-gradient(to top, transparent 0, #000 12%); }
.gwork.pen-l-off .gwork-pen-l, .gwork.pen-r-off .gwork-pen-r { display: none; }
.gwork h2 { font-size: clamp(2.2rem, 1rem + 2.6vw, 3.8rem); line-height: 1; }
.gwork .gone-steps { margin-top: clamp(22px, 3.4vh, 38px); }
.gwork .gone-steps li { grid-template-columns: 52px minmax(0, 1fr); padding: clamp(14px, 2.2vh, 22px) 0; }
.gwork .gone-steps span { font-size: 2.4rem; }
.gwork .gone-steps h3 { font-size: clamp(1.3rem, 1rem + .8vw, 1.75rem); }
.gwork .gone-steps p { margin-top: 4px; font-size: .9375rem; }
.gwork-l .pill { margin-top: clamp(22px, 3.4vh, 34px); }
.gwork-r { min-width: 0; padding: clamp(22px, 2.4vw, 36px); border-radius: 14px; background: var(--cream); box-shadow: 0 1px 0 var(--line), 0 30px 70px rgba(31, 26, 23, .07); }
.gwork-r h2 { font-size: clamp(1.7rem, 1rem + 1.5vw, 2.6rem); }
.gwork-r .mx-wrap { margin-top: clamp(16px, 2.4vh, 26px); }
.gwork-r .mx { min-width: 0; font-size: .8125rem; }
.gwork-r .mx th, .gwork-r .mx td { padding: clamp(5px, .8vh, 9px) 6px; }
.gwork-r .mx thead th { font-size: .625rem; letter-spacing: .1em; }
.gwork-r .mx thead th[class^="c-"]::before { width: 7px; height: 7px; margin-bottom: 7px; }
.gwork-r .mx tbody th { width: 46%; line-height: 1.3; }
.gwork-r .mx td.y::before { width: 10px; height: 10px; }
.gwork-r .mx-note { margin-top: 12px; font-size: .8125rem; }
@media (max-width: 960px) {
  .gwork { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: clamp(70px, 12vw, 110px) var(--pad); }
  .gwork-r { padding: 20px 16px; }
  .gwork-r .mx { min-width: 560px; }
  .gwork { --pen: 150px; padding-bottom: 190px; }
  .gwork-pen { opacity: .55; }
  .gwork-pen-l { display: none; } /* phones: the heading fills that corner */
}

/* ---------- 2. four doors ---------- */
.doors { position: relative; display: flex; height: 100vh; height: 100svh; min-height: 640px; background: var(--night); color: var(--white); overflow: hidden; }
.doors-head { position: absolute; z-index: 3; top: calc(var(--top-h) + clamp(16px, 4vh, 50px)); left: var(--pad); right: var(--pad); text-align: center; pointer-events: none; }
.doors-eyebrow { font: 500 .75rem/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 253, 249, .78); }
.doors-head h1 { margin-top: 14px; font-size: clamp(2.7rem, 1rem + 4.8vw, 6.4rem); line-height: .94; text-shadow: 0 2px 30px rgba(10, 8, 7, .35); }
.doors-head h1 em { font-style: italic; font-weight: 400; }
.door { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: inherit; text-decoration: none; border-left: 1px solid rgba(255, 253, 249, .16); transition: flex-grow .9s var(--ease); }
.door:first-of-type { border-left: 0; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(1.06) brightness(.97) contrast(1.03); transition: transform 1.4s var(--ease), filter .9s ease; }
.door::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18, 14, 12, .62) 0%, rgba(18, 14, 12, 0) 30%, rgba(18, 14, 12, 0) 52%, rgba(18, 14, 12, .82) 100%); }
.door::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: var(--dc); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.door-beauty { --dc: var(--b); }
.door-audio { --dc: var(--a); }
.door-computing { --dc: var(--c); }
.door-tools { --dc: var(--t); }
.door-in { position: absolute; z-index: 2; left: clamp(18px, 2.4vw, 38px); right: clamp(18px, 2.4vw, 38px); bottom: clamp(30px, 7vh, 72px); display: grid; gap: 12px; justify-items: start; }
.door-n { display: flex; align-items: center; gap: 10px; font: 500 .75rem/1 var(--sans); letter-spacing: .2em; color: var(--dc); }
.door-n::after { content: ""; width: 30px; height: 1px; background: currentColor; }
.door-name { font-family: var(--serif); font-size: clamp(2.1rem, .9rem + 2.6vw, 4rem); font-weight: 500; line-height: .95; letter-spacing: -.015em; }
.door-what { max-width: 23rem; font-size: .9375rem; line-height: 1.5; color: rgba(255, 253, 249, .84); opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .7s var(--ease); }
.door-go { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--dc); font-size: .875rem; font-weight: 500; }
.door-go .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
@media (hover: hover) and (min-width: 761px) {
  .doors:hover .door { flex-grow: .78; }
  .doors .door:hover, .doors .door:focus-visible { flex-grow: 2.1; }
}
.door:hover img, .door:focus-visible img { transform: scale(1); filter: saturate(1.14) brightness(1.06) contrast(1.03); }
.door:hover::after, .door:focus-visible::after { transform: scaleX(1); }
.door:hover .door-what, .door:focus-visible .door-what { opacity: 1; transform: none; }
.door:hover .door-go .ico { transform: translateX(4px); }
.door:focus-visible { outline: 2px solid var(--dc); outline-offset: -4px; }
@media (hover: none) { .door-what { opacity: 1; transform: none; } }
.doors.in .door-in, .doors.in .doors-head { animation: g-rise 1.2s var(--ease) both; }
.doors:not(.in) .door-in, .doors:not(.in) .doors-head { opacity: 0; }
.doors.in .door:nth-of-type(1) .door-in { animation-delay: .25s; } .doors.in .door:nth-of-type(2) .door-in { animation-delay: .37s; }
.doors.in .door:nth-of-type(3) .door-in { animation-delay: .49s; } .doors.in .door:nth-of-type(4) .door-in { animation-delay: .61s; }
.doors.in .door { animation: g-open 1.3s var(--ease) both; }
.doors:not(.in) .door { clip-path: inset(100% 0 0 0); }
.doors.in .door:nth-of-type(2) { animation-delay: .1s; } .doors.in .door:nth-of-type(3) { animation-delay: .2s; } .doors.in .door:nth-of-type(4) { animation-delay: .3s; }
@keyframes g-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes g-open { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 760px) {
  .doors { flex-direction: column; height: auto; min-height: 0; }
  .doors-head { position: relative; top: auto; left: auto; right: auto; padding: 64px var(--pad) 30px; }
  .door { flex: none; height: 62svh; min-height: 380px; border-left: 0; border-top: 1px solid rgba(255, 253, 249, .16); }
  .door-what { opacity: 1; transform: none; }
}

/* ---------- 4. closing, group colours ---------- */
.fin-group { background: #1B1613; }
.fin-group .fin-top { max-width: 1180px; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .fin-group .fin-word { background-image: linear-gradient(100deg, var(--b) 0%, var(--b) 18%, var(--a) 38%, var(--c) 62%, var(--t) 84%, var(--t) 100%); background-size: 220% 100%; animation: g-word 5s ease-in-out infinite alternate; }
}
@keyframes g-word { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (max-width: 900px) { .fin-group .fin-top { max-width: none; } }

@media (prefers-reduced-motion: reduce) {
  .door, .door img, .door::after, .door-what { transition: none; }
  .fin-group .fin-word, .doors.in .door, .doors.in .door-in, .doors.in .doors-head, .gh-l, .gh-now, .gh-lead, .gh-cta, .gh-card, .gh-bars li::after { animation: none; }
  .doors .door { clip-path: none; } .doors .door-in, .doors .doors-head { opacity: 1; }
  .gh-bg img, .gh-words b { animation: none; } .gh-words b:first-child { opacity: 1; }
}

/* M143: the checks card, one tab per desk; the three rules every desk shares sit above the tabs */
.dk-all { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(14px, 2vh, 22px) 0 0; padding: 0; list-style: none; }
.dk-all li { padding: 6px 12px 6px 26px; border: 1px solid var(--line); border-radius: 99px; font-size: .78rem; line-height: 1.3; color: var(--ink-2); position: relative; }
.dk-all li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ink); }
.dk-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(16px, 2.4vh, 26px); border-bottom: 1px solid var(--ink); }
.dk-tab { --dc: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 6px 13px; border: 0; background: none; font: 500 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); cursor: pointer; position: relative; transition: color .25s ease; }
.dk-tab i { width: 8px; height: 8px; border-radius: 50%; background: var(--dc); flex: none; }
.dk-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--dc); transform: scaleX(0); transition: transform .45s cubic-bezier(.2, .7, .1, 1); }
.dk-tab[aria-selected="true"] { color: var(--ink); }
.dk-tab[aria-selected="true"]::after { transform: none; }
.dk-tab:hover { color: var(--ink); }
.dk-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.dk-b { --dc: #B4532F; } .dk-a { --dc: #B07A1E; } .dk-c { --dc: #3F6E95; } .dk-t { --dc: #2F8A57; }
.dk-panel { --dc: var(--ink); }
#dk-b { --dc: #B4532F; } #dk-a { --dc: #B07A1E; } #dk-c { --dc: #3F6E95; } #dk-t { --dc: #2F8A57; }
.dk-panel + .dk-panel { margin-top: 28px; }   /* without JS every desk is listed one after another */
.dk-js .dk-stack { display: grid; }
.dk-js .dk-panel { grid-area: 1 / 1; margin: 0; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .1, 1), visibility 0s; }
.dk-js .dk-panel.off { opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
.dk-list { margin: 0; padding: 0; list-style: none; counter-reset: dk; }
.dk-list li { counter-increment: dk; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) minmax(0, .8fr); gap: 4px 14px; align-items: baseline; padding: clamp(10px, 1.5vh, 15px) 0; border-bottom: 1px solid var(--line); }
.dk-list li::before { content: counter(dk, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--serif); font-size: 1.15rem; color: var(--dc); font-variant-numeric: lining-nums; }
.dk-list h3 { font-size: clamp(1.05rem, .9rem + .4vw, 1.3rem); line-height: 1.15; }
.dk-list p { grid-column: 2; font-size: .8125rem; line-height: 1.45; color: var(--ink-2); }
.dk-list .dk-doc { grid-column: 3; grid-row: 1 / span 2; align-self: center; padding-left: 14px; border-left: 2px solid var(--dc); font-size: .75rem; color: var(--mut); }
@media (max-width: 1180px) {
  .dk-list li { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .dk-list .dk-doc { grid-column: 2; grid-row: auto; align-self: start; margin-top: 4px; }
}
@media (max-width: 520px) {
  .dk-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- M147: the work section sits centred; a line runs in from the corner, draws the face, then the name writes beside it ---------- */
@media (min-width: 961px) {
  .gwork-l { align-self: center; padding-top: clamp(150px, 20vh, 210px); padding-bottom: 0; }
}
.gwork-lead { fill: none; stroke: var(--ink); stroke-opacity: .55; stroke-width: 5; stroke-linecap: round; }
.gwork-word { position: absolute; z-index: 0; left: calc(clamp(8px, 1.6vw, 28px) + var(--pen-l, 200px) * .8 + clamp(18px, 2vw, 34px)); top: calc(var(--top-h) + var(--pen-l, 200px) * .3);
  margin: 0; font: italic 400 clamp(3.2rem, 1.6rem + 3.4vw, 5.6rem)/1 var(--serif); letter-spacing: -.01em; color: var(--ink); pointer-events: none;
  clip-path: inset(-10% 100% -20% 0); transition: clip-path 1.8s cubic-bezier(.6, .1, .2, 1); }
.gwork-word::after { content: ""; display: block; height: 1px; margin-top: 10px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform 1.2s .9s ease; }
.gwork.pen-done .gwork-word { clip-path: inset(-10% -4% -20% 0); }
.gwork.pen-done .gwork-word::after { transform: scaleX(1); }
.gwork:not(.pen-scroll) .gwork-word { clip-path: none; }
.gwork:not(.pen-scroll) .gwork-word::after { transform: none; }
.gwork.pen-l-off .gwork-word { display: none; }
@media (max-width: 960px) { .gwork-word { display: none; } }

/* ---------- M147: the guide and the listing check ---------- */
.gextra { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); padding: clamp(60px, 9vh, 110px) clamp(16px, 4vw, 64px); }
.gguide { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(22px, 3vw, 48px); padding: clamp(26px, 3vw, 44px);
  border-radius: 18px; overflow: hidden; text-decoration: none; color: #F6F1EA;
  background: radial-gradient(120% 140% at 0% 50%, #5A2C1A 0, #2A1E19 46%, #1B1613 100%); box-shadow: 0 40px 80px -30px rgba(31, 26, 23, .55); }
.gguide-book { position: relative; width: clamp(120px, 11vw, 170px); aspect-ratio: 3 / 4; perspective: 900px; }
.gguide-pages { position: absolute; inset: 4% -6% 4% 8%; border-radius: 0 6px 6px 0; background: repeating-linear-gradient(90deg, #FFFDF9 0 3px, #E8DCCB 3px 4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.gguide-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; border-radius: 3px 8px 8px 3px;
  background: linear-gradient(135deg, #2C221D, #120E0C); box-shadow: inset 6px 0 0 rgba(255, 255, 255, .06), 0 18px 30px rgba(0, 0, 0, .45);
  transform-origin: left center; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.gguide-cover img { width: 46px; height: 46px; }
.gguide-cover b { font: 500 1.35rem/1 var(--serif); }
.gguide-cover small { font: 600 .6rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.gguide:hover .gguide-cover, .gguide:focus-visible .gguide-cover { transform: rotateY(-28deg); }
.gguide-text { display: grid; gap: 14px; justify-items: start; }
.gguide .g-k { color: #E3B48F; }
.gguide strong { font: 500 clamp(2rem, 1.1rem + 2.4vw, 3.4rem)/1 var(--serif); letter-spacing: -.015em; }
.gguide-lead { max-width: 34rem; color: rgba(246, 241, 234, .74); }
.gscan { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 22px; align-content: center; padding: clamp(22px, 2.6vw, 36px); border-radius: 18px;
  background: #FFFDF9; box-shadow: 0 0 0 1px rgba(31, 26, 23, .1), 0 30px 70px rgba(31, 26, 23, .08); }
.gscan-qr { display: grid; justify-items: center; align-self: start; gap: 8px; padding: 12px; border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px rgba(31, 26, 23, .12); }
.gscan-qr img { width: clamp(84px, 7vw, 104px); height: auto; }
.gscan-qr small { font-size: .78rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gscan h2 { margin: 0; font: 500 clamp(1.8rem, 1rem + 1.8vw, 2.7rem)/1.05 var(--serif); }
.gscan-form { display: flex; gap: 8px; margin-top: 16px; }
.gscan-form input { flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid rgba(31, 26, 23, .18); border-radius: 10px; background: #fff; font: inherit; }
.gscan-form input:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
.gscan-form button { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--ink); color: #FFFDF9; font: 600 .95rem/1 var(--sans); cursor: pointer; transition: background .3s ease; }
.gscan-form button:hover { background: var(--clay); }
.gscan-form .ico { width: 16px; height: 16px; }
.gscan-msg { margin: 10px 0 0; font-size: .875rem; opacity: .72; }
.gscan-msg.bad { color: #9A3B1E; opacity: 1; }
.gscan-desks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid rgba(31, 26, 23, .1); }
.gscan-desks span { margin-right: 6px; font: italic 500 1.25rem/1 var(--serif); color: var(--clay); }
.gscan-desks a { padding: 6px 13px; border: 1px solid rgba(31, 26, 23, .16); border-radius: 999px; font-size: .875rem; color: var(--ink); text-decoration: none; transition: background .3s ease, color .3s ease; }
.gscan-desks a:hover { background: var(--ink); color: #FFFDF9; }
@media (max-width: 1100px) { .gextra { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .gguide { grid-template-columns: minmax(0, 1fr); } .gguide-book { width: 110px; } .gscan { grid-template-columns: minmax(0, 1fr); } .gscan-form input { min-width: 0; } .gscan-qr { justify-self: start; } .gscan-form button { padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .gguide-cover, .gwork-word, .gwork-word::after { transition: none; } }
.gwork > .gwork-word { position: absolute; }

/* M148: the signature. The word strokes and the lead are ink lines in the pen SVG; a small nib dot rides the line while it
   moves. Without scrolling (reduced motion) everything is simply drawn. The old HTML word is gone. */
.gwork-pen .pen-w { fill: none; stroke: #0D0B0A; stroke-opacity: 1; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.gwork-pen .pen-lead { stroke-opacity: 1; }
/* M149: the calligraphy word, filled outlines revealed through their own centre lines; hairlines match the face line */
.gwork-pen .pen-word .pen-m { stroke-width: 24; }
.gwork-pen .pen-ink { fill: #0D0B0A; opacity: 1; }
/* M158-b: face and word in one full, deep black (M159: the calligraphy word stays) */
.gwork-pen image { filter: brightness(0); }
.gwork-pen .pen-tip { fill: var(--clay, #B86A45); opacity: 0; transition: opacity .3s ease; }
.gwork-pen.pen-moving .pen-tip { opacity: 1; }
.gwork-pen-l { -webkit-mask-image: none; mask-image: none; }

/* M148: the guide is an open book on the page (Group colours). The card spans the row; the listing check sits below it. */
.gextra { grid-template-columns: minmax(0, 1fr); }
.gguide { grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); align-items: center; cursor: default; }
.gguide h2 { font: 500 clamp(2rem, 1.1rem + 2.2vw, 3.2rem)/1.02 var(--serif); letter-spacing: -.015em; color: var(--white); }
.gguide-alt { color: #E3B48F; font-size: .92rem; text-decoration: underline; text-underline-offset: 4px; }
.gbook-nav { display: flex; align-items: center; gap: 14px; margin: 6px 0 2px; }
.gbook-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(246, 241, 234, .35); background: none; color: var(--white); font-size: 1.1rem; cursor: pointer; transition: background .25s ease, color .25s ease; }
.gbook-btn:hover:not(:disabled) { background: var(--white); color: #1B1613; }
.gbook-btn:disabled { opacity: .3; cursor: default; }
.gbook-count { min-width: 9.5em; font: 500 .8rem/1 var(--mono, monospace); letter-spacing: .04em; color: rgba(246, 241, 234, .74); text-align: center; }
.gbook-stage { display: grid; place-items: center; min-width: 0; padding: 8px 0; perspective: 2200px; touch-action: pan-y; user-select: none; }
.gbook { --pw: min(100%, 360px); position: relative; width: var(--pw); aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: translate .7s cubic-bezier(.3, .7, .2, 1); }
.gbook.is-spread { --pw: min(46%, 330px); width: calc(var(--pw) * 2); aspect-ratio: 3 / 2; }
.gbook.is-spread.at-start { translate: -25% 0; }
.gbook.is-spread.at-end { translate: 25% 0; }
.gleaf { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .7, .2, 1), opacity .5s ease; cursor: pointer; }
.gbook.is-spread .gleaf { left: 50%; width: 50%; }
.gleaf.is-flipped { transform: rotateY(-180deg); }
.gbook:not(.is-spread) .gleaf.is-flipped { opacity: 0; }
.gleaf-f, .gleaf-b { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #FBF7F0; color: #1B1613;
  border-radius: 2px 6px 6px 2px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.gleaf-b { transform: rotateY(180deg); border-radius: 6px 2px 2px 6px; }
.gleaf-f::after, .gleaf-b::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.gleaf-f::after { background: linear-gradient(to right, rgba(60, 40, 25, .16), transparent 9%); }
.gleaf-b::after { background: linear-gradient(to left, rgba(60, 40, 25, .16), transparent 9%); }
.gbook-src { display: none; }
.gguide:not(.gbook-on) .gbook-src { display: grid; gap: 12px; grid-column: 1 / -1; }
.gguide:not(.gbook-on) .gbook-nav, .gguide:not(.gbook-on) .gbook-stage { display: none; }
.gguide:not(.gbook-on) .pg { background: #FBF7F0; color: #1B1613; border-radius: 6px; }
.pg { --pp: clamp(16px, 2.2vw, 28px); position: relative; display: flex; flex-direction: column; height: 100%; padding: var(--pp); font-size: clamp(.74rem, .62rem + .3vw, .88rem); line-height: 1.5; color: #3E3530; }
.pg-k { font: 600 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #B4532F; }
.pg h3 { margin: 12px 0 10px; font: 500 clamp(1.25rem, .9rem + 1vw, 1.9rem)/1.05 var(--serif); color: #1B1613; letter-spacing: -.01em; }
.pg p + p { margin-top: 8px; }
.pg-big { margin-top: auto; align-self: flex-end; font: italic 400 clamp(3.4rem, 2rem + 4vw, 6rem)/.8 var(--serif); color: #E3CDB8; }
.pg-rows { margin: auto 0 0; display: grid; gap: 6px; font-size: .92em; }
.pg-rows div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; padding-top: 6px; border-top: 1px solid #E8DCCB; }
.pg-rows dt { font: 500 .78em/1.5 var(--mono, monospace); color: #6F6358; }
.pg-rows dd { margin: 0; }
.pg-desks { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.pg-desks li { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid #E8DCCB; }
.pg-desks li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); grid-row: span 2; align-self: center; }
.pg-desks b { font: 500 1.1em/1.2 var(--serif); color: #1B1613; }
.pg-desks .d-be { --dot: #C2603B; } .pg-desks .d-au { --dot: #C98B2E; } .pg-desks .d-el { --dot: #4E78B5; } .pg-desks .d-tl { --dot: #3E8A55; }
.pg-note { margin-top: auto; font-size: .9em; color: #6F6358; }
.pg-list { margin: 2px 0 0; padding: 0; list-style: none; }
.pg-list li { padding: 7px 0; border-top: 1px solid #E8DCCB; }
.pg-list b { color: #1B1613; }
.pg-stop { background: #F1E6D8; }
.pg-stop h3 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: .95; }
.pg-cover { justify-content: center; align-items: flex-start; gap: 4px; background: #1B1613; color: rgba(246, 241, 234, .78); }
.pg-cover img { width: 64px; height: 64px; margin-bottom: auto; border-radius: 50%; }
.pg-cover h3 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); color: #FBF7F0; }
.pg-cover .pg-k { color: #E3B48F; }
.pg-cover small { margin-top: 12px; font: 500 .7rem/1.4 var(--mono, monospace); letter-spacing: .06em; opacity: .7; }
.pg-back h3 { font-size: clamp(1.3rem, 1rem + 1vw, 2rem); }
@media (max-width: 1100px) { .gguide { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .gleaf, .gbook { transition: none; } }
/* one soft shadow under the open book instead of six stacked leaf shadows */
.gleaf-f, .gleaf-b { box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.gbook::before { content: ""; position: absolute; left: 4%; right: 4%; bottom: -14px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(18px); transform: translateZ(-1px); }
.gbook.is-spread { --pw: min(47%, 380px); }
.gbook.is-spread.at-start::before { left: 52%; } .gbook.is-spread.at-end::before { right: 52%; }
/* the covers: clay leather with a thin inset frame, so the closed book reads on the dark card */
.pg-cover { background: radial-gradient(120% 90% at 20% 10%, #A65A36 0, #7C3C22 55%, #5A2A17 100%); color: rgba(251, 247, 240, .82); }
.pg-cover::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(240, 210, 170, .45); border-radius: 3px; pointer-events: none; }
.pg-cover .pg-k { color: #F4D9B5; }

/* M149: the book and its card a touch smaller (Bulut: "çok hafif küçült") */
.gguide { padding: clamp(22px, 2.6vw, 36px); }
.gbook { --pw: min(100%, 328px); }
.gbook.is-spread { --pw: min(46%, 348px); }
.gbook-stage { padding: 4px 0; }
.pg-cover h3 { font-size: clamp(2rem, 1.3rem + 2.1vw, 3.05rem); }
