/* ======================================================================
   WALEE PORTFOLIO — MAIN STYLESHEET (style.css)
   ======================================================================

   Loaded by: index.html, work.html, clients.html, daal-scene.html

   HOW TO EDIT
   - Colors, fonts and page spacing are in section 01 (:root).
     Change them there and the whole site updates.
   - Each section starts with a big "=====" banner. Use Ctrl/Cmd + F
     and search the section number (e.g. "07.") to jump to it.
   - Mobile / tablet tweaks for a section sit right below it inside
     "@media (max-width: ...)" blocks.

   TABLE OF CONTENTS
   01. Global — fonts, colors, spacing ........ all pages
   02. Header — navigation + eyes ............. all pages
   03. Hero — photo, role, big heading ........ Home
   04. About — biography text ................. Home
   05. Projects — base card + list styles ..... Home / Work
   06. Footer — contact + moving strip ........ all pages
   07. Scroll reveal animation ................ all pages
   08. Reduced motion (accessibility) ......... all pages
   09. Hover effects + project preview ........ Home / Work
   10. Work / Clients — page layout ........... Work
   11. Background grain texture ............... all pages
   12. Home — stacked project cards ........... Home
   13. Home — image pill in the heading ....... Home
   14. Work / Clients — logo grid ............. Work
   15. Work / Clients — project list rows ..... Work
   16. Home — full-screen project stack ....... Home
   17. Typography overrides ................... all pages
   ====================================================================== */


/* ======================================================================
   01. GLOBAL — FONTS, COLORS AND PAGE SPACING
   Page: all pages
   Change colors / fonts / side spacing in :root below.
   ====================================================================== */
@font-face {
  font-family: "Clash Display";
  src: url("assets/clash-display-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("assets/clash-display-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("assets/clash-display-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Colors */
  --paper: #E7E3D6; /* page background */
  --ink: #1f2022; /* main text color */
  --muted: #8b8c90; /* grey text */
  --green: #0be746;

  /* Fonts */
  --font-main: Inter, Arial, sans-serif; /* whole website */
  --font-hero: "Clash Display", Arial, sans-serif; /* Home hero heading only */

  /* Side spacing of the page (left / right) */
  --gutter: clamp(22px, 5.1vw, 220px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid #2465ec;
  outline-offset: 4px;
}

.wrap {
  padding-inline: var(--gutter);
}

/* --- Mobile: smaller side spacing --- */
@media (max-width: 600px) {
  :root {
    --gutter: 22px;
  }
}


/* ======================================================================
   02. HEADER — NAVIGATION + EYES
   Page: all pages
   "01 Hello / 02 Work / Clients" links and the mouse-following eyes.
   ====================================================================== */
.site-header {
  min-height: 110px;
}

.mini-nav {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: clamp(26px, 5vw, 80px);
  min-height: 106px;
  padding: 20px var(--gutter);
  background: var(--paper);
  backdrop-filter: blur(12px);
  font: 400 clamp(12px, 1.25vw, 20px)/1.2 var(--font-main);
  /* text-transform: uppercase; */
}

.mini-nav a {
  display: flex;
  align-items: center;
  gap: 0.28em;
  min-height: 44px;
  /* color: #969696; */
  text-decoration: none;
  transition: color 0.25s;
}

.mini-nav a:is(:hover, :focus-visible, .is-active) {
  color: #202020;
}

.mini-nav a.is-active {
  font-weight: 400;
}

.eyes {
  position: fixed;
  top: 35px;
  right: var(--gutter);
  z-index: 101;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.eye {
  position: relative;
  width: 22px;
  height: 32px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: white;
  border-radius: 50%;
}

.pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 12px;
  border-radius: 50%;
  background: #111;
  transform: translate(calc(-50% + var(--eye-x, 0px)), calc(-50% + var(--eye-y, 2px)));
  transition: transform 80ms linear;
}

@media (max-width: 600px) {
  .site-header {
    min-height: 86px;
  }

  .mini-nav {
    min-height: 80px;
    padding-block: 12px;
    gap: 24px;
    font-size: 10px;
    padding-right: 70px;
  }

  .eyes {
    top: 27px;
    gap: 2px;
  }

  .eye {
    width: 16px;
    height: 24px;
  }

  .pupil {
    width: 8px;
    height: 10px;
  }
}


/* ======================================================================
   03. HERO — PHOTO, ROLE AND BIG HEADING
   Page: Home (index.html)
   ====================================================================== */
.hero {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* --- Photo + "Open to Design Leadership roles" --- */
.hero-main {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(38px, 7vh, 100px);
}

.identity {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.4vw, 24px);
  width: max-content;
  margin-bottom: clamp(22px, 3.2vh, 52px);
}

.profile {
  position: relative;
  width: 180px;
  aspect-ratio: 180 / 217;
  overflow: hidden;
  border-radius: 13px;
  background: #252525;
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(var(--photo-x, 0px), var(--photo-y, 0px)) scale(1.04);
  transition: transform 0.2s ease-out;
}

.profile:hover {
  animation: profile-shake 0.52s ease-in-out 2;
}

@keyframes profile-shake {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }

  25% {
    transform: translate(-2px, 1px) rotate(-1deg);
  }

  50% {
    transform: translate(2px, -1px) rotate(1deg);
  }

  75% {
    transform: translate(-1px, 1px) rotate(-0.5deg);
  }
}

.identity p {
  margin: 0 0 2px;
  font-size: clamp(12px, 1.4vw, 62px);
  line-height: 1.02;
  font-weight: 100;
}

/* --- Blue link icon next to the role --- */
.role-action {
  display: inline-flex;
  padding: 0;
  margin-left: 0.2em;
  border: 0;
  background: none;
  cursor: pointer;
  vertical-align: middle;
}

.role-action img {
  width: 58px;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.role-action:hover img,
.role-action:focus-visible img {
  transform: rotate(-12deg) scale(1.04);
}

/* --- Big hero heading --- */
.hero h1 {
  width: 100%;
  margin: 0;
  font-size: clamp(52px, calc(4.4vw + 21px), 270px);
  line-height: 1.08;
  font-weight: 400;
}

.star {
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  margin-inline: 0.015em;
  vertical-align: -0.07em;
  transform-origin: center;
  animation: star-turn 10s linear infinite;
}

/* --- Spinning star inside the heading --- */
@keyframes star-turn {
  to {
    transform: rotate(360deg);
  }
}

/* --- Mobile: hero --- */
@media (max-width: 600px) {
  .hero {
    min-height: 100svh;
  }

  .hero-main {
    padding-bottom: clamp(45px, 10vh, 85px);
  }

  .identity {
    margin-bottom: 28px;
  }

  .profile {
    width: 62px;
  }

  .role-action img {
    width: 21px;
  }

  .hero h1 {
    line-height: 1.095;
    letter-spacing: -0.069em;
  }
}

/* --- Very small phones --- */
@media (max-width: 360px) {
  .identity p {
    font-size: 14px;
  }
}


/* ======================================================================
   04. ABOUT — BIOGRAPHY TEXT
   Page: Home (index.html)
   Words light up one by one while scrolling (script.js).
   ====================================================================== */
.about {
  padding-top: clamp(75px, 12vh, 170px);
  padding-bottom: clamp(120px, 16vh, 230px);
}

.about-copy {
  max-width: 80vw;
  font-family: var(--font-main);
  font-size: clamp(18px, 2.2vw, 84px);
  line-height: 1.3;
  font-weight: 500;
}

.about-copy p {
  margin: 0 0 0.8em;
}

.muted {
  color: var(--muted);
  font-weight: 440;
}

.about-word {
  color: #b3b3b3;
  transition: color 0.52s ease;
}

.about-word.is-lit {
  color: var(--ink);
}

/* --- Tablet: about --- */
@media (max-width: 850px) {
  .about-copy {
    max-width: 100%;
  }
}

/* --- Mobile: about --- */
@media (max-width: 600px) {
  .about {
    padding-block: 75px 110px;
  }

  .about-copy {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.28;
  }
}


/* ======================================================================
   05. PROJECTS — BASE CARD + LIST STYLES
   Page: Home + Work
   Base styles. Sections 09, 12 and 16 add to these.
   ====================================================================== */
.work-heading {
  text-align: center;
  margin-bottom: clamp(35px, 4vw, 70px);
}

.work-heading h2 {
  margin: 0;
  font-size: calc(clamp(35px, 4vw, 80px) - 8px);
  color: #000;
  line-height: 1.12;
  font-weight: 600;
}

.work-heading h2 span {
  color: #000;
}

.work-heading p {
  margin: 7px 0 0;
  font-size: clamp(14px, 1.3vw, 22px);
  font-weight: 400;
}

.project-list {
  padding: 0 var(--gutter) 18vh;
  isolation: isolate;
}

.project-card {
  position: sticky;
  top: 116px;
  margin-bottom: clamp(16px, 2vw, 32px);
}

.project-card:last-child {
  margin-bottom: 0;
}

.project {
  position: relative;
  display: block;
  overflow: hidden;
  height: min(52.2vw, calc(100svh - 140px));
  background: #ededed;
  border-radius: clamp(8px, 0.8vw, 14px);
}

.project img,
.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.project-video.is-playing {
  opacity: 1;
}

.project:is(:hover, :focus-visible) :is(img, video) {
  transform: scale(1.025);
}

.project:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.work-index-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-index-list li {
  border-bottom: 1px solid #777;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 500;
  line-height: 1.3;
}

.work-index-list li > * {
  display: block;
  padding: 14px 0;
  text-decoration: none;
}

.work-index-list a {
  transition:
    padding-left 0.3s,
    color 0.3s;
}

.work-index-list a:is(:hover, :focus-visible) {
  padding-left: 12px;
  color: #777;
}

@media (max-width: 600px) {
  .project-card {
    top: 90px;
  }

  .project {
    height: min(52.2vw, calc(100svh - 110px));
  }

  .work-index-list li > * {
    padding-block: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card {
    position: relative;
    top: auto;
  }

  .project:is(:hover, :focus-visible) :is(img, video) {
    transform: none;
  }

  .project-list {
    padding-bottom: 0;
  }
}


/* ======================================================================
   06. FOOTER — CONTACT + MOVING STRIP
   Page: all pages
   "Let's build what's next.", social links and the scrolling capability strip.
   ====================================================================== */
.footer {
  overflow: hidden;
  background: var(--paper);
}

.footer-main {
  padding: clamp(95px, 6.4vw, 145px) var(--gutter) clamp(72px, 4vw, 105px);
}

.footer-question {
  margin: 0 0 clamp(20px, 1.2vw, 30px);
  font-size: clamp(18px, 1.4vw, 28px);
  font-weight: 200;
  line-height: 1.2;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
  max-width: 100%;
  font-size: clamp(190px, 4.9vw, 90px);
  font-weight: 300;
  line-height: 1.04;
  text-decoration: none;
}

.footer-cta-text {
  transition: transform 0.35s ease;
}

.footer-cta:hover .footer-cta-text,
.footer-cta:focus-visible .footer-cta-text {
  transform: scale(0.985);
}

.footer-cta-arrow {
  width: 0.3em;
  height: 0.3em;
  flex: none;
  background: currentColor;
  -webkit-mask: url("assets/arrow-small.svg") center / contain no-repeat;
  mask: url("assets/arrow-small.svg") center / contain no-repeat;
  opacity: 0;
  transform: translate(-0.12em, 0.12em);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.footer-cta:hover .footer-cta-arrow,
.footer-cta:focus-visible .footer-cta-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 2.8vw, 65px);
  margin-top: clamp(18px, 3vw, 48px);
  font-size: clamp(10px, 1vw, 26px);
  font-weight: 500;
}

.socials a {
  position: relative;
  text-decoration: none;
}

.socials a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.socials a:hover::after,
.socials a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- Moving capability strip (script.js repeats the row) --- */
.footer-marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink);
}

.marquee-track,
.marquee-group {
  display: flex;
  width: max-content;
  align-items: center;
}

.marquee-track.is-ready {
  animation: footer-marquee 55s linear infinite;
}

.marquee-group {
  flex: none;
  min-height: clamp(120px, 8.3vw, 190px);
}

.marquee-item {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding-left: clamp(32px, 2.4vw, 56px);
  font-family: var(--font-main);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}

.marquee-item:nth-child(odd) {
  font-family: var(--font-main);
  font-weight: 500;
}

.marquee-item::after {
  content: "•";
  margin-left: clamp(32px, 2.4vw, 56px);
  font-size: 0.55em;
  font-weight: 300;
}

@keyframes footer-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --- Mobile: footer --- */
@media (max-width: 600px) {
  .footer-main {
    padding: 88px var(--gutter) 76px;
  }

  .footer-question {
    font-size: 17px;
  }

  .footer-cta {
    font-size: clamp(42px, 10vw, 66px);
  }

  .socials {
    gap: 16px 28px;
    margin-top: 52px;
    font-size: 18px;
  }

  .marquee-group {
    min-height: 100px;
  }

  .marquee-item {
    font-size: 42px;
  }
}


/* ======================================================================
   07. SCROLL REVEAL ANIMATION
   Page: all pages
   Elements with data-scroll fade in when they enter the screen.
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
  [data-scroll]:not(.is-inview) {
    opacity: 0;
    transform: translateY(70px);
  }

  [data-scroll].is-inview {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
      transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}


/* ======================================================================
   08. REDUCED MOTION (ACCESSIBILITY)
   Page: all pages
   Turns animations off for visitors who ask for less motion.
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  .footer-marquee {
    overflow-x: auto;
  }

  .marquee-track.is-ready {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-scroll] {
    opacity: 1 !important;
    transform: none !important;
  }

  .about-word {
    color: var(--ink) !important;
  }
}


/* ======================================================================
   09. HOVER EFFECTS + PROJECT PREVIEW
   Page: Home + Work
   Card depth effect, and the floating thumbnail on the Work list.
   ====================================================================== */
.project-card {
  perspective: 1400px;
}

.project {
  transform-origin: center top;
  transform: translateY(var(--press-y, 0px)) scale(var(--press-scale, 1))
    rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  filter: brightness(var(--press-light, 1));
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.3s ease;
}

.project img,
.project-video {
  transform: translate(var(--media-x, 0px), var(--media-y, 0px)) scale(1.018);
}

.project:is(:hover, :focus-visible) :is(img, video) {
  transform: translate(var(--media-x, 0px), var(--media-y, 0px)) scale(1.035);
}

.work-index-list li {
  position: relative;
}

.work-index-list li > span {
  cursor: default;
}

.work-index-list li > * {
  transition:
    padding-left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.3s;
}

.work-index-list li:is(:hover, :focus-within) > * {
  padding-left: 12px;
}

.work-index-list li.reveal-pending {
  opacity: 0;
  transform: translateY(22px);
}

.work-index-list li {
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-preview {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: clamp(200px, 27vw, 400px);
  aspect-ratio: 4 / 3;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(var(--preview-x, 0px), var(--preview-y, 0px), 0)
    rotate(var(--preview-angle, 0deg)) scale(0.9);
  transition:
    opacity 0.22s,
    visibility 0.22s,
    transform 0.35s cubic-bezier(0.18, 0.8, 0.25, 1);
}

.work-preview.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate3d(var(--preview-x, 0px), var(--preview-y, 0px), 0)
    rotate(var(--preview-angle, 0deg)) scale(1);
}

.work-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 55px rgb(0 0 0 / 12%);
}

@media (hover: none), (max-width: 600px) {
  .work-preview {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project,
  .project img,
  .project-video {
    transform: none !important;
    filter: none !important;
  }

  .work-index-list li.reveal-pending {
    opacity: 1;
    transform: none;
  }

  .work-preview {
    transition: none;
  }
}


/* ======================================================================
   10. WORK / CLIENTS — PAGE LAYOUT
   Page: Work (work.html / clients.html)
   Intro heading, logo grid and projects list. More in work-reference.css.
   ====================================================================== */
.combined-work {
  padding-bottom: clamp(160px, 18vw, 320px);
}

.combined-intro {
  padding-top: clamp(100px, 13vw, 270px);
  text-align: center;
}

.combined-intro h1 {
  margin: 0;
  font: 500 clamp(36px, 5.05vw, 92px)/1.08 var(--font-main);
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.teams {
  margin-top: clamp(80px, 8vw, 145px);
}

.teams h2,
.combined-projects h2 {
  margin: 0 0 24px;
  font-size: clamp(23px, 2vw, 37px);
  letter-spacing: -0.035em;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #8e8e8e;
  border-left: 1px solid #8e8e8e;
}

.team-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 1.68;
  padding: 18px;
  border-right: 1px solid #8e8e8e;
  border-bottom: 1px solid #8e8e8e;
  text-decoration: none;
  transition:
    background 0.3s,
    transform 0.3s;
}

.team-cell:is(:hover, :focus-visible) {
  background: #ececec;
}

.team-cell img {
  width: min(78%, 230px);
  height: 75%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-cell:hover img {
  transform: scale(1.055);
}

.combined-projects {
  margin-top: clamp(145px, 15vw, 275px);
}

.combined-projects h2 {
  margin-bottom: 4px;
}

.combined-projects .work-index-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: clamp(19px, 1.7vw, 30px);
}

.combined-projects .work-index-list li > :first-child {
  flex: 1;
  padding-block: clamp(20px, 2.2vw, 38px);
}

.combined-projects .work-index-list .project-kind {
  flex: none;
  color: #888;
  font: 400 clamp(11px, 1.02vw, 18px) var(--font-main);
  text-align: right;
}

.combined-projects .work-index-list li:is(:hover, :focus-within) .project-kind {
  color: #1f2022;
}

@media (max-width: 700px) {
  .combined-intro {
    padding-top: 100px;
  }

  .combined-intro h1 {
    font-size: clamp(35px, 8vw, 58px);
  }

  .teams {
    margin-top: 100px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-cell {
    aspect-ratio: 1.45;
    padding: 12px;
  }

  .combined-projects {
    margin-top: 140px;
  }

  .combined-projects .work-index-list li {
    align-items: baseline;
  }

  .combined-projects .work-index-list .project-kind {
    max-width: 43%;
    line-height: 1.3;
  }
}


/* ======================================================================
   11. BACKGROUND GRAIN TEXTURE
   Page: all pages
   ====================================================================== */
/* Fine animated film grain, inspired by designisfunny.co. */
body::after {
  content: "";
  position: fixed;
  inset: -160px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
  background: url("assets/noise.png") repeat;
  background-size: 151px 150px;
  animation: paper-grain 1s steps(2) infinite;
}
@keyframes paper-grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(32px, -144px); }
  20% { transform: translate(16px, -64px); }
  30% { transform: translate(-128px, -112px); }
  40% { transform: translate(80px, 96px); }
  50% { transform: translate(-16px, 128px); }
  60% { transform: translate(80px, 32px); }
  70% { transform: translate(-128px, -80px); }
  80% { transform: translate(96px, 16px); }
  90% { transform: translate(144px, 80px); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .combined-cta:hover,
  .team-cell:hover img {
    transform: none;
  }
}


/* ======================================================================
   12. HOME — STACKED PROJECT CARDS
   Page: Home (index.html)
   Cards pin to the screen and stack while scrolling.
   ====================================================================== */
.work {
  --stack-top: clamp(84px, 9vh, 116px);
  --stack-step: clamp(10px, 1vw, 16px);
  --bar: clamp(62px, 4.8vw, 88px);
}

.work-heading h2 sup {
  margin-left: 0.18em;
  color: #b3b3b3;
  font-size: 0.38em;
  font-weight: 500;
  vertical-align: super;
  letter-spacing: 0;
}

.project-card {
  top: calc(var(--stack-top) + var(--i, 0) * var(--stack-step));
  margin-bottom: clamp(26px, 3vw, 48px);
  scroll-margin-top: calc(var(--stack-top) + var(--i, 0) * var(--stack-step));
}

.project-shell {
  position: relative;
  padding: clamp(6px, 0.55vw, 10px);
  border-radius: clamp(16px, 1.4vw, 26px);
  background: #151618;
  color: #f5f5f5;
  box-shadow:
    0 -1px 0 rgb(255 255 255 / 4%) inset,
    0 40px 80px -40px rgb(0 0 0 / 55%);
  transform-origin: center top;
  transform: translateY(var(--press-y, 0px)) scale(var(--press-scale, 1));
  filter: brightness(var(--press-light, 1));
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.3s ease;
}

.project {
  height: min(
    calc(52.2vw - var(--bar)),
    calc(100svh - var(--stack-top) - var(--bar) - 5 * var(--stack-step) - 24px)
  );
  border-radius: clamp(10px, 1vw, 18px);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  filter: none;
  background: #222;
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%);
  pointer-events: none;
}

/* --- "View case" label that follows the mouse (interactions.js) --- */
.cursor-pill {
  position: fixed;
  z-index: 95;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  border-radius: 50%;
  background: var(--pill-bg, #fff);
  color: var(--ink);
  font: 600 13px/1.1 var(--font-main);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(0.3);
  transition:
    opacity 0.25s ease,
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s;
  box-shadow: 0 16px 40px rgb(0 0 0 / 22%);
}

.cursor-pill.is-on {
  opacity: 1;
  transform: translate3d(var(--cx), var(--cy), 0) scale(1);
}

.cursor-pill span {
  max-width: 70px;
}

@media (hover: none), (max-width: 900px) {
  .cursor-pill {
    display: none;
  }
}

@media (max-width: 600px) {
  .work {
    --stack-top: 78px;
    --stack-step: 8px;
    --bar: 56px;
  }

  .project {
    height: min(calc(62vw), calc(100svh - 170px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-shell {
    transform: none !important;
    filter: none !important;
  }

  .cursor-pill {
    display: none;
  }
}


/* ======================================================================
   13. HOME — IMAGE PILL IN THE HEADING
   Page: Home (index.html)
   Small rounded image inside "Visualizing [pill] Brands." (hero-pill.js).
   ====================================================================== */
.hero-pill {
  position: relative;
  display: inline-block;
  width: 1.9em;
  height: 0.82em;
  margin: 0 0.02em;
  overflow: hidden;
  border-radius: 99px;
  vertical-align: 0.02em;
  background: #e6e6e8;
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / 6%);
}

.hero-pill img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.15);
}

.hero-pill img:first-child {
  opacity: 1;
  transform: none;
}


/* ======================================================================
   14. WORK / CLIENTS — LOGO GRID
   Page: Work (work.html / clients.html)
   ====================================================================== */
.team-grid {
  grid-template-columns: repeat(3, 1fr);
  border-radius: 0;
}

.team-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.75;
  padding: 0;
  isolation: isolate;
  color: var(--ink);
}

.team-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transition: clip-path 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-cell:is(:hover, :focus-visible)::before {
  clip-path: circle(150% at var(--mx, 50%) var(--my, 50%));
}

.team-cell:is(:hover, :focus-visible) {
  background: transparent;
}

.team-cell img {
  width: min(62%, 240px);
  height: 62%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition:
    filter 0.45s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-cell:is(:hover, :focus-visible) img {
  mix-blend-mode: normal;
  filter: brightness(0) invert(1);
}

.team-cell:is(:hover, :focus-visible) :is(.team-meta, .team-go) {
  opacity: 1;
  transform: none;
}

.team-cell:not(.dark-text):is(:hover, :focus-visible) :is(.team-meta, .team-num) {
  color: #fff;
}

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-cell {
    aspect-ratio: 1.3;
  }
}


/* ======================================================================
   15. WORK / CLIENTS — PROJECT LIST ROWS
   Page: Work (work.html / clients.html)
   Project name on the left, type on the right.
   ====================================================================== */
.work-rows {
  border-top: 1px solid #1f2022;
}

.combined-projects .work-rows li {
  position: relative;
  display: grid;
  grid-template-columns: clamp(38px, 4vw, 70px) minmax(0, 1fr) minmax(0, auto) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 36px);
  padding: 0 clamp(8px, 1vw, 18px);
  border-bottom: 1px solid #c9c9cc;
  font-size: clamp(22px, 2.4vw, 44px);
  isolation: isolate;
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.35s;
}

.combined-projects .work-rows li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.combined-projects .work-rows li:is(:hover, :focus-within)::before {
  transform: scaleY(1);
}

.combined-projects .work-rows li:is(:hover, :focus-within) {
  color: #fff;
}

.combined-projects .work-rows li > * {
  display: block;
  padding: 0;
}

.combined-projects .work-rows li:is(:hover, :focus-within) > * {
  padding-left: 0;
}

.row-name {
  padding-block: clamp(20px, 2.1vw, 36px) !important;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  outline-offset: -2px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.combined-projects .work-rows li:is(:hover, :focus-within) .row-name {
  transform: translateX(clamp(8px, 1vw, 18px));
}

.combined-projects .work-rows .project-kind {
  color: #888;
  font: 400 clamp(11px, 0.95vw, 16px)/1.3 var(--font-main);
  text-align: right;
}

.combined-projects .work-rows li:is(:hover, :focus-within) .project-kind {
  color: #bdbdc1;
}

.work-rows li.is-filtered {
  display: none !important;
}

.work-preview img {
  border-radius: 14px;
  box-shadow: 0 30px 70px -20px rgb(0 0 0 / 35%);
}

@media (max-width: 700px) {
  .combined-projects .work-rows li {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    font-size: 22px;
  }

  .combined-projects .work-rows .project-kind {
    grid-column: 2 / 3;
    margin-top: -14px;
    padding-bottom: 16px !important;
    text-align: left;
  }

  .row-name {
    padding-bottom: 18px !important;
  }
}

.combined-projects .work-rows a.row-name:is(:hover, :focus-visible) {
  color: inherit;
  padding-left: 0;
}


/* ======================================================================
   16. HOME — FULL-SCREEN PROJECT STACK
   Page: Home (index.html)
   Overrides section 12: covers fill the whole screen, edge to edge.
   ====================================================================== */
body[data-page="home"] .hero-pill {
  vertical-align: -0.04em;
}

body[data-page="home"] .project-list {
  padding: 0;
}

body[data-page="home"] .project-card {
  position: sticky;
  top: 0;
  margin: 0;
  height: 100svh;
  scroll-margin-top: 0;
  perspective: none;
  z-index: calc(var(--i) + 1);
}

body[data-page="home"] .project-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  border-radius: 0;
  transform: none;
  filter: none;
  box-shadow: none;
}

body[data-page="home"] .project {
  flex: 1;
  min-height: 0;
  height: auto;
  border-radius: 0;
  transform: none;
}

body[data-page="home"] .project img,
body[data-page="home"] .project video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

@media (max-width: 600px) {
  body[data-page="home"] .project img,
  body[data-page="home"] .project video {
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .project-card {
    position: relative;
  }
}

/* --- Cards show only the cover (no titles) --- */
body[data-page="home"] .project-shell {
  background: var(--paper);
}

body[data-page="home"] .project {
  background: var(--paper);
}

/* --- Videos always visible --- */
body[data-page="home"] .project-video {
  opacity: 1;
}

/* --- Dstudio: "Coming soon" card (no link yet) --- */
.project-coming-soon {
  cursor: default;
}

.cursor-pill.is-coming-soon {
  width: 240px;
  height: 64px;
  margin: -32px 0 0 -120px;
  border-radius: 8px;
}

.cursor-pill.is-coming-soon span {
  max-width: none;
  white-space: nowrap;
}

body[data-page="home"] .project-coming-soon:focus-visible::after {
  content: "COMING SOON! new project";
  inset: auto;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 18px 22px;
  background: var(--paper);
  color: #1f2022;
  border-radius: 8px;
  white-space: nowrap;
  font: 500 13px/1.3 var(--font-main);
}

@media (hover: none), (max-width: 900px) {
  body[data-page="home"] .project-coming-soon::after {
    content: "COMING SOON! new project";
    inset: auto;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    padding: 18px 22px;
    background: var(--paper);
    color: #1f2022;
    border-radius: 8px;
    white-space: nowrap;
    font: 500 13px/1.3 var(--font-main);
  }
}


/* ======================================================================
   17. TYPOGRAPHY OVERRIDES
   Page: all pages
   Inter everywhere. Clash Display only on the Home hero heading.
   ====================================================================== */
body[data-page="home"] .hero h1 {
  font-family: var(--font-hero);
}

/* --- Keep this text at medium weight (500) --- */
.identity p,
.footer-question {
  font-weight: 500;
}

/* Grain sits behind content, leaving project images and videos clean. */
body { isolation: isolate; }
.footer { background: transparent; }
.mini-nav { background-image: url("assets/noise.png"); }
/* Full-size footer statement with a separate contact button. */
.footer-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(64px, 7vw, 160px);
  row-gap: 36px;
  width: 100%;
}
.footer-contact-row .footer-cta,
.footer-contact-row .pc-footer-cta { margin: 0; }
.connect-button-wrap { display: inline-flex; padding: 12px; margin: -12px; justify-self: end; }
.connect-button,
.pc-footer .connect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 80px;
  min-width: 230px;
  padding: 25px 36px;
  border: 1px solid #1f2022;
  border-radius: 999px;
  background: #1f2022;
  color: #fff;
  font: 500 20px/1.2 var(--font-main, Inter, Arial, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  transform: translate(var(--connect-x, 0px), var(--connect-y, 0px));
  transition: transform 220ms ease-out, background 180ms ease-out;
}
.connect-button:hover,
.pc-footer .connect-button:hover { background: #353936; }
.connect-button:focus-visible { outline: 2px solid #1f2022; outline-offset: 5px; }
@media (max-width: 760px) {
  .footer-contact-row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .connect-button-wrap { justify-self: end; }
  .connect-button, .pc-footer .connect-button {
    min-height: 72px;
    min-width: 210px;
    padding: 22px 30px;
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .connect-button { transform: none !important; transition: none; }
}

/* Stable typography with a smooth underline reveal; no layout shift. */
.about-copy .about-link {
  color: inherit;
  font-weight: 750;
  font-style: italic;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left 96%;
  background-size: 0% 1px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 420ms cubic-bezier(.22, 1, .36, 1);
}
.about-copy .about-link:hover,
.about-copy .about-link:focus-visible {
  background-size: 100% 1px;
}
@media (prefers-reduced-motion: reduce) {
  .about-copy .about-link { transition: none; }
}

/* DP hover greeting: sits outside the photo so its original crop stays intact. */
.identity .profile-greeting {
  position: absolute;
  top: -18px;
  left: 140px;
  z-index: 5;
  padding: 9px 16px;
  border-radius: 999px;
  background: #1f2022;
  color: #fff;
  font: 600 16px/1.2 var(--font-main);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(.6) rotate(-7deg);
  transform-origin: left bottom;
  transition: opacity 150ms ease, transform 180ms ease;
}
.profile:hover ~ .profile-greeting {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(-7deg);
  animation: dp-hello-bounce 650ms ease-out both;
}
@keyframes dp-hello-bounce {
  0% { opacity: 0; transform: translateY(14px) scale(.5) rotate(-7deg); }
  45% { opacity: 1; transform: translateY(-8px) scale(1.12) rotate(-7deg); }
  65% { transform: translateY(3px) scale(.96) rotate(-7deg); }
  82% { transform: translateY(-3px) scale(1.03) rotate(-7deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(-7deg); }
}
@media (max-width: 600px) {
  .identity .profile-greeting { left: 44px; top: -16px; padding: 7px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .identity .profile-greeting { transition: none; }
  .profile:hover ~ .profile-greeting { animation: none; }
}
