/* Graphite, quiet leather grain and a restrained orange accent. */
:root {
  color-scheme: dark;
  --bg: #1C1C1C; --text: #e9ebe6; --muted: #bec0ba; --accent: #e58b39;
  --line: #ffffff12; --grain: url("assets/leather-grain.svg?v=d179adfb82d0");
  --row-hover: #ffffff06; --row-radius: 10px;
  --initial-ms: 1800ms; --dissolve-ms: 600ms; --selection-ms: 400ms;
  --motion-ease: cubic-bezier(.22,1,.36,1);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
  font-size: 14px;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow: hidden }
button,input { font: inherit; color: inherit }
button,a { touch-action: manipulation; -webkit-tap-highlight-color: transparent }
button { border: 0; background: none; cursor: pointer }
a { color: inherit; text-decoration: none }
a:focus-visible,button:focus-visible,input:focus-visible,.content:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }
::selection { background: #a2622d; color: #fff }
.desktop { height: 100svh; display: grid; place-items: center; padding: 16px 28px }
.window {
  width: min(100%,1080px); height: min(960px,calc(100svh - 32px));
  display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 18px; padding: 12px;
  border: 1px solid #ffffff21; border-radius: 29px;
  background-image: var(--grain),linear-gradient(135deg,#343633,#2c2e2c);
  background-size: 220px 220px,100% 100%;
  box-shadow: 0 30px 60px #0004,0 5px 12px #0003,inset 0 1px #ffffff10;
  overflow: hidden; isolation: isolate;
}
.window.is-loading { visibility: hidden }
.sidebar { border: 1px solid #ffffff12; border-radius: 19px; background: #282b28; box-shadow: inset 0 1px 4px #0002; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden }
.identity { flex: 0 0 auto; padding: 8px; background-image: var(--grain); background-size: 220px }
.identity-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 9px 8px; gap: 8px; width: 100%; border: 1px solid transparent; border-radius: var(--row-radius); transition: background 150ms ease,color 150ms ease }
.identity-link:hover,.identity-link:focus-visible,.project-item:hover { background: var(--row-hover) }
.identity-link:focus-visible { outline-offset: -3px }
.identity-chevron { display: grid; place-items: center; flex: 0 0 26px; height: 30px; color: #969b94 }
.profile { display: flex; align-items: center; gap: 12px; min-width: 0 }
.profile strong { font-size: 14px; font-weight: 600; display: block }
.subtitle { display: block; color: #adb2aa; font-size: 12px; margin-top: 5px }
.avatar { height: 46px; width: 46px; border-radius: 50%; overflow: hidden; background: #373c35; border: 1px solid #ffffff24; box-shadow: 0 2px 5px #0003; position: relative; flex-shrink: 0 }
.avatar>img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: none }
.icon-button { display: grid; place-items: center; color: #aaa; width: 30px; height: 30px; border-radius: 8px; transition: background 100ms ease,color 100ms ease }
.icon-button:hover { background: #ffffff0c; color: #fff }

.tabs { position: relative; isolation: isolate; display: flex; align-items: center; margin: 4px 12px 14px; padding: 3px; background-color: #202320; background-image: var(--grain); background-size: 220px; border-radius: 24px; gap: 3px }
.tabs>a,.tabs>.search-trigger { position: relative; z-index: 1 }
.tabs a { flex: 1; text-align: center; color: #adb2aa; padding: 8px 3px; border: 1px solid transparent; border-radius: 22px; font-size: 12px; transition: color 117ms ease }
.tabs a:hover { color: #fff }
.tabs a.active { color: #f3f4ee }
.tab-indicator { position: absolute; top: 3px; bottom: 3px; left: 0; z-index: 0; border-radius: 22px; border: 1px solid #ffffff28; background: linear-gradient(#52574e,#41463f); box-shadow: 0 3px 7px #0005,inset 0 1px #ffffff14; pointer-events: none }
.tab-indicator::after { content: ""; position: absolute; width: 12px; height: 1px; left: calc(50% - 6px); bottom: 4px; background: var(--accent); border-radius: 1px; opacity: .8 }
.tabs.motion-ready .tab-indicator { transition: transform var(--selection-ms) var(--motion-ease),width var(--selection-ms) var(--motion-ease) }
.search-trigger { display: grid; place-items: center; width: 33px; height: 31px; color: #999f96; transition: color 117ms ease }
.search-trigger:hover { color: var(--accent) }

.sidebar-scroll { position: relative; overflow: hidden; min-height: 0; flex: 1; background: #252725 }
.sidebar-view { position: absolute; inset: 0; overflow-y: auto; padding: 4px 8px 10px; scrollbar-width: thin; scrollbar-color: #565a53 transparent }
.sidebar-list { position: relative; isolation: isolate; margin-top: 2px }
.sidebar-selection { position: absolute; left: 0; top: 0; width: 100%; height: 0; opacity: 0; z-index: 0; border-radius: var(--row-radius); border: 1px solid #ffffff16; background: linear-gradient(115deg,#ffffff13,#ffffff08); box-shadow: inset 0 1px #ffffff05; pointer-events: none; transition: transform var(--selection-ms) var(--motion-ease),height var(--selection-ms) var(--motion-ease),width var(--selection-ms) var(--motion-ease),opacity 333ms ease }
.project-item { position: relative; z-index: 1; display: block; width: 100%; text-align: left; font: inherit; border: 1px solid transparent; padding: 15px 11px; border-radius: var(--row-radius); margin-bottom: 4px; transition: background 150ms ease,color 150ms ease }
.project-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px }
.project-heading strong { font-weight: 550; font-size: 13px; transition: color 233ms ease }
.project-category { flex-shrink: 0; font-size: 9px; font-weight: 500; letter-spacing: .1px; color: #a0a69b; padding: 2px 5px; border: 1px solid #ffffff0c; border-radius: 4px; background: #ffffff03 }
.project-item.selected .project-heading strong { color: #fff }
.project-item.selected .project-category { color: #c9cec1 }
.summary-lines { line-height: 1.5; min-height: 3em }
.project-item .summary-lines { font-size: 12px; margin: 0; color: #adb2aa }
.summary-lines>span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

.reader { position: relative; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; --reading-progress: 0; --hero-height: 320px; --hero-top: 8px; --hero-gap: 20px }
.reader-hero { position: absolute; top: var(--hero-top); left: 0; right: 0; z-index: 5; padding: 0 15px 0 7px; overflow: visible; pointer-events: none }
.hero-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 16px; box-shadow: 0 5px 12px -3px rgba(0,0,0,.18),0 1px 3px rgba(0,0,0,.17); transition: box-shadow 150ms ease }
.reader.is-scrolled .hero-frame { box-shadow: 0 12px 24px -8px rgba(0,0,0,.26),0 28px 38px -18px rgba(0,0,0,.18),0 2px 4px rgba(0,0,0,.15) }
.hero-art,.case-visual { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; overflow: hidden; border-radius: inherit; border: 1px solid #ffffff18 }
.hero-art { background-image: var(--grain),radial-gradient(ellipse at 65% 0%,#53584f,transparent 75%),linear-gradient(140deg,#383e35,#262d25); background-size: 220px,100% 100%,100% 100% }
.sculpture { display: block; width: 100%; height: 100% }
.case-visual { display: flex; align-items: center; justify-content: center; padding: 20px 30px; background-image: var(--grain),linear-gradient(140deg,#434b4b,#2c3333); background-size: 220px,100% 100% }
.case-visual.mobile { background-image: var(--grain),linear-gradient(140deg,#534436,#322d28) }
.case-visual.payroll { background-image: var(--grain),linear-gradient(140deg,#435145,#29332b) }
.case-visual.market { background-image: var(--grain),linear-gradient(140deg,#46545d,#293139) }
.case-visual.shipper { background-image: var(--grain),linear-gradient(140deg,#534b3b,#342f26) }
.case-visual.has-image { padding: 0 }
.case-visual>img { width: 100%; height: 100%; object-fit: cover; border-radius: 0!important }
.case-visual .mock-ui { width: 100%; flex-shrink: 0; transform: translateY(10px) }
.case-visual .phones { transform: translateY(8px) rotate(-5deg) }

.reader-stage { position: relative; z-index: 1; flex: 1; display: flex; min-height: 0; min-width: 0; overflow: hidden }
.scroll-rail { position: absolute; right: 2px; top: calc(var(--hero-top) + var(--hero-height) + 12px); bottom: 24px; width: 7px; z-index: 6; pointer-events: none; opacity: 0; --scroll-travel: 0px; background: radial-gradient(circle at center,rgba(205,212,195,.4) 1.7px,transparent 2px) center -9px / 7px 24px repeat-y }
.reader.can-scroll .scroll-rail { opacity: 1 }
.scroll-rail::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center,#eaa35e 1.9px,transparent 2.15px) center -9px / 7px 24px repeat-y; clip-path: inset(0 0 calc((1 - var(--reading-progress)) * 100%) 0) }
.scroll-rail::after { content: ""; position: absolute; top: 0; left: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #e58b3917,0 0 9px #e58b392b; transform: translateY(var(--scroll-travel)) }
.content { padding: 0 10px 0 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; scroll-padding-top: calc(var(--hero-top) + var(--hero-height) + var(--hero-gap)); min-height: 0; min-width: 0; flex: 1 }
.content::-webkit-scrollbar { display: none }
.content-layer { position: absolute; inset: 0 }
.content-inner { padding: calc(var(--hero-top) + var(--hero-height) + var(--hero-gap)) 13px 34px 15px }
.content-inner h1,.content-inner h2 { font-size: 20px; font-weight: 700; letter-spacing: -.25px; line-height: 1.35 }
.content-inner h1 { margin: 0 0 17px }
.content-inner h2 { margin: 28px 0 14px }
p,li { font-size: 14px; line-height: 1.55; color: var(--muted) }
p { margin: 0 0 18px }
ul,ol { padding-left: 20px; margin: 0 0 22px }
li { padding-left: 1px; margin-bottom: 6px }
li::marker { color: #ced1c7 }
.inline-link,.inline-copy { color: #e0e3d9; border-bottom: 1px solid #858b7e; transition: color 117ms ease,border-color 117ms ease }
.inline-copy { padding: 0; text-align: left; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text }
.inline-link:hover,.inline-copy:hover { color: #f5b974; border-color: var(--accent) }
.article-image { width: 100%; margin: 23px 0 27px }
.article-image>img { display: block; width: 100%; height: auto; border-radius: 6px }
.image-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; background: #ffffff03; border: 1px solid #ffffff0b; color: #737b6d }

.social-footer { margin-top: 34px; padding-top: 24px; border-top: 1px solid #ffffff1c }
.social-footer>p { font-size: 14px; color: #bec3b6; margin-bottom: 17px }
.social-links { display: flex; align-items: center; gap: 12px }
.social-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ffffff12; background-color: #2b302a; background-image: var(--grain); background-size: 220px; color: #b7bdaf; box-shadow: inset 0 1px #ffffff05; transition: background-color 117ms ease,color 117ms ease,transform 150ms ease }
.social-link svg { width: 18px; height: 18px }
.social-link:hover { background-color: #3a4236; color: #f2b474; transform: translateY(-3px) }
.copy-status { position: fixed; z-index: 20; bottom: 18px; left: 50%; max-width: calc(100% - 32px); padding: 10px 15px; border: 1px solid #ffffff1d; border-radius: 11px; background: #31372e; color: #e4e9da; font-size: 12px; box-shadow: 0 6px 25px #0004; opacity: 0; transform: translate(-50%,6px); pointer-events: none; transition: opacity 117ms ease,transform 150ms ease }
.copy-status.is-visible { opacity: 1; transform: translate(-50%,0) }

dialog { color: var(--text); background-color: #2b302a; background-image: var(--grain); background-size: 220px; border: 1px solid #ffffff25; border-radius: 18px; box-shadow: 0 20px 80px #0007; padding: 22px; width: min(520px,calc(100% - 32px)); max-height: 80svh }
dialog::backdrop { background: #0006; backdrop-filter: blur(8px) }
.search-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px }
.search-header h2 { font-size: 16px; font-weight: 700; margin: 0 }
#search-input { width: 100%; background: #20261e; border: 1px solid #ffffff18; color: #eee; padding: 13px; border-radius: 9px; font-size: 13px; margin-bottom: 14px }
#search-results { max-height: 42svh; overflow: auto }
.search-result { display: block; padding: 13px; border-radius: 8px; transition: background 100ms ease }
.search-result:hover { background: #ffffff0a }
.search-result strong { font-size: 13px; font-weight: 550 }
.search-result span { display: block; font-size: 11px; color: #aeb6a5; margin-top: 5px }
.search-hint { display: flex; justify-content: space-between; border-top: 1px solid #ffffff10; padding-top: 14px; font-size: 10px; color: #9da692; margin-top: 12px }
.empty-results { font-size: 12px; color: #aaa; padding: 20px 10px }

/* The first shell reveal keeps its duration. Subsequent content only cross-fades. */
.site-enter { animation: dissolve-in var(--initial-ms) ease-in-out both }
@keyframes dissolve-in { from { opacity: 0 } to { opacity: 1 } }

.mock-ui{background:#f1efed;color:#333;border-radius:9px;box-shadow:0 12px 25px #0005;overflow:hidden;display:grid;grid-template-columns:52px minmax(0,1fr);text-align:left;min-height:186px;font-family:Arial,sans-serif}.mock-side{background:#24252b;padding:12px 9px;display:flex;flex-direction:column;gap:14px}.mock-logo{height:16px;width:16px;background:var(--card-accent,#b9a2ed);border-radius:5px;margin-bottom:13px}.mock-side i{height:3px;width:22px;background:#ffffff25;border-radius:3px}.mock-main{padding:15px;min-width:0}.mock-top{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#3f3e45;margin-bottom:15px}.mock-top span{color:#9d96a3;font-size:7px}.mock-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:14px}.mock-card{padding:9px;background:#fff;border:1px solid #e8e4e8;border-radius:5px;font-size:6px;color:#8d8794}.mock-card strong{display:block;font-size:12px;color:#55505c;margin-top:6px;font-weight:500}.mock-chart{height:43px;display:flex;gap:8px;align-items:flex-end;padding:0 9px 0 5px;border-bottom:1px solid #ddd5de}.mock-chart i{flex:1;background:var(--card-accent,#b9a2ed);border-radius:2px 2px 0 0;opacity:.8}.mock-table{margin-top:12px}.mock-row{height:14px;border-bottom:1px solid #e3dde5;display:flex;align-items:center;gap:12px}.mock-row i{display:block;background:#d5cfd8;width:35%;height:3px;border-radius:2px}.mock-row i:nth-child(2){width:20%}.mock-row i:nth-child(3){width:14%;margin-left:auto;background:var(--card-accent,#b9a2ed)}.phones{display:flex;justify-content:center;gap:15px;transform:rotate(-5deg)}.phone{width:112px;height:208px;background:#f4f2ee;border:5px solid #252525;border-radius:23px;color:#302f2d;padding:21px 10px 10px;box-shadow:4px 8px 14px #0006;position:relative}.phone:before{content:"";height:5px;width:29px;border-radius:5px;background:#222;position:absolute;top:7px;left:36px}.phone:nth-child(2){transform:translateY(10px) rotate(10deg)}.phone small{font-size:8px}.phone b{display:block;font-size:11px;line-height:1.3;margin:9px 0}.phone-circle{border:6px solid #dabdaf;border-top-color:#e78663;border-right-color:#e78663;border-radius:50%;height:50px;width:50px;margin:11px auto;display:grid;place-items:center;font-size:15px}.phone-line{height:4px;background:#d6d2cb;margin-top:9px;border-radius:4px}.phone-line.short{width:65%}.phone-cta{background:#db7853;border-radius:6px;color:#fff;padding:6px 3px;text-align:center;font-size:6px;margin-top:13px}

@media(min-width:1500px) {
  .window { width: 1120px; grid-template-columns: 340px minmax(0,1fr) }
}
@media(min-width:851px) and (max-height:700px) {
  .window { width: min(100%,1080px,calc(386px + (100svh - 286px) * 16 / 9)) }
}
@media(max-width:850px) {
  .desktop { padding: 16px }
  .window { grid-template-columns: 270px minmax(0,1fr); gap: 12px; height: calc(100svh - 32px); border-radius: 23px; padding: 9px }
  .identity-link { padding: 9px 5px }
  .subtitle { font-size: 11px }
  .profile strong { font-size: 12px }
  .avatar { width: 40px; height: 40px }
  .reader-hero { padding: 0 12px 0 2px }
  .content-inner { padding-right: 10px; padding-bottom: 28px; padding-left: 10px }
  .case-visual { padding: 16px 14px }
  .case-visual .phones { transform: scale(.85) rotate(-5deg) }
  .mock-main { padding: 10px }
  .mock-card strong { font-size: 10px }
}
@media(max-width:620px) {
  .desktop { padding: 10px }
  .window { display: flex; flex-direction: column; height: calc(100svh - 20px); width: 100%; border-radius: 23px; padding: 8px; gap: 7px }
  .sidebar { border-radius: 16px; flex: 0 0 auto }
  .identity-link { padding: 5px 6px }
  .avatar { height: 38px; width: 38px }
  .profile strong { font-size: 13px }
  .subtitle { font-size: 11px }
  .tabs { margin: 3px 12px 8px }
  .tabs a { font-size: 12px; padding: 7px 3px }
  .sidebar-scroll { display: block; flex: 0 0 auto }
  .sidebar-view { overflow-x: auto; overflow-y: hidden; padding: 5px 9px 8px; scrollbar-width: none }
  .sidebar-view[aria-hidden="false"] { position: relative }
  .sidebar-view::-webkit-scrollbar { display: none }
  .sidebar-list { display: flex; gap: 6px; width: max-content; margin-top: 0 }
  .project-item { flex: 0 0 224px; width: 224px; padding: 10px; margin: 0 }
  .project-heading { margin-bottom: 5px }
  .project-heading strong { font-size: 12px }
  .project-item .summary-lines { font-size: 11px }
  .reader { flex: 1; min-height: 0 }
  .reader-hero { padding: 0 8px 0 5px }
  .hero-frame { border-radius: 13px }
  .content { padding-right: 9px }
  .content-inner { padding-right: 7px; padding-bottom: 26px; padding-left: 13px }
  .case-visual { padding: 15px 20px }
  .case-visual .phones { transform: scale(.72) rotate(-5deg) }
  .case-visual .mock-ui { transform: scale(.85) translateY(7px) }
  .social-footer { padding-top: 22px }
  .social-link { width: 42px; height: 42px }
}
@media(max-height:520px) {
  .desktop { padding: 10px }
  .window { height: calc(100svh - 20px) }
  .identity-link { padding-top: 7px; padding-bottom: 7px }
}
@media(max-height:520px) and (max-width:620px) and (orientation:landscape) {
  .window { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 12px }
  .sidebar { min-height: 0 }
  .sidebar-scroll { flex: 1 }
  .sidebar-view,.sidebar-view[aria-hidden="false"] { position: absolute; overflow-y: auto; overflow-x: hidden }
  .sidebar-list { display: block; width: 100% }
  .project-item { width: 100%; margin-bottom: 4px }
}
@media(prefers-reduced-motion:reduce) {
  .social-link { transition: color 100ms ease,background-color 117ms ease }
  .social-link:hover { transform: none }
  .copy-status,.copy-status.is-visible { transform: translateX(-50%) }
  /* Keep opacity fades and the requested short pill movement visible. */
}

/* Screen-reader feedback and optional CMS captions do not alter existing pages. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 }
.article-image figcaption { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted) }
