/* ============================================================
   NIRJAL MALI — PORTFOLIO
   Design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --bg: #F7F6F2;
  --ink: #171717;
  --ink-soft: #666666;
  --accent: #FC6C02;
  --dark: #171717;
  --white: #FFFFFF;
  --line: rgba(23,23,23,0.13);
  --line-soft: rgba(23,23,23,0.07);
  --line-on-dark: rgba(247,246,242,0.16);

  --font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1360px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.16,.8,.24,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.in-c{
  position: fixed;
  z-index: 100;
  color: red;
  padding: 80px 0 0 80%;
  font-weight: bold;
}
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }

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

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section{
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}
.section--tight{ padding-top: clamp(40px,6vw,80px); }
.section--dark{
  background: var(--dark);
  color: var(--bg);
}
.section--dark .eyebrow{ color: var(--accent); }
.section--dark .sec-sub{ color: rgba(247,246,242,0.62); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before{
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
}

.sec-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
}
.sec-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.sec-sub{
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 38ch;
  line-height: 1.6;
}

/* ---------------- Buttons ---------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn svg{ width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn-primary{ background: var(--ink); color: var(--bg); }
.btn-primary:hover{ background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-2px); }
.btn-ghost{ background: transparent; color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn:hover svg{ transform: translate(3px,-3px); }
.section--dark .btn-ghost{ border-color: var(--line-on-dark); color: var(--bg); }
.section--dark .btn-ghost:hover{ background: var(--bg); color: var(--ink); }
.section--dark .btn-primary{ background: var(--accent); border-color: var(--accent); color: var(--white); }
.section--dark .btn-primary:hover{ background: var(--bg); color: var(--ink); border-color: var(--bg); }

.btn-sm{ padding: 10px 18px; font-size: 12px; }

/* ---------------- Nav ---------------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  padding: 14px 0;
  background: rgba(247,246,242,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.logo span{ color: var(--accent); }
.nav-links{
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a{
  padding: 8px 16px;
  border-radius: 999px;
  position: relative;
  transition: color .3s;
}
.nav-links a:hover{ color: var(--accent); }
.nav-cta{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all .3s var(--ease);
}
.nav-cta:hover{ background: var(--ink); color: var(--bg); }
.nav-toggle{
  display: none;
  width: 40px; height: 40px;
  border: none; background: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span{
  width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu{
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.is-open{ transform: translateY(0); }
.mobile-menu a{
  font-family: var(--font-display);
  font-size: 13vw;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mm-cta{
  margin-top: 32px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 16px;
}

@media (max-width: 860px){
  .nav-links, .nav-cta{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ---------------- Hero ---------------- */
.hero{
  padding-top: clamp(140px, 20vw, 200px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
}
.hero-kicker{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display:flex; align-items:center; gap:10px;
  margin-bottom: 26px;
}
.hero-kicker .dot{ width:7px; height:7px; border-radius:50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.4; transform:scale(1.3);} }

.hero-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero-title em{
  font-style: normal;
  color: var(--accent);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
  margin-top: 40px;
}
.hero-role{
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-role b{ color: var(--accent); font-weight: 500; }
.hero-desc{
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 32px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual{
  position: relative;
  aspect-ratio: 1/1;
  justify-self: end;
  width: min(320px, 100%);
}
@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ justify-self: start; margin-top: 8px; width: 220px; }
}

.scroll-cue{
  position: absolute;
  bottom: clamp(20px,4vw,40px);
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scroll-cue .line{
  width: 1px; height: 34px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after{
  content:"";
  position:absolute; top:-100%; left:0; width:100%; height:100%;
  background: var(--accent);
  animation: scrollline 2.2s ease-in-out infinite;
}
@keyframes scrollline{ 0%{ top:-100%;} 60%{ top:100%;} 100%{ top:100%;} }

/* ---------------- Marquee ticker (signature strip) ---------------- */
.ticker{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg);
}
.ticker-track{
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.ticker:hover .ticker-track{ animation-play-state: paused; }
.ticker-item{
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 28px;
  padding-right: 28px;
}
.ticker-item .sep{ color: var(--accent); }
@keyframes marquee{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ---------------- Placeholder image blocks (design-file style) ---------------- */
.ph{
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 4/3);
  background:white;
  overflow: hidden;
  border: 1px solid var(--line);
}

.ph::before, .ph::after{
  content:"";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid rgba(23,23,23,0.35);
}
.ph::before{ top: 10px; left: 10px; border-right: none; border-bottom: none; }
.ph::after{ bottom: 10px; right: 10px; border-left: none; border-top: none; }
.ph-label{
  position: absolute;
  left: 10px; bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: var(--bg);
  padding: 4px 8px;
  border: 1px solid var(--line);
}
.ph-tag{
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg);
  padding: 4px 8px;
  border: 1px solid var(--line);
}
.ph--accent{ --ph-bg: #f4e3d3; }
.ph--dark{ --ph-bg: #2a2a2a; border-color: rgba(247,246,242,0.16); }
.ph--dark .ph-label, .ph--dark .ph-tag{ background: #2a2a2a; color: rgba(247,246,242,0.6); border-color: rgba(247,246,242,0.16); }

/* ---------------- Work section ---------------- */
.work-list{ display: flex; flex-direction: column; gap: clamp(70px, 9vw, 120px); }
.work-item{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.work-item:nth-child(even){ direction: rtl; }
.work-item:nth-child(even) > *{ direction: ltr; }
.work-item.reveal{ opacity:0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.work-item.reveal.is-visible{ opacity:1; transform: translateY(0); }

.work-media{
  position: relative;
  overflow: hidden;
}
.work-media .ph{ transition: transform .7s var(--ease); }
.work-media:hover .ph{ transform: scale(1.035); }

.work-info-index{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
}
.work-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.work-cat{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.work-desc{
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 46ch;
  margin-bottom: 26px;
}
.work-link{
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color .3s, border-color .3s, gap .3s;
}
.work-link:hover{ color: var(--accent); border-color: var(--accent); gap: 12px; }

.work-thumbs{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-top: 18px;
}
.work-thumbs .ph{ aspect-ratio: 1/1; }

@media (max-width: 860px){
  .work-item, .work-item:nth-child(even){ grid-template-columns: 1fr; direction: ltr; }
}

/* ---------------- Editorial gallery (Graphic Design) ---------------- */
.gallery{
  columns: 3 260px;
  column-gap: 22px;
}
.gallery-item{
  break-inside: avoid;
  margin-bottom: 22px;
  cursor: pointer;
  position: relative;
}
.gallery-item .ph{ transition: filter .4s, transform .5s var(--ease); }
.gallery-item:hover .ph{ transform: translateY(-4px); }
.gallery-cap{
  display: flex;
  justify-content: space-between;
  padding: 12px 2px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
}
.gallery-cap .g-cat{ color: var(--accent); text-transform: uppercase; }
.gallery-cap .g-name{ color: var(--ink-soft); }

/* Lightbox */
.lightbox{
  position: fixed; inset:0; z-index: 200;
  background: rgba(23,23,23,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
  padding: var(--gutter);
}
.lightbox.is-open{ opacity: 1; pointer-events: auto; }
.lightbox-inner{ max-width: 720px; width: 100%; }
.lightbox .ph{ --ph-bg:#3a3a3a; margin-bottom: 18px; }
.lightbox-title{ font-family: var(--font-display); color: var(--bg); font-size: 24px; margin-bottom: 6px; }
.lightbox-cat{ font-family: var(--font-mono); color: var(--accent); font-size: 12.5px; text-transform: uppercase; margin-bottom: 20px; }
.lightbox-close{
  position: absolute; top: 26px; right: var(--gutter);
  color: var(--bg); background: none; border: none;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .05em;
  display: flex; align-items: center; gap: 8px;
}

/* ---------------- UI/UX section ---------------- */
.uxflow{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.uxflow span{ display:flex; align-items:center; gap:10px; }
.uxflow b{ color: var(--ink); font-weight: 500; }
.uxflow .arrow{ color: var(--accent); }

.ux-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 28px;
}
.ux-card{ }
.ux-card .ph{ margin-bottom: 20px; }
.ux-card h3{ font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.ux-card p{ color: var(--ink-soft); font-size: 14.5px; margin-bottom: 14px; }

/* ---------------- Web dev section ---------------- */
.dev-list{ display:flex; flex-direction:column; gap: 60px; }
.dev-card{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.dev-list > .dev-card:last-child{ border-bottom: none; padding-bottom:0; }
.dev-tags{ display:flex; gap:8px; flex-wrap:wrap; margin: 16px 0 20px; }
.tag{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}
.dev-features{ margin: 0 0 22px; }
.dev-features li{
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.dev-features li::before{ content:"—"; position:absolute; left:0; color: var(--accent); }
.dev-actions{ display:flex; gap:12px; flex-wrap: wrap; }
@media (max-width: 860px){ .dev-card{ grid-template-columns:1fr; } }

/* ---------------- About ---------------- */
.about-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px,6vw,80px);
  align-items: start;
}
.about-portrait{ position: sticky; top: 120px; }
.about-portrait .ph{ --ar: 4/5; }
.about-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px,4vw,44px);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: 16ch;
}
.about-lead{ font-size: 18px; color: var(--ink); margin-bottom: 22px; max-width: 56ch; }
.about-body{ color: var(--ink-soft); font-size: 16px; max-width: 56ch; margin-bottom: 36px; }
.about-disciplines{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  margin-bottom: 44px;
}
.about-disciplines li{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  padding: 14px 16px;
  border: 1px solid var(--line);
  display: flex; align-items:center; gap:10px;
}
.about-disciplines li::before{ content:""; width:6px; height:6px; background: var(--accent); flex-shrink:0; }

.philosophy{
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}
.philosophy p{
  font-family: var(--font-display);
  font-size: clamp(20px,2.4vw,26px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.philosophy span{
  display:block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
}
@media (max-width: 860px){
  .about-grid{ grid-template-columns:1fr; }
  .about-portrait{ position: static; max-width: 280px; }
  .about-disciplines{ grid-template-columns: 1fr; }
}

/* ---------------- Skills ---------------- */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.skill-col{
  border-right: 1px solid var(--line);
  padding: 34px clamp(18px,2.4vw,32px);
}
.skill-col h3{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.skill-tag-list{ display: flex; flex-direction: column; }
.skill-tag-list li{
  font-family: var(--font-display);
  font-size: clamp(17px,1.6vw,21px);
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left .3s var(--ease), color .3s;
  cursor: default;
}
.skill-tag-list li:hover{ padding-left: 12px; color: var(--accent); }
.skill-tag-list li:last-child{ border-bottom: none; }
@media (max-width: 860px){
  .skills-grid{ grid-template-columns: 1fr; }
  .skill-col{ border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------------- Process ---------------- */
.process-list{ border-top: 1px solid var(--line-on-dark); }
.process-item{
  display: grid;
  grid-template-columns: 90px 1fr 1.3fr;
  gap: 32px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-on-dark);
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.process-item.is-visible{ opacity:1; transform: translateY(0); }
.process-num{ font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.process-name{ font-family: var(--font-display); font-size: clamp(24px,3vw,36px); font-weight: 600; }
.process-desc{ color: rgba(247,246,242,0.6); font-size: 15.5px; max-width: 46ch; }
@media (max-width: 700px){
  .process-item{ grid-template-columns: 1fr; gap: 8px; }
}

/* ---------------- Contact ---------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,90px);
}
.contact-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px,5.4vw,68px);
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin-bottom: 20px;
}
.contact-lead{ color: rgba(247,246,242,0.62); font-size: 17px; max-width: 40ch; margin-bottom: 34px; }
.contact-links{ display: flex; gap: 12px; flex-wrap: wrap; }

.form-row{ margin-bottom: 20px; }
.form-row-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label{
  display:block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(247,246,242,0.55);
  margin-bottom: 8px;
}
input, textarea{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 10px 2px;
  transition: border-color .3s;
}
input::placeholder, textarea::placeholder{ color: rgba(247,246,242,0.3); }
input:focus, textarea:focus{ border-color: var(--accent); }
textarea{ resize: vertical; min-height: 90px; }
.field-error{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  margin-top: 6px;
  min-height: 14px;
}
.form-submit{
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
.form-note{
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(247,246,242,0.45);
  margin-top: 14px;
  text-align: center;
  min-height: 16px;
}
@media (max-width: 700px){
  .contact-grid{ grid-template-columns: 1fr; }
  .form-row-2{ grid-template-columns: 1fr; }
}

/* ---------------- Footer ---------------- */
.footer{
  background: var(--dark);
  color: var(--bg);
  padding: 40px 0 30px;
  border-top: 1px solid var(--line-on-dark);
}
.footer-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-on-dark);
  margin-bottom: 22px;
}
.footer-logo{ font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.footer-role{ font-family: var(--font-mono); font-size: 12.5px; color: rgba(247,246,242,0.55); }
.footer-links{ display:flex; gap: 26px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.footer-links a{ color: rgba(247,246,242,0.75); transition: color .3s; }
.footer-links a:hover{ color: var(--accent); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(247,246,242,0.4);
}
.back-top{ color: rgba(247,246,242,0.4); transition: color .3s; }
.back-top:hover{ color: var(--accent); }

/* ---------------- Scroll reveal generic ---------------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* ---------------- Case study page ---------------- */
.cs-hero{ padding-top: clamp(150px,18vw,190px); }
.cs-meta{
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.cs-meta-item h4{
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.cs-meta-item p{ font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.cs-hero-media{ margin-top: 50px; }
.cs-hero-media .ph{ --ar: 21/9; }

.cs-block{ max-width: 780px; }
.cs-block + .cs-block{ margin-top: 0; }
.cs-block h2{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px,3vw,36px);
  margin-bottom: 20px;
}
.cs-block p{ color: var(--ink-soft); font-size: 16.5px; margin-bottom: 16px; }
.cs-two-col{ display:grid; grid-template-columns: 260px 1fr; gap: 60px; }
@media (max-width: 800px){ .cs-two-col{ grid-template-columns: 1fr; gap: 20px; } }

.cs-gallery{ display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.cs-gallery.cols-3{ grid-template-columns: repeat(3,1fr); }
.cs-gallery .ph{ --ar: 4/3; }
@media (max-width: 700px){ .cs-gallery, .cs-gallery.cols-3{ grid-template-columns: 1fr; } }

.cs-full .ph{ --ar: 16/8; }

.tools-row{ display:flex; gap:10px; flex-wrap:wrap; }

.cs-next{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cs-next-label{ font-family: var(--font-mono); font-size: 12.5px; text-transform:uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.cs-next-title{ font-family: var(--font-display); font-size: clamp(28px,4vw,48px); font-weight:600; }
.cs-next-title .arrow{ color: var(--accent); }

.cs-divider{ height:1px; background: var(--line); margin: 0; }


