@charset "UTF-8";
:root {
  --bg: #FAF7F2;
  --bg-warm: #F5EFE4;
  --ink: #1A1815;
  --ink-soft: #3D3A35;
  --muted: #8A857C;
  --accent: #FF5A1F;
  --accent-soft: #FFE5D6;
  --yellow: #FFD84D;
  --green: #7CB342;
  --blue: #4A90E2;
  --pink: #FFB5C5;
  --border: #E5DFD3;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

.serif {
  font-family: "Instrument Serif", serif;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.hand {
  font-family: "Caveat", cursive;
  font-weight: 500;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 24px;
}
.section-tag::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--muted);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes wave {
  0%, 60%, 100% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
}
@keyframes scrollDown {
  0%, 100% {
    transform: scaleY(0.3);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 10px 8px 18px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
nav .me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Instrument Serif", serif;
  font-size: 17px;
  padding-right: 14px;
  border-right: 1px solid rgba(250, 247, 242, 0.15);
}
nav .me::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.25);
  animation: pulse 2s infinite;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
nav ul a {
  color: rgba(250, 247, 242, 0.7);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 100px;
  transition: all 0.2s;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
nav ul a:hover {
  color: var(--bg);
  background: rgba(250, 247, 242, 0.08);
}
nav .say-hi {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ---- Language switcher ---- */
.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid rgba(250, 247, 242, 0.2);
  border-radius: 100px;
  padding: 2px;
}
.lang-switch .lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(250, 247, 242, 0.5);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 100px;
  transition: all 0.2s;
}
.lang-switch .lang-btn:hover {
  color: var(--bg);
}
.lang-switch .lang-btn.active {
  background: rgba(250, 247, 242, 0.15);
  color: var(--bg);
}

.hero {
  padding: 140px 40px 80px;
  position: relative;
  z-index: 2;
  max-width: 1520px;
  margin: 0 auto;
}

.hero-intro {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-intro::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--muted);
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.hero-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-name .wave {
  display: inline-block;
  animation: wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
  font-size: 18px;
}

.hero-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8px;
}
.hero-text h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(44px, 4.8vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-text h1 .underline {
  position: relative;
  display: inline;
}
.hero-text h1 .underline::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -2px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg width='100%25' height='14' viewBox='0 0 200 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8 Q 50 2, 100 8 T 198 8' stroke='%23FFD84D' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  z-index: -1;
}
.hero-text .lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-text .lead b {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%);
  padding: 0 2px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-main {
  background: var(--ink);
  color: var(--bg);
  padding: 18px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.btn-main:hover .arrow {
  transform: rotate(-45deg);
}
.btn-main .arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.2s;
}

.btn-text {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ink-soft);
  padding-bottom: 3px;
  transition: color 0.2s;
}
.btn-text:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- Portrait: same row height as text, large photo ---- */
.hero-portrait {
  position: relative;
  width: 100%;
  align-self: flex-start;
  margin-top: -20px;
}

.hero-portrait-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  align-self: stretch;
  border-radius: clamp(12px, 1.8vw, 22px);
  overflow: hidden;
  filter: drop-shadow(0 24px 64px rgba(0, 0, 0, 0.13));
}

.portrait-photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(96vh, 1040px);
  object-fit: contain;
  object-position: center;
  background: transparent;
  /* легке розчинення — тільки правий край і трохи знизу */
  -webkit-mask-image: linear-gradient(to bottom, black 88%, transparent 100%), linear-gradient(to right, black 88%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image: linear-gradient(to bottom, black 88%, transparent 100%), linear-gradient(to right, black 88%, transparent 100%);
  mask-composite: intersect;
}

/* ---- Stickers ---- */
.sticker {
  position: absolute;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  z-index: 3;
  white-space: nowrap;
  transition: transform 0.3s;
}
.sticker:hover {
  transform: scale(1.08) rotate(0deg) !important;
}

.sticker-1 {
  top: -20px;
  left: -30px;
  transform: rotate(-8deg);
  background: var(--yellow);
}
.sticker-1::before {
  content: "⚡ ";
  font-size: 14px;
}

.sticker-2 {
  bottom: 40px;
  left: -50px;
  transform: rotate(6deg);
  background: var(--ink);
  color: var(--bg);
}

.sticker-3 {
  top: 60px;
  right: -40px;
  transform: rotate(10deg);
  background: var(--green);
  color: #fff;
}
.sticker-3::before {
  content: "✓ ";
}

.sticker-4 {
  bottom: -20px;
  right: 20px;
  transform: rotate(-4deg);
  background: var(--pink);
  font-family: "Caveat", cursive !important;
  font-size: 20px !important;
  font-weight: 600;
}

/* ---- Scroll cue ---- */
.scroll-cue {
  position: relative;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}
.scroll-cue .line {
  width: 1px;
  height: 30px;
  background: var(--muted);
  animation: scrollDown 2s ease-in-out infinite;
}

.marquee {
  background: var(--ink);
  color: var(--bg);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: scroll 40s linear infinite;
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  font-style: italic;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
}
.marquee-track span::after {
  content: "✦";
  color: var(--accent);
  font-size: 18px;
  font-style: normal;
}

.about {
  padding: 120px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.about h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.about h2 em {
  font-style: italic;
  color: var(--accent);
}

.about-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.about-text p {
  margin-bottom: 20px;
}
.about-text b {
  color: var(--ink);
  font-weight: 600;
}
.about-text .highlight {
  background: var(--yellow);
  padding: 1px 4px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.fact {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.fact:nth-child(1) {
  transform: rotate(-1deg);
}
.fact:nth-child(2) {
  transform: rotate(1deg);
}
.fact:nth-child(3) {
  transform: rotate(0.5deg);
}
.fact:nth-child(4) {
  transform: rotate(-0.5deg);
}

.fact-num {
  font-family: "Instrument Serif", serif;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 6px;
}

.fact-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.work {
  padding: 80px 40px 120px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 20px;
}

.work h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.work h2 em {
  font-style: italic;
  color: var(--accent);
}

.work-note {
  font-family: "Caveat", cursive;
  font-size: 20px;
  color: var(--muted);
  max-width: 260px;
  text-align: right;
  line-height: 1.3;
}

.case {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.case:nth-child(odd) {
  background: var(--bg-warm);
}

.case-visual {
  background: var(--ink);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--bg);
}
.case-visual.green {
  background: linear-gradient(135deg, #2d5016, #4a7c2a);
}
.case-visual.orange {
  background: linear-gradient(135deg, var(--accent), #ff8c42);
}
.case-visual.blue {
  background: linear-gradient(135deg, #1e3a5f, var(--blue));
}
.case-visual .bg-text {
  position: absolute;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: clamp(80px, 15vw, 180px);
  bottom: -30px;
  right: -20px;
  color: rgba(255, 255, 255, 0.1);
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.case-visual h3 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.case-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  width: max-content;
}

.case-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
}
.case-info .problem {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.case-info h4 {
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.case-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.case-metrics {
  display: flex;
  gap: 16px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

.metric .before {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
}
.metric .after {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  line-height: 1;
}
.metric .after em {
  font-style: italic;
  color: var(--accent);
}
.metric .ml {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.case-link {
  margin-top: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.case-link:hover {
  gap: 14px;
  color: var(--accent);
}

.stack {
  padding: 80px 40px;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  z-index: 2;
}

.stack-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.stack-inner .section-tag {
  color: rgba(250, 247, 242, 0.5);
}
.stack-inner .section-tag::before {
  background: rgba(250, 247, 242, 0.3);
}
.stack-inner h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  max-width: 800px;
}
.stack-inner h2 em {
  font-style: italic;
  color: var(--accent);
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1000px;
}

.tech-pill {
  padding: 10px 18px;
  border: 1px solid rgba(250, 247, 242, 0.2);
  border-radius: 100px;
  font-size: 14px;
  transition: all 0.2s;
  cursor: default;
}
.tech-pill:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  transform: scale(1.05);
}
.tech-pill:hover .s {
  color: rgba(26, 24, 21, 0.6);
}
.tech-pill .s {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: rgba(250, 247, 242, 0.4);
  margin-right: 6px;
}

.stack-quote {
  margin-top: 60px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  max-width: 900px;
}
.stack-quote .icon {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 80px;
  color: var(--accent);
  line-height: 0.6;
}
.stack-quote p {
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(250, 247, 242, 0.9);
}
.stack-quote p em {
  font-style: italic;
  color: var(--accent);
}

.process {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.process h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.process h2 em {
  font-style: italic;
  color: var(--accent);
}

.process-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 60px;
  max-width: 600px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: url("data:image/svg+xml,%3Csvg width='100%25' height='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='1' x2='100%25' y2='1' stroke='%23FF5A1F' stroke-width='2' stroke-dasharray='4 4'/%3E%3C/svg%3E");
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
}
.step:nth-child(1) .step-num {
  background: var(--yellow);
}
.step:nth-child(2) .step-num {
  background: var(--pink);
}
.step:nth-child(3) .step-num {
  background: var(--accent-soft);
}
.step:nth-child(4) .step-num {
  background: var(--green);
  color: #fff;
}
.step h4 {
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.step p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.step .when {
  display: inline-block;
  margin-top: 12px;
  font-family: "Caveat", cursive;
  font-size: 18px;
  color: var(--accent);
  transform: rotate(-2deg);
}

.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Instrument Serif", serif;
  font-size: 26px;
  margin-bottom: 20px;
  box-shadow: 4px 4px 0 var(--ink);
}

.books-sec {
  padding: 100px 40px;
  background: var(--bg-warm);
  position: relative;
  z-index: 2;
}

.books-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}
.books-inner h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.books-inner h2 em {
  font-style: italic;
  color: var(--accent);
}
.books-inner .lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.amazon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 22px;
  border: 2px solid var(--ink);
  border-radius: 100px;
  transition: all 0.2s;
}
.amazon-link:hover {
  background: var(--ink);
  color: var(--bg);
}

.book-stack {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.book-stack:hover .book:nth-child(1) {
  transform: translateX(-280px) rotate(-14deg);
}
.book-stack:hover .book:nth-child(2) {
  transform: translateX(-140px) rotate(-7deg);
}
.book-stack:hover .book:nth-child(4) {
  transform: translateX(140px) rotate(7deg);
}
.book-stack:hover .book:nth-child(5) {
  transform: translateX(280px) rotate(14deg);
}

.book {
  position: absolute;
  width: 180px;
  height: 240px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px 12px 12px 4px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -4px 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.book:nth-child(1) {
  background: var(--accent);
  color: #fff;
  transform: translateX(-80px) rotate(-8deg);
  z-index: 1;
}
.book:nth-child(2) {
  background: var(--yellow);
  color: var(--ink);
  transform: translateX(-40px) rotate(-4deg);
  z-index: 2;
}
.book:nth-child(3) {
  background: var(--ink);
  color: var(--bg);
  z-index: 3;
}
.book:nth-child(4) {
  background: var(--green);
  color: #fff;
  transform: translateX(40px) rotate(4deg);
  z-index: 2;
}
.book:nth-child(5) {
  background: var(--blue);
  color: #fff;
  transform: translateX(80px) rotate(8deg);
  z-index: 1;
}
.book .lang {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.7;
}
.book h5 {
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.book .type {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

.services {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.services h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 60px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.services h2 em {
  font-style: italic;
  color: var(--accent);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.svc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.svc:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.svc.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.svc.featured p {
  color: rgba(250, 247, 242, 0.7);
}
.svc.featured .svc-bottom {
  border-color: rgba(250, 247, 242, 0.15);
}
.svc.featured::before {
  content: "Full website";
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--yellow);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.svc-emoji {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}

.svc h3 {
  font-family: "Instrument Serif", serif;
  font-size: 30px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.svc p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.svc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.svc-price {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  line-height: 1;
}
.svc-price small {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.svc-when {
  font-family: "Caveat", cursive;
  font-size: 18px;
  color: var(--accent);
  text-align: right;
}

.final {
  padding: 140px 40px;
  position: relative;
  overflow: hidden;
  z-index: 2;
  background: var(--accent);
  color: #fff;
}
.final::before {
  content: "say hello";
  position: absolute;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: clamp(180px, 26vw, 440px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.12);
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.final-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.final-inner .section-tag {
  color: rgba(255, 255, 255, 0.7);
  justify-content: center;
}
.final-inner .section-tag::before {
  background: rgba(255, 255, 255, 0.5);
}
.final-inner h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.final-inner h2 em {
  font-style: italic;
  color: var(--ink);
}
.final-inner p {
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 auto 40px;
}

.wave-hand {
  display: inline-block;
  animation: wave 2.5s infinite;
}

.final-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.final-buttons button { border: 0; font: inherit; cursor: pointer; }

.btn-dark {
  background: var(--ink);
  color: var(--bg);
  padding: 20px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s;
}
.btn-dark:hover {
  transform: translateY(-2px);
}

.btn-light {
  color: #fff;
  padding: 20px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
}
.btn-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.final-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: "Caveat", cursive;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
}

footer {
  padding: 40px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 2;
}
footer a {
  color: rgba(250, 247, 242, 0.6);
  text-decoration: none;
  margin-left: 20px;
}
footer a:hover {
  color: var(--accent);
}
footer .made {
  color: rgba(250, 247, 242, 0.4);
}

@media (max-width: 1100px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
  }
  .hero-portrait {
    max-width: min(780px, 94vw);
    margin: 0 auto;
    justify-self: center;
    align-items: center;
  }
  .hero-portrait-frame {
    margin-inline: auto;
  }
}
@media (max-width: 900px) {
  nav {
    padding: 8px 8px 8px 14px;
  }
  nav ul {
    display: none;
  }
  nav .me {
    font-size: 15px;
    padding-right: 10px;
  }
  .hero {
    padding: 120px 20px 60px;
  }
  .hero-portrait {
    max-width: min(560px, 94vw);
    margin: 0 auto;
    justify-self: center;
  }
  .about,
  .work,
  .process,
  .services {
    padding: 80px 20px;
  }
  .about-grid,
  .books-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .case {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .case-visual {
    min-height: 220px;
  }
  .case-visual .bg-text {
    font-size: 90px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps::before {
    display: none;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .stack {
    padding: 80px 20px;
  }
  .books-sec {
    padding: 60px 20px;
  }
  .book-stack {
    height: 280px;
    transform: scale(0.8);
  }
  .final {
    padding: 80px 20px;
  }
  .sticker-1 {
    left: -10px;
    top: -10px;
  }
  .sticker-2 {
    left: -15px;
  }
  .sticker-3 {
    right: -10px;
  }
}
@media (max-width: 500px) {
  .lang-switch {
    display: none;
  }
  nav .say-hi {
    padding: 8px 12px;
  }
}

/*# sourceMappingURL=style.css.map */

/* Crop transparent margins so the portrait is centered beside the text. */
.hero-portrait-frame {
  width: min(100%, 440px);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
}
.portrait-photo {
  position: absolute;
  width: 200%;
  max-width: none;
  max-height: none;
  height: auto;
  left: -100%;
  top: -30%;
  transform: none;
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

/* Fade the visible crop edges, rather than the uncropped image. */
.hero-portrait-frame {
  border-radius: 0;
  filter: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, #000 76%, transparent 100%);
  mask-composite: intersect;
}
.portrait-photo {
  -webkit-mask-image: none;
  mask-image: none;
}
@media (max-width: 900px) {
  .hero-portrait-frame {
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  }
}

/* Editorial project artwork. */
.case { grid-template-columns: 1.35fr 1fr; padding: 16px; gap: 32px; }
.project-cover { display: block; border-radius: 16px; overflow: hidden; align-self: center; }
.project-cover img { width: 100%; height: auto; display: block; transition: transform .35s ease; }
.project-cover:hover img { transform: scale(1.025); }
.case-info { padding: 20px 16px 20px 0; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .case-info { padding: 16px 8px; }
}
@media (prefers-reduced-motion: reduce) { .project-cover img { transition: none; } }

.services h2 { margin-bottom: 24px; }
.services-intro, .services-note { color: var(--ink-soft); font-size: 15px; line-height: 1.7; max-width: 760px; margin-bottom: 32px; }
.services-note { margin-top: 28px; font-size: 13px; }
.svc { display: flex; flex-direction: column; }
.svc:nth-child(3) { background: #eef1f5; }
.svc:nth-child(7) { background: #f2edf2; }
.svc:nth-child(10) { background: #f4edde; border-color: #d9c9aa; }
.svc:nth-child(11) { background: #2c2830; color: var(--bg); border-color: #2c2830; }
.svc:nth-child(11) p, .svc:nth-child(11) .svc-price small { color: #cec8d1; }
.svc:nth-child(11) .svc-bottom { border-color: rgb(250 247 242 / .18); }
.svc.featured { background: var(--ink); }
.svc-bottom { margin-top: auto; gap: 12px; }
.svc-emoji { font-family: monospace; font-size: 14px; color: var(--accent); letter-spacing: .12em; }
.svc.featured::before { content: 'Full website'; }
.svc.featured .svc-price small { color: #c6c1b9; }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .svc { padding: 26px; } }

.order-btn { margin-top: 24px; padding: 13px 18px; border: 1px solid currentColor; border-radius: 30px; background: transparent; color: inherit; font: inherit; font-weight: 600; display: flex; justify-content: space-between; cursor: pointer; }
.order-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
#order-dialog { margin: auto; padding: 36px; width: min(620px, calc(100% - 24px)); max-height: 90dvh; overflow: auto; border: 1px solid var(--border); border-radius: 24px; background: var(--bg); color: var(--ink); }
#order-dialog::backdrop { background: rgb(20 18 15 / .65); backdrop-filter: blur(5px); }
#close-order { position: absolute; right: 16px; top: 12px; border: 0; background: transparent; font-size: 30px; cursor: pointer; color: inherit; }
#order-dialog h2 { font-size: 36px; line-height: 1.1; margin: 16px 0; }
#order-dialog p { font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.contact-service { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: white; }
.contact-service span { display: block; margin-bottom: 6px; color: var(--ink-soft); font: 12px/1.4 monospace; text-transform: uppercase; letter-spacing: .1em; }
.contact-service strong { font-size: 18px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.contact-option { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 999px; color: white; text-decoration: none; font-weight: 700; }
.contact-option--whatsapp { background: #168b4e; }
.contact-option--telegram { background: #1788b8; }
.contact-option:hover { filter: brightness(.92); }
@media(max-width: 500px) { #order-dialog { padding: 28px 20px; } .contact-actions { grid-template-columns: 1fr; } }

#cases-container { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; }
#cases-container::-webkit-scrollbar { display: none; }
#cases-container .case { flex: 0 0 100%; min-width: 0; box-sizing: border-box; margin-bottom: 0; scroll-snap-align: start; }
#cases-container .case:hover { transform: none; box-shadow: none; }
.project-controls { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 24px; }
.project-controls button { width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 24px; cursor: pointer; }
.project-controls button:disabled { opacity: .3; cursor: default; }
#project-count { font-family: monospace; font-size: 14px; }
#cases-container:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.tool-group { margin-bottom: 28px; }
.tool-group h3 { font: 500 12px monospace; text-transform: uppercase; letter-spacing: .12em; color: #b9b4ac; margin-bottom: 14px; }
.tech-pill { display: inline-flex; align-items: center; gap: 10px; }
.tech-icon { width: 22px; height: 22px; flex-shrink: 0; color: #ffd84d; }
.tech-pill:hover .tech-icon { color: inherit; }
