/* ============================================================
   Dilip Kumar — Portfolio
   Plain CSS — Demartini-inspired light theme
   ============================================================ */

:root {
  --background: oklch(0.985 0.003 250);
  --foreground: oklch(0.22 0.04 260);
  --surface: oklch(0.965 0.006 250);
  --surface-2: oklch(0.93 0.008 250);
  --muted-foreground: oklch(0.48 0.02 260);
  --accent: oklch(0.62 0.18 255);
  --accent-foreground: oklch(0.99 0 0);
  --accent-soft: oklch(0.95 0.04 255);
  --line: rgba(40, 50, 90, 0.12);

  --font-display: "Noto Serif", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --max-w: 1200px;
  --pad-x: 1.5rem;
  --section-gap: 3.25rem;
  --card-gap: 1rem;
}
@media (min-width: 768px) { :root { --pad-x: 2.5rem; } }
@media (min-width: 768px) { :root { --section-gap: 2rem; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.reveal.portrait-wrap.in img{width:155% !important; max-width: 137%; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--accent); color: var(--accent-foreground); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Utilities */
.container { max-width: var(--max-w); margin: 0 auto; padding-inline: var(--pad-x); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.italic { font-style: italic; }
.accent-text { color: var(--accent); }
.muted { color: var(--muted-foreground); }
.hairline {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  opacity: 0.35;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--accent) 55%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px color-mix(in oklab, var(--accent) 65%, transparent); }
.btn-ghost {
  border-color: var(--line);
  color: var(--foreground);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg,
.contact-submit svg,
.inline-link svg,
.meta-link svg,
.eyebrow-icon svg {
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  fill: currentColor;
}
.btn span,
.contact-submit span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============= NAV ============= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; flex-direction: column;
  max-width: var(--max-w); margin: 0 auto;
  padding: 1rem var(--pad-x);
}
.nav-top {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo-wrap { display: inline-flex; align-items: center; }
.nav-logo { width: auto; height: 45px; display: block; }
.nav-name { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1; }
.nav-role { display: none; font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground); margin-top: 4px; }
@media (min-width: 640px) { .nav-role { display: inline-block; } }
.nav-panel {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.75rem 0 0.25rem;
}
.nav-link {
  width: 100%;
  padding: 0.9rem 0;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
  border-top: 1px solid transparent;
}
@media (min-width: 640px) { .nav-link { font-size: 12px; padding: 0.5rem 0.9rem; width: auto; } }
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .nav-logo { height: 26px; } }
.nav-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--background) 90%, transparent);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--foreground);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-panel {
  max-height: 320px;
  opacity: 1;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 640px) {
  .nav-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.4rem var(--pad-x); }
  .nav-top { width: auto; }
  .nav-toggle { display: none; }
  .nav-panel {
    max-height: none;
    opacity: 1;
    overflow: visible;
    width: auto;
  }
  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 0.1rem;
    padding: 0;
  }
}

main { padding-top: 5.25rem; }
@media (min-width: 768px) { main { padding-top: 5.5rem; } }

/* ============= FOOTER ============= */

.pattern-background {
position: relative;
overflow: hidden;
background-color: #dcf3ff;
mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 75%);
-webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 75%);
mask-size: 100% 100%;
-webkit-mask-size: 100% 100%;
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
}

.pattern-background::before {
content: "";
position: absolute;
inset: -100%;
transform: rotate(50deg);
transform-origin: center;
background-color: #dcf3ff;
opacity: 0.4;
background-image:  linear-gradient(#5ac4da 1.3px, transparent 1.3px), linear-gradient(90deg, #5ac4da 1.3px, transparent 1.3px), linear-gradient(#5ac4da 0.65px, transparent 0.65px), linear-gradient(90deg, #5ac4da 0.65px, #dcf3ff 0.65px);
background-size: 65px 65px, 65px 65px, 13px 13px, 13px 13px;
background-position: -1.3px -1.3px, -1.3px -1.3px, -0.65px -0.65px, -0.65px -0.65px;
}


.footer { border-top: 1px solid var(--line); margin-top: var(--section-gap);  }
.footer-grid {
  display: grid; gap: 3rem;
  padding: 3.5rem var(--pad-x);
  max-width: var(--max-w); margin: 0 auto;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer h4 { display: none; }
.footer-mission { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; margin-top: 1rem; max-width: 28rem; }
.footer-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 14px; color: var(--muted-foreground); }
.footer-list a:hover { color: var(--accent); }
.footer-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-meta-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  flex: 0 0 1rem;
}
.footer-meta-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--foreground);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.social-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}
.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem var(--pad-x);
  max-width: var(--max-w); margin: 0 auto;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground);
}

/* ============= REVEAL animation ============= */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.h1.passion-title{margin-bottom:20px;}

/* ============= HERO (home) ============= */
.hero {
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 80% 30%, var(--accent-soft), transparent 60%);
}
.passion .reveal.eyebrow.in{ 
  border: 1px solid oklch(0.62 0.18 255); width: fit-content; border-radius: 36px; padding: 5px; line-height: 14px;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 3rem var(--pad-x) 2.25rem;
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 768px) {
  .hero-inner { padding: 2rem var(--pad-x) 3.75rem; grid-template-columns: 1.15fr 1fr; gap: 3rem; }
}
.h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 2.2rem);
  line-height: 1.2; letter-spacing: -0.025em;
  margin-top: 0.5rem;
}
.lead { margin-top: 1rem; max-width: 34rem; font-size: 1.05rem; line-height: 1.65; color: var(--muted-foreground); }
@media (min-width: 768px) { .lead { font-size: 1.125rem; } }
.principles { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.principle { display: inline-flex; align-items: center; gap: 0.5rem; }
.principle .label { font-family: var(--font-display); font-size: 1.125rem; }
.hero-cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.portrait-wrap {
  position: relative; max-width: 28rem; margin: 0 auto; width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 180px 180px 24px 24px;
  display: grid; place-items: center;
  overflow: hidden;
}
.portrait-monogram {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(6rem, 14vw, 11rem);
  color: color-mix(in oklab, var(--accent) 70%, var(--foreground));
  letter-spacing: -0.05em;
  line-height: 1;
}

/* ============= STORY (home) ============= */
.story {
  max-width: var(--max-w); margin: 0 auto;
  padding: calc(0 - 0.5rem) var(--pad-x);
  display: grid; gap: 2.25rem;
}
@media (min-width: 768px) {
  .story { grid-template-columns: 1fr 2fr; }
}
.story h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); margin-top: 1rem; line-height: 1.15; }
.story-body p { margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.7; color: var(--muted-foreground); }
@media (min-width: 768px) { .story-body p { font-size: 1.125rem; } }
.story-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.35rem; line-height: 1.35;
  color: var(--foreground);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .story-quote { font-size: 1.5rem; } }

/* ============= VALUES BENTO ============= */
.section { max-width: var(--max-w); margin: 0 auto; padding: calc(var(--section-gap) - 1.25rem) var(--pad-x); }
@media (min-width: 768px) { .section { padding: calc(var(--section-gap) - 0.25rem) var(--pad-x); } }
.section-head { margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); margin-top: 0.75rem; }

.bento { display: grid; gap: 1rem; }
@media (min-width: 640px) { .bento { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-start;
  transition: all 0.25s ease;
}
.tile:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent-soft) 50%, var(--surface)); }
.tile h3 { font-size: 1.2rem; margin-top: 0.5rem; }
.tile p { margin-top: 0.5rem; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }

/* ============= VIDEO PLACEHOLDER ============= */
.video-frame {
  margin-top: 2rem;
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  overflow: hidden;
  display: grid; place-items: center;
}
.video-play {
  display: inline-flex; align-items: center; gap: 1rem;
}
.play-btn {
  width: 80px; height: 80px; border-radius: 999px;
  background: var(--accent); color: var(--accent-foreground);
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -14px color-mix(in oklab, var(--accent) 60%, transparent);
  transition: transform 0.2s ease;
}
.play-btn:hover { transform: scale(1.05); }
.video-meta {
  position: absolute; inset: auto 0 0 0;
  padding: 1.25rem;
  display: flex; justify-content: space-between;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--muted-foreground);
}

/* ============= CTA ============= */
.cta-strip { max-width: var(--max-w); margin: 0 auto; padding: calc(0px - 0.25rem) var(--pad-x); }
.cta-grid {display: grid; gap: 1.5rem; align-items: center; margin-top: 2rem;}
@media (min-width: 768px) { .cta-grid { grid-template-columns: 2fr 1fr; } }
.cta-grid h2 { font-size: clamp(1.75rem, 4vw, 2rem); line-height: 1.3; }

/* ============= PASSION ============= */
.page-header { max-width: var(--max-w); margin: 0 auto; padding: 2.25rem var(--pad-x) 1.25rem; }
.page-header .lead { margin-top: 1.25rem; max-width: 40rem; font-size: 1.125rem; }

.about-intro {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem var(--pad-x) 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .about-intro {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
}
.about-portrait-card,
.about-panel,
.timeline-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.about-portrait-card {
  overflow: hidden;
}
.about-portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.about-portrait-copy {
  padding: 1.5rem;
}
.about-portrait-copy p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}
.eyebrow-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow-icon .icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 12%, var(--background));
  color: var(--accent);
}
.about-panel {
  padding: 1.75rem;
}
.about-panel h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}
.about-panel p {
  margin-top: 1rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}
.about-facts {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .about-facts {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
.about-fact {
  padding: 1rem 0.1rem 0;
  border-top: 1px solid var(--line);
}
.about-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.about-fact span {
  display: block;
  margin-top: 0.35rem;
  font-size: 13px;
  color: var(--muted-foreground);
}
.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 80%, white);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tool-pill .tool-icon {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-pill .tool-icon svg {
  width: 45px;
  height: 45px;
}
.timeline {
  display: grid;
  gap: 1rem;
}
.timeline-item {
  padding: 1.5rem;
}
.timeline-item h3 {
  margin-top: 0.55rem;
  font-size: 1.45rem;
}
.timeline-item p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.about-columns {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .about-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.passion-header { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) {
  .passion-header { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 3rem; }
}
.passion-title { margin-top: 1rem; }
.passion-visual {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 28%),
    radial-gradient(circle at 80% 28%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 24%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.passion-visual-top h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  max-width: 14rem;
}
.passion-orbit {
  position: relative;
  flex: 1;
  min-height: 190px;
  margin: 1rem 0;
}
.orbit-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  transform: translate(-50%, -50%);
}
.orbit-ring-one { width: 180px; height: 180px; }
.orbit-ring-two { width: 250px; height: 250px; opacity: 0.65; }
.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 12%, transparent);
}
.orbit-dot-one { top: 12%; left: 22%; }
.orbit-dot-two { top: 30%; right: 18%; width: 18px; height: 18px; }
.orbit-dot-three { right: 30%; bottom: 16%; }
.passion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.passion-tags li {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  background: color-mix(in oklab, var(--background) 70%, transparent);
}
.zigzag { max-width: var(--max-w); margin: 0 auto; padding: 1rem var(--pad-x); display: flex; flex-direction: column; gap: 2.75rem; }
@media (min-width: 768px) { .zigzag { gap: 5rem; } }
.row {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 768px) {
  .row { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .row.reverse > *:first-child { order: 2; }
}
.row-image {
  aspect-ratio: 4 / 4;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  overflow: hidden;
  position: relative;
  display: grid; place-items: center;
}
.row-image .badge {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: color-mix(in oklab, var(--accent) 50%, var(--muted-foreground));
}
.row h2 { font-size: clamp(2rem, 4vw, 1.5rem); margin-top: 1rem; }
.row p { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.6; color: var(--muted-foreground); max-width: 28rem; }
.pull-quote {
  max-width: 60rem; margin: 4rem auto; padding: 0 var(--pad-x);
  text-align: center;
}
.pull-quote blockquote {
  margin-top: 3rem;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  line-height: 1.2;
}

/* ============= DESIGN INDEX ============= */
.project-grid {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0.75rem var(--pad-x) 3.25rem;
  display: grid; gap: 1.25rem;
}
@media (min-width: 768px) {
  .project-grid { grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 24px 60px -30px color-mix(in oklab, var(--accent) 60%, transparent);
}
.project-card .cover {
  aspect-ratio: 14 / 10;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 35%, transparent), color-mix(in oklab, var(--accent) 15%, transparent), var(--surface-2));
  display: flex; align-items: flex-end;
  padding: 2rem;
  position: relative; overflow: hidden;
}
.project-card .cover .index {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 6vw, 4rem);
  color: color-mix(in oklab, var(--accent) 80%, var(--foreground));
  line-height: 1;
}
.project-card .cover:has(img) { padding: 0; }
.project-card .cover img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 1.4s ease;
}
.project-card:hover .cover img { transform: scale(1.04); }
.project-card .cover.feat { aspect-ratio: 7 / 9; }
.project-card .meta {
  padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 1rem;
}
.project-card .meta h3 { font-size: 1.35rem; margin-top: 0.75rem; }
.project-card .meta p { margin-top: 0.5rem; font-size: 14px; color: var(--muted-foreground); line-height: 1.65; max-width: none; }
.project-card .tags { display: none; }
.project-card .read-more {
  margin-top: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}
.project-card .read-more span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.project-card .read-more span::after {
  content: "→";
  transition: transform 0.2s ease;
}
.project-card:hover .read-more span::after {
  transform: translateX(4px);
}

.span-feat { grid-column: span 6; }
@media (min-width: 768px) { .span-feat { grid-column: span 4; grid-row: span 2; } }
.span-half { grid-column: span 6; }
@media (min-width: 768px) { .span-half { grid-column: span 2; } }

.home-project-grid {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .home-project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-project-card {
  width: 100%;
}

.home-project-card .cover {
  aspect-ratio: 16 / 10;
  position: relative;
}

.redmore-button-row{
      display: flex;
    align-items: center;
    justify-content: space-between;
    width: stretch;
}

.cover-action {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.6rem 0.3rem 0.6rem;
  border-radius: 5px;
  background: hsl(211.96deg 86.15% 54.71%);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  line-height: normal;
}

.cover-action:hover,
.cover-action:focus-visible {
  transform: translateY(0px);
  background: rgba(22, 117, 226, 0.85);
}

.home-project-card .cover {
  aspect-ratio: 16 / 10;
  position: relative;
}

.projects-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.image-modal[hidden] { display: none; }
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.72);
  backdrop-filter: blur(12px);
}
.image-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid color-mix(in oklab, var(--line) 70%, white);
  border-radius: 20px;
  background: color-mix(in oklab, var(--background) 92%, white);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.45);
}
.image-modal-image {
  width: 100%;
  max-height: calc(92vh - 110px);
  object-fit: contain;
  background: var(--surface);
  border-radius: 14px;
}
.image-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.image-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--background) 90%, white);
  font-size: 1.5rem;
  line-height: 1;
}
body.modal-open { overflow: hidden; }

/* ============= CASE STUDY ============= */
.case-header { max-width: var(--max-w); margin: 0 auto; padding: 2.25rem var(--pad-x) 0; }
.case-back { display: inline-flex; align-items: center; gap: 0.5rem; }
.case-back:hover { color: var(--foreground); }
.case-tagline {
  margin-top: 1.5rem;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem); line-height: 1.35;
  color: var(--muted-foreground);
}
.case-dl {
  margin-top: 2rem; padding: 1.5rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; gap: 2rem 1.5rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 768px) { .case-dl { grid-template-columns: repeat(5, 1fr); } }
.case-dl dt { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.case-dl dd { margin-top: 0.5rem; font-size: 14px; word-break: break-word; }
.case-dl dd a:hover { color: var(--accent); }

.case-cover-wrap { max-width: var(--max-w); margin: 2.5rem auto 0; padding: 0 var(--pad-x); }
.case-cover {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 35%, transparent), color-mix(in oklab, var(--accent) 15%, transparent), var(--surface-2));
  display: flex; align-items: flex-end; padding: 3rem;
}
.case-cover:has(img) {
  padding: 0;
  align-items: stretch;
}
.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.case-cover .index {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(4rem, 10vw, 8rem);
  color: color-mix(in oklab, var(--accent) 75%, var(--foreground));
  line-height: 1;
}

.case-gallery {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  padding: 0 var(--pad-x);
}
.case-gallery-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .case-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.case-gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.case-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.case-gallery-item figcaption {
  padding: 1rem 1.125rem 1.25rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.science { max-width: var(--max-w); margin: 3rem auto 0; padding: 0 var(--pad-x); }
.science-list { margin-top: 2.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.science-item {
  display: grid; gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.science-item:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .science-item { grid-template-columns: 160px 1fr 2fr; gap: 2rem; align-items: start; padding: 3rem 0; }
}
.science-item h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.science-item p { font-size: 1.05rem; line-height: 1.65; color: var(--muted-foreground); }

.star-grid {
  margin-top: 3rem;
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .star-grid { grid-template-columns: 1fr 1fr; } }
.star-cell { background: var(--background); padding: 2rem; }
@media (min-width: 768px) { .star-cell { padding: 2.5rem; } }
.star-cell .row-head { display: flex; align-items: baseline; gap: 1rem; }
.star-cell h3 { font-size: 1.5rem; }
.star-cell p { margin-top: 1.25rem; line-height: 1.65; color: var(--muted-foreground); }

.transform-grid { margin-top: 3rem; display: grid; gap: 3rem; }
@media (min-width: 768px) { .transform-grid { grid-template-columns: repeat(3, 1fr); } }
.transform-col { border-top: 2px solid var(--accent); padding-top: 1.5rem; }
.transform-col p { margin-top: 1.25rem; line-height: 1.65; color: var(--muted-foreground); }

.next-case {
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: flex-start; justify-content: space-between;
  margin-top: 4rem;
}
@media (min-width: 768px) { .next-case { flex-direction: row; align-items: flex-end; } }
.next-case h2 { font-size: clamp(2rem, 5vw, 2rem); transition: color 0.2s ease; }
.next-case:hover h2 { color: var(--accent); }
.next-case .arrow { color: var(--accent); font-size: 2rem; transition: transform 0.2s ease; }
.next-case:hover .arrow { transform: translateX(8px); }

/* ============= BLOGS ============= */
.feat-post {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0.75rem var(--pad-x) 1.25rem;
}
.feat-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  transition: background 0.2s ease;
}
@media (min-width: 768px) { .feat-card { padding: 3rem; } }
.feat-card:hover { background: color-mix(in oklab, var(--accent-soft) 50%, var(--surface)); }
.feat-card .tag-row { display: flex; align-items: center; gap: 0.75rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); font-weight: 600; }
.feat-card .tag-row .dash { height: 1px; width: 2rem; background: color-mix(in oklab, var(--accent) 50%, transparent); }
.feat-card .tag-row .meta { color: var(--muted-foreground); font-weight: 400; }
.feat-card h2 { margin-top: 1.25rem; font-size: clamp(1.75rem, 4vw, 1.5rem); line-height: 1.1; max-width: 48rem; }
.feat-card .excerpt { margin-top: 1.25rem; max-width: 38rem; font-size: 1.05rem; color: var(--muted-foreground); line-height: 1.65; }
.feat-card .read { margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.75rem; font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); font-weight: 600; }

.blog-grid {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x) 2.5rem;
  display: grid; gap: 1.25rem;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line); background: var(--background);
  border-radius: 16px; padding: 1.5rem;
  transition: all 0.25s ease;
}
.post-card:hover { border-color: var(--accent); box-shadow: 0 20px 50px -25px color-mix(in oklab, var(--accent) 60%, transparent); }
.post-card .tag-row { font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); font-weight: 600; display: flex; gap: 0.5rem; align-items: center; }
.post-card .tag-row .date { color: var(--muted-foreground); font-weight: 400; }
.post-card h3 { font-size: 1.35rem; margin-top: 1rem; line-height: 1.3; transition: color 0.2s ease; }
.post-card:hover h3 { color: var(--accent); }
.post-card .excerpt { margin-top: 0.75rem; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.post-card .foot { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }
.post-card .foot .arrow { color: var(--accent); font-weight: 600; }

/* ============= CONTACT ============= */
.contact-grid {
  max-width: var(--max-w); margin: 0 auto;
  padding: 1.25rem var(--pad-x);
  display: grid; gap: 1.5rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }
.field { display: block; margin-bottom: 1.6rem; }
.field label { display: block; }
.field input, .field textarea {
  width: 100%; margin-top: 0.8rem;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 0.7rem 0; font-size: 1.125rem;
  color: var(--foreground); font-family: inherit;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 9rem; }
.contact-submit {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--accent); color: var(--accent-foreground);
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--accent);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0; font-weight: 600;
  transition: all 0.2s ease;
}
.contact-submit:hover { background: transparent; color: var(--accent); }
.aside { display: flex; flex-direction: column; gap: 1.5rem; }
.aside-item {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.aside-item p { margin-top: 0.75rem; font-size: 14px; color: var(--muted-foreground); }
.aside-item a { transition: color 0.2s ease; }
.aside-item a:hover { color: var(--accent); }
.aside-direct { font-family: var(--font-display); font-size: 1.2rem; margin-top: 0.75rem; display: inline-block; word-break: break-all; }
.aside-direct:hover { color: var(--accent); }
.meta-list {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 14px;
}
.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.form-note {
  margin-top: 1rem;
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.availability {
  display: inline-flex; align-items: center; gap: 0.75rem;
  border: 1px solid var(--accent);
  padding: 0.5rem 1rem;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent);
  align-self: flex-start;
}
.availability .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
