:root {
  --home-page: #f8f7f3;
  --home-surface: #fcfcfb;
  --home-sidebar: #f6f5f2;
  --home-text: #20221f;
  --home-secondary: #60656d;
  --home-rule: #ddddd6;
  --home-stripe: #c9c8be;
  --home-selected: #eeede9;
  --home-sage: #3f423e;
  --home-amber: #8a8982;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body { background: var(--home-page); }
.homepage-header { z-index: 30; min-height: 82px; border-bottom: 0; }
.has-pinstripes .homepage-header::before { display: none; }
.homepage-brand { color: var(--home-text); }
.homepage-nav { gap: 32px; color: var(--home-text); font-size: .78rem; }
.homepage-nav .nav-contact { min-height: 38px; padding: 0 18px; border: 1px solid var(--home-text); border-radius: 2px; color: var(--home-surface); background: var(--home-text); }
.homepage-nav .nav-contact:hover { color: var(--home-surface); background: #343632; border-color: #343632; text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 0; background: transparent; color: var(--home-text); }
.nav-toggle > span:not(.sr-only) { display: block; width: 21px; height: 1px; margin: 6px auto; background: currentColor; transition: transform .18s ease; }

.homepage-intro { position: relative; isolation: isolate; overflow: hidden; padding: 35px 0 18px; color: var(--home-text); }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(290px, .85fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.home-hero h1 { max-width: 845px; margin: 0; font-family: var(--body); font-size: clamp(4.5rem, 6.25vw, 5.35rem); font-weight: 400; line-height: 1.03; letter-spacing: -.065em; }
.home-hero h1 span { display: block; }
.home-hero-action { width: 100%; max-width: 380px; padding: clamp(25px, 3vw, 34px); justify-self: end; color: var(--home-surface); background: var(--black); }
.home-hero-action p { margin: 0 0 22px; color: #c7c7c2; font-size: .96rem; line-height: 1.55; }
.home-primary { width: 100%; min-height: 52px; justify-content: space-between; padding-inline: 25px; border-color: var(--home-surface); border-radius: 2px; color: var(--home-text); background: var(--home-surface); font-size: .86rem; font-weight: 600; }
.home-primary:hover { color: var(--home-text); background: #d8d8d3; border-color: #d8d8d3; }
.home-primary span { font-size: 1.35rem; font-weight: 400; line-height: 1; }

.pinstripe-band { height: 80px; margin-top: 18px; overflow: hidden; pointer-events: none; }
.pinstripe-band svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pinstripe-band path { fill: none; stroke: var(--home-stripe); stroke-width: 1; vector-effect: non-scaling-stroke; }
.page-edge-lines { position: absolute; z-index: -1; top: 0; bottom: 0; width: 54px; pointer-events: none; opacity: .62; background: repeating-linear-gradient(90deg, transparent 0 8px, var(--home-stripe) 8px 9px); }
.edge-left { left: max(0px, calc((100vw - 1480px) / 2)); }
.edge-right { right: max(0px, calc((100vw - 1480px) / 2)); }
.corner-lines { position: absolute; z-index: -1; top: -20px; right: max(22px, calc((100vw - 1450px) / 2)); width: 190px; height: 150px; opacity: .65; pointer-events: none; background: repeating-linear-gradient(135deg, transparent 0 9px, var(--home-stripe) 9px 10px); clip-path: polygon(55% 0, 100% 0, 100% 45%, 34% 100%, 0 100%); }

.workspace-stage { position: relative; z-index: 1; }
.workspace { min-height: 625px; display: grid; grid-template-columns: 218px minmax(0, 1fr); overflow: hidden; background: var(--home-surface); border: 1px solid #d4d4ce; border-radius: 12px; box-shadow: 0 16px 44px rgba(39, 39, 33, .08); }
.workspace-sidebar { display: flex; flex-direction: column; min-width: 0; padding: 27px 12px 20px; color: var(--home-surface); background: var(--black); border-right: 1px solid #30312f; }
.workspace-identity { padding: 0 17px; }
.workspace-identity strong { display: block; font-size: .93rem; font-weight: 600; }
.workspace-identity > span { display: block; margin-top: 7px; color: #a8aaa6; font-size: .56rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.workspace-identity .brand-wordmark { display: inline; margin: 0; color: inherit; font-size: inherit; letter-spacing: -.035em; text-transform: none; }
.workspace-nav { display: grid; gap: 5px; margin-top: 34px; }
.workspace-nav button { position: relative; min-height: 49px; display: flex; align-items: center; gap: 13px; width: 100%; padding: 0 17px; border: 0; border-radius: 7px; background: transparent; color: var(--home-surface); text-align: left; font-size: .84rem; cursor: pointer; }
.workspace-nav button::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: transparent; }
.workspace-nav button[aria-current="page"] { background: #272825; }
.workspace-nav button[aria-current="page"]::before { background: var(--home-surface); }
.workspace-nav button:hover { background: #20211f; }
.workspace-icon { flex: 0 0 20px; width: 20px; height: 20px; }
.workspace-icon svg, .icon-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.view-select-label, .view-select { display: none; }
.workspace-profile { display: flex; align-items: center; gap: 11px; margin: auto 13px 0; padding-top: 20px; border-top: 1px solid #333431; }
.workspace-profile .avatar { color: var(--home-text); background: var(--home-surface); }
.avatar { flex: 0 0 auto; width: 35px; height: 35px; display: inline-grid; place-items: center; border-radius: 50%; background: #e8e7e2; color: var(--home-text); font-size: .74rem; }
.workspace-profile strong, .workspace-profile small { display: block; }
.workspace-profile strong { font-size: .68rem; font-weight: 500; }
.workspace-profile small { margin-top: 4px; color: #a8aaa6; font-size: .66rem; }

.workspace-main { min-width: 0; }
.workspace-header { min-height: 67px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; margin: 0 31px; border-bottom: 1px solid var(--home-rule); }
.workspace-header p { display: flex; gap: 10px; margin: 0; color: #858990; font-size: .68rem; }
.workspace-header p strong { color: var(--home-text); font-weight: 500; }
.icon-button { width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 50%; background: transparent; color: var(--home-text); cursor: pointer; }
.icon-button:hover { background: var(--home-selected); }
.top-avatar { width: 31px; height: 31px; font-size: .68rem; }
.workspace-content { padding: 23px 32px 31px; }
.workspace-day h2 { margin: 0; font-family: var(--body); font-size: clamp(1.8rem, 2.7vw, 2.35rem); font-weight: 400; line-height: 1.12; letter-spacing: -.04em; }
.workspace-day p { margin: 4px 0 0; color: #747880; font-size: .95rem; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(220px, .78fr); gap: 32px; margin-top: 25px; }
.workspace-section-head { min-height: 32px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.workspace-section-head h3 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -.015em; }
.workspace-section-head > span { color: #747880; font-size: .67rem; }
.attention-list { margin-top: 10px; }
.attention-row { min-height: 62px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 8px 14px; border-bottom: 1px solid var(--home-rule); }
.attention-row:first-child { background: var(--home-selected); border-bottom-color: transparent; border-radius: 7px; }
.row-icon { width: 20px; height: 20px; color: var(--home-text); }
.row-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.row-copy { min-width: 0; }
.row-copy strong, .row-copy small { display: block; }
.row-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; font-weight: 500; }
.row-copy small { margin-top: 4px; overflow: hidden; color: #7b7f85; font-size: .64rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.text-action { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; padding: 0 2px; border: 0; background: transparent; color: var(--home-text); font-size: .69rem; cursor: pointer; }
.text-action span { font-size: 1rem; }
.text-action:hover { text-decoration: underline; text-underline-offset: 4px; }
.schedule { padding-left: 27px; border-left: 1px solid var(--home-rule); }
.meeting-row { min-height: 72px; display: grid; grid-template-columns: 55px 1fr; gap: 12px; align-content: center; border-bottom: 1px solid var(--home-rule); }
.meeting-row time { padding-top: 2px; font-size: .72rem; font-weight: 600; }
.meeting-row strong, .meeting-row small { display: block; }
.meeting-row strong { font-size: .73rem; font-weight: 500; }
.meeting-row small { margin-top: 5px; color: #73777e; font-size: .62rem; line-height: 1.3; }
.calendar-open { margin-top: 3px; }
.projects-overview { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--home-rule); }
.project-table { margin-top: 11px; }
.project-table-head, .project-row { display: grid; grid-template-columns: 1.25fr .95fr .7fr; gap: 20px; align-items: center; }
.project-table-head { min-height: 28px; color: #767a80; font-size: .54rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.project-row { min-height: 48px; border-top: 1px solid var(--home-rule); font-size: .69rem; }
.project-name { display: flex; align-items: center; gap: 14px; }
.status { display: flex; align-items: center; gap: 10px; }
.status::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--home-amber); }
.status.on-track::before { background: var(--home-sage); }
.workspace-caption { margin: 18px 0 0; color: #7a7e83; text-align: center; font-size: .61rem; }

.secondary-view { min-height: 490px; }
.secondary-view header { max-width: 640px; margin-bottom: 30px; }
.secondary-view h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: -.04em; }
.secondary-view header p { margin: 8px 0 0; color: var(--home-secondary); font-size: .82rem; line-height: 1.55; }
.secondary-list { max-width: 780px; border-top: 1px solid var(--home-rule); }
.secondary-item { min-height: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--home-rule); }
.secondary-item strong, .secondary-item small { display: block; }
.secondary-item strong { font-size: .84rem; font-weight: 500; }
.secondary-item small { margin-top: 5px; color: var(--home-secondary); font-size: .68rem; }

.demo-dialog { width: min(520px, calc(100% - 32px)); max-height: min(720px, calc(100dvh - 32px)); padding: 0; overflow: auto; color: var(--home-text); background: var(--home-surface); border: 1px solid var(--home-rule); border-radius: 12px; box-shadow: 0 24px 80px rgba(20, 20, 16, .22); }
.demo-dialog::backdrop { background: rgba(26, 27, 25, .46); backdrop-filter: blur(2px); }
.dialog-inner { position: relative; padding: 34px; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--home-selected); color: var(--home-text); font-size: 1.35rem; cursor: pointer; }
.demo-label { margin: 0 0 13px; color: var(--home-secondary); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.demo-dialog h2 { margin: 0; padding-right: 40px; font-size: 1.7rem; font-weight: 500; letter-spacing: -.035em; }
.demo-dialog p:last-child { margin-bottom: 0; color: var(--home-secondary); font-size: .86rem; line-height: 1.6; }
.dialog-context { margin: 10px 0 22px; color: var(--home-secondary); font-size: .72rem; }
.search-dialog label { display: block; margin: 28px 0 8px; font-size: .72rem; font-weight: 500; }
.search-dialog input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #bcbdb8; border-radius: 5px; color: var(--home-text); background: var(--home-surface); }
.search-results { margin-top: 18px; border-top: 1px solid var(--home-rule); }
.search-result { width: 100%; min-height: 62px; display: block; padding: 11px 0; border: 0; border-bottom: 1px solid var(--home-rule); background: transparent; color: var(--home-text); text-align: left; cursor: pointer; }
.search-result strong, .search-result small { display: block; }
.search-result strong { font-size: .8rem; font-weight: 500; }
.search-result small { margin-top: 5px; color: var(--home-secondary); font-size: .67rem; }
.search-empty { margin: 25px 0 0; color: var(--home-secondary); font-size: .8rem; }
.agenda-dialog .meeting-row { grid-template-columns: 70px 1fr; min-height: 84px; }

@media (max-width: 1120px) {
  .home-hero { grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); gap: 44px; }
  .home-hero h1 { font-size: clamp(4rem, 6.8vw, 4.75rem); }
  .workspace { grid-template-columns: 182px minmax(0, 1fr); }
  .workspace-sidebar { padding-inline: 9px; }
  .workspace-content { padding-inline: 25px; }
  .today-grid { grid-template-columns: 1fr; }
  .schedule { padding: 18px 0 0; border-top: 1px solid var(--home-rule); border-left: 0; }
  .meeting-row { grid-template-columns: 70px 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 36px), var(--max)); }
  .homepage-header { min-height: 70px; }
  .nav-toggle { display: block; cursor: pointer; }
  .has-pinstripes .homepage-header .homepage-nav { position: absolute; z-index: 20; top: 63px; right: 0; left: 0; display: none; gap: 0; padding: 15px 18px 20px; background: var(--home-page); border-bottom: 1px solid var(--home-rule); box-shadow: 0 16px 28px rgba(30,30,26,.08); }
  .has-pinstripes .homepage-header .homepage-nav[data-open="true"] { display: grid; }
  .homepage-nav a:not(.button), .homepage-nav .nav-contact { width: 100%; min-height: 48px; display: flex; align-items: center; padding: 0 10px; border: 0; border-radius: 0; }
  .homepage-nav .nav-contact { border-top: 1px solid var(--home-rule); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .homepage-intro { padding-top: 28px; }
  .home-hero { grid-template-columns: 1fr; gap: 28px; }
  .home-hero h1 { font-size: clamp(2.65rem, 12.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.055em; }
  .home-hero h1 span { display: inline; }
  .home-hero-action { width: 100%; max-width: none; padding: 24px; justify-self: start; }
  .home-hero-action p { font-size: .9rem; }
  .home-primary { width: 100%; }
  .pinstripe-band { height: 52px; margin-top: 20px; }
  .pinstripe-band path:nth-child(n+5) { display: none; }
  .page-edge-lines, .corner-lines { display: none; }
  .workspace { display: block; min-height: 0; overflow: visible; }
  .workspace-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 13px 18px; padding: 18px; border-right: 0; border-bottom: 1px solid var(--home-rule); border-radius: 12px 12px 0 0; }
  .workspace-identity { padding: 0; }
  .workspace-identity strong { font-size: .86rem; }
  .workspace-identity span { font-size: .52rem; }
  .workspace-nav { display: none; }
  .view-select-label { display: block; align-self: end; grid-column: 1; margin-bottom: 6px; font-size: .65rem; font-weight: 500; }
  .view-select { display: block; grid-column: 1 / -1; width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #555651; border-radius: 5px; color: var(--home-surface); background: #191a18; color-scheme: dark; }
  .workspace-profile { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; }
  .workspace-profile .avatar { width: 32px; height: 32px; }
  .workspace-profile > span:last-child { max-width: 110px; }
  .workspace-header { min-height: 61px; margin-inline: 18px; gap: 8px; }
  .workspace-header p { gap: 7px; }
  .top-avatar { display: none; }
  .workspace-content { padding: 22px 18px 26px; }
  .workspace-day h2 { font-size: 1.75rem; }
  .workspace-day p { font-size: .81rem; }
  .today-grid { gap: 20px; margin-top: 23px; }
  .attention-row { grid-template-columns: 30px minmax(0, 1fr) auto; padding-inline: 10px; }
  .row-copy strong, .row-copy small { white-space: normal; }
  .text-action { min-width: 48px; justify-content: flex-end; }
  .schedule { padding-top: 19px; }
  .project-table-head { display: none; }
  .project-row { grid-template-columns: 1fr; gap: 8px; padding: 15px 0; }
  .project-row > span:not(.project-name)::before { display: block; margin-bottom: 3px; color: #767a80; font-size: .51rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  .project-row > span:nth-child(2)::before { content: "Next milestone"; }
  .project-row > .status::before { display: inline-block; margin: 0; }
  .project-row > .status::after { content: "Status"; order: -1; display: inline-block; margin-right: 5px; color: #767a80; font-size: .51rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  .secondary-view { min-height: 400px; }
  .secondary-item { min-height: 82px; }
  .workspace-caption { padding-inline: 18px; line-height: 1.45; }
  .dialog-inner { padding: 29px 22px; }
  .demo-dialog { width: min(100% - 20px, 520px); max-height: calc(100dvh - 20px); margin-bottom: 10px; }
}

@media (max-width: 360px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .home-hero h1 { font-size: 2.5rem; }
  .workspace-sidebar { grid-template-columns: 1fr; }
  .workspace-profile { grid-column: 1; grid-row: auto; }
  .view-select-label { grid-row: auto; }
  .workspace-header { margin-inline: 13px; }
  .workspace-content { padding-inline: 13px; }
  .attention-row { grid-template-columns: 26px minmax(0, 1fr); }
  .attention-row .text-action { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-toggle > span:not(.sr-only) { transition: none; }
}
