/* ============================================================
   3shade — shared stylesheet (about, portfolio, project)
============================================================ */
:root{
  --bone:#EFECE6;
  --bone-2:#E6E2DA;
  --bone-3:#D9D4C9;
  --ink:#0E0E0D;
  --ink-2:#1A1A18;
  --ink-soft:var(--ink);
  --mute:var(--ink);
  --mute-2:var(--ink);
  --clay:#B8916B;
  --clay-deep:#8C6A4A;
  --line:rgba(14,14,13,0.12);
  --line-soft:rgba(14,14,13,0.06);

  --display: "DM Sans", -apple-system, system-ui, sans-serif;
  --sans: "DM Sans", -apple-system, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --gut: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.65, 0.01, 0.05, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

em, i { font-style: normal; }

*{margin:0;padding:0;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
html,body{
  background:var(--bone);
  color:var(--ink);
  font-family:var(--sans);
  font-weight:400;
  font-size:13px;
  line-height:1.6;
  overflow-x:hidden;
}
p {
  font-size: 13px;
  line-height: 1.6;
}
::selection{ background:var(--ink); color:var(--bone); }
img{ display:block; max-width:100%; }
a{ color:inherit; }

/* No native cursor on desktop */
@media (hover:hover) and (pointer:fine){
  body, a, button{ cursor:none; }
}

/* ---------- Cursor ---------- */
.cursor{
  position:fixed; top:0; left:0;
  width:8px; height:8px; border-radius:50%;
  background:var(--ink); pointer-events:none; z-index:9999;
  transform:translate(-50%,-50%);
  mix-blend-mode:difference;
  transition:width .35s var(--ease-out), height .35s var(--ease-out);
}
.cursor.is-hover{ width:54px; height:54px; background:var(--bone); }
@media (hover:none) or (pointer:coarse){ .cursor{ display:none; } }

/* ---------- Header ---------- */
.header{
  position:fixed; top:0; left:0; right:0;
  z-index:100;
  padding:18px var(--gut) 0;
  display:flex; align-items:center; justify-content:space-between;
  pointer-events:none;
  --header-fg:#ffffff;
  color:var(--header-fg);
  transition:color 0.45s ease, filter 0.45s ease;
}
.header.is-light{ --header-fg:#0E0D0C; }
.header.is-scrolled {
  background: rgba(14, 14, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}
.header.is-scrolled.is-light {
  background: rgba(242, 242, 240, 0.88);
  border-bottom: 1px solid rgba(14, 14, 13, 0.08);
}
.header > *{ pointer-events:auto; }
.brand{
  display:flex; align-items:center; gap:10px; text-decoration:none;
  color:inherit;
}
.brand__img{
  width:100px;
  height:40px;
  object-fit:contain;
  object-position:left center;
  transition:filter 0.45s ease, opacity 0.45s ease;
  filter:brightness(0) invert(1);
  opacity:.96;
}
.header.is-light .brand__img{ filter:brightness(0); opacity:.98; }
.brand__svg{ width:128px; height:auto; overflow:visible; }
.brand__svg > :not(.brand-wordmark){ display:none; }
.shade-wordmark__letter{
  font-family:"Helvetica Neue", Arial, sans-serif;
  font-size:134px;
  font-weight:400;
  fill:currentColor;
}
.shade-wordmark__architect{
  font-family:"Helvetica Neue", Arial, sans-serif;
  font-size:25px;
  font-weight:400;
  fill:currentColor;
}
.shade-wordmark__dot-shadow{
  stroke:currentColor;
  stroke-width:8;
  stroke-linecap:round;
  opacity:.22;
}
.shade-wordmark__dot-core{ fill:currentColor; }
.brand__tag{
  font-family:var(--mono); font-size:10px; letter-spacing:.2em;
  text-transform:uppercase; opacity:1;
  margin-left:14px; padding-left:14px;
  border-left:1px solid currentColor;
}
.nav{
  display:flex; gap:clamp(36px, 4vw, 64px); align-items:center;
  font-family:var(--mono); font-size:11px;
  letter-spacing:.18em; text-transform:uppercase;
}
.nav a{ color:inherit; text-decoration:none; position:relative; padding:6px 0; }
.nav a:not(.nav__cta), .menu-btn{
  color:inherit;
  transition:color 0.45s ease, opacity 0.45s ease;
}
.nav a::after{
  content:""; position:absolute; left:0; bottom:0;
  width:0; height:1px; background:currentColor;
  transition:width .5s var(--ease-out);
}
.nav a:hover::after{ width:100%; }
.nav a.is-active::after{ width:100%; }
.nav a.nav__cta{
  display:inline-flex; align-items:center;
  padding:14px 34px; border-radius:99px;
  background:rgba(255,255,255,.04); color:#ffffff !important;
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(8px);
  transition:color 0.45s ease, background-color 0.45s ease, border-color 0.45s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration:none;
  font-size:11px;
}
.nav a.nav__cta:hover{
  background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.38);
  color:#ffffff !important; transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(0,0,0,.16);
}
.header.is-light .nav a.nav__cta{
  background:var(--ink); color:var(--bone) !important;
  border-color:var(--ink);
}
.header.is-light .nav a.nav__cta:hover{
  background:var(--ink-2); color:var(--bone) !important;
  border-color:var(--ink-2); transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(14,14,13,.14);
}
.nav a.nav__cta::after{ display:none; }
.whatsapp-float{
  position:fixed;
  right:18px;
  top:50%;
  z-index:9999;
  transform:translateY(-50%);
  writing-mode:vertical-rl;
  text-orientation:mixed;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 10px;
  border:1px solid rgba(14,14,13,.18);
  border-radius:999px;
  background:rgba(239,236,230,.78);
  color:var(--ink);
  text-decoration:none;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
  backdrop-filter:blur(14px);
  box-shadow:0 16px 45px rgba(14,14,13,.08);
  transition:transform .35s var(--ease-out), background .25s ease, border-color .25s ease;
}
.whatsapp-float::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#24D366;
  box-shadow:0 0 0 6px rgba(36,211,102,.12);
}
.whatsapp-float:hover{
  transform:translateY(-50%) translateX(-4px);
  background:rgba(255,255,255,.9);
  border-color:rgba(14,14,13,.3);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: var(--ink);
  color: var(--bone);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}

.mobile-menu.is-open {
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu__link {
  font-family: var(--display);
  font-size: 40px;
  color: var(--bone);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu__link:hover {
  color: var(--bone);
  opacity: 0.8;
}

.mobile-menu .nav__cta {
  margin-top: 24px;
  background: var(--bone);
  color: var(--ink) !important;
  border: 1px solid var(--bone);
  font-size: 14px;
  padding: 16px 36px;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: none;
  z-index: 101;
  padding: 8px 0;
  position: relative;
}

.menu-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .5s var(--ease-out);
}

.menu-btn:hover::after {
  width: 100%;
}

@media (max-width:760px){
  .header { padding: 14px var(--gut) 0; }
  .nav a { display:none !important; }
  .menu-btn { display:block; }
  .brand__tag{ display:none; }
  .whatsapp-float{
    top:auto;
    right:16px;
    bottom:16px;
    transform:none;
    writing-mode:horizontal-tb;
    padding:10px 13px;
  }
  .whatsapp-float:hover{ transform:translateY(-2px); }
}

/* ---------- Page intro / hero ---------- */
.page-hero{
  min-height:80svh;
  padding:160px var(--gut) 80px;
  display:flex; flex-direction:column; justify-content:flex-end;
  border-bottom:1px solid var(--line);
}
.page-hero__meta{
  display:flex; justify-content:space-between; gap:32px; flex-wrap:wrap;
  font-family:var(--mono); font-size:10px;
  letter-spacing:.18em; text-transform:uppercase; color:var(--ink-soft);
  margin-bottom:48px;
}
.page-hero__meta span{ display:block; opacity:1; margin-bottom:4px; font-size:10px; }
.page-hero__title{
  font-family:var(--display);
  font-weight:400;
  font-size:clamp(28px, 4.5vw, 72px);
  line-height:.95;
  letter-spacing:-0.035em;
  max-width:1400px;
}
.page-hero__title em{
  font-style:normal;
  color:inherit;
}
.page-hero__sub{
  margin-top:48px;
  display:grid; grid-template-columns:1fr 1fr; gap:48px;
  align-items:start;
}
@media (max-width:760px){ .page-hero__sub{ grid-template-columns:1fr; } }
.page-hero__lead{
  font-family:var(--display); font-weight:400;
  font-size:clamp(13px, 1.3vw, 15px);
  line-height:1.45; max-width:520px;
  color:var(--ink-soft);
}
.page-hero__lead em{ font-style:normal; color:inherit; }

/* ---------- Eyebrow / titles ---------- */
.eyebrow{
  font-family:var(--mono); font-size:11px;
  letter-spacing:.22em; text-transform:uppercase; color:var(--ink-soft);
  display:flex; align-items:center; gap:14px;
}
.eyebrow::before{
  content:""; display:inline-block;
  width:8px; height:8px; background:var(--clay); border-radius:50%;
}
.section-title{
  font-family:var(--display);
  font-weight:400;
  font-size:clamp(22px, 3vw, 44px);
  line-height:.95;
  letter-spacing:-0.025em;
  margin-top:24px;
}
.section-title em{
  font-style:normal;
  color:inherit;
}

/* ---------- Image frames — strict aspect, no crop ---------- */
.frame{
  position:relative;
  width:100%;
  background:var(--bone-2);
  overflow:hidden;
}
.frame > img{
  width:100%; height:100%;
  object-fit:contain;
  display:block;
}
.frame--landscape{ aspect-ratio: 3 / 2; }
.frame--portrait{  aspect-ratio: 4 / 5; }
.frame--cover > img{ object-fit:cover; }   /* opt-in only */
/* texture-masked dark frame (for premium dark-mode strips) */
.frame--ink{ background:var(--ink); }

/* mask reveal helper */
.mask-reveal{ position:relative; overflow:hidden; }
.mask-reveal__cover{
  position:absolute; inset:0;
  background:var(--bone);
  transform-origin:bottom;
  z-index:2;
}
.mask-reveal--ink .mask-reveal__cover{ background:var(--ink); }

/* ---------- Footer (shared) ---------- */
.footer{
  background:var(--ink); color:var(--bone);
  padding:60px var(--gut) 32px;
}
.footer__top{
  display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:48px; padding-bottom:80px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
@media (max-width:880px){ .footer__top{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .footer__top{ grid-template-columns:1fr; gap:36px; } .footer__brand-img{ margin-bottom:12px; } }
.footer__brand-img{
  width:180px;
  height:auto;
  filter:invert(1) brightness(2);
}
.footer__col h5{
  font-family:var(--mono); font-size:9px;
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--mute); margin-bottom:24px;
}
.footer__col a{
  display:block; color:var(--bone); text-decoration:none;
  font-size:12px; margin-bottom:12px;
  transition:color .3s ease, padding-left .4s var(--ease-out);
  word-wrap: break-word;
  word-break: break-all;
}
.footer__col a:hover{ color:var(--bone); opacity:0.8; padding-left:8px; }
.footer__bottom{
  display:flex; justify-content:space-between; align-items:center;
  margin-top:32px;
  font-family:var(--mono); font-size:9px;
  letter-spacing:.18em; text-transform:uppercase;
  color:var(--mute);
  flex-wrap:wrap; gap:16px;
}
.footer__bottom a{ color:var(--mute); text-decoration:none; }
.footer__bottom a:hover{ color:var(--bone); }

/* ---------- Reveal utilities ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.01ms!important; transition-duration:.01ms!important; }
}

/* ----- Mobile: reduce text, prioritize images ----- */
@media (max-width: 760px) {
  .page-hero__title {
    font-size: clamp(32px, 8vw, 64px);
  }
  .page-hero__lead {
    font-size: 14px;
  }
  .page-hero__meta {
    font-size: 9px;
  }
  .page-hero__meta span {
    font-size: 8px;
  }
  .section-title {
    font-size: clamp(26px, 7vw, 48px);
  }
  .eyebrow {
    font-size: 9px;
  }
  .footer__col a {
    font-size: 12px;
  }
  .footer__col h5 {
    font-size: 9px;
  }
  .proj-hero__title {
    font-size: clamp(36px, 9vw, 72px);
  }
  .proj-hero__lead {
    font-size: 14px;
  }
  .proj-meta__row {
    font-size: 9px;
  }
  .proj-text p {
    font-size: 14px;
  }
  .proj-text .pullquote {
    font-size: clamp(18px, 5vw, 28px);
  }
  .proj-materials__item h4 {
    font-size: 15px;
  }
  .proj-next__title {
    font-size: clamp(36px, 9vw, 72px);
  }
  .partner__name {
    font-size: 18px !important;
  }
  .partner__role {
    font-size: 9px !important;
  }
  .partner__bio {
    font-size: 13px !important;
  }
  .archive__row span {
    font-size: 11px !important;
  }
  .archive__row strong {
    font-size: 14px !important;
  }
}

/* Ensure single text color (black/white) based on background */
.footer, .hero, .proj-strip, .philosophy, .mobile-menu {
  --ink-soft: #ffffff !important;
  --mute: #ffffff !important;
  --mute-2: #ffffff !important;
}
