@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #faf7ef;
  --paper-glow: #fffdf8;
  --ink: #0b312b;
  --ink-soft: #27483f;
  --leaf: #86aa49;
  --leaf-dark: #547834;
  --leaf-pale: #e5eadb;
  --line: rgba(11, 49, 43, 0.28);
  --gutter: clamp(1.25rem, 7.5vw, 5rem);
  --max: 94rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  background:
    radial-gradient(circle at 16% 7%, rgba(255, 255, 255, 0.92), transparent 25rem),
    radial-gradient(circle at 82% 42%, rgba(229, 234, 219, 0.2), transparent 32rem),
    linear-gradient(115deg, var(--paper-glow), var(--paper) 58%, #f7f4eb);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  font-weight: 420;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

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

figure,
h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.24em;
}

a:hover {
  text-decoration-color: var(--leaf);
}

a:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.container {
  width: min(100% - (2 * var(--gutter)), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.72rem 1rem;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-glow);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.language-switch {
  position: absolute;
  z-index: 30;
  top: clamp(1rem, 2.2vw, 2rem);
  right: var(--gutter);
  display: flex;
  gap: 0.15rem;
  padding: 0.18rem;
  border: 1px solid rgba(250, 247, 239, 0.65);
  border-radius: 999px;
  background: rgba(250, 247, 239, 0.78);
  box-shadow: 0 0.35rem 1.4rem rgba(11, 49, 43, 0.07);
  backdrop-filter: blur(10px);
}

.language-switch a,
.language-switch span {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1;
  text-decoration: none;
}

.language-switch [aria-current="page"] {
  background: var(--ink);
  color: var(--paper-glow);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: clamp(31rem, 47vw, 44rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(46%, 37rem);
  padding-top: clamp(7.5rem, 10.5vw, 10.5rem);
  padding-bottom: 4rem;
}

.hero-logo {
  width: min(100%, 32rem);
  height: auto;
}

.hero h1 {
  margin-top: clamp(0.8rem, 1.8vw, 1.5rem);
  font-size: clamp(1.75rem, 2.8vw, 2.8rem);
  font-weight: 390;
  letter-spacing: -0.045em;
  line-height: 1.08;
  white-space: nowrap;
}

.hero-rule,
.project-rule,
.contact-rule {
  width: 3rem;
  height: 1px;
  margin-top: clamp(1.65rem, 3vw, 2.7rem);
  background: currentColor;
  opacity: 0.8;
}

.hero-intro {
  max-width: 30rem;
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1vw + 0.62rem, 1.18rem);
  line-height: 1.5;
}

.hero-media {
  position: absolute;
  z-index: 2;
  top: -1.5rem;
  right: -2.5vw;
  width: min(62vw, 65rem);
  height: clamp(32rem, 49vw, 46rem);
  clip-path: url("#hero-sweep");
}

.hero-media picture,
.hero-media img,
.petal-media picture,
.petal-media img,
.closing-photo picture,
.closing-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img,
.petal-media img,
.closing-photo img {
  object-fit: cover;
}

.hero-media img {
  object-position: 44% 52%;
}

.decor-leaf {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(206, 216, 191, 0.35), rgba(132, 158, 94, 0.13));
  clip-path: url("#decor-leaf");
}

.decor-leaf--hero {
  top: 1.7rem;
  right: 26%;
  width: clamp(14rem, 24vw, 24rem);
  height: clamp(5rem, 9vw, 9rem);
  transform: rotate(-29deg);
}

.decor-leaf--hero-lower {
  right: -5rem;
  bottom: -0.5rem;
  width: clamp(16rem, 27vw, 28rem);
  height: clamp(7rem, 11vw, 11rem);
  transform: rotate(21deg);
}

.project {
  position: relative;
  min-height: clamp(15rem, 22vw, 20rem);
  scroll-margin-top: 1rem;
}

.project-layout {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  align-items: center;
}

.petal-media {
  align-self: stretch;
  width: calc(100% + var(--gutter));
  margin-left: calc(-1 * var(--gutter));
  clip-path: url("#petal-left");
}

.petal-media img {
  object-position: 48% 51%;
}

.project--education .petal-media img {
  object-position: 43% 53%;
}

.project--nature .petal-media img {
  object-position: 64% 54%;
}

.project--technology .petal-media img {
  object-position: 57% 52%;
}

.project-copy {
  position: relative;
  z-index: 3;
  max-width: 34rem;
  padding: 2rem clamp(2rem, 3.5vw, 4rem);
}

.project h2 {
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  font-weight: 680;
  letter-spacing: -0.048em;
  line-height: 1;
}

.project-copy p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.9vw + 0.55rem, 1.16rem);
  line-height: 1.48;
}

.project-rule {
  width: 3rem;
  margin-top: 1.35rem;
  color: var(--leaf);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-top: 0.75rem;
  color: var(--leaf-dark);
  font-size: 0.98rem;
  font-weight: 650;
}

.project-link::after {
  content: "→";
  transition: transform 220ms var(--ease);
}

.project-link:hover::after {
  transform: translateX(0.22rem);
}

.project--nature::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -6rem;
  bottom: -4rem;
  width: clamp(13rem, 25vw, 25rem);
  height: clamp(6rem, 10vw, 10rem);
  transform: rotate(-31deg);
  background: linear-gradient(135deg, rgba(206, 216, 191, 0.4), rgba(132, 158, 94, 0.1));
  clip-path: url("#decor-leaf");
}

.closing {
  position: relative;
  min-height: clamp(24rem, 34vw, 32rem);
  overflow: hidden;
  isolation: isolate;
}

.contact-card {
  position: relative;
  z-index: 4;
  width: min(36%, 25rem);
  padding-top: clamp(3.5rem, 5.5vw, 5.5rem);
  font-style: normal;
}

.contact-rule {
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-name {
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  font-weight: 690;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.contact-role {
  margin-top: 0.25rem;
  color: var(--ink-soft);
}

.contact-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.contact-link {
  width: fit-content;
  min-height: 2.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 580;
  text-decoration-color: var(--leaf);
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.company-meta {
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.decor-leaf--closing {
  z-index: 2;
  left: 25%;
  bottom: 4.5rem;
  width: clamp(12rem, 22vw, 22rem);
  height: clamp(5rem, 9vw, 9rem);
  transform: rotate(-28deg);
}

.closing-photo {
  position: absolute;
  z-index: 1;
  right: -2vw;
  bottom: 0;
  width: min(78vw, 78rem);
  height: 100%;
  clip-path: url("#closing-sweep");
}

.closing-photo img {
  object-position: 52% 48%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.error-card {
  width: min(100%, 42rem);
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: rgba(255, 253, 248, 0.62);
  text-align: center;
}

.error-code {
  color: var(--leaf);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.error-card h1 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.error-card p {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.error-card a {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-glow);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 58rem) {
  .hero {
    min-height: 42rem;
  }

  .hero-copy {
    width: 52%;
    padding-top: 7.5rem;
  }

  .hero h1 {
    white-space: normal;
  }

  .hero-media {
    right: -10rem;
    width: 68%;
  }

  .project-copy {
    padding-right: 1rem;
    padding-left: 2.5rem;
  }
}

@media (max-width: 43rem) {
  :root {
    --gutter: clamp(1.15rem, 5.5vw, 1.65rem);
  }

  .language-switch {
    position: fixed;
    top: 0.9rem;
    right: 0.9rem;
  }

  .hero {
    min-height: 0;
    padding-top: 5.5rem;
  }

  .hero-copy {
    width: 100%;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .hero-logo {
    width: min(92%, 23rem);
  }

  .hero h1 {
    max-width: 14ch;
    margin-top: 1rem;
    font-size: clamp(2rem, 9.4vw, 2.8rem);
    line-height: 1.02;
  }

  .hero-rule {
    margin-top: 1.6rem;
  }

  .hero-intro {
    max-width: 25rem;
  }

  .hero-media {
    position: relative;
    top: auto;
    right: auto;
    width: calc(100% + (2 * var(--gutter)));
    height: clamp(19rem, 82vw, 27rem);
    margin-left: calc(-1 * var(--gutter));
    clip-path: url("#hero-mobile");
  }

  .hero-media img {
    object-position: 43% 53%;
  }

  .decor-leaf--hero {
    top: 3.6rem;
    right: -4rem;
    width: 13rem;
    height: 5rem;
  }

  .decor-leaf--hero-lower {
    display: none;
  }

  .project {
    min-height: 0;
    padding-block: clamp(3.5rem, 14vw, 5rem);
  }

  .project-layout {
    min-height: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .project-copy {
    max-width: 34rem;
    padding: 0;
  }

  .project h2 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .project-copy p {
    max-width: 31rem;
    font-size: 1.03rem;
  }

  .petal-media {
    align-self: auto;
    width: calc(100% + (2 * var(--gutter)));
    height: clamp(17rem, 72vw, 24rem);
    margin-top: 2.4rem;
    margin-left: calc(-1 * var(--gutter));
  }

  .project--nature::after {
    right: -5rem;
    bottom: -1rem;
    width: 15rem;
    height: 6rem;
  }

  .closing {
    min-height: 0;
    overflow: hidden;
    padding-top: 3.5rem;
  }

  .contact-card {
    width: 100%;
    padding-top: 0;
    padding-bottom: 2.2rem;
  }

  .decor-leaf--closing {
    left: auto;
    right: -3rem;
    bottom: 18rem;
    width: 13rem;
    height: 5rem;
  }

  .closing-photo {
    position: relative;
    right: auto;
    width: calc(100% + (2 * var(--gutter)));
    height: clamp(23rem, 96vw, 31rem);
    margin-left: calc(-1 * var(--gutter));
    clip-path: url("#closing-mobile");
  }

  .closing-photo img {
    object-position: 56% 48%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise-in 750ms var(--ease) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 145ms;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 210ms;
  }

  .hero-media {
    animation: image-in 950ms 90ms var(--ease) both;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(0.9rem);
    }
  }

  @keyframes image-in {
    from {
      opacity: 0;
      transform: translateY(1rem) scale(0.99);
    }
  }
}

@media print {
  .language-switch,
  .decor-leaf {
    display: none;
  }

  body {
    background: white;
  }

  .hero,
  .project,
  .closing {
    break-inside: avoid;
  }
}
