*{margin:0;padding:0;box-sizing:border-box;}
  :root{
  --cream:#eef3f7;
  --cream2:#e3ebf2;
  --warm-dark:#141a22;
  --warm-mid:#2f3a46;
  --warm-text:#222c36;
  --muted:#6b7a88;
  --accent:#3b5c7a;
  --accent-light:#a9bfd3;
  --border:#bfcbd8;
  --serif: Georgia, "Times New Roman", serif; /* fallback similar to editorial serif */
  --sans:'Epilogue',sans-serif;
  --header: "Manrope", system-ui, sans-serif;
}

body, html {
  cursor: url('/images/cursor.svg') 0 0, auto;
}

a[href],
button,
[role="button"],
[onclick],
[data-link]{
  cursor: url('/images/pointer.svg') 0 0, pointer !important;
}
.projects-scroll-wrap {
  cursor: url('/images/grab.svg') 16 16, grab !important;
}
.projects-scroll-wrap.is-dragging {
  cursor: url('/images/grabbing.svg') 16 16, grabbing !important;
}

html{scroll-behavior:smooth;}
body{
  background:var(--cream);
  color:var(--warm-text);
  font-family:var(--sans);
  font-size:14px;
  line-height:1.6;
}
a{color:inherit;text-decoration:none;}
::selection{background:var(--accent-light);color:var(--warm-dark);}

/* ── UNIVERSAL HOVER ── */
[class*="cell"]:hover{
  background:var(--cream2);
}

/* ── NAV ── */
nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--border);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.nav-center {
  font-family: var(--header);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-text);
}

.nav-right {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-right a {
  color: var(--accent);
  transition: color 0.18s;
}

.nav-right a:hover {
  color: var(--warm-dark);
}

/* Hamburger button - hidden on desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 200;
}

.hamburger svg {
  width: 100%;
  height: 100%;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  backdrop-filter: blur(16px);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.mobile-menu a {
  font-family: var(--header);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--warm-dark);
}

/* Mobile styles */
@media (max-width: 768px) {
  nav {
    grid-template-columns: auto 1fr auto;
    padding: 1rem 1.5rem;
  }
  
  .nav-center {
    justify-self: center;
  }
  
  .nav-right {
    display: none;  /* Hide desktop nav */
  }
  
  .hamburger {
    display: block;  /* Show hamburger */
    justify-self: end;
  }
  
  .mobile-menu.show {
    display: flex;
  }
}

/* Tablet landscape - show full nav earlier if space allows */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

/* ── HEADER BLOCK ── */
.header-block{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-bottom:1px solid var(--border);
  min-height:62vh;
}
.header-left{
  padding:3.5rem 2.5rem;
  display:flex;flex-direction:column;justify-content:space-between;
  border-right:1px solid var(--border);
}
.header-name {
  font-family:var(--header);
  font-size: clamp(2.8rem, 9vw, 5.3rem); /* smaller min, keeps original max */
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.header-sub {
  font-family:var(--header);
  font-size: clamp(0.75rem, 2.5vw, 1rem); /* smaller on mobile, grows to 16px max */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.6rem;
  font-weight: 500;
}

.header-name em{
  font-family:var(--sans);
  font-style:normal;
  font-weight:500;
  color:var(--accent);
}

.header-tagline{
  font-size:1rem;
  line-height:1.75;
  color:var(--warm-mid);
  max-width:490px;
  margin-top:auto;
  padding-top:2rem;
}
.header-tagline strong{
  font-weight:600;
  color:var(--warm-dark);
}
.header-right{
  position:relative;
  overflow:hidden;
  background:var(--cream2);
}
.photo-placeholder{
  width:100%;height:100%;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:1rem;
  padding-top:8px;
  color:var(--muted);
}
@media (max-width: 600px){
  .photo-placeholder{
    padding-top:24px;
    padding-bottom: 12px;
  }
}
.photo-placeholder{
  width:230px;height:230px;
  border:2.4px dashed var(--border);
  display:flex;align-items:center;justify-content:center;
  font-size:13px;letter-spacing:0.1em;text-transform:uppercase;
  color:var(--accent-light);
}
.photo-placeholder p{
  font-size:13px;letter-spacing:0.12em;text-transform:uppercase;color:var(--accent-light);
}
.header-location{
  position:absolute;bottom:1.5rem;right:1.5rem;
  font-size:10px;letter-spacing:0.15em;text-transform:uppercase;
  color:var(--muted);
}

/* TOP statement */
.header-right {
  background: var(--cream2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem;
  gap: 1.5rem;
  text-align: center;
}

.cta-top {
  font-family: var(--header);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--warm-text);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;  /* This already gives you rows on mobile */
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;        /* Allows wrapping on mobile */
  justify-content: center;
  align-items: baseline;  /* Aligns text and icons nicely */
  gap: 0.75rem 1.5rem;    /* Row gap, column gap */
}

/* Each "word + icon" group */
.cta-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;    /* Prevents breaking inside Build/icon */
}

/* The icons themselves */
.cta-top svg {
  width: 1.2em;           /* Scales with font size */
  height: 1.2em;
  vertical-align: middle;
  flex-shrink: 0;
}

/* The italic tagline */
.cta-top em {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
  color: var(--accent);
  display: inline-block;   /* Changed from block */
  font-size: 0.72em;
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* On very small screens, allow wrap */
@media (max-width: 480px) {
  .cta-top {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }
  .cta-top em {
    white-space: normal;
    margin-left: 0;
    width: 100%;
    margin-top: 0.25rem;
  }
}
.ph-wrap {
  flex-shrink: 0;
  border: 2.4px dashed var(--border);
  width: 230px;
  height: 230px;
  overflow: hidden;
}
.ph-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cta-bottom {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 300px;
}

/* ── INFO STRIP ── */
.info-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-bottom:1px solid var(--border);
}
.info-cell{
  padding:1.25rem 1.5rem;
  border-right:1px solid var(--border);
}
.info-cell:last-child{border-right:none;}
.info-cell-label{
  font-size:10px;letter-spacing:0.18em;text-transform:uppercase;
  color:var(--muted);margin-bottom:0.5rem;
}
.info-cell-value{font-size:13px;font-weight:500;line-height:1.4;}

/* ── MAIN GRID ── */
.main-grid{
  display:grid;
  grid-template-columns:240px 5fr 2fr;
  border-bottom:1px solid var(--border);
}
@media (max-width: 900px){
  .main-grid{
    grid-template-columns:240px 4fr 2fr;
  }
}

.grid-col{border-right:1px solid var(--border);}
.grid-col:last-child{border-right:none;}
.col-header{
  font-family:var(--header);
  padding:1rem 1.5rem;
  border-top:1px solid var(--muted);
  border-bottom:1px solid var(--border);
  font-size:13px;letter-spacing:0.2em;text-transform:uppercase;
  color:var(--warm-mid);
  font-weight:600;
  background-color: var(--cream2);
}

/* ABOUT COL */
.about-body{padding:1.5rem;}
.about-body p{
  font-size:13.5px;line-height:1.8;
  color:var(--warm-mid);
}
.about-body p+p{margin-top:1rem;}

/* EXPERIENCE / STACK COLS */
.exp-cell-row{
  display:grid;grid-template-columns:73px 1fr;
  border-bottom:1px solid var(--border);
  min-height:0;
}
@media (max-width: 900px){
  .exp-cell-row{
    grid-template-columns:55px 1fr;
  }
}

.exp-cell-row:last-child{border-bottom:none;}
.exp-cell-num{
  padding:1.25rem 1rem;
  border-right:1px solid var(--border);
  font-size:13px;letter-spacing:0.1em;color:var(--warm-mid);
  font-family:var(--sans);
  font-style:italic;
  font-weight: bold;
}
.exp-cell-content{padding:1.25rem 1.25rem;}
.exp-cell-role{font-size:13px;font-weight:600;margin-bottom:0.2rem;line-height:1.3;}
.exp-cell-org{
  font-size:13px;letter-spacing:0.08em;text-transform:uppercase;
  color:var(--accent);margin-bottom:0.4rem;
}
.exp-cell-date{font-size:10px;color:var(--muted);margin-bottom:0.5rem;letter-spacing:0.05em;}
.exp-cell-desc{font-size:13px;color:var(--muted);line-height:1.65;}
.exp-cell-tags{display:flex;flex-wrap:wrap;gap:0.4rem;margin-top:0.6rem;}
.tag{
  font-size:10px;letter-spacing:0.06em;padding:0.2rem 0.55rem;
  border:1px solid var(--border);color:var(--muted);
}

/* TECH STACK */
.stack-cell-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.stack-cell-row:last-child {
  border-bottom: none;
}
.stack-name {
  font-size: 13px;
  font-weight: 500;
}
.stack-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}


/* ── AWARDS STRIP ── */
.awards-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-bottom:1px solid var(--border);
  border-top:1px solid var(--muted);
}
.award-cell{
  padding:1.5rem;
  border-right:1px solid var(--border);
  transition:background 0.18s;
}
.award-cell:last-child{border-right:none;}
.award-cell:hover{background:var(--cream2);}
.award-n{
  font-family:var(--serif);font-style:italic;
  font-size:1.7rem;color:var(--border);
  line-height:1;margin-bottom:0.75rem;font-weight: bold;
}
.award-title{font-size:12.5px;font-weight:500;line-height:1.5;margin-bottom:0.4rem;}
.award-year{font-size:13px;color:var(--muted);letter-spacing:0.1em;}

/* ── CONTACT BLOCK ── */
.contact-block{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-bottom:1px solid var(--border);
}
.contact-left{
  padding:3rem 2.5rem;
  border-right:1px solid var(--border);
  display:flex;flex-direction:column;justify-content:space-between;
}
.contact-heading{
  font-family:var(--header);
  font-size:clamp(1.8rem,3vw,2.8rem);
  line-height:1.15;
  font-weight:700;
}
.contact-heading em{font-style:italic;color:var(--accent);}
.contact-note{
  font-size:13px;color:var(--warm-mid);
  line-height:1.7;max-width:340px;margin-top:16px;
}
.contact-right{
  padding:3rem 2.5rem;
  display:flex;flex-direction:column;gap:0;
}
.resume-link{
  display:inline-block;
  margin-top:16px;
  font-size:13px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:3px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 10rem;
  margin-top: 0.75rem;
  padding: 0.55rem 1.1rem;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.cta-btn:hover {
  background: var(--accent);
  color: var(--cream);
}
.cta-btn svg {
  transition: transform 0.18s;
}
.cta-btn:hover svg {
  transform: translateX(3px);
}

.contact-link{
  display:flex;align-items:center;justify-content:space-between;
  padding:1rem 0;
  border-bottom:1px solid var(--border);
  transition:color 0.18s;
}
.contact-link:last-child{border-bottom:none;}
.contact-link:hover{color:var(--accent);}
.contact-link:hover .cl-arrow{transform:translate(3px,-3px);}
.cl-platform{font-size:13px;font-weight:600;letter-spacing:0.04em;}
.cl-handle{font-size:13px;color:var(--muted);margin-top:1px;}
.cl-arrow{
  font-size:14px;color:var(--muted);
  transition:transform 0.18s,color 0.18s;
  flex-shrink:0;
}
.contact-link:hover .cl-arrow{color:var(--accent);}

/* ── FOOTER ── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: bold;
}

/* Mobile styles */
@media (max-width: 640px) {
  footer {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 0.5rem;
  }
  
  .footer-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
  }
}

/* ── SCROLL REVEAL ── */
.reveal{opacity:0;transform:translateY(14px);transition:opacity 0.55s ease,transform 0.55s ease;}
.reveal.vis{opacity:1;transform:translateY(0);}

@media(max-width:720px){
  nav{grid-template-columns:1fr 1fr;}.nav-center{display:none;}
  .header-block,.main-grid,.contact-block{grid-template-columns:1fr;}
  .header-right{min-height:260px;}
  .header-left{border-right:none;border-bottom:1px solid var(--border);}
  .info-strip,.awards-strip{grid-template-columns:1fr 1fr;}
  .info-cell:nth-child(2){border-right:none;}
  .info-cell:nth-child(3){border-top:1px solid var(--border);}
  .grid-col{border-right:none;border-bottom:1px solid var(--border);}
  .main-grid{grid-template-columns:1fr;}
  .contact-left{border-right:none;border-bottom:1px solid var(--border);}
  .awards-strip{grid-template-columns:1fr 1fr;}
  .award-cell:nth-child(2){border-right:none;}
  .award-cell:nth-child(3){border-top:1px solid var(--border);}
  .award-cell:nth-child(4){border-top:1px solid var(--border);border-right:none;}
}

/* NEW ADDITIONS -- PROJECTS AND WORK */

.projects-section {
  border-bottom: 1px solid var(--border);
}

.projects-section-header {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--muted);
  gap: 1.5rem;
  background-color: var(--cream2);
}

.projects-section-title {
  font-family: var(--header);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-mid);
}

.projects-section-rule {
  height: 1px;
  background: var(--border);
}

.projects-section-count {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ROW LABEL */
.projects-row-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.projects-row-label-text {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.projects-row-label-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.projects-row-label-scroll-hint {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* SCROLL TRACK */
.projects-scroll-wrap {
  overflow-x: auto;
  overflow-y: visible;
  padding: 1.75rem 2.5rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  border-bottom: 1px solid var(--border);
  cursor: grab;
  user-select: none;
  background: transparent;
}
.projects-scroll-wrap:active {
  cursor: grabbing;
}
.projects-scroll-wrap::-webkit-scrollbar { height: 3px; }
.projects-scroll-wrap::-webkit-scrollbar-track { background: transparent; }
.projects-scroll-wrap::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.projects-track {
  display: flex;
  gap: 1px;
  min-width: max-content;
  background: var(--border);
  border: 1px solid var(--border);
}

/* ── DESIGN CARD ── REMOVED */
/*
.design-card {
  width: 220px;
  height: 320px;
  background: var(--cream2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.design-card-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: brightness(0.92) saturate(0.9);
}

.design-card:hover .design-card-bg {
  
  filter: brightness(0.8) saturate(1);
}

.design-card-bg.placeholder-1 { background-color: #dce8f0; }
.design-card-bg.placeholder-2 { background-color: #e0ddf0; }
.design-card-bg.placeholder-3 { background-color: #f0e8dc; }
.design-card-bg.placeholder-4 { background-color: #ddf0e0; }
.design-card-bg.placeholder-5 { background-color: #f0dce0; }

.design-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,26,34,0.85) 0%, rgba(20,26,34,0.1) 55%, transparent 100%);
  transition: opacity 0.3s;
  pointer-events: none;
}

.design-card-body {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1.1rem 1.25rem;
}

.design-card-type {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.3rem;
}

.design-card-title {
  font-family: var(--header);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.design-card-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.design-card-arrow {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}

.design-card:hover .design-card-arrow {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
*/

/* ── GITHUB CARD ── */
.github-card {
  width: 220px;
  height: 420px;
  background: var(--cream);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  cursor: pointer;
  transition: background 0.18s;
  text-decoration: none;
  color: inherit;
  position: relative;
  
}

.github-card:hover {
  background: var(--cream2);
}

.github-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* GitHub Octocat SVG icon */
.github-icon {
  width: 32px;
  height: 32px;
  opacity: 0.18;
  transition: opacity 0.2s;
}
.github-card:hover .github-icon {
  opacity: 0.35;
}

.github-card-num {
  padding-top: 12px;
  font-family: var(--sans);
  font-size: 1.2rem;
  color: var(--border);
  font-weight: bold;
  line-height: 1;
}

.github-card-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem 0;
}

.github-card-lang {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.github-card-title {
  font-family: var(--header);
  font-size: 15px;
  font-weight: 700;
  color: var(--warm-dark);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.github-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 13;
  line-clamp: 13;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.github-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* drag-scroll cursor fix for links inside */
.projects-scroll-wrap.is-dragging a,
.projects-scroll-wrap.is-dragging button {
  pointer-events: none;
}
/* ── SECTION WRAPPER ── */
    .works-section {
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      background: var(--cream);
    }

    /* ── SECTION HEADER ── */
    .works-header {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: 1rem 2.5rem;
      border-bottom: 1px solid var(--border);
      gap: 1.5rem;
      background: var(--cream);
    }
    .works-header-left {
      font-family: var(--header);
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--warm-mid);
    }
    .works-header-rule {
      height: 1px;
      background: var(--border);
    }
    .works-header-right {
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      text-align: right;
      white-space: nowrap;
    }

    /* ── INTRO STRIP ── */
    .works-intro {
      display: grid;
      grid-template-columns: 1fr 1fr;
      border-bottom: 1px solid var(--border);
      background: var(--cream);
    }
    .works-intro-left {
      padding: 1.75rem 2.5rem;
      border-right: 1px solid var(--border);
    }
    .works-intro-title {
      font-family: var(--serif);
      font-style: italic;
      font-size: clamp(1.3rem, 2vw, 1.8rem);
      color: var(--warm-dark);
      line-height: 1.2;
    }
    .works-intro-title em {
      font-style: normal;
      color: var(--accent);
    }
    .works-intro-right {
      padding: 1.75rem 2.5rem;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.7;
      display: flex;
      align-items: center;
    }
    .drag-hint {
      font-size: 10px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent-light);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* ── CANVAS FIXES: iPad + scrambled layout (non-overlapping, static) ── */
    .works-canvas-wrap {
      position: relative;
      height: 640px;
      background: var(--cream);
      border-bottom: 1px solid var(--border);
      /* fix for iPad: ensure scrollable area if tiles exceed width */
      overflow-x: auto;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      
    }

    /* Canvas container becomes relative anchor for absolute tiles */
    .works-canvas {
      position: relative;
      width: 100%;
      height: 100%;
      /* min-width ensures tiles never overlap or get squished (scrambled but no overlapping) */
      min-width: 1260px;
      background: var(--cream);
    }

    /* ── PROJECT TILE (static, no drag, no overlapping) ── */
    .work-tile {
      position: absolute;
      display: flex;
      flex-direction: column;
      background: var(--cream2);
      border: 1px solid var(--border);
      text-decoration: none;
      color: inherit;
      transition: box-shadow 0.22s, transform 0.22s;
      overflow: hidden;
      will-change: transform;
      /* iPad tap highlight remove */
      -webkit-tap-highlight-color: transparent;
    }
    .work-tile:hover {
      box-shadow: 0 8px 32px rgba(20, 26, 34, 0.10);
      transform: translateY(-3px);
    }

    /* image area */
    .work-tile-img {
      width: 100%;
      flex-shrink: 0;
      background: var(--cream2);
      overflow: hidden;
      position: relative;
    }
    .work-tile-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.4s ease;
    }
    .work-tile:hover .work-tile-img img {
      transform: scale(1.04);
    }

    .work-tile-img-ph {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(59, 92, 122, 0.35);
      background: var(--accent-light);
    }

    /* arrow badge (optional, not breaking) */
    .work-tile-arrow {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      width: 28px;
      height: 28px;
      background: rgba(255, 255, 255, 0.75);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: var(--accent);
      transition: background 0.18s;
      backdrop-filter: blur(4px);
    }
    .work-tile:hover .work-tile-arrow {
      background: #fff;
    }

    /* body */
    .work-tile-body {
      padding: 1rem 1.1rem 1.1rem;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border-top: 1px solid var(--border);
    }
    .work-tile-type {
      font-size: 9px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.3rem;
    }
    .work-tile-title {
      font-family: var(--header);
      font-size: 14px;
      font-weight: 700;
      color: var(--warm-dark);
      line-height: 1.25;
      margin-bottom: 0.3rem;
    }
   
    .work-tile-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 0.75rem;
    }
    .work-tile-tags {
      display: flex;
      gap: 0.3rem;
      flex-wrap: wrap;
    }
    .work-tile-tag {
      font-size: 9px;
      letter-spacing: 0.07em;
      padding: 0.18rem 0.45rem;
      border: 1px solid var(--border);
      color: var(--muted);
    }
    .work-tile-year {
      font-size: 14px;
      color: var(--accent);
      letter-spacing: 0.06em;
      white-space: nowrap;
    }

    /* ── TILE SIZES & POSITIONS (scrambled, non-overlapping) ── */
    /* Option 2: The "Dynamic Studio" (Playful & Energetic) */
.works-canvas {
    min-width: 1320px;
}

/* ── ORGANIC, SCRAMBLED PLACEMENT (whiteboard style) ── */

#t1 {
  width: 320px;
  top: 45px;
  left: 35px;
}
#t1 .work-tile-img { height: 280px; }

#t2 {
  width: 480px;
  top: 70px;
  left: 390px;
}
#t2 .work-tile-img { height: 210px; }

#t3 {
  width: 240px;
  top: 320px;
  left: 380px;
}
#t3 .work-tile-img { height: 170px; }

#t4 {
  width: 280px;
  top: 25px;
  left: 920px;
}
#t4 .work-tile-img { height: 250px; }

#t5 {
  width: 420px;
  top: 290px;
  left: 680px;
}
#t5 .work-tile-img { height: 170px; }


    /* ── MOBILE (≤720px) : stacked vertical, no canvas issues ── */
    @media (max-width: 720px) {
  .works-intro {
    grid-template-columns: 1fr;
  }
  .works-intro-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .works-header {
    grid-template-columns: 1fr auto;
  }
  .works-header-rule {
    display: none;
  }

  /* mobile stacked layout */
  .works-canvas-wrap {
    height: auto;
    overflow: visible;
    padding: 1.5rem;
    background: var(--cream);
  }
  .works-canvas {
    position: static !important;
    width: 100%;
    height: auto;
    min-width: auto !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .work-tile {
    position: static !important;
    width: 100% !important;
    margin: 0;
    top: auto !important;
    left: auto !important;
  }

  /* ── MINIMAL FRAME FOR IMAGES (no rectangle takeover) ── */
  .work-tile-img {
    height: auto !important;           /* remove fixed height */
    background: transparent;
    padding: 6px 6px 4px 6px;         /* thin frame spacing */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .work-tile-img img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 160px;                /* keeps image small and framed */
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background: #fff;
  }

  /* if you still have text placeholders (no img), style them similarly */
  .work-tile-img-ph {
    min-height: 100px;
    padding: 1rem;
    background: #f9f4ea;
    border: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
  }
}

    /* iPad & tablet adjustments (portrait & landscape: ensure no accidental overlaps and canvas scroll works) */
    @media (min-width: 721px) and (max-width: 1024px) {
      .works-canvas {
        min-width: 1280px; /* keeps tile positions from overlapping on iPad */
      }
      .works-canvas-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
    }

    /* additional small fix: remove any remnants of dragging (user doesn't want drag) */
    .work-tile {
      user-select: text;
      -webkit-user-select: text;
      cursor: pointer;
    }
    .works-canvas-wrap,
    .works-canvas {
      user-select: auto;
    }