
@font-face {
    font-family: "Fraunces";
    src: url("media/fonts/Fraunces-VariableFont_SOFT,WONK,opsz,wght.ttf")
        format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces";
    src: url("media/fonts/Fraunces-Italic-VariableFont_SOFT,WONK,opsz,wght.ttf")
        format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Karla";
    src: url("media/fonts/Karla-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Karla";
    src: url("media/fonts/Karla-Italic-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("media/fonts/IBMPlexMono-Regular.ttf")
        format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("media/fonts/IBMPlexMono-Medium.ttf")
        format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

h1, h2, h3, .logo {
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
  
  :root {
    --paper: #EFECE3;
    --paper-alt: #E4E0D3;
    --card: #F8F6F0;
    --ink: #24251F;
    --ink-soft: #55564C;
    --moss: #5C6E4C;
    --moss-deep: #3E4B33;
    --pine: #445C58;
    --olive: #9AA857;
    --line: #D2CBB9;
    --radius: 14px;
    --wrap: 1180px;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

    --shadow-xs: 0 1px 2px rgba(36, 37, 31, 0.05);
    --shadow-sm: 0 6px 16px -10px rgba(36, 37, 31, 0.22);
    --shadow-md: 0 18px 40px -16px rgba(36, 37, 31, 0.28);
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Karla', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

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

  a {
    color: inherit;
  }

  h1,
  h2,
  h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    line-height: 1.12;
    margin: 0;
    letter-spacing: -0.015em;
  }

  .eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--moss-deep);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
  }

  .eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--moss);
    display: inline-block;
  }

  .wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 32px;
  }

  section {
    padding: 108px 0;
  }

  @media (max-width: 640px) {
    section {
      padding: 72px 0;
    }

    .wrap {
      padding: 0 20px;
    }
  }

  .alt-bg {
    background: var(--paper-alt);
  }

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

  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(239, 236, 227, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }

  nav.wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .logo {
    font-family: 'Fraunces', serif;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .logo span {
    color: var(--moss);
    font-style: italic;
    font-weight: 500;
  }

  .nav-links {
    display: flex;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--ink-soft);
    padding: 4px 2px;
    border-bottom: 1px solid transparent;
    transition: border-color .18s var(--ease-out), color .18s var(--ease-out);
  }

  .nav-links a:hover {
    color: var(--ink);
    border-color: var(--moss);
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .lang-toggle {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
  }

  .lang-toggle button {
    border: none;
    background: transparent;
    padding: 7px 13px;
    cursor: pointer;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
    transition: background .18s var(--ease-out), color .18s var(--ease-out);
  }

  .lang-toggle button.active {
    background: var(--moss);
    color: var(--paper);
  }

  .lang-toggle button:not(.active):hover {
    color: var(--ink);
  }

  @media (max-width: 780px) {
    .nav-links {
      display: none;
    }
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13.5px;
    letter-spacing: 0.02em;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out),
      background-color .18s var(--ease-out), color .18s var(--ease-out),
      border-color .18s var(--ease-out);
  }

  .btn:hover {
    transform: translateY(-1px);
  }

  .btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: .1s;
  }

  .btn-primary {
    background: var(--moss-deep);
    color: var(--paper);
    box-shadow: var(--shadow-xs);
  }

  .btn-primary:hover {
    background: var(--moss);
    box-shadow: var(--shadow-sm);
  }

  .btn-ghost {
    border-color: var(--line);
    color: var(--ink);
    background: transparent;
  }

  .btn-ghost:hover {
    border-color: var(--ink);
    background: var(--card);
  }

  .hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
    padding-top: 0px;
    padding-bottom: 40px;
  }

  @media (max-width: 900px) {
    .hero .wrap {
      grid-template-columns: 1fr;
    }
  }

  .hero h1 {
    font-size: clamp(34px, 4.6vw, 54px);
    white-space: pre-line;
  }

  .hero h1 em {
    font-style: italic;
    color: var(--moss-deep);
  }

  .hero p.lede {
    max-width: 46ch;
    color: var(--ink-soft);
    font-size: 17.5px;
    margin-top: 22px;
  }

  .hero-ctas {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
  }

  .meadow {
    height: 230px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(2px, 1vw, 10px);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    user-select: none;
    overflow: hidden;
  }

  @media (max-width: 900px) {
    .meadow {
      display: none;
    }
  }

  .meadow span {
    display: inline-block;
    transform-origin: bottom center;
    animation: sway 4.5s var(--ease-in-out) infinite;
  }

  @keyframes sway {

    0%,
    100% {
      transform: rotate(-4deg);
    }

    50% {
      transform: rotate(5deg);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .meadow span {
      animation: none;
    }
  }

  .section-head {
    max-width: 640px;
    margin-bottom: 56px;
  }

  .section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
  }

  .cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  @media (max-width: 1000px) {
    .cards-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 560px) {
    .cards-grid {
      grid-template-columns: 1fr;
    }
  }

  .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
  }

  .card:hover {
    transform: translateY(-4px);
    border-color: var(--moss);
    box-shadow: var(--shadow-sm);
  }

  .card svg {
    width: 34px;
    height: 34px;
    stroke: var(--moss-deep);
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s var(--ease-out);
  }

  .card:hover svg {
    transform: scale(1.06) rotate(-2deg);
  }

  .card h3 {
    font-size: 19px;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .card p {
    color: var(--ink-soft);
    font-size: 15px;
    margin: 0 0 16px;
  }

  .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--pine);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
  }

  @media (prefers-reduced-motion: reduce) {

    .card,
    .card svg {
      transition: none;
    }

    .card:hover {
      transform: none;
    }

    .card:hover svg {
      transform: none;
    }
  }

  html.js-reveal-enabled body:not(.is-revealed) .cards-grid .card,
  html.js-reveal-enabled body:not(.is-revealed) .work-grid .work-card,
  html.js-reveal-enabled body:not(.is-revealed) .values li {
    opacity: 0;
  }

  body.is-revealed .cards-grid .card,
  body.is-revealed .work-grid .work-card,
  body.is-revealed .values li {
    animation: fadeInUp .5s var(--ease-out) backwards;
  }

  .cards-grid .card:nth-child(1),
  .work-grid .work-card:nth-child(1),
  .values li:nth-child(1) {
    animation-delay: 0ms;
  }

  .cards-grid .card:nth-child(2),
  .work-grid .work-card:nth-child(2),
  .values li:nth-child(2) {
    animation-delay: 60ms;
  }

  .cards-grid .card:nth-child(3),
  .work-grid .work-card:nth-child(3),
  .values li:nth-child(3) {
    animation-delay: 120ms;
  }

  .cards-grid .card:nth-child(4) {
    animation-delay: 180ms;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {

    .cards-grid .card,
    .work-grid .work-card,
    .values li {
      animation: none;
      opacity: 1;
    }
  }

  .work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  @media (max-width: 900px) {
    .work-grid {
      grid-template-columns: 1fr;
    }
  }

  .work-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--card);
    transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
  }

  .work-card:hover {
    transform: translateY(-4px);
    border-color: var(--moss);
    box-shadow: var(--shadow-sm);
  }

  .work-visual {
    height: 168px;
    position: relative;
    overflow: hidden;
  }

  .work-visual svg,
  .work-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s var(--ease-out);
  }

  .work-card:hover .work-visual svg,
  .work-card:hover .work-visual img {
    transform: scale(1.04);
  }

  .work-body {
    padding: 22px 24px 26px;
  }

  .work-body .tag {
    margin-bottom: 12px;
    display: inline-block;
  }

  .work-body h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .work-client {
    color: var(--ink-soft);
    font-size: 13.5px;
    margin-bottom: 10px;
    font-family: 'IBM Plex Mono', monospace;
  }

  .work-body p {
    color: var(--ink-soft);
    font-size: 15px;
    margin: 0;
  }

  @media (prefers-reduced-motion: reduce) {

    .work-card,
    .work-visual svg,
    .work-visual img {
      transition: none;
    }

    .work-card:hover {
      transform: none;
    }

    .work-card:hover .work-visual svg,
    .work-card:hover .work-visual img {
      transform: none;
    }
  }

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

  @media (max-width: 860px) {
    .about-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  }

  .about-grid p {
    color: var(--ink-soft);
    font-size: 17px;
  }

  .values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  .values li {
    display: flex;
    gap: 16px;
  }

  .values .leaf {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 3px;
  }

  .values .leaf svg {
    width: 100%;
    height: 100%;
    stroke: var(--moss);
    fill: none;
    stroke-width: 1.6;
  }

  .values h4 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 16.5px;
    margin: 0 0 4px;
  }

  .values p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-soft);
  }

  .technologies {
    text-align: center;
  }

  .technologies .eyebrow {
    justify-content: center;
  }

  .technologies .eyebrow::before {
    display: none;
  }

  .technologies-title {
    font-size: clamp(28px, 3.6vw, 40px);
  }

  .tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
  }

  .tech-icon img {
    width: 90px;
    height: 90px;
    filter: grayscale(20%);
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
  }

  @media (max-width: 860px) {
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  }

  .contact-info dl {
    margin: 28px 0 0;
  }

  .contact-info dt {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 20px;
  }

  .contact-info dd {
    margin: 4px 0 0;
    font-size: 16.5px;
  }

  .contact-info a {
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .field label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
  }

  .field input,
  .field textarea {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 15px;
    font-family: 'Karla', sans-serif;
    font-size: 15.5px;
    color: var(--ink);
    resize: vertical;
    transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
  }

  .field input:focus,
  .field textarea:focus {
    border-color: var(--moss);
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 110, 76, 0.14);
  }

  form .btn {
    align-self: flex-start;
    border: none;
  }

  .hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .form-status {
    font-size: 14px;
    margin: 4px 0 0;
    min-height: 20px;
  }

  .form-status.success { color: var(--moss-deep); }
  .form-status.error { color: #b3432b; }

  .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }

  footer {
    background: var(--moss-deep);
    color: var(--paper);
    padding-top: 70px;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(239, 236, 227, 0.18);
  }

  @media (max-width: 700px) {
    .footer-top {
      grid-template-columns: 1fr;
    }
  }

  footer .logo {
    color: var(--paper);
  }

  footer .logo span {
    color: var(--olive);
  }

  .footer-tag {
    color: rgba(239, 236, 227, 0.7);
    margin-top: 14px;
    max-width: 32ch;
    font-size: 15px;
  }

  .footer-col h5 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(239, 236, 227, 0.55);
    margin: 0 0 16px;
  }

  .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-col a {
    text-decoration: none;
    color: var(--paper);
    font-size: 15px;
    opacity: 0.9;
  }

  .footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0 30px;
    font-size: 13px;
    color: rgba(239, 236, 227, 0.55);
    font-family: 'IBM Plex Mono', monospace;
  }

  @media (max-width:600px) {
    .footer-bottom {
      flex-direction: column;
      gap: 10px;
      text-align: center;
    }
  }

  .cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 22px 24px;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .28s var(--ease-drawer), transform .28s var(--ease-drawer);
  }

  .cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .cookie-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .cookie-text {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.55;
  }

  .cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .cookie-btn {
    font-size: 12.5px;
    padding: 11px 18px;
  }

  @media (max-width: 480px) {
    .cookie-banner {
      left: 12px;
      right: 12px;
      bottom: 12px;
      padding: 18px 18px;
    }

    .cookie-actions {
      flex-direction: column;
    }

    .cookie-actions .btn {
      width: 100%;
      justify-content: center;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .cookie-banner {
      transition: none;
    }
  }

  .hero p.lede.typing-cursor::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    background: var(--moss-deep);
    vertical-align: text-bottom;
    animation: caret-blink 0.85s step-end infinite;
  }

  @keyframes caret-blink {

    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero p.lede.typing-cursor::after {
      animation: none;
    }
  }

  html.js-reveal-enabled body:not(.is-revealed) .reveal-target {
    opacity: 0;
    transform: translateY(18px);
  }

  .reveal-target {
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }

  .privacy-consent {
    margin: 8px 0 16px;
  }

  .checkbox {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
      color: var(--ink-soft);
      font-size: 14px;
      line-height: 1.5;
  }

  .checkbox input {
      display: none;
  }

  .checkmark {
      width: 20px;
      height: 20px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--card);
      position: relative;
      flex-shrink: 0;
      transition: all .2s ease;
  }

  .checkbox input:checked + .checkmark {
      background: var(--moss);
      border-color: var(--moss);
  }

  .checkbox input:checked + .checkmark::after {
      content: "";
      position: absolute;
      left: 6px;
      top: 2px;
      width: 5px;
      height: 10px;
      border: solid var(--paper);
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
  }

  .checkbox a {
      color: var(--moss-deep);
      text-decoration: underline;
      text-underline-offset: 2px;
  }

  .checkbox:hover .checkmark {
      border-color: var(--moss);
  }