:root {
  --paper: #f8f3ea;
  --ink: #171512;
  --muted: #6b6258;
  --line: rgba(23, 21, 18, 0.14);
  --sun: #f5b642;
  --blue: #2364aa;
  --green: #277c66;
  --red: #d84c3f;
  --night: #111724;
  --white: #fffdf8;
  --shadow: 0 22px 70px rgba(17, 23, 36, 0.22);
  --site-max-width: 430px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Poppins, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body > main,
body > footer {
  width: min(100%, var(--site-max-width));
  margin-inline: auto;
}

body > main {
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  z-index: 10;
  width: min(100%, var(--site-max-width));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #07133c;
  transform: translateX(-50%);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 40px rgba(17, 23, 36, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  gap: 0;
  text-decoration: none;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.05;
}

.empty-brand {
  width: 160px;
  min-height: 1px;
  pointer-events: none;
}

.brand small {
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.78;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.14);
}

.language-switcher button {
  min-width: 34px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.active {
  background: var(--sun);
  color: #231604;
}

.language-switcher,
.editor-language-switcher {
  display: none;
}

.nav a,
.footer a {
  text-decoration: none;
}

.nav a:hover,
.footer a:hover,
.project a:hover,
.contact-links a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  min-height: clamp(430px, 38vw, 500px);
  display: grid;
  align-items: start;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 38%, rgba(245, 182, 66, 0.18), transparent 22%),
    linear-gradient(100deg, #0f1724 0%, #141b29 54%, #202532 100%);
}

.hero-image,
.hero-overlay {
  position: absolute;
}

.hero-image {
  top: clamp(104px, 12vh, 132px);
  right: clamp(28px, 5%, 72px);
  width: clamp(360px, 48%, 640px);
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 14px;
  clip-path: polygon(5% 0, 96% 0, 100% 12%, 94% 100%, 4% 100%, 0 88%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  background: rgba(255, 253, 248, 0.08);
  object-fit: contain;
  object-position: center;
  z-index: 1;
}

.hero-overlay {
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(17, 23, 36, 0.96) 0%, rgba(17, 23, 36, 0.86) 48%, rgba(17, 23, 36, 0.26) 100%),
    linear-gradient(0deg, rgba(17, 23, 36, 0.5) 0%, rgba(17, 23, 36, 0) 42%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(660px, 54vw);
  padding: clamp(104px, 12vh, 132px) clamp(18px, 6vw, 82px) 42px;
  color: var(--white);
}

.eyebrow,
.section-kicker,
.project span {
  margin: 0 0 14px;
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Manrope, Arial, sans-serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-size: clamp(1.6rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.1rem, 2.5vw, 2.65rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(0.95rem, 1.5vw, 1.3rem);
}

.hero-lede {
  max-width: 560px;
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
}

.hero-actions,
.filters,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.filter,
.contact-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--sun);
  border-color: var(--sun);
  color: #231604;
}

.button.secondary {
  color: var(--white);
}

.button.secondary-dark {
  background: transparent;
  color: var(--ink);
}

.button.danger {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.intro-band div {
  padding: 26px clamp(18px, 4vw, 52px);
  border-right: 1px solid var(--line);
}

.intro-band div:last-child {
  border-right: 0;
}

.intro-band strong {
  display: block;
  font-family: Manrope, Arial, sans-serif;
  font-size: 51px;
  line-height: 1;
}

.intro-band span {
  color: var(--muted);
}

.section {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 4vw, 56px);
}

.section-kicker {
  color: var(--red);
}

.about-grid,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 6vw, 86px);
  align-items: start;
}

.about h2,
.section-heading h2 {
  margin-bottom: 0;
}

.about p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.cv-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.cv-page {
  background: var(--night);
}

.cv-header {
  position: sticky;
  left: auto;
  right: auto;
  background: rgba(248, 243, 234, 0.96);
  color: var(--ink);
  box-shadow: 0 10px 40px rgba(17, 23, 36, 0.08);
  margin-inline: auto;
  transform: none;
  backdrop-filter: blur(16px);
}

.cv-standalone {
  padding-top: clamp(76px, 8vw, 112px);
}

.cv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(24px, 6vw, 86px);
  align-items: start;
  margin-bottom: clamp(34px, 6vw, 74px);
}

.cv-standalone {
  display: grid;
}

.cv-hero h2 {
  display: none;
  margin-bottom: 0;
}

.cv-identity {
  display: grid;
  align-content: start;
}

.cv-identity [data-cv-intro] {
  max-width: 560px;
  margin-top: 34px;
}

.cv-hero-copy {
  display: grid;
  align-content: start;
  justify-items: end;
  padding-top: calc(clamp(1.6rem, 4vw, 3.6rem) * 0.88 + 34px);
}

.cv-portrait {
  width: min(100%, 510px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(7, 19, 60, 0.12);
  border-radius: 24px;
  box-shadow: 0 22px 56px rgba(7, 19, 60, 0.12);
}

.cv-hero-core {
  margin-top: 22px;
}

.cv-hero-core h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.cv-hero-core .cv-list {
  gap: 10px;
  font-size: 0.95rem;
}

.cv-standalone .cv-hero h1 {
  color: var(--ink);
}

.cv-hero p,
.cv-list,
.cv-timeline p,
.cv-game-grid p {
  color: var(--muted);
}

.cv-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.cv-columns article,
.cv-portfolio {
  --cv-card-pad: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f1;
  padding: var(--cv-card-pad);
  overflow: hidden;
}

.cv-columns h3,
.cv-portfolio h3 {
  margin: calc(-1 * var(--cv-card-pad)) calc(-1 * var(--cv-card-pad) - 20px) 24px;
  padding: 22px calc(var(--cv-card-pad) + 28px);
  color: var(--white);
  font-family: Manrope, Arial, sans-serif;
  font-size: 51px;
  font-weight: 800;
  line-height: 1;
  transform: translateX(-20px);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.cv-columns article:nth-child(1) h3 {
  background: #35b8b3;
}

.cv-columns article:nth-child(2) h3 {
  background: #f2be3f;
}

.cv-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
}

.cv-list strong,
.cv-timeline h4,
.cv-game-grid strong {
  color: var(--ink);
}

.cv-timeline {
  display: grid;
  gap: 18px;
}

.cv-timeline div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.cv-timeline div:first-child {
  border-top: 0;
  padding-top: 0;
}

.cv-timeline span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--red);
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.cv-timeline h4 {
  margin: 0 0 8px;
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.9rem;
}

.cv-portfolio {
  margin-top: 18px;
}

.cv-game-grid {
  column-width: auto;
  column-count: 1;
  column-gap: 0;
}

.cv-game-grid p {
  break-inside: avoid;
  margin-bottom: 18px;
}

.work {
  background: #e8ece2;
  padding: 28px clamp(48px, 4vw, 56px) clamp(54px, 8vw, 110px);
}

.work .section-kicker {
  display: none;
}

.section-heading {
  margin-bottom: 28px;
}

.filters {
  justify-content: flex-end;
  align-self: end;
}

.filter {
  background: transparent;
  color: var(--ink);
}

.filter.active {
  background: var(--ink);
  color: var(--white);
}

.editor-open {
  display: none;
  position: fixed;
  right: max(18px, calc((100vw - var(--site-max-width)) / 2 + 28px));
  bottom: 18px;
  z-index: 30;
  background: rgba(248, 243, 234, 0.94);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 12px 34px rgba(17, 23, 36, 0.16);
  backdrop-filter: blur(14px);
}

.editor-enabled .editor-open {
  display: inline-flex;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 36, 0.11);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 23, 36, 0.07);
}

.project[hidden] {
  display: none;
}

.project.featured {
  grid-column: auto;
  grid-row: auto;
}

.project img,
.project-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #d9d2c6;
}

.project.featured img {
  aspect-ratio: 16 / 10;
}

.project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(18px, 2.2vw, 30px);
}

.project h3 {
  font-size: 32px;
}

.project-copy p {
  color: var(--muted);
}

.project-copy .role {
  margin-top: 18px;
  color: var(--ink);
  font-weight: 700;
}

.project.no-description .role {
  margin-top: 8px;
}

.project a {
  width: fit-content;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  color: var(--blue);
}

body > main,
body > footer,
.site-header {
  border-inline: 1px solid rgba(255, 253, 248, 0.14);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.site-header {
  padding: 16px 22px;
  color: #07133c;
}

.site-header.scrolled {
  background: rgba(255, 253, 248, 0.92);
}

.empty-brand {
  width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #07133c;
  color: var(--white);
}

.empty-brand::before {
  content: "LK";
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
}

.header-tools {
  gap: 10px;
}

.nav {
  gap: 16px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.language-switcher {
  color: #07133c;
  background: rgba(255, 253, 248, 0.62);
}

.language-switcher button {
  min-width: 30px;
  min-height: 28px;
  font-size: 0.75rem;
}

.hero {
  min-height: 620px;
  background:
    linear-gradient(124deg, rgba(55, 181, 174, 0.18) 0 18%, transparent 18% 100%),
    linear-gradient(145deg, transparent 0 51%, rgba(245, 184, 58, 0.96) 51% 68%, rgba(227, 76, 89, 0.92) 68% 100%),
    linear-gradient(180deg, #fbf7e9 0%, #fffaf0 55%, #dff2ec 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  right: -74px;
  top: 112px;
  width: 230px;
  height: 420px;
  background: rgba(48, 176, 170, 0.72);
  transform: skewY(-20deg);
}

.hero::after {
  left: -38px;
  bottom: 66px;
  width: 230px;
  height: 180px;
  background: rgba(80, 196, 191, 0.28);
  transform: skewY(-18deg);
}

.hero-image {
  top: 72px;
  right: -24px;
  width: 285px;
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 0;
  clip-path: none;
  box-shadow: none;
  background: transparent;
  object-fit: cover;
  object-position: 57% center;
  z-index: 1;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.92) 0%, rgba(255, 250, 240, 0.6) 44%, rgba(255, 250, 240, 0.06) 100%),
    linear-gradient(180deg, rgba(255, 250, 240, 0) 0%, rgba(255, 250, 240, 0.86) 72%, rgba(255, 250, 240, 0) 100%);
}

.hero-content {
  width: 100%;
  padding: 86px 24px 30px;
  color: #07133c;
}

.eyebrow {
  max-width: 160px;
  margin-top: 156px;
  margin-bottom: 8px;
  color: #219d9e;
  font-size: 0.86rem;
  line-height: 1.15;
}

h1 {
  max-width: 220px;
  margin-bottom: 10px;
  color: #07133c;
  font-size: 3.05rem;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 165px;
  margin-bottom: 16px;
  color: #07133c;
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.22;
}

.hero-actions {
  gap: 8px;
}

.button,
.filter,
.contact-links a {
  min-height: 35px;
  padding: 8px 13px;
  font-size: 0.75rem;
}

.button.primary {
  background: #07133c;
  border-color: #07133c;
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.92);
  color: #07133c;
}

.intro-band {
  grid-template-columns: repeat(3, 1fr);
  border: 0;
  overflow: hidden;
  background: transparent;
}

.intro-band div {
  min-height: 92px;
  padding: 20px 18px 16px;
  border-right: 0;
  color: var(--white);
}

.intro-band div:nth-child(1) {
  background: #35b8b3;
}

.intro-band div:nth-child(2) {
  background: #f2be3f;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.intro-band div:nth-child(3) {
  background: #e35465;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.intro-band strong {
  font-size: 2.1rem;
}

.intro-band span {
  display: block;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.18;
}

.work {
  padding: 24px 18px 42px;
  background: #f8f5ea;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 1.2rem;
  line-height: 1.02;
  text-transform: uppercase;
}

.filters {
  gap: 8px;
  justify-content: space-between;
  align-self: auto;
}

.filter {
  min-height: 28px;
  padding: 5px 7px;
  border: 0;
  color: #07133c;
  font-size: 0.62rem;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.filter.active {
  background: transparent;
  color: #219d9e;
}

.editor-open {
  right: max(14px, calc((100vw - var(--site-max-width)) / 2 + 14px));
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7, 19, 60, 0.12);
}

.project img,
.project.featured img,
.project-image-placeholder {
  aspect-ratio: 1 / 1.18;
}

.project-copy {
  padding: 11px 10px 14px;
}

.project span {
  margin-bottom: 7px;
  color: #219d9e;
  font-size: 0.55rem;
  line-height: 1.1;
}

.project h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.02;
}

.project-copy p,
.project-copy .role,
.project a {
  font-size: 0.64rem;
  line-height: 1.28;
}

.project-copy .role {
  margin-top: 8px;
}

.contact {
  grid-template-columns: 1fr;
  padding: 42px 22px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
  padding: clamp(54px, 8vw, 110px) clamp(18px, 4vw, 56px);
  background: var(--night);
  color: var(--white);
}

.contact .section-kicker {
  color: var(--sun);
}

.contact-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
}

.contact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.contact h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.contact-email,
.contact-links a {
  color: var(--white);
}

.contact-email {
  min-height: 46px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: var(--white);
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
}

.editor-dialog {
  width: min(1120px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.editor-dialog::backdrop {
  background: rgba(17, 23, 36, 0.68);
  backdrop-filter: blur(6px);
}

.editor-shell {
  padding: clamp(18px, 3vw, 34px);
}

.editor-header,
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.editor-status {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.editor-status[data-state="success"] {
  color: #1f7a57;
}

.editor-status[data-state="error"] {
  color: #b03a30;
}

.editor-header {
  margin-bottom: 22px;
}

.editor-header h2 {
  margin-bottom: 0;
  font-size: clamp(1rem, 2vw, 2rem);
}

.editor-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-language-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.editor-language-switcher button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.editor-language-switcher button.active {
  background: var(--ink);
  color: var(--white);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
}

.editor-list,
.editor-form,
.site-editor-form,
.editor-json {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f1;
}

.site-editor-form {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
}

.editor-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-section-title h3 {
  margin-bottom: 0;
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.site-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-editor-grid label {
  display: grid;
  gap: 6px;
}

.site-editor-grid label span {
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.site-editor-grid input,
.site-editor-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.wide-field {
  grid-column: 1 / -1;
}

.editor-list {
  align-self: start;
  padding: 12px;
}

.editor-items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 540px;
  overflow: auto;
}

.editor-item {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.editor-item strong,
.editor-item span,
.editor-form label span {
  font-family: Manrope, Arial, sans-serif;
}

.editor-item span {
  color: var(--muted);
  font-size: 0.83rem;
}

.editor-item.active {
  border-color: var(--ink);
  background: var(--white);
}

.editor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.editor-form label {
  display: grid;
  gap: 6px;
}

.editor-form label:has(textarea),
.editor-actions,
.editor-json {
  grid-column: 1 / -1;
}

.editor-form label span {
  font-size: 0.82rem;
  font-weight: 800;
}

.editor-form input,
.editor-form textarea,
.editor-json textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.editor-form textarea,
.editor-json textarea {
  resize: vertical;
}

.checkbox-field {
  display: flex;
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
}

.editor-json {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
}

@media (max-width: 980px) {
  .hero {
    min-height: 600px;
  }

  .hero-image {
    top: 340px;
    right: clamp(18px, 5vw, 46px);
    width: min(58vw, 420px);
    height: auto;
    opacity: 1;
    object-position: center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(17, 23, 36, 0.98) 0%, rgba(17, 23, 36, 0.88) 62%, rgba(17, 23, 36, 0.54) 100%),
      linear-gradient(0deg, rgba(17, 23, 36, 0.62) 0%, rgba(17, 23, 36, 0) 52%);
  }

  .hero-content {
    width: min(100%, 760px);
  }

  .hero-lede {
    max-width: 660px;
  }

  .intro-band,
  .about-grid,
  .cv-hero,
  .cv-columns,
  .section-heading,
  .contact {
    grid-template-columns: 1fr;
  }

  .cv-hero-copy {
    justify-items: center;
  }

  .filters {
    justify-content: flex-start;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .empty-brand {
    width: 1px;
  }

  .nav {
    gap: 12px;
    font-size: 0.82rem;
  }

  .header-tools {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .language-switcher button {
    min-width: 31px;
    min-height: 28px;
  }

  .hero {
    min-height: 570px;
  }

  .hero-image {
    top: 380px;
    left: 50%;
    right: auto;
    width: min(82vw, 330px);
    height: auto;
    opacity: 1;
    object-position: center;
    transform: translateX(-50%);
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(17, 23, 36, 0.88) 0%, rgba(17, 23, 36, 0.42) 70%),
      linear-gradient(90deg, rgba(17, 23, 36, 0.9), rgba(17, 23, 36, 0.48));
  }

  .hero-content {
    width: 100%;
    padding-top: 112px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(1.5rem, 7vw, 2.4rem);
  }

  .intro-band,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .intro-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project.featured {
    grid-column: auto;
    grid-row: auto;
  }

  .footer {
    flex-direction: column;
  }

  .editor-layout,
  .editor-form,
  .site-editor-grid {
    grid-template-columns: 1fr;
  }
}

/* Forced portrait portfolio layout */
body > main,
body > footer {
  width: min(100%, var(--site-max-width));
  margin-inline: auto;
}

body > main {
  overflow: hidden;
}

.site-header {
  position: fixed;
  left: 50%;
  right: auto;
  width: min(100%, var(--site-max-width));
  align-items: center;
  padding: 16px 22px;
  color: #07133c;
  transform: translateX(-50%);
}

.site-header.scrolled {
  background: rgba(255, 253, 248, 0.92);
}

.empty-brand {
  width: 36px;
  min-height: 36px;
}

.header-tools {
  align-items: center;
  flex-direction: row;
}

.nav {
  gap: 16px;
  font-size: 0.72rem;
}

.hero {
  min-height: 620px;
}

.hero-image {
  top: 72px;
  left: auto;
  right: -78px;
  width: 268px;
  aspect-ratio: 3 / 4;
  height: auto;
  border: 0;
  border-radius: 0;
  clip-path: none;
  box-shadow: none;
  object-fit: cover;
  object-position: 57% center;
  transform: none;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.9) 43%, rgba(255, 250, 240, 0.06) 100%),
    linear-gradient(180deg, rgba(255, 250, 240, 0) 0%, rgba(255, 250, 240, 0.86) 72%, rgba(255, 250, 240, 0) 100%);
}

.hero-content {
  width: 100%;
  padding: 86px 24px 30px;
}

.eyebrow {
  max-width: 160px;
  margin-top: 156px;
  margin-bottom: 8px;
}

h1 {
  max-width: 194px;
  font-size: 2.82rem;
  line-height: 0.82;
}

.hero-lede {
  max-width: 165px;
  font-size: 0.88rem;
}

.intro-band {
  grid-template-columns: repeat(3, 1fr);
}

.intro-band div {
  border-bottom: 0;
}

.section-heading,
.contact {
  grid-template-columns: 1fr;
}

.filters {
  justify-content: space-between;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

  .contact {
    display: grid;
    gap: 18px;
    padding: 42px 22px;
  }

  .contact-title-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .footer {
  flex-direction: column;
  padding: 20px 22px;
  font-size: 0.75rem;
}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 16px;
  }

  .hero-content {
    padding-inline: 22px;
  }

  .hero-image {
    right: -112px;
    width: 268px;
  }

  h1 {
    font-size: clamp(2.25rem, 10.5vw, 2.82rem);
  }

  .project-grid {
    gap: 10px;
  }
}

/* Final responsive split: full desktop layout, separate mobile poster layout */
:root {
  --site-max-width: 1280px;
}

body > main,
body > footer,
.site-header {
  border-inline: 0;
  box-shadow: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  width: min(100%, var(--site-max-width));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.74);
  color: #07133c;
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.site-header.scrolled {
  background: rgba(255, 253, 248, 0.94);
  color: #07133c;
  box-shadow: 0 10px 40px rgba(17, 23, 36, 0.08);
}

.empty-brand {
  width: 1px;
  min-height: 1px;
  display: block;
  border-radius: 0;
  background: transparent;
}

.empty-brand::before {
  content: none;
}

.header-tools {
  align-items: center;
  flex-direction: row;
  gap: clamp(12px, 2vw, 24px);
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.9rem;
  text-transform: none;
}

.language-switcher {
  color: inherit;
  background: rgba(255, 253, 248, 0.68);
}

.language-switcher button {
  min-width: 34px;
  min-height: 30px;
  font-size: inherit;
}

.hero {
  min-height: clamp(430px, 38vw, 500px);
  background:
    linear-gradient(124deg, rgba(55, 181, 174, 0.16) 0 18%, transparent 18% 100%),
    linear-gradient(145deg, transparent 0 62%, rgba(245, 184, 58, 0.72) 62% 77%, rgba(227, 76, 89, 0.68) 77% 100%),
    linear-gradient(180deg, #fbf7e9 0%, #fffaf0 58%, #dff2ec 100%);
}

.hero::before,
.hero::after {
  content: none;
}

.hero-image {
  top: clamp(104px, 12vh, 132px);
  left: auto;
  right: clamp(28px, 5%, 72px);
  width: clamp(360px, 48%, 640px);
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid rgba(7, 19, 60, 0.1);
  border-radius: 14px;
  clip-path: polygon(5% 0, 96% 0, 100% 12%, 94% 100%, 4% 100%, 0 88%);
  box-shadow: 0 24px 80px rgba(7, 19, 60, 0.16);
  background: rgba(7, 19, 60, 0.08);
  object-fit: contain;
  object-position: center;
  transform: none;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.95) 0%, rgba(255, 250, 240, 0.82) 47%, rgba(255, 250, 240, 0.04) 100%),
    linear-gradient(0deg, rgba(255, 250, 240, 0.18) 0%, rgba(255, 250, 240, 0) 42%);
}

.hero-content {
  width: min(660px, 54vw);
  padding: clamp(104px, 12vh, 132px) clamp(18px, 6vw, 82px) 42px;
  color: #07133c;
}

.eyebrow {
  max-width: none;
  margin-top: 0;
  margin-bottom: 14px;
  color: #219d9e;
  font-size: 0.78rem;
  line-height: 1.55;
}

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  color: #07133c;
  font-size: clamp(1.6rem, 4vw, 3.6rem);
  line-height: 0.98;
  text-transform: none;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 1em;
  color: #07133c;
  font-family: Poppins, Arial, sans-serif;
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
  font-weight: 400;
  line-height: 1.55;
}

.button,
.filter,
.contact-links a {
  min-height: 44px;
  padding: 10px 18px;
  font-size: inherit;
}

.button.primary {
  background: #07133c;
  border-color: #07133c;
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.92);
  color: #07133c;
}

.intro-band {
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 0;
  overflow: hidden;
  background: transparent;
}

.intro-band div,
.intro-band div:nth-child(1),
.intro-band div:nth-child(2),
.intro-band div:nth-child(3) {
  min-height: 0;
  padding: 26px clamp(18px, 4vw, 52px);
  border-right: 0;
  color: var(--white);
}

.intro-band div:nth-child(1) {
  background: #35b8b3;
}

.intro-band div:nth-child(2) {
  background: #f2be3f;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.intro-band div:nth-child(3) {
  background: #e35465;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.intro-band div:last-child {
  border-right: 0;
}

.intro-band strong {
  font-size: 51px;
}

.intro-band span {
  color: var(--white);
  font-size: inherit;
  font-weight: 400;
  line-height: 1.55;
}

.work {
  padding: 28px clamp(48px, 4vw, 56px) clamp(54px, 8vw, 110px);
  background: #f8f5ea;
}

.section-heading {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 6vw, 86px);
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(1.1rem, 2.5vw, 2.65rem);
  line-height: 0.98;
  text-transform: none;
}

.filters {
  gap: 10px;
  justify-content: flex-end;
  align-self: end;
}

.filter {
  border: 1px solid currentColor;
  color: var(--ink);
  text-decoration: none;
}

.filter.active {
  background: var(--ink);
  color: var(--white);
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project {
  border: 1px solid rgba(17, 23, 36, 0.11);
  box-shadow: 0 10px 30px rgba(17, 23, 36, 0.07);
}

.project img,
.project.featured img,
.project-image-placeholder {
  aspect-ratio: 16 / 10;
}

.project-copy {
  padding: clamp(18px, 2.2vw, 30px);
}

.project span {
  margin-bottom: 14px;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1.55;
}

.project h3 {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 0.98;
}

.project-copy p,
.project-copy .role,
.project a {
  font-size: inherit;
  line-height: 1.55;
}

.contact {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: clamp(54px, 8vw, 110px) clamp(18px, 4vw, 56px);
}

.footer {
  flex-direction: row;
  padding: 24px clamp(18px, 4vw, 56px);
  font-size: inherit;
}

@media (max-width: 680px) {
  :root {
    --site-max-width: 430px;
  }

  body > main,
  body > footer,
  .site-header {
    border-inline: 1px solid rgba(255, 253, 248, 0.14);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  }

  .site-header {
    padding: 16px 22px;
    color: #07133c;
  }

  .site-header.scrolled {
    background: rgba(255, 253, 248, 0.92);
  }

  .empty-brand {
    width: 36px;
    min-height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #07133c;
  }

  .empty-brand::before {
    content: "LK";
    color: var(--white);
    font-family: Manrope, Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
  }

  .nav {
    gap: 16px;
    font-size: 0.72rem;
    text-transform: uppercase;
  }

  .language-switcher {
    color: #07133c;
    background: rgba(255, 253, 248, 0.62);
  }

  .hero {
    min-height: 620px;
    background:
      linear-gradient(124deg, rgba(55, 181, 174, 0.18) 0 18%, transparent 18% 100%),
      linear-gradient(145deg, transparent 0 51%, rgba(245, 184, 58, 0.96) 51% 68%, rgba(227, 76, 89, 0.92) 68% 100%),
      linear-gradient(180deg, #fbf7e9 0%, #fffaf0 55%, #dff2ec 100%);
  }

  .hero::before {
    content: "";
    right: -74px;
    top: 112px;
    width: 230px;
    height: 420px;
    background: rgba(48, 176, 170, 0.72);
    transform: skewY(-20deg);
  }

  .hero::after {
    content: "";
    left: -38px;
    bottom: 66px;
    width: 230px;
    height: 180px;
    background: rgba(80, 196, 191, 0.28);
    transform: skewY(-18deg);
  }

  .hero-image {
    top: 72px;
    right: -112px;
    width: 268px;
    aspect-ratio: 3 / 4;
    border: 0;
    border-radius: 0;
    clip-path: none;
    box-shadow: none;
    background: transparent;
    object-fit: cover;
    object-position: 57% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.9) 43%, rgba(255, 250, 240, 0.06) 100%),
      linear-gradient(180deg, rgba(255, 250, 240, 0) 0%, rgba(255, 250, 240, 0.86) 72%, rgba(255, 250, 240, 0) 100%);
  }

  .hero-content {
    width: 100%;
    padding: 86px 22px 30px;
    color: #07133c;
  }

  .eyebrow {
    max-width: 160px;
    margin-top: 156px;
    margin-bottom: 8px;
    color: #219d9e;
    font-size: 0.86rem;
    line-height: 1.15;
  }

  h1 {
    max-width: 194px;
    margin-bottom: 10px;
    color: #07133c;
    font-size: clamp(2.25rem, 10.5vw, 2.82rem);
    line-height: 0.82;
    text-transform: uppercase;
  }

  .hero-lede {
    max-width: 165px;
    margin-bottom: 16px;
    color: #07133c;
    font-family: Manrope, Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.22;
  }

  .button,
  .filter,
  .contact-links a {
    min-height: 35px;
    padding: 8px 13px;
    font-size: 0.75rem;
  }

  .button.primary {
    background: #07133c;
    border-color: #07133c;
    color: var(--white);
  }

  .button.secondary {
    background: rgba(255, 253, 248, 0.92);
    color: #07133c;
  }

  .intro-band {
    grid-template-columns: repeat(3, 1fr);
    border: 0;
    overflow: hidden;
    background: transparent;
  }

  .intro-band div,
  .intro-band div:nth-child(1),
  .intro-band div:nth-child(2),
  .intro-band div:nth-child(3) {
    min-height: 92px;
    padding: 20px 18px 16px;
    border-right: 0;
    color: var(--white);
  }

  .intro-band div:nth-child(1) {
    background: #35b8b3;
  }

  .intro-band div:nth-child(2) {
    background: #f2be3f;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  }

  .intro-band div:nth-child(3) {
    background: #e35465;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  }

  .intro-band strong {
    font-size: 2.1rem;
  }

  .intro-band span {
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.18;
  }

  .work {
    padding: 24px 18px 42px;
    background: #f8f5ea;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .section-heading h2 {
    font-size: 1.2rem;
    line-height: 1.02;
    text-transform: uppercase;
  }

  .filters {
    justify-content: space-between;
  }

  .filter {
    min-height: 28px;
    padding: 5px 7px;
    border: 0;
    color: #07133c;
    font-size: 0.62rem;
    text-decoration: underline;
    text-underline-offset: 5px;
  }

  .filter.active {
    background: transparent;
    color: #219d9e;
  }

  .editor-open {
    right: 12px;
    bottom: 12px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project img,
  .project.featured img {
    aspect-ratio: 16 / 10;
  }

  .project-copy {
    padding: 18px;
  }

  .project span {
    margin-bottom: 10px;
    color: #219d9e;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .project h3 {
    font-size: 1.6rem;
  }

  .project-copy p,
  .project-copy .role,
  .project a {
    font-size: 0.9rem;
  }

  .contact {
    grid-template-columns: 1fr;
    padding: 42px 22px;
  }

  .footer {
    flex-direction: column;
    padding: 20px 22px;
    font-size: 0.75rem;
  }
}

/* Keep the statistic tiles visually identical: same width, gap, and cut. */
.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 14px;
  background: #fffaf0;
  overflow: hidden;
}

.intro-band div,
.intro-band div:nth-child(1),
.intro-band div:nth-child(2),
.intro-band div:nth-child(3) {
  --stat-cut: 34px;
  min-width: 0;
  border: 0;
  clip-path: polygon(var(--stat-cut) 0, 100% 0, calc(100% - var(--stat-cut)) 100%, 0 100%);
}

@media (max-width: 680px) {
  .intro-band {
    gap: 6px;
    padding: 0 6px;
  }

  .intro-band div,
  .intro-band div:nth-child(1),
  .intro-band div:nth-child(2),
  .intro-band div:nth-child(3) {
    --stat-cut: 14px;
    padding: 18px 14px 14px;
  }
}

/* Graphic-only hero: hide the banner photo and keep the composed color blocks. */
.hero-image {
  display: none;
}

.hero {
  min-height: clamp(390px, 34vw, 470px);
  background:
    linear-gradient(124deg, rgba(55, 181, 174, 0.18) 0 18%, transparent 18% 100%),
    linear-gradient(145deg, transparent 0 58%, rgba(245, 184, 58, 0.82) 58% 75%, rgba(227, 76, 89, 0.74) 75% 100%),
    linear-gradient(180deg, #fbf7e9 0%, #fffaf0 58%, #dff2ec 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  right: clamp(-120px, -6vw, -56px);
  top: clamp(52px, 7vw, 88px);
  width: clamp(300px, 34vw, 480px);
  height: clamp(210px, 22vw, 310px);
  background: rgba(48, 176, 170, 0.72);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.hero::after {
  right: clamp(120px, 24vw, 380px);
  bottom: clamp(28px, 4vw, 56px);
  width: clamp(180px, 22vw, 320px);
  height: clamp(100px, 12vw, 170px);
  background: rgba(242, 190, 63, 0.78);
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.74) 0%, rgba(255, 250, 240, 0.46) 54%, rgba(255, 250, 240, 0.04) 100%),
    linear-gradient(0deg, rgba(255, 250, 240, 0.18) 0%, rgba(255, 250, 240, 0) 42%);
}

.hero-content {
  width: min(720px, 62vw);
}

@media (max-width: 680px) {
  .hero {
    min-height: 520px;
    background:
      linear-gradient(126deg, rgba(55, 181, 174, 0.24) 0 23%, transparent 23% 100%),
      linear-gradient(145deg, transparent 0 50%, rgba(245, 184, 58, 0.9) 50% 68%, rgba(227, 76, 89, 0.8) 68% 100%),
      linear-gradient(180deg, #fbf7e9 0%, #fffaf0 58%, #dff2ec 100%);
  }

  .hero::before {
    right: -88px;
    top: 108px;
    width: 230px;
    height: 320px;
  }

  .hero::after {
    right: -18px;
    bottom: 72px;
    width: 210px;
    height: 116px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(255, 250, 240, 0.94) 0%, rgba(255, 250, 240, 0.72) 56%, rgba(255, 250, 240, 0.14) 100%),
      linear-gradient(180deg, rgba(255, 250, 240, 0) 0%, rgba(255, 250, 240, 0.76) 76%, rgba(255, 250, 240, 0) 100%);
  }

  .hero-content {
    width: 100%;
    padding-top: 98px;
  }

  .eyebrow,
  .hero-lede {
    max-width: 250px;
  }

  h1 {
    max-width: 280px;
  }
}

/* Poster-style hero typography and halftone graphic blocks. */
.hero {
  background: linear-gradient(180deg, #fbf7e9 0%, #fffaf0 58%, #dff2ec 100%);
}

.hero::before {
  content: none;
}

.hero::after {
  content: none;
}

.hero-overlay {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.9) 0%, rgba(255, 250, 240, 0.34) 62%, rgba(255, 250, 240, 0) 100%);
}

.hero-overlay::before,
.hero-overlay::after {
  content: none;
}

.hero-overlay::before {
  right: clamp(210px, 31vw, 420px);
  top: clamp(88px, 10vw, 138px);
  width: clamp(42px, 5vw, 72px);
  height: clamp(24px, 3vw, 38px);
  border-top: 6px solid rgba(53, 184, 179, 0.95);
  border-bottom: 6px solid rgba(53, 184, 179, 0.95);
  transform: rotate(-42deg) skewX(-18deg);
}

.hero-overlay::after {
  right: clamp(50px, 9vw, 150px);
  top: clamp(120px, 14vw, 192px);
  width: clamp(145px, 18vw, 250px);
  height: clamp(100px, 11vw, 150px);
  background: radial-gradient(circle, rgba(7, 19, 60, 0.13) 1.2px, transparent 1.5px) 0 0 / 9px 9px;
  clip-path: polygon(26% 0, 100% 0, 75% 100%, 0 100%);
}

.lava-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.work-float-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: min(34%, 430px);
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.work-float-card {
  position: absolute;
  left: var(--x, 72%);
  bottom: -26%;
  width: var(--size, 150px);
  aspect-ratio: 4 / 3;
  padding: 6px;
  border: 1px solid rgba(7, 19, 60, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 48px rgba(7, 19, 60, 0.14);
  color: #fff;
  opacity: 0;
  animation: work-card-rise var(--duration, 18s) linear forwards;
  will-change: transform, opacity;
}

.work-float-card img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

@keyframes work-card-rise {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(var(--rotation, -4deg)) scale(calc(var(--scale, 1) * 0.96));
  }

  8%,
  62% {
    opacity: 1;
  }

  76%,
  100% {
    opacity: 0;
    transform: translateY(calc(-1 * var(--travel, 680px))) rotate(calc(var(--rotation, -4deg) + var(--spin, 8deg))) scale(var(--scale, 1));
  }
}

@keyframes work-card-slide {
  0% {
    opacity: 1;
    transform: translateX(0) rotate(var(--rotation, -4deg)) scale(calc(var(--scale, 1) * 0.96));
  }

  10%,
  82% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateX(calc(100vw + var(--size, 150px) * 2)) rotate(calc(var(--rotation, -4deg) + var(--spin, 8deg))) scale(var(--scale, 1));
  }
}

h1,
.cv-standalone .cv-hero h1 {
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.88;
}

.hero h1 {
  max-width: 520px;
  font-size: clamp(4.2rem, 8vw, 7.2rem);
  text-transform: uppercase;
}

.cv-standalone .cv-hero h1 {
  max-width: 790px;
  margin-bottom: 0;
  color: #07133c;
  font-size: clamp(1.6rem, 4vw, 3.6rem);
  text-transform: uppercase;
}

.cv-standalone .section-kicker {
  width: max-content;
  margin: 0 0 8px;
  color: #d84c3f;
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.cv-standalone .cv-hero {
  grid-column: auto;
  grid-row: auto;
}

@media (max-width: 680px) {
  .hero {
    min-height: 548px;
    background: linear-gradient(180deg, #fbf7e9 0%, #fffaf0 58%, #dff2ec 100%);
  }

  .hero::before {
    content: none;
  }

  .hero::after {
    content: none;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(255, 250, 240, 0.94) 0%, rgba(255, 250, 240, 0.66) 58%, rgba(255, 250, 240, 0.1) 100%);
  }

  .hero-overlay::before {
    content: none;
  }

  .hero-overlay::after {
    content: none;
  }

  .hero h1 {
    max-width: 260px;
    font-size: clamp(4.1rem, 17vw, 5.45rem);
  }

  .cv-standalone .cv-hero h1 {
    max-width: 280px;
    font-size: clamp(1.5rem, 7vw, 2.4rem);
  }

  .cv-hero-core {
    margin-top: 18px;
  }

  .cv-hero-copy {
    padding-top: 0;
  }

  .cv-standalone .section-kicker {
    grid-column: auto;
    grid-row: auto;
    position: static;
    margin: 0 0 8px;
    transform: none;
  }

  .cv-standalone .cv-hero {
    grid-column: auto;
    grid-row: auto;
  }

  .work-float-layer {
    top: 62px;
    right: 0;
    bottom: auto;
    left: 0;
    height: 190px;
    z-index: 2;
    overflow: visible;
  }

  .hero-content {
    z-index: 3;
  }

  .work-float-card {
    top: var(--y, 24px);
    left: calc(-1 * var(--size, 150px) - 22px);
    bottom: auto;
    opacity: 1;
    animation-name: work-card-slide;
  }

  .cv-columns h3,
  .cv-portfolio h3 {
    font-size: clamp(2rem, 11vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lava-canvas,
  .work-float-layer {
    display: none;
  }
}
