:root {
  --background: oklch(0.989 0.002 100);
  --foreground: oklch(0.19 0.004 80);
  --primary: oklch(0.61 0.218 30);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.952 0.003 100);
  --muted: oklch(0.935 0.002 100);
  --muted-foreground: oklch(0.48 0.008 80);
  --border: oklch(0.865 0.003 100);
  --accent: oklch(0.96 0.003 100);
  --status: oklch(0.57 0.14 155);
  --hero-surface: oklch(0.858 0.004 260);
  --radius: 0.375rem;
}
* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 6px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--primary); color: var(--primary-foreground); }
.page-width { width: calc(100% - 112px); max-width: 1440px; margin-inline: auto; }
.site-header { height: 94px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px; }
.wordmark span, .period { color: var(--primary); }
.site-header nav { display: flex; gap: 37px; align-items: center; font-size: 13px; font-weight: 500; }
.site-header nav a { display: flex; align-items: center; gap: 7px; }
.site-header nav a:hover, .site-footer a:hover { color: var(--primary); }
.site-header nav a span { color: var(--muted-foreground); font-size: 10px; align-self: start; }
.site-header .contact-link { border-bottom: 1px solid var(--foreground); padding-bottom: 6px; margin-top: 6px; }
.hero { position: relative; background: var(--hero-surface); overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-inner { position: relative; min-height: 635px; padding-top: 59px; padding-bottom: 29px; display: flex; flex-direction: column; align-items: flex-start; }
.availability { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 500; }
.availability > span { width: 7px; height: 7px; background: var(--status); border-radius: 50%; }
h1,h2,h3,h4,p { margin: 0; }
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; letter-spacing: 0; }
h1 { font-size: 76px; line-height: 1.07; margin-top: 35px; }
.hero-description { font-size: 15px; line-height: 1.7; margin-top: 27px; color: var(--muted-foreground); }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; background: var(--foreground); color: var(--background); padding: 17px 22px; font-size: 12px; margin-top: 29px; transition: background .2s, transform .2s; }
.primary-link:hover { background: var(--primary); transform: translateY(-2px); }
.hero-bottom { margin-top: auto; padding-top: 48px; width: 100%; display: flex; justify-content: space-between; font-size: 9px; font-weight: 500; }
.hero-bottom > span:last-child { display: flex; gap: 11px; align-items: center; }
.work-section { padding-block: 76px 81px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; }
.eyebrow { font-size: 9px; font-weight: 600; display: inline-block; }
.section-heading h2 { font-size: 43px; margin-top: 11px; line-height: 1.2; }
.section-index { color: var(--muted-foreground); font-size: 10px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.project summary { list-style: none; cursor: pointer; }
.project summary::-webkit-details-marker { display: none; }
.project-image { position: relative; aspect-ratio: 1.44; overflow: hidden; background: var(--secondary); }
.project-image img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s; }
.project summary:hover .project-image img { transform: scale(1.035); }
.project-arrow { position: absolute; right: 17px; top: 17px; width: 39px; height: 39px; border-radius: 50%; background: var(--background); display: grid; place-items: center; transition: background .2s, color .2s; }
.project summary:hover .project-arrow { background: var(--foreground); color: var(--background); }
.project-label { position: absolute; left: 17px; bottom: 17px; font-size: 8px; background: var(--background); padding: 6px 9px; }
.project-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 21px; }
.project-meta h3 { font-size: 24px; }
.project-meta p { color: var(--muted-foreground); font-size: 12px; margin-top: 5px; }
.project-meta > span { color: var(--muted-foreground); font-size: 10px; padding-top: 6px; }
.project-tags { display: flex; gap: 8px; margin-top: 16px; }
.project-tags span { font-size: 8px; border: 1px solid var(--border); padding: 5px 8px; }
.project-detail { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 20px; }
.project-detail h4 { font-size: 20px; }
.project-detail p { font-size: 13px; line-height: 1.7; margin-top: 10px; color: var(--muted-foreground); }
.project-detail > span { font-size: 10px; display: block; margin-top: 15px; }
.about-section { background: var(--secondary); padding-block: 78px; }
.about-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 38px; }
.about-label { display: flex; flex-direction: column; align-items: flex-start; gap: 48px; }
.about-asterisk { width: 93px; height: 93px; color: var(--primary); }
.about-inner h2 { font-size: 47px; line-height: 1.2; }
.about-inner h2 span { color: var(--muted-foreground); }
.about-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 33px; margin-top: 28px; }
.about-copy p { font-size: 13px; line-height: 1.85; color: var(--muted-foreground); }
.services { margin-top: 30px; display: flex; align-items: center; gap: 18px; font-size: 9px; font-weight: 500; }
.services svg { color: var(--primary); }
.contact-section { padding-block: 72px 58px; }
.contact-top { display: flex; justify-content: space-between; }
.contact-title { margin-top: 31px; display: flex; align-items: center; justify-content: space-between; }
.contact-title h2 { font-size: 70px; line-height: 1.12; }
.contact-title > svg { width: 110px; height: 110px; transition: transform .25s; }
.contact-title:hover > svg { transform: translate(7px,-7px); color: var(--primary); }
.contact-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.contact-bottom p { color: var(--muted-foreground); font-size: 12px; }
.contact-bottom a { display: flex; align-items: center; gap: 14px; font-size: 12px; border-bottom: 1px solid var(--foreground); padding-bottom: 7px; }
.site-footer { border-top: 1px solid var(--border); min-height: 99px; display: flex; justify-content: space-between; align-items: center; }
.site-footer .wordmark { font-size: 19px; }
.site-footer > span { font-size: 8px; color: var(--muted-foreground); }
.site-footer > a:last-child { display: flex; gap: 9px; align-items: center; font-size: 8px; }
@media (min-width: 1600px) { .hero-inner { min-height: 725px; padding-top: 80px; } h1 { font-size: 88px; } }
@media (max-width: 1000px) { .page-width { width: calc(100% - 64px); } h1 { font-size: 60px; } .hero-inner { min-height: 580px; } .hero-image { object-position: 57% center; } .about-inner h2 { font-size: 39px; } .contact-title h2 { font-size: 56px; } }
@media (max-width: 640px) {
  .page-width { width: calc(100% - 40px); }
  .site-header { height: 78px; } .wordmark { font-size: 20px; } .site-header nav { gap: 18px; font-size: 11px; } .site-header nav a span { display: none; } .site-header nav a:nth-child(2) { display: none; }
  .hero-inner { padding-top: 35px; min-height: 720px; padding-bottom: 22px; }

  /* FIX: on mobile the image is applied as a real CSS background on the hero
     section, so it always fills the whole section behind the content.
     The <img> is hidden so it doesn't render a second time. */
  .hero {
    background: url("images/portfolio-cover-1.webp") 83% center / cover no-repeat, var(--hero-surface);
  }
  .hero-image { display: none; }

  h1 { font-size: 45px; margin-top: 26px; line-height: 1.1; }
  .hero-description { font-size: 13px; margin-top: 21px; } .desktop-break { display: none; }
  .primary-link { margin-top: 22px; padding: 15px 18px; }
  .hero-bottom { font-size: 7px; padding-top: 40px; }
  .work-section { padding-block: 48px; } .section-heading { margin-bottom: 27px; } .section-heading h2 { font-size: 34px; }
  .project-grid { grid-template-columns: 1fr; gap: 34px; } .project-image { aspect-ratio: 1.3; }
  .about-section { padding-block: 47px; } .about-inner { grid-template-columns: 1fr; gap: 25px; } .about-label { flex-direction: row; justify-content: space-between; align-items: center; } .about-asterisk { width: 45px; height: 45px; } .about-inner h2 { font-size: 36px; } .about-copy { grid-template-columns: 1fr; gap: 15px; margin-top: 21px; } .services { gap: 13px; font-size: 8px; }
  .contact-section { padding-block: 48px 37px; } .contact-title { margin-top: 25px; } .contact-title h2 { font-size: 39px; } .contact-title > svg { width: 49px; height: 49px; flex-shrink: 0; } .contact-bottom { align-items: flex-start; gap: 20px; } .contact-bottom p { font-size: 11px; max-width: 190px; line-height: 1.6; } .contact-bottom a { white-space: nowrap; }
  .site-footer { flex-wrap: wrap; gap: 25px; padding-block: 25px; } .site-footer .wordmark { width: 100%; } .site-footer > span { font-size: 7px; } .site-footer > a:last-child { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Inner pages ---------- */
.site-header nav a.active { color: var(--primary); }
.project-link { display: block; }
.project-link:hover .project-image img { transform: scale(1.035); }
.project-link:hover .project-arrow { background: var(--foreground); color: var(--background); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; border-bottom: 1px solid var(--foreground); padding-bottom: 5px; }
.text-link:hover { color: var(--primary); border-color: var(--primary); }
.about-more { margin-top: 30px; }
.project-grid.four { grid-template-columns: repeat(4, 1fr); gap: 22px; padding-top: 20px; }
.project-grid.four .project-meta h3 { font-size: 20px; }
.page-intro { padding-block: 70px 40px; }
.page-intro h1 { font-size: 72px; max-width: 1000px; margin-top: 18px; }
.page-intro > p { font-size: 15px; line-height: 1.7; color: var(--muted-foreground); max-width: 560px; margin-top: 22px; }
.back { margin-bottom: 10px; }
.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 50px 0 0; border-top: 1px solid var(--border); padding-top: 22px; }
dt { font-size: 9px; font-weight: 600; color: var(--muted-foreground); }
dd { margin: 8px 0 0; font-size: 14px; }
.case-hero img { width: 100%; height: auto; display: block; aspect-ratio: 1.6; object-fit: cover; padding-bottom: 15px;}
.case-body { padding-block: 70px; max-width: 1000px; }
.case-row { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; padding-block: 28px; border-bottom: 1px solid var(--border); }
.case-row p { font-size: 15px; line-height: 1.8; color: var(--muted-foreground); }
.case-row .case-lead { font-family: 'Space Grotesk', sans-serif; font-size: 24px; line-height: 1.4; color: var(--foreground); }
.case-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-block: 50px 30px; }
.case-results strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 54px; font-weight: 500; color: var(--primary); }
.case-results span { font-size: 11px; color: var(--muted-foreground); }
.next-project { border-top: 1px solid var(--border); padding-block: 60px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-grid > div { border-top: 1px solid var(--foreground); padding-top: 18px; }
.process-grid h3 { font-size: 24px; margin-top: 16px; }
.process-grid p { font-size: 13px; line-height: 1.7; color: var(--muted-foreground); margin-top: 10px; }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; padding-bottom: 90px; }
.contact-form { display: grid; gap: 22px; }
.contact-form label { display: grid; gap: 8px; font-size: 10px; font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 16px; font-weight: 400; background: transparent; color: var(--foreground); border: 0; border-bottom: 1px solid var(--border); padding: 10px 0; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form button { border: 0; cursor: pointer; justify-self: start; font: inherit; font-size: 12px; }
.contact-info { display: grid; gap: 28px; align-content: start; margin: 0; }
@media (max-width: 1100px) { .project-grid.four, .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .project-grid.four, .process-grid, .case-facts, .contact-grid, .case-row { grid-template-columns: 1fr; }
  .project-grid.four { padding-top: 0; }
  .page-intro { padding-block: 40px 28px; } .page-intro h1 { font-size: 42px; }
  .case-results { grid-template-columns: 1fr 1fr 1fr; } .case-results strong { font-size: 34px; }
  .case-body { padding-block: 40px; } .case-row { gap: 10px; }
}
.form-success {
  font-size: 1.125rem;
  line-height: 1.6;
  padding: 24px 0;
}