:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#6f6f6f;
  --hair:#e9e9e9;
  --chip:#f6f6f6;
  --shadow: 0 12px 40px rgba(0,0,0,.08);
  --radius: 16px;
  --sidebarW: 260px;
  --gap: 18px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
button{color:inherit; font-family:inherit; background:none; border:none; padding:0; cursor:pointer; border-radius:0; -webkit-appearance:none; appearance:none; -webkit-tap-highlight-color:transparent}
html,body{height:100%; overflow-x:hidden}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.75}

.skip-link{
  position:absolute; left:-999px; top:10px;
  background:#000; color:#fff; padding:10px 12px;
}
.skip-link:focus{left:10px; z-index:9999}

.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;
}

/* Layout */
.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebarW);
  background:transparent;
  padding:28px 24px;
  z-index:50;
}
.sidebar__inner{
  height:100%;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.content{
  margin-left:var(--sidebarW);
  padding:34px 34px 60px;
}

/* Brand */
.brand__mark{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:52px; height:52px;
  position:relative;
}

.brand__mark {
  display: inline-block;
}

.brand__logo {
  width: 70px;   /* adjust size here */
  height: auto;
  display: block;
}

/* Sidebar text */
.intro{margin:0; color:var(--muted); max-width:280px}
.muted{color:var(--muted)}
.dot{padding:0 6px; color:var(--muted)}

/* Nav */
.nav{display:flex; flex-direction:column; gap:8px; margin-top:6px}
.nav__link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 0;
}
.nav__plus{color:var(--muted)}

/* Search */
.search input{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--hair);
  outline:none;
  background:#fff;
}
.search input:focus{border-color:#cfcfcf}

/* Filters */
.filters__title{
  margin:4px 0 10px;
  font-size:12px;
  letter-spacing:.14em;
  color:#b0b0b0;
}
.filters__chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  background:var(--chip);
  border:1px solid var(--hair);
  font-size:13px;
  cursor:pointer;
  user-select:none;
}
.chip[aria-pressed="true"]{
  background:#000;
  color:#fff;
  border-color:#000;
}

.meta{margin-top:auto}
.meta--stack{margin-top:10px}
.meta__small{margin:0; font-size:13px; color:var(--muted)}

/* Main */
.section{padding:10px 0 36px}
.section--thin{max-width:980px}
.grid-header{display:flex; align-items:flex-end; justify-content:space-between; gap:16px}
.title{margin:0; font-size:22px; font-weight:500; letter-spacing:-.01em}
.subtitle{margin:0; color:var(--muted)}

/* Grid */
.masonry{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:var(--gap);
}
.card{
  display:block;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:none;
  transform:translateZ(0);
}
.card__img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
  background:#f3f3f3;
}
.card__caption{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-top:1px solid var(--hair);
}
.card__title{margin:0; font-size:14px; font-weight:500}
.card__tags{margin:0; font-size:13px; color:var(--muted)}
.card:focus-visible{outline:3px solid #000; outline-offset:4px}

/* Project page */
.project__top{max-width:1200px}
.project__hero{
  width:100%;
  height:auto;
  display:block;
}
.project__gallery{
  margin-top:var(--gap);
  display:grid;
  gap:var(--gap);
  grid-template-columns: 1fr;
  max-width:1200px;
}
.project__figure{margin:0}
.project__figure img{
  width:100%;
  height:auto;
  display:block;
}
.kv{display:grid; grid-template-columns:1fr 1fr; gap:12px}

/* Sidebar mobile */
.sidebar__toggle{
  display:none;
  width:100%;
  padding:10px 12px;
  border:1px solid var(--hair);
  background:#fff;
}

.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.about-photo-col,
.about-bio-col {
  min-width: 0;   /* prevent grid blowout from max-content tools-track */
}

.about-photo-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.tools-strip {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.tools-strip::before,
.tools-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 20px;
  z-index: 2;
  pointer-events: none;
}
.tools-strip::before { left: 0;  background: linear-gradient(to right, #fff, transparent); }
.tools-strip::after  { right: 0; background: linear-gradient(to left,  #fff, transparent); }

.tools-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: scroll-tools 20s linear infinite;
}

.tools-strip:hover .tools-track { animation-play-state: paused; }

@keyframes scroll-tools {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tool-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border: 1px solid #ddd;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  color: #555;
  background: #f8f8f8;
  cursor: default;
  transition: border-color 0.15s;
}
.tool-pill:hover { border-color: #999; }

.tool-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.ti-ai  { background: #FF7C00; }
.ti-ps  { background: #001E36; }
.ti-id  { background: #470137; }
.ti-vsc { background: #007ACC; }
.ti-fig { background: #1E1E1E; }


/* Section label */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

/* Background section */
.bg {
  max-width: 1200px;
  margin-top: 56px;
}
.bg__sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.bg__section {
  padding: 28px 0;
  border-top: 1px solid var(--hair);
}
.bg__heading {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.bg__body {
  margin: 0 0 10px;
  line-height: 1.7;
  color: var(--text);
}
.bg__body:last-of-type { margin-bottom: 0; }
.bg__body-cols {
  column-count: 2;
  column-gap: 40px;
}
.bg__body-cols .bg__body:last-of-type { margin-bottom: 0; }
@media (max-width: 600px) {
  .bg__body-cols { column-count: 1; }
}

.bg__list {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.7;
}
.bg__list li {
  margin-bottom: 4px;
}

/* Background section image */
.bg__img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 14px;
}
.bg__img-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.bg__img-row .bg__img {
  margin-top: 0;
}
.bg__section--wide {
  grid-column: 1 / -1;
}
.bg__img--sm {
  max-width: 220px;
}
.bg__img-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.bg__img--stacked {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin-top: 0;
}
.bg__img-pairs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.bg__img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bg__img-pair .bg__img {
  margin-top: 0;
}

/* Color palette */
.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.palette__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.palette__swatch {
  width: 52px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.08);
  flex-shrink: 0;
}
.palette__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}
.palette__hex {
  font-size: 13px;
  font-weight: 600;
  font-family: "SF Mono", "Fira Mono", monospace;
  letter-spacing: .04em;
}
.palette__name {
  font-size: 13px;
  font-weight: 500;
}
.palette__val {
  font-size: 11px;
  color: var(--muted);
  font-family: "SF Mono", "Fira Mono", monospace;
  letter-spacing: .02em;
}

/* Card-style palette (4-up grid) */
.palette--cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex-wrap: unset;
}
.palette--cards .palette__item {
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  background: #f4f3f1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
}
.palette--cards .palette__swatch {
  width: 100%;
  height: 110px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.07);
  flex-shrink: unset;
}
.palette--cards .palette__info {
  padding: 12px 14px 14px;
  gap: 3px;
}
.palette--cards .palette__name {
  font-size: 13px;
  font-weight: 600;
}
.palette--cards .palette__hex {
  font-size: 12px;
  font-weight: 500;
  font-family: "SF Mono", "Fira Mono", monospace;
  letter-spacing: .04em;
  color: var(--muted);
}
.palette__desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 700px) {
  .palette--cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 400px) {
  .palette--cards {
    grid-template-columns: 1fr;
  }
}

/* Typography panel (design manual style) */
.typo-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f0efed;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(0,0,0,.07);
}
.typo-panel__left {
  padding: 32px 28px;
  border-right: 1px solid rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.typo-panel__right {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.typo-panel__section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #c44f24;
}
.typo-panel__font-box {
  background: #e2e1de;
  border-radius: 8px;
  padding: 18px 20px;
}
.typo-panel__font-name {
  font-size: 18px;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 8px;
}
.typo-panel__font-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.55;
}
.typo-panel__weights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.typo-panel__weight {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.typo-panel__aa {
  font-size: 30px;
  line-height: 1;
  color: #1c1c1c;
}
.typo-panel__wlabel {
  font-size: 10px;
  color: #999;
  letter-spacing: .04em;
}
.typo-panel__rules-title {
  font-size: 10px;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 8px;
  letter-spacing: .05em;
}
.typo-panel__rules-list {
  padding-left: 14px;
  margin: 0;
}
.typo-panel__rules-list li {
  font-size: 11px;
  line-height: 1.65;
  color: #555;
  margin-bottom: 2px;
}
.typo-panel__page-num {
  font-size: 52px;
  font-weight: 700;
  color: #c44f24;
  line-height: 1;
  text-align: right;
  margin-bottom: 20px;
}
.typo-panel__specs {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.typo-panel__spec {
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,.1);
}
.typo-panel__spec:last-child {
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.typo-panel__spec-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #c44f24;
  margin-bottom: 1px;
}
.typo-panel__spec-size {
  font-size: 10px;
  color: #aaa;
  margin-bottom: 3px;
}
.typo-panel__spec-sample--display {
  font-size: 34px;
  font-weight: 700;
  color: #1c1c1c;
  line-height: 1.1;
}
.typo-panel__spec-sample--h1 {
  font-size: 21px;
  font-weight: 700;
  color: #1c1c1c;
  line-height: 1.2;
}
.typo-panel__spec-sample--h2 {
  font-size: 15px;
  font-weight: 500;
  color: #1c1c1c;
}
.typo-panel__spec-sample--eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #c44f24;
  text-transform: uppercase;
}
.typo-panel__spec-sample--body {
  font-size: 13px;
  font-weight: 400;
  color: #1c1c1c;
  line-height: 1.5;
}
.typo-panel__spec-sample--caption {
  font-size: 11px;
  color: #999;
}
@media (max-width: 720px) {
  .typo-panel {
    grid-template-columns: 1fr;
  }
  .typo-panel__left {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,.1);
  }
  .typo-panel__spec-sample--display { font-size: 24px; }
  .typo-panel__spec-sample--h1 { font-size: 17px; }
}

/* Sidebar project metadata list */
.pmeta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pmeta__row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pmeta__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
}
.pmeta__value {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* PDF note */
.pdf-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: #f6f6f6;
  border-left: 3px solid var(--hair);
  border-radius: 4px;
  max-width: 680px;
}
.pdf-note__heading {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.pdf-note__body {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* PDF buttons */
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--chip);
  transition: background .15s, border-color .15s;
}
.btn-pdf:hover { background: #efefef; border-color: #ccc; opacity: 1; }
.btn-pdf--primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-pdf--primary:hover { background: #333; border-color: #333; }
.btn-pdf--green {
  background: #cce8f4;
  color: #000;
  border-color: #cce8f4;
  font-size: 11px;
  padding: 7px 12px;
  width: 100%;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-pdf--green:hover { background: #aed8ee; border-color: #aed8ee; opacity: 1; }

/* Final PDF section */
.final-pdf {
  margin-top: 56px;
}

/* Slideshow */
.slideshow {
  position: relative;
  margin-top: 0;
  max-width: 1200px;
  border-radius: 0;
  overflow: hidden;
  background: #f3f3f3;
  aspect-ratio: 4 / 3;
}
.slideshow__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.slideshow__slide {
  flex: 0 0 100%;
  margin: 0;
  width: 100%;
  height: 100%;
}
.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.slideshow__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,.08);
  width: 32px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: background .15s;
  z-index: 2;
}
.slideshow__btn:hover { background: #fff; }
.slideshow__btn--prev { left: 14px; }
.slideshow__btn--next { right: 14px; }
.slideshow__counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
}

/* Process section */
.process {
  max-width: 1200px;
  margin-top: 48px;
}
.process__heading {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 32px;
}
.process__step {
  padding: 32px 0;
  border-top: 1px solid var(--hair);
}
.process__step-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.process__body {
  margin: 0 0 12px;
  max-width: 680px;
  color: var(--text);
  line-height: 1.65;
}
.process__body:last-child { margin-bottom: 0; }
.process__images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
  margin-top: 20px;
}
.process-placeholder {
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  border-radius: 16px;
  border: 1.5px dashed #d4d4d4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  font-size: 13px;
}

/* ── Responsive ── */

/* Tablet wide: sidebar shrinks, grid 2-col */
@media (max-width: 1100px) {
  :root { --sidebarW: 220px }
  .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet narrow / large mobile: sidebar collapses to top bar */
@media (max-width: 820px) {
  .sidebar {
    width: 100%;
    position: sticky;
    top: 0;
    padding: 16px 16px 10px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hair);
  }
  .content { margin-left: 0; padding: 24px 20px 60px; }
  .intro, .filters, .search, .meta { display: none; }
  .sidebar__toggle { display: inline-block; }
  .sidebar--open .intro,
  .sidebar--open .filters,
  .sidebar--open .search,
  .sidebar--open .meta { display: block; }
  .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slideshow { aspect-ratio: 16 / 9; border-radius: 0; }
  .bg { margin-top: 36px; }
  .final-pdf { margin-top: 36px; }
  .bg__sections { grid-template-columns: 1fr; }
  /* About: stack to single column so photo + bio don't overflow */
  .about-layout { grid-template-columns: 1fr; gap: 24px; }
  /* Show photo at natural portrait ratio — no fixed height crop */
  .about-photo { width: 52%; max-width: 200px; height: auto; aspect-ratio: unset; }
}

/* Mobile: single column */
@media (max-width: 560px) {
  .masonry { grid-template-columns: 1fr; }
  .slideshow { aspect-ratio: 4 / 3; border-radius: 0; }
  .about-photo { width: 60%; max-width: 180px; }
  .kv { grid-template-columns: 1fr; gap: 8px; }
  .bg__heading { font-size: 14px; }
  .bg__body { font-size: 14px; line-height: 1.6; }
}