/* =========================================================
   Lamalo — design tokens
   ========================================================= */
:root {
  /* Brand */
  --bg: #F7F8FA;
  --bg-elev: #FFFFFF;
  --bg-soft: #EEF1F6;
  --ink: #171A1F;
  --ink-2: #3A414B;
  --ink-3: #6B7280;
  --muted: #9AA3AE;
  --line: #D9E1EA;
  --line-2: #E6ECF2;

  --blue: #0F4CB5;
  --blue-2: #6E9FCB;
  --blue-deep: #0A3A8C;
  --blue-tint: #E7EEF9;

  --grad: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);

  /* Type */
  --font-sans: 'Space Grotesk', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geometry */
  --skew: -12deg;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Spacing */
  --container: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 140px);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 24, 50, 0.04), 0 1px 1px rgba(15, 24, 50, 0.04);
  --shadow: 0 10px 30px -12px rgba(15, 24, 50, 0.12), 0 4px 8px -4px rgba(15, 24, 50, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(15, 24, 50, 0.18), 0 12px 24px -12px rgba(15, 24, 50, 0.08);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg: #0B0E14;
  --bg-elev: #11151D;
  --bg-soft: #161B25;
  --ink: #F1F4F9;
  --ink-2: #C9D0DA;
  --ink-3: #8C95A3;
  --muted: #6A7280;
  --line: #1F2632;
  --line-2: #2A3140;

  --blue: #4F86E8;
  --blue-2: #8FB7DD;
  --blue-deep: #0F4CB5;
  --blue-tint: #16243E;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute; top: -100px; left: 16px; padding: 10px 14px;
  background: var(--ink); color: var(--bg); border-radius: 8px; z-index: 999;
}
.skip-link:focus { top: 14px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(44px, 7.4vw, 96px); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.6vw, 60px); letter-spacing: -0.03em; line-height: 1.04; }
h3 { font-size: clamp(20px, 1.6vw, 24px); }
h4 { font-size: 18px; }
h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); font-weight: 600; }
p { margin: 0; color: var(--ink-2); }

.muted { color: var(--ink-3); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 6px 10px;
  background: var(--blue-tint);
  border: 1px solid color-mix(in srgb, var(--blue) 18%, transparent);
  border-radius: 999px;
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent);
}
.eyebrow-tag { color: var(--ink-3); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--blue); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--ink); transform: translateY(-2px); }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-elev);
  color: var(--ink-2);
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn .i-moon { display: none; }
[data-theme="dark"] .icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-moon { display: block; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: opacity .2s;
}
.brand:hover { opacity: .85; }
.brand-mark {
  height: 30px;
  width: 30px;
  display: block;
  flex-shrink: 0;
}
.brand-word {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.brand-lg .brand-mark { height: 36px; width: 36px; }
.brand-lg .brand-word { font-size: 26px; }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.active { color: var(--ink); background: var(--bg-soft); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev); }
.menu-btn span {
  display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto;
  transition: transform .2s, opacity .2s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--pad) 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.mobile-menu a {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line-2);
  font-weight: 500;
}
.mobile-menu .btn { margin-top: 12px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-actions .btn-primary { display: none; }
  .mobile-menu[data-open="true"] { display: flex; }
}

/* =========================================================
   Decorative grid backdrop
   ========================================================= */
.grid-backdrop {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
[data-theme="dark"] .grid-backdrop { opacity: .5; }

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head.row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: end;
}
.section-title {
  font-family: var(--font-sans);
  margin-top: 0;
}
.section-title.huge { font-size: clamp(44px, 7vw, 92px); }
.section-title .muted { display: block; font-weight: 500; color: var(--ink-3); font-size: 0.6em; margin-top: 12px; letter-spacing: -0.02em; }

.section-lede {
  max-width: 56ch;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-2);
}
.section-lede.center { margin-inline: auto; }

@media (max-width: 800px) {
  .section-head.row { grid-template-columns: 1fr; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-copy { max-width: 720px; }

.hero-title {
  margin: 22px 0 28px;
}
.hero-title .line { display: block; }
.accent-wrap {
  position: relative;
  display: inline-block;
  padding: 0 .15em;
  isolation: isolate;
}
.accent-block {
  position: absolute;
  inset: 0.05em -0.05em 0.05em -0.05em;
  background: var(--blue);
  transform: skewX(var(--skew));
  z-index: -1;
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--blue-2);
  animation: blockIn .9s var(--ease-out) .2s both;
}
.accent-wrap { color: #fff; }
@keyframes blockIn {
  from { transform: skewX(var(--skew)) translateX(-30px); opacity: 0; }
  to   { transform: skewX(var(--skew)) translateX(0); opacity: 1; }
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: grid; gap: 4px; }
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stats span { font-size: 13px; color: var(--ink-3); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  justify-self: end;
  width: 100%;
}
@media (max-width: 900px) { .hero-visual { justify-self: center; max-width: 420px; } }

.hv-stack {
  position: absolute;
  inset: 0;
}
.hv-block {
  position: absolute;
  border-radius: 8px;
  transform: skewX(var(--skew));
  transition: transform .6s var(--ease-out);
}
.hv-1 {
  left: 6%; top: 8%;
  width: 56%; height: 28%;
  background: var(--blue);
  box-shadow: 0 30px 60px -25px rgba(15, 76, 181, 0.5);
  animation: float1 8s ease-in-out infinite;
}
.hv-2 {
  left: 26%; top: 32%;
  width: 64%; height: 28%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  animation: float2 9s ease-in-out infinite;
}
.hv-3 {
  left: 10%; top: 56%;
  width: 50%; height: 26%;
  background: var(--blue-2);
  animation: float3 10s ease-in-out infinite;
}
.hv-4 {
  right: 4%; top: 4%;
  width: 18%; height: 18%;
  border: 1.5px solid var(--blue);
  background: transparent;
  animation: float4 12s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:skewX(var(--skew)) translateY(0)} 50%{transform:skewX(var(--skew)) translateY(-10px)} }
@keyframes float2 { 0%,100%{transform:skewX(var(--skew)) translateY(0)} 50%{transform:skewX(var(--skew)) translateY(8px)} }
@keyframes float3 { 0%,100%{transform:skewX(var(--skew)) translateY(0)} 50%{transform:skewX(var(--skew)) translateY(-6px)} }
@keyframes float4 { 0%,100%{transform:skewX(var(--skew)) rotate(0)} 50%{transform:skewX(var(--skew)) rotate(8deg)} }

.hv-line {
  position: absolute;
  background: var(--ink);
  height: 1px;
  opacity: .4;
  transform-origin: left;
}
.hv-line-1 { left: 0; top: 28%; width: 26%; }
.hv-line-2 { right: 0; top: 70%; width: 22%; }

.hv-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  background: var(--bg-elev);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.hv-tag-1 { left: -8%; top: 18%; }
.hv-tag-2 { right: -4%; top: 46%; }
.hv-tag-3 { left: 6%; bottom: 4%; }

.hv-dot {
  position: absolute;
  right: 22%; bottom: 12%;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 14%, transparent);
}

/* Marquee */
.marquee {
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-elev);
  transform: skewY(-1deg);
  margin-left: -10vw;
  margin-right: -10vw;
  padding: 0 10vw;
}
.marquee-track {
  display: flex;
  gap: 36px;
  align-items: center;
  padding: 22px 0;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: marquee 38s linear infinite;
  transform: skewY(1deg);
}
.marquee-track span:nth-child(odd) { color: var(--ink); }
.marquee-track span:nth-child(even) { color: var(--blue); }
@keyframes marquee {
  from { transform: skewY(1deg) translateX(0); }
  to   { transform: skewY(1deg) translateX(-50%); }
}

/* =========================================================
   Pillars (What we do)
   ========================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar {
  position: relative;
  padding: 32px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.pillar::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: var(--blue-tint);
  transform: skewX(var(--skew));
  z-index: -1;
  transition: transform .5s var(--ease), background .3s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.pillar:hover::before { transform: skewX(var(--skew)) translate(-10px, 10px); background: color-mix(in srgb, var(--blue) 18%, var(--bg-elev)); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 32px;
}
.pillar-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px -8px rgba(15, 76, 181, 0.55);
  transform: skewX(var(--skew));
}
.pillar-icon > svg { transform: skewX(calc(-1 * var(--skew))); }
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 15px; }
.pillar-feature { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pillar-feature h3, .pillar-feature p { color: var(--bg); }
.pillar-feature .pillar-num { color: var(--blue-2); }
.pillar-feature::before { background: color-mix(in srgb, var(--blue) 50%, transparent); }
.pillar-feature .pillar-icon { background: var(--bg); color: var(--ink); }
.pillar-feature .pillar-tags li { background: rgba(255,255,255,0.08); color: var(--bg); border-color: rgba(255,255,255,0.18); }

.pillar-tags {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pillar-tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
}

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

/* =========================================================
   Selected work
   ========================================================= */
.work-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: minmax(280px, auto);
  gap: 20px;
}
.work-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  color: inherit;
}
.work-card-lg { grid-row: span 2; }
.work-card-wide { grid-column: span 2; }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--ink); }
.work-card:hover .wc-shape-a { transform: translate(-6px, -6px) skewX(var(--skew)); }
.work-card:hover .wc-shape-b { transform: translate(8px, 6px) skewX(var(--skew)); }
.work-card:hover .work-cta { color: var(--blue); }

.work-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
}
.work-card-lg .work-cover { aspect-ratio: 4 / 5; }
.wc-frame {
  position: absolute; inset: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 1;
}
.wc-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .7;
}
.wc-shape {
  position: absolute;
  border-radius: 10px;
  transform: skewX(var(--skew));
  transition: transform .5s var(--ease-out);
}
.wc-shape-a { left: 14%; top: 18%; width: 52%; height: 28%; background: var(--blue); }
.wc-shape-b { right: 12%; bottom: 16%; width: 48%; height: 32%; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%); }
.wc-shape-c { left: 18%; top: 22%; width: 64%; height: 56%; background: var(--blue); }
.wc-shape-d { right: 14%; top: 14%; width: 60%; height: 70%; background: var(--blue-2); }
.wc-shape-e { left: 10%; top: 20%; width: 30%; height: 60%; background: var(--blue); }
.wc-shape-f { left: 44%; top: 14%; width: 46%; height: 70%; background: var(--blue-2); }

.work-cover-1 { background: var(--blue-tint); }
.work-cover-2 { background: color-mix(in srgb, var(--blue-2) 16%, var(--bg-soft)); }
.work-cover-3 { background: var(--bg-soft); }
.work-cover-4 { background: var(--blue-tint); }

.work-meta {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.work-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.work-tags span {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--line);
}
.work-meta h3 { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.02em; }
.work-meta p { font-size: 14px; color: var(--ink-3); }
.work-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .25s;
}

@media (max-width: 1000px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card-lg { grid-row: auto; }
  .work-card-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card-wide { grid-column: auto; }
}

/* =========================================================
   Workshops (split layout)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.split-copy .section-title { margin-bottom: 24px; }
.check-list {
  list-style: none; padding: 0; margin: 32px 0;
  display: grid; gap: 14px;
}
.check-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 16px; color: var(--ink-2);
}
.chk {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--blue);
  transform: skewX(var(--skew));
  border-radius: 4px;
  position: relative;
  margin-top: 2px;
}
.chk::after {
  content: '';
  position: absolute;
  left: 7px; top: 4px;
  width: 5px; height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) skewX(calc(-1 * var(--skew)));
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.split-cards {
  display: grid;
  gap: 16px;
}
.ws-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  transform: rotate(var(--rot, 0deg));
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.ws-card:hover { transform: rotate(0) translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink); }
.ws-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.ws-card h4 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.ws-card p { font-size: 14px; color: var(--ink-3); }
.ws-meta {
  display: flex; gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* =========================================================
   Bring your idea (path)
   ========================================================= */
.section-feature {
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.section-feature::before, .section-feature::after {
  content: '';
  position: absolute;
  border-radius: 8px;
  transform: skewX(var(--skew));
  pointer-events: none;
}
.section-feature::before {
  left: -8%; top: 12%;
  width: 22%; height: 28%;
  background: color-mix(in srgb, var(--blue) 40%, transparent);
  filter: blur(40px);
}
.section-feature::after {
  right: -6%; bottom: 10%;
  width: 26%; height: 32%;
  background: color-mix(in srgb, var(--blue-2) 30%, transparent);
  filter: blur(50px);
}
.section-feature .section-title,
.section-feature .section-lede,
.section-feature p { color: var(--bg); }
.section-feature .section-lede { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.section-feature .section-label {
  color: var(--blue-2);
  background: color-mix(in srgb, var(--blue) 22%, transparent);
  border-color: color-mix(in srgb, var(--blue-2) 30%, transparent);
}

.path {
  list-style: none;
  padding: 0;
  margin: 64px 0 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.path-step {
  position: relative;
  padding: 28px 24px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), background .3s, border-color .3s;
}
.path-step:hover { transform: translateY(-4px); background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); }
.path-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue-2);
  padding: 4px 10px;
  background: color-mix(in srgb, var(--blue) 30%, transparent);
  border-radius: 999px;
  margin-bottom: 24px;
}
.path-step h3 { font-size: 20px; margin-bottom: 8px; color: var(--bg); }
.path-step p { font-size: 14px; color: color-mix(in srgb, var(--bg) 72%, transparent); }
.path-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -14px; top: 50%;
  width: 8px; height: 8px;
  border-top: 1.5px solid var(--blue-2);
  border-right: 1.5px solid var(--blue-2);
  transform: translateY(-50%) rotate(45deg);
  opacity: .6;
}
@media (max-width: 1000px) { .path { grid-template-columns: 1fr 1fr; } .path-step:not(:last-child)::after { display: none; } }
@media (max-width: 560px)  { .path { grid-template-columns: 1fr; } }

.quote {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 28px;
  position: relative;
  z-index: 1;
  border-left: 3px solid var(--blue-2);
}
.quote p {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--bg);
}
.quote-mark {
  font-size: 1.8em;
  line-height: 0;
  color: var(--blue-2);
  margin-right: 6px;
  vertical-align: -0.2em;
}

/* =========================================================
   Community
   ========================================================= */
.community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .community { grid-template-columns: 1fr; } }

.community .section-title { margin-bottom: 22px; }
.bullets {
  list-style: none; padding: 0; margin: 30px 0;
  display: grid; gap: 12px;
}
.bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 16px;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 10px;
  background: var(--blue);
  transform: skewX(var(--skew));
}

.community-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
  background:
    radial-gradient(circle at 50% 50%, var(--blue-tint) 0%, transparent 60%);
  border-radius: 24px;
}
.cv-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
  color: var(--bg);
  background: var(--ink);
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.cv-node {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  animation: nodeFloat 6s ease-in-out infinite;
}
.cv-node span::before { content: '· '; color: var(--blue); }
.cv-1 { left: 8%; top: 14%; }
.cv-2 { right: 6%; top: 10%; animation-delay: -1s; }
.cv-3 { right: 4%; bottom: 18%; animation-delay: -2s; }
.cv-4 { left: 10%; bottom: 14%; animation-delay: -3s; }
.cv-5 { left: 50%; top: 4%; transform: translateX(-50%); animation-delay: -4s; }
@keyframes nodeFloat {
  0%,100% { translate: 0 0; }
  50%     { translate: 0 -6px; }
}
.cv-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  z-index: 1;
}

/* =========================================================
   About / Philosophy
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

.about .section-title { margin-bottom: 22px; display: flex; flex-direction: column; gap: 6px; }
.hebrew {
  font-family: var(--font-sans);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.05em;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.value {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.value::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--blue);
  transform: skewY(0);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink); }
.value-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 18px;
  display: block;
}
.value h4 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.value p { font-size: 14px; color: var(--ink-3); }
@media (max-width: 540px) { .values { grid-template-columns: 1fr; } }

/* =========================================================
   Contact
   ========================================================= */
.section-contact { background: var(--bg-elev); border-top: 1px solid var(--line); }
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact-meta {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.contact-meta li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
}
.contact-meta strong {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-meta span { color: var(--ink); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 20px;
  position: relative;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: -1px; left: 30px; right: 30px;
  height: 3px;
  background: var(--grad);
  border-radius: 0 0 4px 4px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.field > span,
.field > legend {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0;
}
.field input,
.field textarea {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-family: var(--font-body);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }

.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-elev);
  transition: all .2s;
}
.chip:hover span { border-color: var(--ink); color: var(--ink); }
.chip input:checked + span {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.form-note {
  font-size: 13px;
  color: var(--ink-3);
}
.form-note.success { color: var(--blue); }
.form-note.error { color: #c73d3d; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--ink-3); max-width: 36ch; margin-top: 16px; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { margin-bottom: 8px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color .2s;
}
.footer-col a:hover { color: var(--blue); }

.footer-base {
  border-top: 1px solid var(--line);
  padding: 24px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px) skewY(0.5deg);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) skewY(0);
}
.reveal:nth-child(2) { transition-delay: .05s; }
.reveal:nth-child(3) { transition-delay: .1s; }
.reveal:nth-child(4) { transition-delay: .15s; }
.reveal:nth-child(5) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
