@import url('https://fonts.googleapis.com/css2?family=Anton&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --cream: #FFFEFB;
  --cream-alt: #FFF6E3;
  --ink: #1B140F;
  --ink-soft: #5C5148;
  --pink: #F03A9E;
  --yellow: #FFC93C;
  --brick: #E8420F;
  --line: #ECE4D6;
  --max: 1140px;
  --gap-xs: 8px;
  --gap-s: 16px;
  --gap-m: 24px;
  --gap-l: 40px;
  --gap-xl: 64px;
  --gap-xxl: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

a { color: inherit; }

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

/* Logotype ON. — real brand mark */
.logo-mark {
  display: inline-block;
  height: 40px;
  width: auto;
  border-radius: 10px;
}
.logo-mark.lg { height: 220px; border-radius: 20px; }
.logo-mark.sm { height: 30px; border-radius: 8px; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-lockup .by {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-left: 12px;
  border-left: 1.5px solid var(--line);
}

/* Animated hero mark: color-swap crossfade on hover */
/* Animated hero mark: color-swap crossfade on hover (layout defined further down) */

/* Header / nav */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 254, 251, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav a:hover {
  background: var(--cream-alt);
  color: var(--ink);
}

nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--pink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

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

/* Sections */
section {
  padding: var(--gap-xxl) 0;
}

.section-tight { padding: var(--gap-xl) 0; }

h1, h2, h3 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 20px;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(36px, 4.6vw, 56px); }
h2 { font-size: clamp(24px, 2.8vw, 33px); }
h3 { font-size: 18px; }

/* Squared/rounded accent dot, echoing the ON. brand mark */
.dot-accent {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  min-width: 7px;
  min-height: 7px;
  background: var(--brick);
  border-radius: 3px;
  margin-left: 0.08em;
  vertical-align: baseline;
  transform: translateY(-0.05em);
}

.nowrap { white-space: nowrap; }

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

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 540px;
}

.eyebrow {
  color: var(--pink);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
  display: inline-block;
}

/* Hero */
.hero {
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-l);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--gap-xl);
  align-items: center;
}

.hero h1 { max-width: 600px; }

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: var(--gap-m);
  flex-wrap: wrap;
}

.hero-mark {
  justify-self: end;
  background: var(--yellow);
  border-radius: 28px;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 340px;
  overflow: hidden;
  position: relative;
}
.hero-mark .logo-swap {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-mark .logo-swap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.hero-mark .logo-swap img.alt {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.hero-mark .logo-swap:hover img.alt {
  opacity: 1;
}

/* Trait list (3 arguments) */
.traits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-l);
  padding: var(--gap-l) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trait {
  padding-left: 20px;
  border-left: 3px solid var(--pink);
}

.trait h3 { margin-bottom: 8px; }
.trait p { font-size: 15px; margin: 0; }

/* Section heading block */
.section-head {
  margin-bottom: var(--gap-l);
  max-width: 640px;
}

/* Services preview / grid */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-m);
}

.service-card {
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: var(--gap-l);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.service-card:hover {
  border-color: var(--pink);
  background: var(--cream-alt);
}

.service-card h3 {
  color: var(--ink);
  font-size: 22px;
}

.service-card .num {
  font-family: 'Anton', sans-serif;
  color: var(--pink);
  font-size: 52px;
  line-height: 1;
  display: block;
  margin-bottom: var(--gap-s);
}

.service-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 15px;
}
.service-card ul li { margin-bottom: 6px; }

/* CTA banner */
.cta-banner {
  background: var(--pink);
  color: var(--cream);
  border-radius: 28px;
  padding: var(--gap-xl);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-l);
  flex-wrap: wrap;
}
.cta-banner .copy { max-width: 480px; }
.cta-banner h2 { color: var(--cream); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,254,251,0.85); margin-bottom: 0; }
.cta-banner .btn-primary {
  background: var(--cream);
  color: var(--pink);
  flex-shrink: 0;
}
.cta-banner .btn-primary:hover {
  background: var(--ink);
  color: var(--cream);
}

/* Client logos marquee */
.clients {
  padding: var(--gap-xl) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients .section-head {
  margin-bottom: var(--gap-m);
}
.clients-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: clients-scroll 28s linear infinite;
}
.clients-track img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.clients-track img:hover {
  opacity: 1;
  transform: scale(1.05);
}
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: var(--gap-l) 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer p { font-size: 14px; margin: 0; color: var(--ink-soft); }

/* Realisations grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-m);
}
.work-card {
  border: 1.5px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.work-thumb {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: rgba(27,20,15,0.5);
  overflow: hidden;
  background: #F3F0EA;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.work-card .body { padding: var(--gap-m); }
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brick);
  margin-bottom: 10px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--gap-xl);
  align-items: start;
}
.about-photo {
  aspect-ratio: 4/5;
  border-radius: 24px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
  padding: var(--gap-m);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
}
.field { margin-bottom: var(--gap-m); }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
}

.contact-info .item {
  margin-bottom: var(--gap-l);
  padding-left: 20px;
  border-left: 3px solid var(--yellow);
}
.contact-info .label {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 6px;
  display: block;
}
.contact-info a { text-decoration: none; font-size: 17px; font-weight: 600; }

/* Page hero (non-home pages) */
.page-hero { padding: var(--gap-l) 0 var(--gap-m); }
.page-hero .eyebrow { margin-bottom: 8px; }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding-top: 32px; padding-bottom: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; line-height: 1.2; }
  .hero .lede { font-size: 15px; line-height: 1.5; }
  .hero-cta { margin-top: 20px; gap: 10px; }
  .hero-cta .btn { padding: 11px 20px; font-size: 13px; }
  .hero-mark {
    justify-self: center;
    max-width: 150px;
    margin: 6px auto 0;
  }

  section { padding: 44px 0; }
  .section-tight { padding: 20px 0; }
  .section-head { margin-bottom: var(--gap-m); }

  h2 { font-size: 22px; }
  h3 { font-size: 16px; }
  p { font-size: 15px; }
  .eyebrow { font-size: 13px; }

  .service-list { grid-template-columns: 1fr; }
  .service-card { padding: 20px; }
  .service-card h3 { font-size: 17px; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid p { text-align: justify; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid form { margin-bottom: var(--gap-l); }
  .traits { grid-template-columns: 1fr; gap: 20px; }
  .trait { padding-right: 16px; }
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 28px;
    border-radius: 20px;
  }

  .page-hero { padding-top: 24px; padding-bottom: 4px; }
  .page-hero h1 { font-size: 29px !important; }
  .page-hero .lede { font-size: 15px; line-height: 1.5; }

  .nav-inner { padding: 14px 0; }
  .brand-lockup .logo-mark { margin-left: 18px; }
  .nav-toggle { margin-right: 14px; }

  /* Fix hamburger position: with 3 flex children (logo, button, nav)
     space-between centers the button unless we reorder it to the end */
  .brand-lockup { order: 1; }
  nav { order: 2; }
  .nav-toggle { order: 3; }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 8px 0;
  }
  nav ul.open { display: flex; }
  nav a { display: block; padding: 14px 32px; border-radius: 0; }
  .nav-toggle { display: block; }
  .brand-lockup .by { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
