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

:root {
  --ink: #17201c;
  --paper: #f3f1e9;
  --paper-dark: #e8e5da;
  --white: #fbfaf6;
  --muted: #67706b;
  --line: #cbcfc7;
  --accent: #d9ff4f;
  --accent-dark: #b8e024;
  --forest: #223b31;
  --radius: 6px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  z-index: 20;
}

a { color: inherit; }
button, input, textarea { font: inherit; }

.site-header {
  height: 76px;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(243, 241, 233, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.03em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:not(.nav-cta):hover { opacity: .55; }

.nav-cta {
  padding: .65rem 1.05rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 3px;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
}

.hamburger span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--ink);
  transition: transform .2s ease;
}

.hero {
  min-height: 760px;
  padding: 10rem clamp(1.25rem, 6vw, 7rem) 6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-copy { max-width: 850px; }

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

h1, h2, h3 {
  font-family: "Manrope", sans-serif;
  line-height: 1.08;
  letter-spacing: -.045em;
}

h1 {
  max-width: 900px;
  margin-bottom: 2rem;
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  font-weight: 700;
}

h1 em {
  position: relative;
  font-style: normal;
  z-index: 1;
  white-space: nowrap;
}

h1 em::after {
  content: "";
  position: absolute;
  height: .18em;
  left: -.02em;
  right: -.02em;
  bottom: .08em;
  background: var(--accent);
  z-index: -1;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 2.4rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.hero-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .75rem 1.35rem;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--forest); }

.text-link {
  font-weight: 700;
  text-underline-offset: 5px;
}

.text-link span { margin-left: .35rem; }

.hero-panel {
  padding: 2rem;
  background: var(--forest);
  color: var(--white);
  box-shadow: 16px 16px 0 var(--accent);
}

.panel-kicker {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.2);
  color: #c8d1cc;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-panel ul { margin: 0; padding: 0; list-style: none; }

.hero-panel li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.hero-panel li:last-child { border: 0; padding-bottom: 0; }
.hero-panel li > span { color: var(--accent); font-size: .75rem; font-weight: 700; }
.hero-panel strong, .hero-panel small { display: block; }
.hero-panel strong { margin-bottom: .35rem; font-size: .96rem; }
.hero-panel small { color: #b9c4bf; font-size: .84rem; line-height: 1.55; }

.section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 7rem); }

.section-heading {
  display: grid;
  grid-template-columns: 1.5fr .7fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

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

.section-heading h2, .process-intro h2, .contact-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.section-heading > p, .process-intro > p:last-child, .contact-copy > p {
  margin-bottom: .45rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-work { background: var(--white); }

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  min-height: 440px;
  background: var(--white);
}

.project:nth-child(even) {
  grid-template-columns: minmax(340px, .65fr) minmax(0, 1.35fr);
}

.project:nth-child(even) .project-visual { order: 2; }
.project:nth-child(even) .project-copy { order: 1; }

.project-featured {
  grid-column: auto;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  min-height: 440px;
}

.project-visual {
  position: relative;
  min-height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.project-visual::before, .project-visual::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  opacity: .35;
}

.project-visual::before { width: 65%; aspect-ratio: 1; border-radius: 50%; }
.project-visual::after { width: 42%; aspect-ratio: 1; transform: rotate(45deg); }

.project-visual--shot {
  min-height: 440px;
  padding: clamp(1.25rem, 2.5vw, 2.5rem);
  place-items: stretch;
}

.project-visual--shot::before,
.project-visual--shot::after { display: none; }

.project-shot-main {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(23,32,28,.2);
  box-shadow: 0 18px 45px rgba(23,32,28,.18);
}

.project-shot-detail {
  position: absolute;
  z-index: 2;
  right: clamp(.6rem, 2vw, 1.5rem);
  bottom: clamp(.6rem, 2vw, 1.5rem);
  display: block;
  object-fit: cover;
  object-position: top;
  background: var(--white);
  border: 5px solid var(--white);
  box-shadow: 0 14px 35px rgba(23,32,28,.28);
}

.project-shot-detail--phone {
  width: clamp(82px, 14%, 118px);
  height: 62%;
  border-radius: 9px;
  object-fit: contain;
}

.project-shot-detail--screen {
  width: 38%;
  height: auto;
  max-height: 38%;
  border-radius: 3px;
  object-fit: contain;
}

.visual-natava { background: #c8e0ad; color: #31523b; }
.visual-tipp { background: #cdd5e9; color: #344565; }
.visual-ottanta { background: #e0c7ae; color: #6b4634; }
.visual-risk { background: #d7d1bd; color: #4f4c3f; }
.visual-hellosuli { background: #f2d76d; color: #304d77; }
.visual-alfa { background: #d9e4ed; color: #b5202d; }
.visual-websorsolas { background: #d9a3a3; color: #541e25; }
.visual-littlepeas { background: #f3e6ad; color: #4f672f; }

.project-index {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: .75rem;
  font-weight: 700;
}

.project-visual--shot .project-index {
  z-index: 3;
  padding: .35rem .5rem;
  background: var(--ink);
  color: var(--white);
}

.project-monogram {
  position: relative;
  z-index: 1;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -.09em;
}

.project-copy {
  padding: clamp(1.5rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-type {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-copy h3 { margin-bottom: 1rem; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.project-copy h3 a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: .07em;
  text-underline-offset: .16em;
}
.project-copy h3 a:hover { text-decoration: underline; }
.project-copy > p:not(.project-type) { max-width: 520px; color: var(--muted); }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: auto 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
}

.project-tags li {
  padding: .28rem .55rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: .72rem;
}

.project-detail {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: .82rem;
}

.project-visit {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  margin-top: 1rem;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.project-visit span {
  font-size: 1rem;
  transition: transform .18s ease;
}

.project-visit:hover span { transform: translate(2px, -2px); }
.project-visual--shot:hover .project-shot-main { transform: scale(1.015); }
.project-shot-main { transition: transform .3s ease; }

.section-erp {
  background: var(--ink);
  color: var(--white);
}

.section-erp .eyebrow { color: #aeb8b2; }

.erp-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(3rem, 9vw, 9rem);
  align-items: end;
  margin-bottom: clamp(4rem, 7vw, 7rem);
}

.erp-heading h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 5.6rem);
}

.erp-lead p {
  margin: 0;
  color: #b7c0bb;
  font-size: 1.08rem;
}

.erp-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1px;
  background: #48514d;
  border: 1px solid #48514d;
}

.erp-capabilities, .erp-clients {
  padding: clamp(1.7rem, 4vw, 3.5rem);
  background: #202925;
}

.erp-clients { background: var(--accent); color: var(--ink); }

.erp-label {
  margin-bottom: 2rem;
  color: #aeb8b2;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.erp-clients .erp-label { color: #52603e; }
.erp-capabilities ul { margin: 0; padding: 0; list-style: none; }

.erp-capabilities li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid #48514d;
}

.erp-capabilities li:first-child { border-top: 1px solid #48514d; }
.erp-capabilities span { font-weight: 700; }
.erp-capabilities small { color: #9eaaa4; text-align: right; }

.client-list {
  border-top: 1px solid rgba(23,32,28,.35);
}

.client-list div {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(23,32,28,.35);
}

.client-list span { font-size: .72rem; font-weight: 700; }
.client-list strong { font-family: "Manrope", sans-serif; font-size: clamp(1.25rem, 2.5vw, 2rem); }
.client-note { margin: 2rem 0 0; color: #43503d; font-size: .88rem; }

.section-services { background: var(--paper); }

.service-list { border-top: 1px solid var(--ink); }

.service-row {
  display: grid;
  grid-template-columns: 70px minmax(220px, .8fr) 1.2fr;
  gap: 2rem;
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.service-number { color: var(--muted); font-size: .8rem; font-weight: 700; }
.service-row h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.service-row p { max-width: 660px; margin: 0; color: var(--muted); }

.section-process {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(4rem, 10vw, 10rem);
  background: var(--forest);
  color: var(--white);
}

.process-intro { position: sticky; top: 130px; align-self: start; }
.process-intro .eyebrow, .process-intro > p:last-child { color: #b8c3bd; }
.process-intro h2 { margin-bottom: 1.5rem; }

.process-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.22); }

.process-steps li {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 1.5rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.22);
}

.process-steps li > span { color: var(--accent); font-size: .8rem; font-weight: 700; }
.process-steps h3 { margin-bottom: .55rem; font-size: 1.5rem; }
.process-steps p { max-width: 530px; margin: 0; color: #b8c3bd; }

.section-contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(4rem, 10vw, 10rem);
  background: var(--accent);
}

.contact-copy h2 { margin-bottom: 1.5rem; }
.contact-copy > p { color: #43503d; }
.contact-email { display: inline-block; margin-top: 1rem; font-weight: 700; text-underline-offset: 5px; }

.contact-form { padding: clamp(1.5rem, 4vw, 3rem); background: var(--white); }
.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: .45rem; font-size: .8rem; font-weight: 700; }

.form-group input, .form-group textarea {
  width: 100%;
  padding: .85rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
}

.form-group input:focus, .form-group textarea:focus { border-color: var(--ink); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-submit { width: 100%; margin-top: .5rem; }

.form-msg { display: none; margin-top: 1rem; padding: .8rem; font-size: .88rem; }
.form-msg.success { display: block; background: #e1efdc; color: #27462e; }
.form-msg.error { display: block; background: #f5dfdc; color: #74362f; }

footer {
  padding: 2rem clamp(1.25rem, 6vw, 7rem);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: center;
  background: var(--ink);
  color: #afb8b3;
  font-size: .82rem;
}

footer p { margin: 0; }
.footer-brand { color: var(--white); }
.footer-brand .brand-logo {
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 50%;
  background: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { max-width: 600px; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .erp-heading, .erp-layout { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project,
  .project-featured,
  .project:nth-child(even) {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    min-height: 380px;
  }
  .project:nth-child(even) .project-visual { order: 0; }
  .project:nth-child(even) .project-copy { order: 0; }
  .project-visual--shot,
  .project-featured .project-visual--shot { min-height: 380px; }
  .project-shot-main { min-height: 310px; }
  .section-process, .section-contact { grid-template-columns: 1fr; }
  .process-intro { position: static; }
}

@media (max-width: 720px) {
  .site-header { height: 66px; }
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    padding: 1.5rem;
    align-items: stretch;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: block; text-align: center; }
  .hero { min-height: auto; padding-top: 8.5rem; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.5rem); }
  h1 em { white-space: normal; }
  .hero-panel { margin-right: 10px; box-shadow: 10px 10px 0 var(--accent); }
  .section { padding-top: 5rem; padding-bottom: 5rem; }
  .project,
  .project-featured,
  .project:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .project:nth-child(even) .project-visual { order: 0; }
  .project:nth-child(even) .project-copy { order: 0; }
  .project-visual { min-height: 220px; }
  .project-visual--shot { min-height: 260px; padding: .75rem; }
  .project-shot-main { min-height: 235px; }
  .project-shot-detail--phone { width: 70px; height: 62%; }
  .service-row { grid-template-columns: 40px 1fr; gap: 1rem; }
  .service-row p { grid-column: 2; }
  .erp-capabilities li { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .erp-capabilities small { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
