:root {

  --bg:        #040406;
  --bg-2:      #08080b;
  --ink:       #ece7e1;
  --ink-soft:  #9a949c;
  --ink-faint: #5c565f;
  --line:      rgba(236, 231, 225, 0.10);
  --accent:    #c7ccd6;

  --maxw: 1280px;
  --pad: clamp(1.5rem, 5vw, 4.5rem);

  --font-logo:    "Theano Didot", Georgia, serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="el"] { --font-display: "Cormorant Garamond", "GFS Didot", Georgia, serif; }

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

html { -webkit-text-size-adjust: 100%; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

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

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.bg::before,
.bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  will-change: transform;
}
.bg::before {
  width: 75vmax; height: 75vmax;
  left: -12vmax; top: -22vmax;
  background: radial-gradient(circle, rgba(120, 130, 146, 0.11), transparent 60%);
  animation: drift1 28s var(--ease) infinite alternate;
}
.bg::after {
  width: 65vmax; height: 65vmax;
  right: -16vmax; bottom: -22vmax;
  background: radial-gradient(circle, rgba(88, 98, 118, 0.10), transparent 62%);
  animation: drift2 34s var(--ease) infinite alternate;
}
@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(7vmax, 5vmax) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-6vmax, -5vmax) scale(1.12); }
}
#fx { position: absolute; inset: 0; width: 100%; height: 100%; }

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.4rem, 2.6vw, 2.1rem) var(--pad);
  background: linear-gradient(to bottom, rgba(4, 4, 6, 0.9), rgba(4, 4, 6, 0));
}

.logo {
  font-family: var(--font-logo);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--ink);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); }

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.nav__lang-on { color: var(--ink); }
.nav__lang-sep { opacity: 0.5; }
.nav__lang a { color: var(--ink-faint); transition: color 0.35s var(--ease); }
.nav__lang a:hover { color: var(--ink); }

.nav__link {
  position: relative;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: color 0.35s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  position: relative;
  width: 30px; height: 18px;
  background: none; border: 0; padding: 0; cursor: pointer;
  z-index: 210;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease),
              top 0.4s var(--ease), bottom 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
.menu-open .nav-toggle span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 6rem var(--pad) calc(var(--pad) + 1.5rem);
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu__link {
  display: block; padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1.1;
  color: var(--ink);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s var(--ease);
}
.menu-open .menu__link { opacity: 1; transform: none; }
.menu-open .menu__link:nth-child(1) { transition-delay: 0.08s; }
.menu-open .menu__link:nth-child(2) { transition-delay: 0.14s; }
.menu-open .menu__link:nth-child(3) { transition-delay: 0.20s; }
.menu__foot {
  margin-top: auto;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease) 0.28s, transform 0.5s var(--ease) 0.28s;
}
.menu-open .menu__foot { opacity: 1; transform: none; }
.menu__foot .nav__lang { font-size: 0.95rem; }

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 2px 40px rgba(4, 4, 6, 0.85);
}
.hero__title .line { display: block; }
.hero__title em { color: var(--accent); font-style: italic; font-weight: 500; }

.tw-char { display: inline; }
.tw-char.em { color: var(--accent); font-style: italic; font-weight: 500; }
.tw-caret {
  display: inline-block;
  width: 0.5px;
  border-right: 2px solid var(--accent);
  height: 0.92em;
  margin-left: 0.04em;
  vertical-align: -0.08em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero__lead {
  max-width: 42ch;
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(1.8rem, 4vh, 2.6rem);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.35s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.6rem, 4vh, 2.6rem);
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0.8;
  animation: bob 2.6s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

#ink-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000;
}
#ink-stage canvas { display: block; width: 100%; height: 100%; }
#ink-video { display: none; }

.site-header--home { position: fixed; transition: opacity 0.4s var(--ease); }
body.past-hero .site-header--home { opacity: 0; visibility: hidden; pointer-events: none; }

.hero {
  position: relative;
  height: 100svh;
  background: #000;
}
.hero__sticky {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__statement { position: absolute; inset: 0; z-index: 2; margin: 0; pointer-events: none; }
.hs-line {
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.1em 0.32em 0.16em;
  margin: -0.1em -0.32em -0.16em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 8.8vw, 8.5rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.hs-line .hs-in {
  display: inline-block;
  transform: translateY(140%);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.95s var(--ease), opacity 0.95s var(--ease);
}
.hs-line em { font-style: italic; color: #c9b6e0; }
.hs-line--1 { top: 34vh; left: var(--pad); }
.hs-line--2 { top: 54vh; right: var(--pad); left: auto; text-align: right; }

.hero__tagline {
  position: absolute;
  left: var(--pad);
  bottom: calc(var(--pad) + 3.4rem);
  z-index: 2;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.15vw, 1.12rem);
  line-height: 1.6;
}
.hero__cta {
  position: absolute;
  left: var(--pad);
  bottom: var(--pad);
  z-index: 2;
  margin-top: 0;
}
.hero__tagline, .hero__cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

body.hero-revealed .hs-line--1 .hs-in { transform: translateY(0); opacity: 1; transition-delay: 0.05s; }
body.hero-revealed .hs-line--2 .hs-in { transform: translateY(0); opacity: 1; transition-delay: 0.20s; }
body.hero-more .hero__tagline { opacity: 1; transform: none; transition-delay: 0s; }
body.hero-more .hero__cta { opacity: 1; transform: none; transition-delay: 0.18s; }

.after-hero  { background: var(--bg); }
.site-footer { background: var(--bg); }

@media (max-height: 820px) {
  .hs-line--1 { top: 30vh; }
  .hs-line--2 { top: 50vh; }
}
@media (max-height: 700px) {
  .hs-line { font-size: clamp(1.9rem, 6.2vw, 4.6rem); }
  .hs-line--1 { top: 26vh; }
  .hs-line--2 { top: 48vh; }
}
@media (max-height: 600px) {
  .hs-line { font-size: clamp(1.6rem, 5vw, 3.4rem); }
  .hs-line--1 { top: 22vh; }
  .hs-line--2 { top: 46vh; }
  .hero__tagline { bottom: calc(var(--pad) + 2.4rem); font-size: 0.9rem; }
}
@media (max-width: 640px) {
  .hs-line { font-size: clamp(1.9rem, 9vw, 3.4rem); }
  .hs-line--1 { top: 24vh; left: 4vw; }
  .hs-line--2 { top: 42vh; left: 4vw; right: auto; text-align: left; }
  .hero__tagline { max-width: 26ch; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .hs-line .hs-in { transform: none; opacity: 1; transition: none; }
  .hero__tagline, .hero__cta { opacity: 1; transform: none; transition: none; }
}

picture { display: contents; }

.work {
  position: relative;
  padding: clamp(2rem, 5vh, 4rem) var(--pad) clamp(6rem, 13vh, 11rem);
}
.work-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.work__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.work__head { margin-bottom: clamp(3rem, 7vh, 5.5rem); }
.work__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.1;
  margin-top: 0.7rem;
}

.work-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 9vh, 7rem);
}
.work-item:last-child { margin-bottom: 0; }
.work-item--reverse .work-item__media { order: 2; }
.work-item--reverse .work-item__text  { order: 1; }

.work-item__text {
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

.work-item__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.work-item__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}
.work-item__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 4, 6, 0.4), transparent 55%);
  pointer-events: none;
}
.work-item__media:hover img { transform: scale(1.045); }

.work-item__index {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.work-item__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  margin-top: 0.5rem;
}
.work-item__meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}
.work-item__desc {
  max-width: 40ch;
  margin-top: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.work-item__links { display: flex; align-items: center; gap: 1.6rem; }
.work-item__links .link-arrow { margin-top: 1.8rem; }
.link-plain {
  margin-top: 1.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: color 0.35s var(--ease);
}
.link-plain:hover { color: var(--accent); }
.work-item__text > .link-arrow { margin-top: 1.8rem; }

.approach {
  position: relative;
  padding: clamp(4rem, 9vh, 7.5rem) var(--pad) clamp(6rem, 13vh, 11rem);
  border-top: 1px solid var(--line);

  background:
    radial-gradient(72% 46% at 50% -4%, rgba(92, 118, 178, 0.16), transparent 62%),
    linear-gradient(180deg, #090b13 0%, #070810 55%, #050609 100%);
}
.approach__inner { max-width: var(--maxw); margin: 0 auto; }

.approach__head {
  max-width: 52rem;
  margin: 0 auto clamp(3rem, 7vh, 5rem);
  text-align: center;
}
.approach__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1.14;
  margin-top: 0.7rem;
}
.approach__lead {
  max-width: 52ch;
  margin: 1.4rem auto 0;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.6vw, 1.4rem);
  margin-top: clamp(1.5rem, 4vh, 3rem);
}
.card {

  --c-dim:    rgba(150, 172, 208, 0.32);
  --c-mid:    rgba(176, 197, 228, 0.6);
  --c-hi:     #cfe0f5;
  --c-accent: #8fb2e0;

  border: 1px solid rgba(150, 172, 210, 0.14);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(120, 150, 205, 0.035), rgba(120, 150, 205, 0));
  transition: border-color 0.4s var(--ease);
}
.card:hover { border-color: rgba(160, 185, 225, 0.28); }

.card__ill {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(150, 172, 210, 0.12);
  background:
    radial-gradient(58% 62% at 50% 52%, rgba(84, 122, 190, 0.16), transparent 70%),
    radial-gradient(120% 110% at 50% 0%, rgba(120, 150, 205, 0.05), transparent 60%);
}

.card__ill::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(170, 190, 225, 0.07) 1px, transparent 1px);
  background-size: 17px 17px;
  -webkit-mask: radial-gradient(circle at 50% 45%, #000, transparent 72%);
          mask: radial-gradient(circle at 50% 45%, #000, transparent 72%);
}
.card__body { padding: 1.25rem 1.4rem 1.6rem; text-align: center; }
.card__title { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; }
.card__desc { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; }

.ill-svg { width: 88%; max-width: 230px; height: auto; overflow: visible; }
.ill-svg :is(rect, line, circle, path, text) { vector-effect: non-scaling-stroke; }

.ill-distinct .win :is(rect, line) { fill: none; stroke: var(--c-dim); stroke-width: 1.5; }
.ill-distinct .win circle { fill: var(--c-dim); }
.ill-distinct .win--side { opacity: 0.72; }
.ill-distinct .win--star :is(rect, line) { stroke: var(--c-mid); }
.ill-distinct .win--star circle { fill: var(--c-mid); }
.ill-distinct .win--star .win__frame { stroke: var(--c-accent); stroke-width: 1.8; }
.ill-distinct .win--star .btn { fill: rgba(143, 178, 224, 0.18); stroke: var(--c-accent); stroke-width: 1.2; }
.ill-distinct .win--star {
  transform-origin: 100px 60px;
  animation: star-breathe 3.4s var(--ease) infinite;
}
@keyframes star-breathe {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 5px rgba(120, 160, 225, 0.3)); }
  50%      { transform: scale(1.035); filter: drop-shadow(0 0 13px rgba(140, 178, 240, 0.6)); }
}
.ill-distinct .ln--hi {
  stroke: var(--c-hi) !important;
  stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: draw-line 3.4s var(--ease) infinite;
}
.ill-distinct .ln--hi.d2 { animation-delay: 0.3s; }
.ill-distinct .ln--hi.d3 { animation-delay: 0.6s; }
@keyframes draw-line {
  0% { stroke-dashoffset: 60; } 34% { stroke-dashoffset: 0; }
  76% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 60; }
}

.ill-craft2 :is(.canvas, .bar) { fill: none; stroke: var(--c-dim); stroke-width: 1.5; }
.ill-craft2 .tool { fill: var(--c-dim); }
.ill-craft2 .grid line { stroke: rgba(170, 190, 225, 0.1); stroke-width: 1; }
.ill-craft2 .curve {
  fill: none; stroke: var(--c-hi); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: draw-curve 4.2s var(--ease) infinite;
}
@keyframes draw-curve {
  0% { stroke-dashoffset: 260; } 44% { stroke-dashoffset: 0; }
  80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 260; }
}
.ill-craft2 .handles line { stroke: var(--c-accent); stroke-width: 1; stroke-dasharray: 2 2; }
.ill-craft2 .handles rect { fill: var(--bg); stroke: var(--c-accent); stroke-width: 1.2; }
.ill-craft2 .handles .anchor { fill: var(--c-hi); }
.ill-craft2 .handles { opacity: 0; animation: handles-in 4.2s var(--ease) infinite; }
@keyframes handles-in {
  0%, 12% { opacity: 0; } 46% { opacity: 1; }
  80% { opacity: 1; } 94%, 100% { opacity: 0; }
}
.ill-craft2 .pen path { fill: var(--c-hi); }
.ill-craft2 .pen {
  offset-path: path("M40 84 C 72 34, 122 100, 168 46");
  offset-distance: 0%;
  animation: pen-move 4.2s var(--ease) infinite;
}
@keyframes pen-move {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; } 44% { offset-distance: 100%; opacity: 1; }
  54% { opacity: 0; } 100% { offset-distance: 100%; opacity: 0; }
}

.ill-perfect :is(.panel, .bar) { fill: none; stroke: var(--c-dim); stroke-width: 1.5; }
.ill-perfect .tool { fill: var(--c-dim); }
.ill-perfect .g-track { fill: none; stroke: rgba(170, 190, 225, 0.14); stroke-width: 5; }
.ill-perfect .g-prog {
  fill: none; stroke: var(--c-hi); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 150.8; stroke-dashoffset: 150.8;
  transform: rotate(-90deg); transform-origin: 58px 70px;
  animation: gauge-fill 4s var(--ease) infinite;
}
@keyframes gauge-fill {
  0% { stroke-dashoffset: 150.8; } 50% { stroke-dashoffset: 0; }
  84% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 150.8; }
}
.ill-perfect .g-num {
  fill: var(--c-hi); font-family: var(--font-body); font-size: 15px; font-weight: 500;
  opacity: 0; animation: num-in 4s var(--ease) infinite;
}
@keyframes num-in {
  0%, 42% { opacity: 0; } 54% { opacity: 1; }
  84% { opacity: 1; } 94%, 100% { opacity: 0; }
}
.ill-perfect .m-track { stroke: rgba(170, 190, 225, 0.14); stroke-width: 4; stroke-linecap: round; }
.ill-perfect .m-fill {
  stroke: var(--c-accent); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 64; stroke-dashoffset: 64;
  animation: metric-fill 4s var(--ease) infinite;
}
.ill-perfect .m-fill--2 { animation-delay: 0.22s; }
.ill-perfect .m-fill--3 { animation-delay: 0.44s; }
@keyframes metric-fill {
  0% { stroke-dashoffset: 64; } 42% { stroke-dashoffset: 0; }
  84% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 64; }
}

.cards.anim-paused .ill-svg,
.cards.anim-paused .ill-svg * {
  animation-play-state: paused !important;
}

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .card__ill { aspect-ratio: 21 / 9; }
  .ill-svg { max-width: 300px; }
  .ill-distinct .win--star { animation-name: star-breathe-lite; }
}
@keyframes star-breathe-lite {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

.contact {
  position: relative;
  padding: clamp(2rem, 5vh, 4rem) var(--pad) 0;
  border-top: 1px solid var(--line);

  background:
    radial-gradient(72% 52% at 50% 0%, rgba(128, 98, 182, 0.17), transparent 60%),
    var(--bg);
}
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  padding-bottom: clamp(5rem, 11vh, 9rem);
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.06;
  margin-top: 0.7rem;
}
.contact__title em { color: var(--accent); font-style: italic; }
.contact__lead {
  max-width: 34ch;
  margin-top: 1.4rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.contact__email {
  display: inline-block;
  margin-top: 1.7rem;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.35s var(--ease);
}
.contact__email:hover { border-color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.hp { position: absolute; left: -9999px; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.35s var(--ease);
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.btn-send {
  align-self: flex-start;
  margin-top: 0.4rem;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 100px;
  padding: 0.9em 1.9em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.btn-send:hover { background: var(--accent); transform: translateY(-2px); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--pad);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-faint);
  font-size: 0.8rem;
}
.site-footer__logo {
  font-family: var(--font-logo);
  letter-spacing: 0.28em;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .contact__inner { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; gap: 0.7rem; text-align: center; }
}

.case-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(2rem, 6vh, 4rem) var(--pad) clamp(6rem, 20vh, 13rem);
}

.case-hero .eyebrow { color: rgba(236, 231, 225, 0.72); }
.case-hero__media { position: absolute; inset: 0; z-index: 0; }
.case-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 4, 6, 0.92) 0%, rgba(4, 4, 6, 0.3) 45%, rgba(4, 4, 6, 0.55) 100%);
}
.case-hero__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.case-back {
  display: inline-block;
  margin-bottom: 1.6rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: color 0.35s var(--ease);
}
.case-back:hover { color: var(--ink); }
.case-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-top: 0.4rem;
}
.case-hero__lead {
  max-width: 46ch;
  margin-top: 1.2rem;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}
.case-hero .link-arrow { margin-top: 1.8rem; }

.site-header--case .logo,
.site-header--case .nav__link {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.75), 0 0 3px rgba(0, 0, 0, 0.5);
}
.site-header--case .nav-toggle span { box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }

.case-body { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vh, 7rem) var(--pad) 0; }
.case-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.case-meta { display: flex; flex-direction: column; gap: 1.1rem; align-self: start; }
.case-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}
.case-meta__k {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.case-meta__v { color: var(--ink); font-size: 0.94rem; }

.case-intro h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 0.9rem;
}
.case-intro h2:not(:first-child) { margin-top: 2.4rem; }
.case-intro p { max-width: 62ch; color: var(--ink-soft); line-height: 1.85; }
.case-highlights { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.75rem; }
.case-highlights li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.case-highlights li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.6vw, 1.4rem);
  margin-top: clamp(3rem, 7vh, 5rem);
}
.case-gallery figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.case-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.case-gallery figure:hover img { transform: scale(1.05); }

.case-cta {
  max-width: var(--maxw);
  margin: clamp(4rem, 9vh, 7rem) auto 0;
  padding: clamp(3rem, 7vh, 5rem) var(--pad) clamp(4rem, 9vh, 7rem);
  border-top: 1px solid var(--line);
  text-align: center;
}
.case-cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-top: 0.6rem;
}
.case-cta__links {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.case-cta__links .link-plain { margin: 0; }

@media (max-width: 820px) {
  .case-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .case-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem; }
}
@media (max-width: 620px) {
  .case-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 430px) {
  .case-gallery { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr; }
}

.section-stub {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--bg-2);
}

@media (max-width: 860px) {
  .work-item {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .work-item--reverse .work-item__media { order: 1; }
  .work-item--reverse .work-item__text  { order: 2; }
  .work-item__media { aspect-ratio: 16 / 10; }

  .work-item__text { justify-self: start; width: auto; }
}

@media (max-width: 640px) {
  .hero__title { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .case-hero__title { font-size: clamp(2.6rem, 13vw, 4rem); }
}

@media (min-width: 600px) and (max-width: 1024px) and (min-height: 820px) {
  .hero__title { font-size: clamp(3.4rem, 8.5vw, 5rem); line-height: 1.22; }
  .hero__lead {
    font-size: clamp(1.15rem, 2.1vw, 1.5rem);
    max-width: 42ch;
    margin-top: clamp(2.6rem, 5.5vh, 4.5rem);
  }
  .hero .link-arrow {
    font-size: 1rem;
    margin-top: clamp(2.6rem, 5.5vh, 4.5rem);
  }
}

@media (min-width: 1600px) {
  :root { --maxw: 1440px; }
  html { font-size: 17.5px; }
}
@media (min-width: 2100px) {
  :root { --maxw: 1600px; }
  html { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg::before, .bg::after, .hero__scroll { animation: none; }
  .tw-caret { display: none; }

  .win--star, .ln--hi, .curve, .handles, .pen, .g-prog, .g-num, .m-fill { animation: none; }
  .ln--hi, .curve, .g-prog, .m-fill { stroke-dashoffset: 0; }
  .handles, .g-num { opacity: 1; }
  .pen { offset-distance: 100%; }
}
