/* ============================================================
   DevCode — devcode.iq
   White × Medical Green identity · Thmanyah Serif + Alexandria
   ============================================================ */

@font-face {
  font-family: "Thmanyah Serif";
  src: url("../fonts/thmanyah-serif-text-bold.otf") format("opentype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #00A67E;
  --green-bright: #0DCF9F;
  --green-deep: #007A5C;
  --green-ink: #0A2E24;
  --mint: #EAF7F2;
  --mint-soft: #F4FBF8;
  --paper: #FBFDFC;
  --ink: #12332A;
  --ink-soft: #4A685D;
  --hairline: rgba(10, 46, 36, 0.08);
  --night: #06231B;
  --night-2: #0A2E24;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --shadow-soft: 0 24px 70px -28px rgba(0, 106, 80, 0.22), 0 6px 22px -12px rgba(10, 46, 36, 0.08);
  --shadow-float: 0 40px 90px -30px rgba(0, 106, 80, 0.28), 0 10px 30px -18px rgba(10, 46, 36, 0.12);
  --font-head: "Thmanyah Serif", "Alexandria", serif;
  --font-body: "Alexandria", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(13, 207, 159, 0.25); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- typography ---------- */
h1, h2 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--green-ink);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }

h3 {
  font-weight: 700;
  font-size: 1.13rem;
  color: var(--green-ink);
  line-height: 1.7;
}

.marker {
  position: relative;
  display: inline-block;
  isolation: isolate;
  color: var(--green-deep);
}
.marker::after {
  content: "";
  position: absolute;
  inset-inline: -0.18em;
  bottom: 0.1em;
  height: 0.52em;
  background: linear-gradient(100deg, rgba(13, 207, 159, 0.30), rgba(0, 166, 126, 0.20));
  border-radius: 0.35em;
  transform: skewX(-8deg) rotate(-0.6deg);
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.95rem;
  border-radius: 999px;
  background: var(--mint);
  border: 1px solid rgba(0, 166, 126, 0.16);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
}
.eyebrow-light {
  background: rgba(13, 207, 159, 0.10);
  border-color: rgba(13, 207, 159, 0.25);
  color: var(--green-bright);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem 0.85rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), background-color 0.55s var(--ease);
  will-change: transform;
}
.btn span:first-child { padding-inline-start: 0.5rem; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #0DCF9F, #00A67E 78%);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(0, 166, 126, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px -18px rgba(0, 166, 126, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.btn-orb {
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.55s var(--ease), background-color 0.55s var(--ease);
}
.btn-orb svg { width: 0.95rem; height: 0.95rem; transform: scaleX(-1); }
.btn:hover .btn-orb { transform: translateX(-3px) scale(1.06); background: rgba(255, 255, 255, 0.28); }

.btn-ghost {
  background: #fff;
  color: var(--green-ink);
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 30px -18px rgba(10, 46, 36, 0.18);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(10, 46, 36, 0.24); }
.btn-ghost .btn-orb { background: rgba(0, 166, 126, 0.1); }

.btn-sm { padding: 0.55rem 0.85rem 0.55rem 0.45rem; font-size: 0.85rem; }
.btn-sm .btn-orb { width: 1.7rem; height: 1.7rem; }
.btn-lg { padding: 1.05rem 1.4rem 1.05rem 0.7rem; font-size: 1.02rem; }
.btn-lg svg:first-child { width: 1.25rem; height: 1.25rem; }

/* ---------- nav ---------- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding-top: 1.4rem;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 0.55rem 0.7rem 0.55rem 0.55rem;
  border-radius: 999px;
  background: rgba(251, 253, 252, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(10, 46, 36, 0.07);
  box-shadow: 0 14px 44px -18px rgba(10, 46, 36, 0.18);
  transition: box-shadow 0.6s var(--ease), background-color 0.6s var(--ease);
}
.nav.scrolled {
  background: rgba(251, 253, 252, 0.88);
  box-shadow: 0 18px 50px -18px rgba(10, 46, 36, 0.26);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-inline-start: 0.35rem;
}
.logo-mark { width: 2.1rem; height: 2.1rem; flex: none; }
.logo-mark svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 14px rgba(0, 166, 126, 0.35)); }

.nav-word {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--green-ink);
  letter-spacing: 0.01em;
  direction: ltr;
  display: inline-block;
}
.nav-word b { color: var(--green); font-weight: 800; }
.nav-word i { color: var(--green-bright); font-style: normal; }

.nav-links {
  display: flex;
  gap: 0.2rem;
}
.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.nav-links a:hover { color: var(--green-deep); background: var(--mint); }

.nav-burger {
  display: none;
  position: relative;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #fff;
  cursor: pointer;
}
.nav-burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 1.05rem; height: 1.6px;
  background: var(--green-ink);
  border-radius: 2px;
  transition: transform 0.5s var(--ease);
}
.nav-burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 3.5px)); }
.nav-burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 3.5px)); }
.nav-burger.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(251, 253, 252, 0.86);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { text-align: center; display: grid; gap: 0.6rem; }
.mobile-menu li {
  overflow: hidden;
}
.mobile-menu a {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--green-ink);
  padding: 0.3rem 1rem;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease), color 0.4s;
  transition-delay: 0s;
}
.mobile-menu.open a {
  transform: translateY(0);
  opacity: 1;
  transition-delay: calc(var(--i) * 70ms + 120ms);
}
.mobile-menu a:hover { color: var(--green); }

/* ---------- decorative shapes ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco-circle {
  top: -14rem; inset-inline-start: -12rem;
  width: 34rem; height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 247, 242, 0.95), rgba(234, 247, 242, 0));
}
.deco-ring {
  bottom: 4rem; inset-inline-start: 44%;
  width: 11rem; height: 11rem;
  border-radius: 50%;
  border: 2.5px solid rgba(0, 166, 126, 0.10);
}
.deco-dots { top: 9rem; inset-inline-end: 6%; width: 7.5rem; }
.deco-plus { top: 24rem; inset-inline-start: 5%; width: 1.7rem; }
.deco-spark { bottom: 10rem; inset-inline-end: 3%; width: 2.2rem; }
.deco-spark2 { top: 4rem; inset-inline-start: 8%; width: 2.2rem; }
.deco-ring2 {
  top: -4rem; inset-inline-end: -5rem;
  width: 16rem; height: 16rem;
  border-radius: 50%;
  border: 3px solid rgba(0, 166, 126, 0.07);
}
.deco-circle2 {
  bottom: -10rem; inset-inline-end: -9rem;
  width: 26rem; height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 247, 242, 0.9), rgba(234, 247, 242, 0));
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 10.5rem 0 7rem;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 4rem;
  align-items: center;
}
.hero-copy h1 { margin: 1.4rem 0 1.2rem; }
.hero-manifesto {
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--green-ink);
}
.hero-manifesto b { color: var(--green-deep); font-weight: 800; }
.hero-sub {
  margin-top: 0.9rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1.02rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 3.2rem;
}
.stat { display: flex; align-items: baseline; gap: 0.5rem; }
.stat-num, .stat-plus {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--green-deep);
  line-height: 1;
}
.stat-plus { margin-inline-start: -0.4rem; }
.stat-label { font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }
.stat-sep { width: 1px; height: 2.2rem; background: var(--hairline); }

/* phone mockup — double bezel */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-shell {
  padding: 0.55rem;
  border-radius: 3.2rem;
  background: linear-gradient(160deg, rgba(234, 247, 242, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(0, 166, 126, 0.12);
  box-shadow: var(--shadow-float);
  transform: rotate(-2.2deg);
  transition: transform 0.9s var(--ease);
}
.phone-shell:hover { transform: rotate(-1deg) translateY(-6px); }
.phone {
  width: min(19.5rem, 74vw);
  border-radius: calc(3.2rem - 0.55rem);
  background: #fff;
  border: 1px solid rgba(10, 46, 36, 0.06);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
  padding: 2.4rem 1.15rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 0.8rem; left: 50%;
  transform: translateX(-50%);
  width: 6.5rem; height: 1.35rem;
  border-radius: 999px;
  background: #EDF4F1;
}
.p-greet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}
.p-hi { display: block; font-size: 0.62rem; color: #8AA79C; }
.p-q { display: block; font-weight: 700; font-size: 0.95rem; color: var(--green-ink); }
.p-avatar { width: 2.1rem; height: 2.1rem; }
.p-search {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mint-soft);
  border: 1px solid rgba(0, 166, 126, 0.08);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.68rem;
  color: #8AA79C;
}
.p-search svg { width: 0.9rem; height: 0.9rem; }
.p-cta {
  position: relative;
  margin-top: 0.9rem;
  border-radius: 1.15rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, #0DCF9F, #00A67E 80%);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(0, 166, 126, 0.55);
}
.p-cta-title { display: block; font-weight: 700; font-size: 0.86rem; }
.p-cta-sub { display: block; font-size: 0.62rem; opacity: 0.85; margin-top: 0.15rem; }
.p-cta-arrow {
  position: absolute;
  inset-inline-end: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.7rem; height: 1.7rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-cta-arrow svg { width: 0.85rem; transform: scaleX(-1); }
.p-cats {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.95rem;
  flex-wrap: wrap;
}
.p-cats span {
  font-size: 0.6rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--ink-soft);
  border: 1px solid rgba(0, 166, 126, 0.08);
}
.p-cats .on {
  background: var(--green-ink);
  color: #fff;
  border-color: var(--green-ink);
}
.p-sec {
  margin-top: 1.05rem;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.p-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  margin-top: 0.45rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 1px solid rgba(10, 46, 36, 0.06);
  box-shadow: 0 8px 20px -14px rgba(10, 46, 36, 0.15);
}
.p-ico {
  width: 2rem; height: 2rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.p-ico svg { width: 1.1rem; height: 1.1rem; }
.i-med { background: var(--mint); }
.i-drv { background: #F6EFE7; }
.i-shp { background: #EAF1FA; }
.p-item div { flex: 1; line-height: 1.3; }
.p-item b { display: block; font-size: 0.72rem; color: var(--green-ink); }
.p-item i { display: block; font-style: normal; font-size: 0.58rem; color: #8AA79C; }
.p-item em {
  font-style: normal;
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--mint);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 166, 126, 0.14);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
  animation: floaty 7s ease-in-out infinite;
}
.float-chip svg { width: 1.05rem; height: 1.05rem; }
.float-chip b { color: var(--green-deep); font-weight: 800; }
.chip-a { top: 12%; inset-inline-start: -6%; transform: rotate(3deg); }
.chip-b { bottom: 9%; inset-inline-end: -4%; transform: rotate(-2.5deg); animation-delay: 2.2s; }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  padding: 7.5rem 0;
}
.sec-head {
  max-width: 44rem;
  margin-bottom: 3.8rem;
}
.sec-head h2 { margin-top: 1.3rem; }
.sec-sub {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1.02rem;
}

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}
.bento-cell {
  grid-column: span 4;
  border-radius: var(--r-xl);
  padding: 0.45rem;
  background: rgba(234, 247, 242, 0.45);
  border: 1px solid rgba(0, 166, 126, 0.09);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.bento-cell:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}
.cell-core {
  height: 100%;
  border-radius: calc(var(--r-xl) - 0.45rem);
  background: #fff;
  border: 1px solid rgba(10, 46, 36, 0.05);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
  padding: 1.9rem 1.7rem;
}
.cell-big { grid-column: span 8; grid-row: span 1; }
.cell-wide { grid-column: span 8; }
.cell-ico {
  display: inline-flex;
  width: 3.1rem; height: 3.1rem;
  border-radius: 1.05rem;
  background: var(--mint);
  color: var(--green-deep);
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.cell-ico svg { width: 1.6rem; height: 1.6rem; }
.bento-cell p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 30rem;
}
.cell-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.cell-tags span {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--green-deep);
  background: var(--mint);
  border: 1px solid rgba(0, 166, 126, 0.12);
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  direction: ltr;
}

.cell-dark { background: rgba(6, 35, 27, 0.5); border-color: rgba(6, 35, 27, 0.4); }
.cell-dark .cell-core {
  background: linear-gradient(155deg, var(--night-2), var(--night));
  border-color: rgba(13, 207, 159, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}
.cell-dark h3 { color: #fff; }
.cell-dark p { color: rgba(255, 255, 255, 0.62); }
.cell-dark .cell-ico { background: rgba(13, 207, 159, 0.12); color: var(--green-bright); }

.cell-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cell-price { text-align: center; flex: none; }
.price-from { display: block; font-size: 0.72rem; color: var(--ink-soft); }
.price-num {
  font-family: var(--font-head);
  font-size: 3.2rem;
  line-height: 1.1;
  color: var(--green);
  direction: ltr;
  display: inline-block;
}

/* ---------- manifesto ---------- */
.manifesto {
  overflow: hidden;
}
.manifesto-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.manifesto-head h2 { margin-top: 1.3rem; }
.manifesto-list { display: grid; gap: 1rem; }
.manifesto-list li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(10, 46, 36, 0.06);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 14px 40px -26px rgba(10, 46, 36, 0.18);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.manifesto-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.m-num {
  flex: none;
  width: 2.6rem; height: 2.6rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #0DCF9F, #00A67E);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px -10px rgba(0, 166, 126, 0.5);
}
.manifesto-list p {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-soft);
}

/* ---------- work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.work-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 0.45rem;
  background: rgba(234, 247, 242, 0.45);
  border: 1px solid rgba(0, 166, 126, 0.09);
  overflow: hidden;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.work-core {
  position: relative;
  height: 100%;
  border-radius: calc(var(--r-xl) - 0.45rem);
  background: #fff;
  border: 1px solid rgba(10, 46, 36, 0.05);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
}
.work-num {
  position: absolute;
  top: -1.6rem;
  inset-inline-end: 0.4rem;
  font-family: var(--font-head);
  font-size: 7.5rem;
  line-height: 1;
  color: rgba(0, 166, 126, 0.07);
  z-index: 2;
  pointer-events: none;
  direction: ltr;
}
.work-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.work-badge svg { width: 0.95rem; height: 0.95rem; }
.badge-app { background: var(--mint); color: var(--green-deep); border: 1px solid rgba(0, 166, 126, 0.14); }
.badge-web { background: #F4F8FD; color: #3E6FA8; border: 1px solid rgba(62, 111, 168, 0.14); }
.work-core h3 i {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-inline-start: 0.4rem;
  direction: ltr;
  display: inline-block;
}
.work-core p {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-soft);
  flex: 1;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
  transition: gap 0.5s var(--ease);
}
.work-link svg { width: 0.85rem; height: 0.85rem; transform: scaleX(-1); }
.work-link:hover { gap: 0.75rem; }

.work-next { background: rgba(6, 35, 27, 0.5); border-color: rgba(6, 35, 27, 0.4); }
.work-next .work-core {
  background: linear-gradient(155deg, var(--night-2), var(--night));
  border-color: rgba(13, 207, 159, 0.12);
  align-items: flex-start;
}
.work-next h3 { color: #fff; font-size: 1.3rem; }
.work-next p { color: rgba(255, 255, 255, 0.62); }
.work-next .btn { margin-top: 1.4rem; }
.next-mark {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: rgba(13, 207, 159, 0.35);
  line-height: 1;
  margin-bottom: 0.9rem;
  direction: ltr;
}

/* ---------- consult ---------- */
.consult { overflow: hidden; }
.consult-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.consult-card {
  background: #fff;
  border: 1px solid rgba(10, 46, 36, 0.06);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.5rem;
  box-shadow: 0 14px 40px -26px rgba(10, 46, 36, 0.18);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.consult-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.c-num {
  display: inline-flex;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-deep);
  font-family: var(--font-head);
  font-size: 1.05rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.consult-card h3 { font-size: 1rem; }
.consult-card p {
  margin-top: 0.4rem;
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--ink-soft);
}
.consult-note {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  background: var(--mint);
  border: 1px solid rgba(0, 166, 126, 0.14);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.8rem;
}
.consult-note svg { width: 2rem; height: 2rem; color: var(--green-deep); flex: none; }
.consult-note p { flex: 1; min-width: 16rem; font-size: 0.95rem; color: var(--green-ink); font-weight: 300; }
.consult-note b { font-weight: 700; }

/* ---------- charter ---------- */
.charter { padding-block: 6rem; }
.charter-doc {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(13, 207, 159, 0.10), transparent 55%),
    linear-gradient(165deg, var(--night-2), var(--night) 70%);
  border: 1px solid rgba(13, 207, 159, 0.16);
  padding: 4.5rem clamp(1.5rem, 5vw, 4.5rem);
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(6, 35, 27, 0.55);
}
.charter-doc::before {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px dashed rgba(13, 207, 159, 0.22);
  border-radius: calc(var(--r-xl) - 0.8rem);
  pointer-events: none;
}
.corner {
  position: absolute;
  width: 1.6rem; height: 1.6rem;
  border-color: var(--green-bright);
  border-style: solid;
  border-width: 0;
  opacity: 0.85;
}
.corner-tl { top: 0.65rem; right: 0.65rem; border-top-width: 2.5px; border-right-width: 2.5px; border-radius: 0 0.6rem 0 0; }
.corner-tr { top: 0.65rem; left: 0.65rem; border-top-width: 2.5px; border-left-width: 2.5px; border-radius: 0.6rem 0 0 0; }
.corner-bl { bottom: 0.65rem; right: 0.65rem; border-bottom-width: 2.5px; border-right-width: 2.5px; border-radius: 0 0 0.6rem 0; }
.corner-br { bottom: 0.65rem; left: 0.65rem; border-bottom-width: 2.5px; border-left-width: 2.5px; border-radius: 0 0 0 0.6rem; }

.charter-head { text-align: center; max-width: 36rem; margin: 0 auto 3.2rem; }
.charter-head h2 {
  color: #fff;
  margin-top: 1.3rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.charter-head p {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  font-size: 0.98rem;
}
.charter-list {
  max-width: 46rem;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
  counter-reset: clause;
}
.charter-list li {
  counter-increment: clause;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(13, 207, 159, 0.12);
  border-radius: 1.2rem;
  padding: 1.2rem 1.4rem;
  transition: background-color 0.6s var(--ease), border-color 0.6s var(--ease);
}
.charter-list li:hover {
  background: rgba(13, 207, 159, 0.07);
  border-color: rgba(13, 207, 159, 0.25);
}
.charter-list li::before {
  content: "0" counter(clause);
  font-family: var(--font-head);
  color: var(--green-bright);
  font-size: 1.15rem;
  direction: ltr;
}
.charter-list b {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.charter-list span {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  font-size: 0.86rem;
  margin-top: 0.2rem;
}
.charter-foot {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}
.stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem;
  border: 1.5px dashed rgba(13, 207, 159, 0.4);
  border-radius: 50%;
  width: 6.6rem; height: 6.6rem;
  justify-content: center;
  transform: rotate(-6deg);
}
.stamp svg { width: 2.2rem; height: 2.2rem; }
.stamp span { font-size: 0.6rem; color: var(--green-bright); font-weight: 600; letter-spacing: 0.05em; }
.charter-foot p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  font-weight: 300;
  max-width: 24rem;
}
.charter-foot a {
  color: var(--green-bright);
  font-weight: 600;
  border-bottom: 1px dashed rgba(13, 207, 159, 0.5);
  transition: border-color 0.4s;
}
.charter-foot a:hover { border-bottom-style: solid; }

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 46rem;
}
.contact-inner h2 { margin-top: 1.3rem; }
.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.contact-mini {
  margin-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--mint-soft);
  padding: 3.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}
.footer-brand .logo-mark { width: 2.6rem; height: 2.6rem; }
.footer-word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  direction: ltr;
  line-height: 1.25;
}
.footer-word .nav-word { font-size: 1.25rem; }
.footer-studio {
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  margin-inline-end: -0.42em;
  color: var(--ink-soft);
  font-weight: 600;
  direction: ltr;
}
.footer-tag {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 300;
  margin-top: 0.4rem;
}
.footer-nav { display: grid; gap: 0.5rem; justify-items: start; }
.footer-nav a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: color 0.4s;
}
.footer-nav a:hover { color: var(--green-deep); }
.footer-meta { text-align: end; font-size: 0.8rem; color: var(--ink-soft); font-weight: 300; }
.footer-loc { margin-top: 0.3rem; }
.footer-social { margin-bottom: 0.6rem; }
.footer-social a {
  font-weight: 600;
  color: var(--green-deep);
  transition: color 0.4s;
}
.footer-social a:hover { color: var(--green); }
.footer-social span { margin-inline: 0.4rem; }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(2.6rem);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.d1 { transition-delay: 90ms; }
.d2 { transition-delay: 180ms; }
.d3 { transition-delay: 270ms; }
.d4 { transition-delay: 360ms; }
.d5 { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .float-chip { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .bento-cell, .cell-big, .cell-wide { grid-column: span 6; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .consult-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 5rem; }
  .hero-visual { margin-top: 1rem; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .container { width: min(1180px, 100% - 2rem); }
  .section { padding: 5rem 0; }
  .hero { padding: 8.5rem 0 4.5rem; }
  .nav { gap: 0.8rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .bento-cell, .cell-big, .cell-wide { grid-column: span 12; }
  .work-grid, .consult-grid { grid-template-columns: 1fr; }
  .chip-a { inset-inline-start: 0; top: 6%; }
  .chip-b { inset-inline-end: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-meta { text-align: start; }
  .charter-doc { padding-block: 3.5rem; }
  .charter-list li { grid-template-columns: 1fr; row-gap: 0.3rem; }
  .charter-list span { grid-column: 1; }
  .stat-sep { display: none; }
  .hero-stats { gap: 1.2rem; }
}
