/* Atelier Nacre (a fictional salon, a Repliwave demo). The site is a dial: one full turn is six hours, one degree is one minute.
   Turn it to the time you have and the salon composes a visit that fits, drawn as arcs of colour round the ring.
   Warm ink, pearl, rose, brass. Instrument Serif for headings and the big time, Geist Mono for small labels, Geist for text; Arabic uses the system font.
   Logical properties only, so Arabic mirrors by itself (the dial is a clock and keeps its direction). Breakpoints: base (375), 768, 1280. */
:root {
  --ink: #241519; --ink2: #33202a; --pearl: #f3ece3; --rose: #9a3b5c; --brass: #c7a15b; --card: #f8f3ec;
  --hair: rgba(243, 236, 227, .2); --soft: rgba(243, 236, 227, .74);
  --display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ar: 'Geeza Pro', 'Noto Naskh Arabic', 'Noto Sans Arabic', 'Segoe UI', Tahoma, 'DejaVu Sans', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut: clamp(1.1rem, 4vw, 4rem);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
body { background: var(--ink); color: var(--pearl); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
[dir='rtl'] body, [dir='rtl'] input, [dir='rtl'] textarea, [dir='rtl'] button { font-family: var(--ar); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--rose); color: var(--pearl); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.card :focus-visible, .pearl :focus-visible { outline-color: var(--rose); }
.skip { position: absolute; inset-inline-start: -999px; top: .5rem; z-index: 60; background: var(--pearl); color: var(--ink); padding: .5rem .9rem; }
.skip:focus { inset-inline-start: .5rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
[dir='rtl'] h2, [dir='rtl'] h3 { font-family: var(--ar); font-weight: 700; }
.wrap { max-width: 86rem; margin-inline: auto; padding-inline: var(--gut); }

/* header */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: max(.5rem, env(safe-area-inset-top)) var(--gut) .5rem; background: color-mix(in srgb, var(--ink) 88%, transparent); box-shadow: 0 1px 0 var(--hair); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { font: 400 1.5rem/1 var(--display); text-decoration: none; white-space: nowrap; }
.menu { display: none; gap: 1.5rem; margin-inline-start: auto; }
.menu a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .92rem; text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1px; }
.tools { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.langs { display: flex; }
.langs button { background: none; border: 0; font: 400 .74rem/1 var(--mono); padding: .5rem .45rem; min-width: 2.3rem; min-height: 2.75rem; cursor: pointer; opacity: .75; border-radius: 99px; }
.langs button[lang='ar'] { font-family: var(--ar); font-size: .95rem; }
.langs button[aria-pressed='true'] { opacity: 1; background: var(--pearl); color: var(--ink); }
.badge { display: inline-flex; align-items: center; white-space: nowrap; min-height: 2.75rem; font-size: .78rem; text-decoration: none; border: 1px solid currentColor; border-radius: 99px; padding: .5rem .85rem; }
.badge .full { display: none; }
@media (min-width: 560px) { .badge .full { display: inline; } .badge .short { display: none; } }
@media (min-width: 900px) { .menu { display: flex; } .tools { margin-inline-start: 1.2rem; } }

/* the salon: the dial and the visit it composes */
.salon { position: relative; padding-block: clamp(1rem, 2vw, 1.8rem) clamp(2.5rem, 5vw, 4.5rem); background: radial-gradient(60rem 40rem at 22% 60%, rgba(154, 59, 92, .32), transparent 70%), radial-gradient(40rem 30rem at 75% 8%, rgba(199, 161, 91, .16), transparent 70%), var(--ink); overflow: clip; }
.board { display: grid; gap: 1.6rem; }
@media (min-width: 1100px) { .board { grid-template-columns: minmax(0, 1fr) 25rem; gap: 2.5rem; align-items: start; } }
.intro { display: grid; gap: .6rem 2.5rem; align-items: end; }
@media (min-width: 760px) { .intro { grid-template-columns: auto 1fr; } .intro > div:last-child { max-width: 28rem; justify-self: end; } }
.kicker { font: 400 .78rem/1.4 var(--mono); color: var(--brass); margin-bottom: .3rem; }
[dir='rtl'] .kicker { font-family: var(--ar); font-size: .92rem; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: .9; letter-spacing: -.03em; }
.intro h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; font-style: italic; }
[dir='rtl'] .intro h2 { font-style: normal; line-height: 1.4; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.lead { color: var(--soft); max-width: 46ch; margin-top: .5rem; font-size: 1rem; }
[dir='rtl'] .lead { line-height: 1.9; }
.focus { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.1rem; }
.lab { font: 400 .76rem/1 var(--mono); color: var(--soft); }
[dir='rtl'] .lab { font-family: var(--ar); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1px solid var(--hair); background: transparent; border-radius: 99px; padding: .45rem .95rem; min-height: 2.75rem; cursor: pointer; font-size: .9rem; transition: background-color .25s, color .25s, border-color .25s; }
.chip[aria-pressed='true'] { background: var(--pearl); border-color: var(--pearl); color: var(--ink); }

.dialbox { position: relative; width: min(100%, max(19rem, calc(100svh - 21.5rem))); aspect-ratio: 1; margin: .6rem auto 0; }
#dial { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; overflow: visible; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); filter: drop-shadow(0 34px 34px rgba(0, 0, 0, .5)); }
#dial.drag { cursor: grabbing; }
#dial .arc { fill: none; stroke-linecap: butt; transition: stroke-dasharray .7s var(--ease), stroke-dashoffset .7s var(--ease), stroke-width .3s var(--ease), opacity .5s var(--ease); }
#dial.drag .arc, #dial.drag .free { transition-duration: .18s; }
#dial .free { fill: none; transition: stroke-dasharray .5s var(--ease); }
#dial .arc.hi { stroke-width: 46; filter: brightness(1.15); }
#dial text { font: 400 16px var(--mono); fill: rgba(243, 236, 227, .62); text-anchor: middle; dominant-baseline: central; }
#dial .knob { transition: transform .5s var(--ease); outline: none; }
#dial.drag .knob { transition-duration: .08s; }
#dial .knob:focus-visible circle:first-child { stroke: var(--brass); stroke-width: 5; }
.readout { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; pointer-events: none; gap: .2rem; }
.readout strong { text-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 -1px 0 rgba(255, 255, 255, .08); font: 400 clamp(3rem, 10vw, 5.8rem)/.9 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.readout span { font-size: clamp(.9rem, 1.6vw, 1.1rem); color: var(--brass); }
.readout em { font: normal 400 .74rem/1.4 var(--mono); color: var(--soft); min-height: 1.4em; }
[dir='rtl'] .readout em { font-family: var(--ar); font-size: .85rem; }
.nudge { position: absolute; inset-inline: 0; bottom: 25%; display: flex; justify-content: center; gap: 2.2rem; }
.nudge button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(199, 161, 91, .55); background: radial-gradient(circle at 35% 30%, #4a2f3b, #1c0f15); box-shadow: 0 6px 12px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .15); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.nudge button:hover { background: var(--pearl); color: var(--ink); }

/* the card: your visit */
.card { background: var(--card); color: #2a1a1f; --hair: rgba(42, 26, 31, .18); --soft: rgba(42, 26, 31, .7); border-radius: 1.4rem; padding: 1.3rem; display: grid; gap: 1rem; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
@media (min-width: 1100px) { .card { position: sticky; top: 4.6rem; } }
.card h2 { font-size: 2.2rem; line-height: 1; }
[dir='rtl'] .card h2 { font-size: 1.6rem; line-height: 1.4; }
.sumline { font-size: .95rem; color: var(--soft); margin-top: .2rem; }
.visit { list-style: none; padding: 0; display: grid; gap: .4rem; }
.visit li { display: grid; grid-template-columns: auto 1fr auto; gap: .1rem .7rem; align-items: center; padding: .6rem .7rem; border-radius: .9rem; background: rgba(42, 26, 31, .05); }
.visit li.new { animation: pop .5s var(--ease) both; }
.visit i { grid-row: 1 / span 2; width: .9rem; height: 2.3rem; border-radius: 99px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(42, 26, 31, .18); }
.visit strong { font-weight: 600; font-size: .98rem; line-height: 1.25; }
.visit small { grid-column: 2; font-size: .8rem; color: var(--soft); }
.visit button { grid-row: 1 / span 2; grid-column: 3; width: 2.75rem; height: 2.75rem; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--soft); }
.visit button:hover { background: rgba(42, 26, 31, .1); color: #2a1a1f; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.outs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .8rem; color: var(--soft); }
.outs button { border: 1px dashed rgba(42, 26, 31, .4); background: transparent; border-radius: 99px; padding: .3rem .8rem; min-height: 2.75rem; cursor: pointer; font-size: .82rem; }
.field { display: grid; gap: .35rem; font-size: .8rem; color: var(--soft); }
.row { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .15rem; }
.row::-webkit-scrollbar { display: none; }
.day { flex: none; display: grid; justify-items: center; gap: .1rem; min-width: 3.6rem; min-height: 3.4rem; padding: .4rem .6rem; border: 1px solid var(--hair); border-radius: .9rem; background: transparent; cursor: pointer; font-size: .72rem; color: var(--soft); }
.day b { font: 600 1.05rem/1 var(--mono); color: #2a1a1f; }
.day[aria-pressed='true'], .slot[aria-pressed='true'] { background: var(--rose); border-color: var(--rose); color: #fff; }
.day[aria-pressed='true'] b { color: #fff; }
.day:disabled { opacity: .32; cursor: default; }
.slot { flex: none; min-width: 4.4rem; min-height: 2.75rem; border: 1px solid var(--hair); border-radius: .8rem; background: transparent; cursor: pointer; font: 500 .92rem/1 var(--mono); color: #2a1a1f; }
.warn { font-size: .86rem; color: #9a2b1f; }
.card input, .card textarea { width: 100%; background: #fff; border: 1px solid rgba(42, 26, 31, .32); border-radius: .7rem; padding: .7rem .9rem; font-size: 1rem; min-height: 2.9rem; color: #2a1a1f; }
.card textarea { resize: vertical; }
.card [aria-invalid='true'] { border-color: #b3261e; }
.err { font-size: .78rem; color: #b3261e; min-height: 1em; }
.cta { display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 500; text-decoration: none; text-align: center; border: 1px solid currentColor; border-radius: 99px; padding: .85rem 1.4rem; min-height: 3rem; cursor: pointer; background: transparent; color: inherit; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), opacity .25s; }
.cta.primary { background: var(--rose); border-color: var(--rose); color: #fff; width: 100%; }
.cta.primary:hover { background: #2a1a1f; border-color: #2a1a1f; }
.cta.primary:disabled { opacity: .35; pointer-events: none; }
.cta.light { background: var(--pearl); border-color: var(--pearl); color: var(--ink); }
.cta.light:hover { background: var(--brass); border-color: var(--brass); }
.textlink { background: none; border: 0; padding: 0; min-height: 2.75rem; cursor: pointer; font-size: .9rem; color: var(--rose); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; justify-self: start; text-align: start; }
.small { font-size: .8rem; color: var(--soft); }
.ref { display: inline-grid; gap: .15rem; padding: .7rem 1rem; background: rgba(42, 26, 31, .07); border-radius: .8rem; justify-self: start; }
.ref b { font: 600 1.3rem/1.1 var(--mono); }
.ref span { font-size: .74rem; color: var(--soft); }
.done dl { display: grid; gap: .5rem; margin: 0; }
.done dt { font-size: .74rem; color: var(--soft); }
.done dd { margin: 0; font-weight: 500; }

/* below */
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.pearl { background: var(--pearl); color: #2a1a1f; --hair: rgba(42, 26, 31, .2); --soft: rgba(42, 26, 31, .72); }
.rose { background: var(--rose); }
.sec h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .95; letter-spacing: -.02em; }
[dir='rtl'] .sec h2 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.3; letter-spacing: 0; }
.two { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .two { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; } }
.rules { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; gap: .8rem; max-width: 40ch; color: var(--soft); }
.rules li { padding-inline-start: 1.2rem; position: relative; }
.rules li::before { content: ''; position: absolute; inset-inline-start: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--rose); }
.services { list-style: none; padding: 0; border-bottom: 1px solid var(--hair); }
.services li { display: grid; grid-template-columns: auto 1fr auto; gap: .1rem .9rem; align-items: center; padding-block: 1rem; border-top: 1px solid var(--hair); }
.services i { grid-row: 1 / span 2; width: .8rem; height: 2.4rem; border-radius: 99px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(42, 26, 31, .2); }
.services h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
[dir='rtl'] .services h3 { font-size: 1.25rem; line-height: 1.5; }
.services small { grid-column: 2; font: 400 .78rem/1.3 var(--mono); color: var(--soft); }
.services b { grid-row: 1 / span 2; grid-column: 3; font: 500 1rem/1 var(--mono); white-space: nowrap; color: var(--rose); }
[dir='rtl'] .services small, [dir='rtl'] .services b { font-family: var(--ar); }
.qchips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.qchips button { background: var(--pearl); color: #2a1a1f; border: 0; border-radius: 99px; padding: .8rem 1.3rem; min-height: 3rem; cursor: pointer; text-align: start; font: 400 clamp(1.15rem, 2vw, 1.5rem)/1.2 var(--display); transition: background-color .25s, color .25s; }
[dir='rtl'] .qchips button { font-family: var(--ar); font-size: 1.05rem; line-height: 1.6; }
.qchips button:hover { background: var(--ink); color: var(--pearl); }
.rose .lead { color: rgba(243, 236, 227, .86); }
.foot { background: #1a0f12; color: var(--pearl); padding-top: clamp(3rem, 7vw, 5rem); overflow: clip; }
.foot .wrap { display: grid; gap: 1.4rem; justify-items: start; }
.foot-note { max-width: 44ch; opacity: .9; }
.wordmark { font: 400 clamp(3.4rem, 17vw, 17rem)/.8 var(--display); letter-spacing: -.04em; white-space: nowrap; text-align: center; color: var(--brass); margin-top: 2.5rem; padding-bottom: 5rem; }

/* finish: weight and light on everything you can press, steadier numerals, cleaner type */
body { text-rendering: optimizeLegibility; font-kerning: normal; }
h1, h2, h3 { text-wrap: balance; }
output, time, .price, .mono, .qtotal b, .priceline b, .ref b, .num { font-variant-numeric: tabular-nums; }
.cta, .chip, .day, .slot, .sw, .quick, .wchip, .qchips button, .chips button, .nudge button, .qty button, .moon, .langs button { transition-property: background-color, color, border-color, transform, box-shadow, opacity; transition-duration: .2s; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
.cta:active, .chip:active, .day:active, .slot:active, .sw:active, .quick:active, .wchip:active, .qchips button:active, .chips button:active, .nudge button:active { transform: translateY(1px) scale(.985); }
.cta.primary, .cta.terra { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 22px -14px rgba(0, 0, 0, .65); }
.cta.primary:hover, .cta.terra:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 16px 26px -14px rgba(0, 0, 0, .7); transform: translateY(-1px); }
.card, .panel, .summary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(0, 0, 0, .06), 0 22px 44px -26px rgba(0, 0, 0, .5), 0 60px 90px -70px rgba(0, 0, 0, .45); }
input[type=text], input[type=email], input[type=tel], textarea { transition: border-color .2s, box-shadow .2s; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
input[type=text]:focus-visible, input[type=email]:focus-visible, input[type=tel]:focus-visible, textarea:focus-visible { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent); }
.day[aria-pressed='true'], .slot[aria-pressed='true'], .chip[aria-pressed='true'] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 14px -10px rgba(0, 0, 0, .6); }

/* talk: the assistant shown as a conversation; facts as numbered cards; the footer name fitted to its width */
:root { --t-acc: #9a3b5c; --t-bg: #9a3b5c; --t-fg: #f3ece3; }
.talk { background: var(--t-bg) !important; color: var(--t-fg) !important; }
.talk .lead { color: color-mix(in srgb, var(--t-fg) 82%, transparent) !important; }
.talkgrid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .talkgrid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; } }
.chat { background: #fffdf9; color: #1d2422; border-radius: 1.6rem; padding: 1.3rem; display: grid; gap: 1rem; max-width: 34rem; width: 100%; justify-self: end; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 4px rgba(0, 0, 0, .08), 0 30px 60px -30px rgba(0, 0, 0, .55), 0 70px 90px -70px rgba(0, 0, 0, .5); transform: rotate(-.6deg); }
[dir='rtl'] .chat { transform: rotate(.6deg); }
.chat .who { display: flex; align-items: center; gap: .8rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(29, 36, 34, .1); }
.chat .av { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--t-acc) 60%, #fff), var(--t-acc) 62%, color-mix(in srgb, var(--t-acc) 70%, #000)); color: #fff; font-weight: 600; font-size: 1.15rem; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .5); }
.chat .who strong { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.chat .who small { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: rgba(29, 36, 34, .65); }
.chat .who small::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: #3fae6a; box-shadow: 0 0 0 3px rgba(63, 174, 106, .2); }
.chat .bubble { justify-self: start; max-width: 90%; background: color-mix(in srgb, var(--t-acc) 9%, #f4f1ea); border-radius: 1.2rem; border-start-start-radius: .3rem; padding: .85rem 1.05rem; font-size: 1.02rem; line-height: 1.5; }
.chat .qchips { display: flex; flex-wrap: wrap; margin-top: 0 !important; justify-content: flex-end; gap: .45rem; }
.chat .qchips button { background: transparent !important; color: var(--t-acc) !important; border: 1.5px solid color-mix(in srgb, var(--t-acc) 55%, transparent) !important; border-radius: 1.2rem !important; border-end-end-radius: .3rem !important; padding: .6rem 1rem !important; min-height: 2.75rem; font: 500 .95rem/1.3 var(--sans, inherit) !important; text-align: start; }
[dir='rtl'] .chat .qchips button { font-family: var(--ar) !important; }
.chat .qchips button:hover { background: var(--t-acc) !important; color: #fff !important; border-color: var(--t-acc) !important; }
.rules { counter-reset: rule; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); max-width: none !important; gap: .7rem !important; }
.rules li { counter-increment: rule; padding: 1rem 1.1rem 1.1rem !important; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: .9rem; background: color-mix(in srgb, currentColor 3%, transparent); line-height: 1.5; }
.rules li::before { content: counter(rule, decimal-leading-zero) !important; position: static !important; display: block; width: auto !important; height: auto !important; background: none !important; border-radius: 0 !important; font: 500 .74rem/1 ui-monospace, 'Geist Mono', Menlo, monospace; letter-spacing: .06em; opacity: .6; margin-bottom: .55rem; }
.wordmark { font-size: min(13rem, calc(150vw / var(--chars, 12))) !important; }

/* polish 2: brand mark, the confirmation moment, paper grain, sections that ease in */
.mark { display: none; flex: none; width: 1.75rem; height: 1.75rem; color: inherit; margin-inline-end: -.45rem; }
.mark svg { width: 100%; height: 100%; display: block; }
@media (min-width: 480px) { .mark { display: block; } }
.okmark { width: 3.2rem; height: 3.2rem; color: var(--t-acc); display: block; }
.okmark circle { fill: color-mix(in srgb, var(--t-acc) 10%, transparent); stroke: currentColor; stroke-width: 2.4; stroke-dasharray: 151; stroke-dashoffset: 151; animation: okdraw .65s cubic-bezier(.6, 0, .2, 1) forwards; }
.okmark path { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: okdraw .4s .5s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes okdraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .okmark circle, .okmark path { stroke-dashoffset: 0; } }
.ref, .ordernum { position: relative; border: 1.5px dashed color-mix(in srgb, currentColor 35%, transparent); background: color-mix(in srgb, var(--t-acc) 6%, transparent) !important; padding-inline: 1.3rem 2.6rem !important; }
.ref::after, .ordernum::after { content: ''; position: absolute; inset-inline-end: .8rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, currentColor 35%, transparent); }
body::after { content: ''; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.1 -.2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) {
  .sec > .wrap, .talk .chat { animation: easein linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes easein { from { opacity: 0; transform: translateY(34px); } } } }
.tile { transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .tile { transform: perspective(800px) rotateX(7deg) translateY(-6px); box-shadow: 0 34px 40px -26px rgba(43, 42, 38, .55); }

/* narrow phones (320-400px): keep the top bar on one line, nothing wider than the screen */
@media (max-width: 400px) {
  .bar { gap: .5rem; }
  .brand { font-size: 1.2rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .tools { gap: .25rem; flex: none; }
  .langs button { min-width: 1.9rem; padding: .5rem .25rem; font-size: .7rem; }
  .badge { padding: .5rem .6rem; font-size: .72rem; }
}
