/* === Howin Portfolio — Editorial system === */

:root {
  --bg: #F5F2ED;
  --ink: #0A0A0A;
  --ink-soft: #2A2A2A;
  --ink-mute: rgba(10, 10, 10, 0.55);
  --rule: rgba(10, 10, 10, 0.12);
  --accent: #E63946;
  --paper: #FBF9F5;

  --display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.dark-mode {
  --bg: #0A0A0A;
  --ink: #F5F2ED;
  --ink-soft: #D8D5D0;
  --ink-mute: rgba(245, 242, 237, 0.55);
  --rule: rgba(245, 242, 237, 0.14);
  --paper: #141414;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* === Top nav === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  z-index: 50;
  background: #000;
  color: #F5F2ED;
}
.nav-meta {
  mix-blend-mode: difference;
}
.nav-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0;
}
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-logo .cloud { color: var(--accent); margin-left: 1px; }
.nav-logo .dot { color: var(--accent); }
.nav-logo .ai { color: var(--accent); }
.nav-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  gap: 28px;
}
.nav-meta span { display: inline-flex; align-items: center; gap: 8px; }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* === Hero === */
.hero {
  min-height: 100vh;
  padding: 120px 32px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.hero-display {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(72px, 14vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 8vh 0;
}
.hero-display .line { display: block; overflow: hidden; }
.hero-display .word {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-display .word.delay-1 { animation-delay: 0.08s; }
.hero-display .word.delay-2 { animation-delay: 0.16s; }
.hero-display .word.delay-3 { animation-delay: 0.24s; }
.hero-display .word.delay-4 { animation-delay: 0.32s; }
.hero-display .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-family: 'Bricolage Grotesque', serif;
  font-variation-settings: "opsz" 96;
}
@keyframes rise {
  to { transform: translateY(0); }
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.hero-foot-cell .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.hero-foot-cell .value {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-scroll .line {
  width: 1px;
  height: 60px;
  background: var(--ink);
  animation: scroll-line 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.2); }
  50% { transform: scaleY(1); }
}

/* === Intro / Manifesto === */
.intro {
  padding: 160px 32px;
  border-top: 1px solid var(--rule);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  max-width: 1600px;
  margin: 0 auto;
}
.intro-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  position: sticky;
  top: 80px;
  align-self: start;
}
.intro-body {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}
.intro-body .em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.intro-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.intro-stat .num {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "opsz" 60;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.intro-stat .num .accent { color: var(--accent); }
.intro-stat .lbl {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* === Section divider — marquee === */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 22px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
}
.marquee span.dot {
  color: var(--accent);
  margin: 0 12px;
}
.marquee i {
  font-style: italic;
  font-weight: 400;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === Project section === */
.project {
  padding: 120px 32px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1600px;
  margin: 0 auto;
  align-items: center;
}
.project--reverse .project-grid {
  grid-template-columns: 1fr 1fr;
}
.project--reverse .project-copy { order: 2; }
.project--reverse .project-visual { order: 1; }

.project-copy {
  max-width: 560px;
}
.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 32px;
}
.project-num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.project-name {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  font-size: clamp(64px, 8vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin-bottom: 8px;
}
.project-name .ital {
  font-style: italic;
  font-weight: 400;
}
.project-tagline {
  font-family: var(--display);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--ink-soft);
}
.project-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 36px;
  text-wrap: pretty;
  max-width: 48ch;
}
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
}
.tag.tag-status {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.project-stat .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.project-stat .val {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.project-stat .val .accent { color: var(--accent); }

/* === Phone visual === */
.project-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  min-height: 600px;
}

.phone-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-stage--images {
  width: 100%;
  max-width: 320px;
}
.project-visual:has(.phone-stage--images) {
  min-height: unset;
  align-items: flex-start;
}

.phone {
  width: 280px;
  height: 580px;
  border-radius: 44px;
  background: #0A0A0A;
  padding: 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1.5px #1a1a1a,
    0 50px 80px -20px rgba(0, 0, 0, 0.4),
    0 30px 50px -30px rgba(230, 57, 70, 0.15);
  position: relative;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: var(--screen-bg, #1a1a1a);
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #0A0A0A;
  border-radius: 999px;
  z-index: 5;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 16px 28px 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  color: var(--screen-fg, #fff);
  z-index: 4;
  position: relative;
}
.phone-content {
  flex: 1;
  padding: 50px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--screen-fg, #fff);
}

.phone--side {
  display: none; /* deprecated — using single phone now */
}

/* === Screens row (page 2 — additional screens) === */
.project-screens {
  max-width: 1600px;
  margin: 96px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.project-screens-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.project-screens-label {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
}
.screens-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-items: center;
  align-items: start;
}
.screens-row--4 {
  grid-template-columns: repeat(4, 1fr);
}
.screens-row--dark {
  grid-template-columns: repeat(4, 1fr);
}
.phone--grid {
  width: 240px;
  height: 500px;
  border-radius: 38px;
  padding: 8px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone--grid:hover {
  transform: translateY(-8px);
}
.phone--grid .phone-screen { border-radius: 30px; }
.phone--grid .phone-notch { width: 78px; height: 22px; top: 8px; }
.phone--grid .phone-status { padding: 14px 22px 0; font-size: 12px; }
.phone--grid .phone-content { padding: 44px 14px 14px; gap: 10px; }

.project-img {
  width: 100%;
  max-width: 240px;
  border-radius: 18px;
  display: block;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-img:hover { transform: translateY(-8px); }

/* Main hero image in project-visual — fills stage container, no extra max-width cap */
.phone-stage--images .project-img {
  max-width: 100%;
  border-radius: 22px;
  height: auto;
  object-fit: contain;
}

/* Desktop: first image in row is a duplicate of PhoneStage — hide it */
.project-img--first { display: none; }

.featured-screens {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(245, 242, 237, 0.18);
}
.featured-screens-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 32px;
}

/* hover lift */
.project-visual:hover .phone--main { transform: translateY(-6px) rotateX(2deg); }

/* === Phone screen recipes === */
.phone-screen.recipe-eatiko { background: linear-gradient(160deg, #FF6B35, #C8102E); }
.phone-screen.recipe-fasna { background: linear-gradient(160deg, #1a1a1a, #2d2d2d); --screen-fg: #C8FF3D; }
.phone-screen.recipe-sylcon { background: linear-gradient(160deg, #2D5016, #4A7C2A); }
.phone-screen.recipe-superjoe { background: linear-gradient(160deg, #FFE5F1, #FFB6D1); --screen-fg: #2D0A1F; }
.phone-screen.recipe-class { background: linear-gradient(160deg, #1E3A8A, #3B82F6); }
.phone-screen.recipe-uae { background: linear-gradient(160deg, #0F172A, #DAA520); }
.phone-screen.recipe-safa { background: linear-gradient(160deg, #2D1B0E, #B08D57); }
.phone-screen.recipe-chopze { background: linear-gradient(160deg, #FF4500, #FFA500); }
.phone-screen.recipe-dtabata { background: linear-gradient(160deg, #0F0F0F, #1F1F1F); --screen-fg: #FF3B3B; }
.phone-screen.recipe-tiein { background: linear-gradient(160deg, #FFFAF0, #F5E6D3); --screen-fg: #2D1B0E; }
.phone-screen.recipe-grosav { background: linear-gradient(160deg, #14532D, #84CC16); }
.phone-screen.recipe-hadia { background: linear-gradient(160deg, #064E3B, #047857); }

/* phone UI placeholder bits */
.ph-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px;
}
.phone-screen.recipe-fasna .ph-card,
.phone-screen.recipe-superjoe .ph-card,
.phone-screen.recipe-tiein .ph-card { background: rgba(0, 0, 0, 0.06); border-color: rgba(0, 0, 0, 0.1); }

.ph-row { display: flex; gap: 8px; align-items: center; }
.ph-bar { height: 8px; background: rgba(255,255,255,0.3); border-radius: 4px; flex: 1; }
.ph-bar.short { flex: 0 0 40%; }
.ph-bar.dark { background: rgba(0,0,0,0.15); }
.ph-thumb {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.ph-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(255,255,255,0.1) 6px, rgba(255,255,255,0.1) 12px);
}
.ph-title {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.95;
}
.ph-big {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.ph-mono {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.ph-spacer { flex: 1; }

/* === Featured (Eatiko) hero card === */
.featured {
  padding: 120px 32px;
  border-top: 1px solid var(--rule);
}
.featured-inner {
  max-width: 1600px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  padding: 80px;
  position: relative;
  overflow: hidden;
}
.featured-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
}
.featured-name {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(80px, 12vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.05em;
}
.featured-name .ital {
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
}
.featured-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid rgba(245, 242, 237, 0.18);
  padding-top: 32px;
  margin-top: 64px;
}
.featured-stat .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 12px;
}
.featured-stat .val {
  font-family: var(--display);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.featured-stat .val .accent { color: var(--accent); }
.featured-desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(245, 242, 237, 0.78);
  text-wrap: pretty;
  max-width: 50ch;
}

/* === Industries strip === */
.industries {
  padding: 80px 32px;
  border-top: 1px solid var(--rule);
}
.industries-inner {
  max-width: 1600px; margin: 0 auto;
}
.industries-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.industries-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.ind-cell {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-right: 24px;
}
.ind-cell .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 400;
}

/* === Footer === */
.footer {
  padding: 120px 32px 40px;
  border-top: 1px solid var(--rule);
}
.footer-display {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(72px, 14vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  max-width: 1600px;
  margin: 0 auto 80px;
}
.footer-display .ital {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.footer-cta-row {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.footer-cta {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 16px 32px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}
.footer-cta:hover {
  background: var(--ink);
  color: var(--bg);
}
.footer-cta .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.footer-cta:hover .arrow { transform: translate(4px, -4px); }
.footer-meta {
  display: flex;
  gap: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer-bottom {
  max-width: 1600px;
  margin: 80px auto 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

/* === Reveal animations === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* parallax phone */
.phone--main {
  will-change: transform;
}

/* progress indicator */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 100;
  transition: width 0.1s ease;
}

/* responsive */
@media (max-width: 1100px) {
  .screens-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .screens-row--dark { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav-meta { display: none; }
  .hero { padding: 100px 20px 48px; }
  .hero-display { font-size: clamp(56px, 16vw, 120px); margin: 6vh 0; }
  .hero-foot { grid-template-columns: 1fr; gap: 24px; }
  .intro { padding: 96px 20px; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-label { position: static; }
  .intro-stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; gap: 24px; }
  .featured { padding: 64px 20px; }
  .featured-inner { padding: 40px 24px; }
  .featured-grid { grid-template-columns: 1fr; gap: 32px; }
  .featured-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .featured-stat .val { font-size: 36px; }
  .project { padding: 80px 20px; }
  .project-grid { grid-template-columns: 1fr; gap: 48px; }
  .project--reverse .project-copy { order: 1; }
  .project--reverse .project-visual { order: 2; }
  .project-name { font-size: clamp(48px, 14vw, 88px); }
  .project-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .project-visual { min-height: auto; padding: 20px 0; }
  .industries { padding: 64px 20px; }
  .industries-list { grid-template-columns: repeat(2, 1fr); }
  .ind-cell { font-size: 18px; padding: 24px 0; }
  .footer { padding: 80px 20px 32px; }
  .footer-display { font-size: clamp(48px, 14vw, 96px); margin-bottom: 56px; }
  .footer-cta-row { flex-direction: column; gap: 24px; align-items: flex-start; padding-top: 24px; }
  .footer-meta { flex-direction: column; gap: 8px; }
  .footer-bottom { flex-direction: column; gap: 12px; margin-top: 56px; }
  .marquee { font-size: clamp(28px, 8vw, 48px); padding: 16px 0; }

  .project-screens { margin-top: 64px; padding-top: 32px; }
  .project-screens-head { margin-bottom: 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .featured-screens { margin-top: 56px; padding-top: 32px; }

  .phone { width: 240px; height: 500px; border-radius: 38px; padding: 8px; }
  .phone-screen { border-radius: 30px; }
  .phone-notch { width: 78px; height: 22px; top: 8px; }
  .phone-content { padding: 46px 14px 14px; }
  .phone--grid { width: 100%; max-width: 280px; height: auto; aspect-ratio: 240/500; }
}

@media (max-width: 560px) {
  .screens-row { grid-template-columns: 1fr; }
  .screens-row--dark { grid-template-columns: 1fr; }

  /* Mobile project layout: Name → Subheading → Category → Description → Main photo → Slider */
  .project-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Copy: stack all text rows cleanly */
  .project-copy { display: flex; flex-direction: column; gap: 12px; }

  /* Hide project number (№ 01 / 06) on mobile */
  .project-num { display: none; }

  /* Project name */
  .project-name { font-size: clamp(36px, 11vw, 56px); margin: 0; }

  /* Visual area: full-width main photo directly below copy */
  .project-visual {
    min-height: unset !important;
    padding: 20px 0 0;
    width: 100%;
    justify-content: flex-start;
    perspective: none;
  }
  .phone-stage--images {
    display: block;
    max-width: 100%;
    width: 100%;
  }
  .phone-stage--images .project-img {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    object-fit: cover;
  }

  /* Screens: remove the header, slider runs full width */
  .project-screens { margin-top: 16px; padding-top: 0; border-top: none; }
  .project-screens-head { display: none; }

  /* Horizontal slider for remaining 4 images */
  .screens-row--4 {
    display: flex;
    flex-direction: row;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .screens-row--4::-webkit-scrollbar { display: none; }
  .screens-row--4 .project-img {
    flex-shrink: 0;
    width: 72vw;
    max-width: 72vw;
    scroll-snap-align: start;
    border-radius: 14px;
  }

  .intro-stats { grid-template-columns: 1fr; }
  .featured-stats { grid-template-columns: 1fr; }
  .industries-list { grid-template-columns: 1fr; }
  .project-stats { grid-template-columns: 1fr; }
  .hero-eyebrow { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-scroll { display: none; }
  .featured-name { font-size: clamp(56px, 18vw, 96px) !important; }
}

/* prevent horizontal scrolling on small screens */
html, body { max-width: 100%; overflow-x: hidden; }
