/* =========================================================
   CUALTIX — MAIN STYLESHEET
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@800&display=swap");

:root {
  /* THEME: dark forest green + beige + pistachio */
  --green: #11291D;      /* dark forest green (base) */
  --green-2: #173527;
  --green-3: #1F4332;
  --line: rgba(239, 230, 211, .12);
  --accent: #A9C98A;     /* pistachio */
  --beige: #EFE6D3;      /* beige */
  --text: #EFE6D3;
  --muted: #BDB49E;
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 18px;
  --pad: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scrollbar-gutter: stable; }  /* scrollbar space always kept → no left jerk after the intro */
body {
  margin: 0;
  background: var(--green);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; }

::selection { background: var(--accent); color: var(--green); }

/* ---------- typography helpers ---------- */
h1, h2 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .01em;
}
h1 { font-size: clamp(54px, 10vw, 150px); }
h2 { font-size: clamp(42px, 7vw, 96px); }
h1 span, h2 span { color: var(--accent); }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--accent);
}

/* ---------- buttons ---------- */
.primary-btn, .talk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  cursor: pointer;
  white-space: nowrap;
}
.talk-btn { padding: 12px 22px; font-size: 13px; }
.text-link {
  margin-top: 36px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .1em;
  font-size: 14px;
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  background: var(--green);          /* solid when not scrolling */
  border-bottom: 1px solid var(--line);
  transition: background-color .45s ease, backdrop-filter .45s ease, -webkit-backdrop-filter .45s ease, box-shadow .45s ease, border-color .45s ease;
}
/* glassy while the visitor is scrolling down */
.header.cx-glass {
  background: rgba(17, 41, 29, .38);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom-color: rgba(239, 230, 211, .2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(255, 255, 255, .05);
}
section[id] { scroll-margin-top: 90px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: .06em;
  line-height: 1;
}
.logo span span, .footer .logo span { color: var(--accent); }
.logo-icon { width: 42px; height: 42px; object-fit: contain; }
.nav { display: flex; gap: 34px; }
.nav-link {
  position: relative;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  transition: color .3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

/* ---------- home hero (centred headline + floating glass logo) ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 82px);
  padding: 80px var(--pad);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-content { position: relative; z-index: 2; max-width: 1100px; display: flex; flex-direction: column; align-items: center; }
.hero-description {
  max-width: 560px;
  margin: 28px auto 38px;
  color: var(--text);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
}

/* glass logo floating behind the text */
.hero-glass { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hg-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.hg-b1 { width: 420px; height: 420px; left: 50%; top: 50%; margin: -300px 0 0 -330px; background: var(--accent); opacity: .35; animation: hg-drift 14s ease-in-out infinite alternate; }
.hg-b2 { width: 360px; height: 360px; left: 50%; top: 50%; margin: -80px 0 0 40px; background: var(--beige); opacity: .18; animation: hg-drift 18s ease-in-out infinite alternate-reverse; }
.hg-b3 { width: 300px; height: 300px; left: 12%; bottom: -60px; background: #2f6b4a; opacity: .6; }
.glass-logo {
  position: absolute;
  left: 50%; top: 50%;
  width: min(760px, 92vw, 78vh);
  aspect-ratio: 1482 / 1600;
  margin: calc(min(760px, 92vw, 78vh) * -0.538) 0 0 calc(min(760px, 92vw, 78vh) * -0.5);
  opacity: .18;               /* watermark feel */
  animation: gl-float 9s ease-in-out infinite;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .35));
  transition: translate 1.2s cubic-bezier(.22, 1, .36, 1);
}
.gl-half {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.gl-l {
  clip-path: polygon(50.07% 0, 0 99.7%, 50.07% 72.9%);
  background: linear-gradient(150deg, rgba(239, 230, 211, .30), rgba(239, 230, 211, .06) 60%);
}
.gl-r {
  clip-path: polygon(50.07% 0, 50.07% 72.9%, 100% 99.7%);
  background: linear-gradient(210deg, rgba(169, 201, 138, .28), rgba(34, 72, 33, .18) 70%);
}
.glass-logo img { width: 100%; height: 100%; object-fit: contain; }
@keyframes gl-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-26px) rotate(2deg); }
}
@keyframes hg-drift { to { translate: 60px 40px; scale: 1.15; } }

/* ---------- brand marquee ---------- */
.brand-marquee {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--green-2);
}
.brand-marquee-heading {
  margin-bottom: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
}
.brand-marquee-window {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.brand-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.brand-marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 60px;
  padding-right: 60px;
}
.brand-marquee-group span {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: .04em;
  color: rgba(242, 245, 239, .55);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) var(--pad); }
.section-heading { max-width: 760px; margin-bottom: 56px; }
.section-heading p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 18px; }
.services-section, .portfolio-section { display: flex; flex-direction: column; align-items: flex-start; }
.services-section > .service-grid, .portfolio-section > .portfolio-list { width: 100%; }
.portfolio-section > .primary-btn { margin-top: 56px; }

/* page hero (inner pages) */
.page-hero {
  padding: clamp(90px, 13vw, 170px) var(--pad) clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}
.page-hero > p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 19px;
}

/* ---------- services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 210px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--green-2), var(--green));
}
a.service-card { color: inherit; text-decoration: none; cursor: pointer; transition: transform .25s ease, border-color .25s ease; }
a.service-card:hover, a.service-card:focus-visible { transform: translateY(-4px); border-color: var(--accent); }
.service-card > span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: .05em;
}
.service-card h3 { font-size: 24px; }
.service-card p { color: var(--muted); font-size: 15px; }
.service-card > b {
  margin-top: auto;
  font-size: 26px;
  color: var(--text);
}

/* ---------- portfolio ---------- */
.portfolio-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px;
}
.portfolio-section { padding-left: clamp(16px, 3vw, 44px); padding-right: clamp(16px, 3vw, 44px); }
.portfolio-card { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.portfolio-art {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.portfolio-art strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: .95;
  color: var(--text);
}
.art-1 { background: linear-gradient(135deg, #16382A, #2f6b4f, #A9C98A); }
.art-2 { background: linear-gradient(135deg, #0c2015, #1E4535 55%, #6f9a5c); }
.art-3 { background: linear-gradient(135deg, #A9C98A, #3c7a5d 60%, #11291D); }
.art-3 strong { color: var(--green); }
.art-4 { background: linear-gradient(135deg, #2a2f1a, #5d6e2a 55%, #16382A); }
.art-5 { background: linear-gradient(135deg, #1E4535, #11291D 50%, #7fa56a); }
.art-6 { background: linear-gradient(135deg, #3c7a5d, #16382A 60%, #A9C98A); }
.art-7  { background: linear-gradient(135deg, #A9C98A, #7fa56a, #16382A); }
.art-7 strong { color: var(--green); }
.art-8  { background: linear-gradient(135deg, #1E4535, #3c7a5d, #11291D); }
.art-9  { background: linear-gradient(135deg, #2a2f1a, #a99a72, #16382A); }
.art-10 { background: linear-gradient(135deg, #11291D, #2a6b52, #A9C98A); }

/* portfolio artwork fills the box */
.portfolio-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portfolio-card { align-items: center; text-align: center; }

/* carousel */
.logo-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.logo-carousel-image.is-active { opacity: 1; }
.logo-carousel-arrow {
  position: absolute;
  top: 50%;
  width: 44px; height: 44px;
  margin-top: -22px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 0;
  background: rgba(17, 41, 29, .75);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.logo-carousel-prev { left: 14px; }
.logo-carousel-next { right: 14px; }
.logo-carousel-count {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(17, 41, 29, .75);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}
/* shown if an image file is missing */
.portfolio-art.img-missing::before {
  content: "ADD IMAGES TO /Images";
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .2em;
  background: repeating-linear-gradient(45deg, #0d2318 0 14px, #11291D 14px 28px);
}
img.is-broken { visibility: hidden; }

/* ---------- CTA ---------- */
.cta-section {
  margin: 0 var(--pad) clamp(80px, 10vw, 130px);
  padding: clamp(70px, 10vw, 130px) var(--pad);
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(160deg, var(--green-3), var(--green-2));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-section .eyebrow::before { display: none; }
.cta-section h2 { margin-bottom: 40px; }

/* ---------- about ---------- */
.about-content > p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 19px;
}
.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 60px 0 50px;
}
.info-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-2);
}
.info-card h3 { margin-bottom: 12px; font-size: 17px; letter-spacing: .08em; }
.info-card p { color: var(--muted); }

/* founder */
.founder {
  position: relative;
  margin: 10px 0 50px;
  padding: clamp(28px, 4vw, 48px) 0 0 clamp(20px, 3vw, 36px);
  border-left: 3px solid var(--accent);
}
.founder .eyebrow { margin-bottom: 18px; }
.founder-name {
  font-size: clamp(56px, 10vw, 150px);
  line-height: .9;
  letter-spacing: .01em;
}
.founder-role {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3em;
}
.about-content > .primary-btn { margin-top: 10px; }

/* ---------- contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact-intro > p:not(.eyebrow) { margin: 26px 0 34px; color: var(--muted); font-size: 18px; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--green-2);
}
.contact-form label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--green);
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #8f8a78; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); outline: none; }
.contact-form .primary-btn { margin-top: 20px; align-self: flex-start; }
.form-notice { min-height: 1.4em; color: var(--accent); font-weight: 600; }

/* form errors */
.field-error { display: block; min-height: 0; margin-top: -2px; color: #F08C7C; font-size: 13px; font-weight: 600; }
.field-error:empty { display: none; }
.contact-form .is-invalid { border-color: #F08C7C !important; box-shadow: 0 0 0 3px rgba(240, 140, 124, .18) !important; }
.form-notice.is-error { color: #F08C7C; }
.contact-form.cx-shake { animation: cx-shake .45s ease; }
@keyframes cx-shake { 20%, 60% { translate: -8px 0; } 40%, 80% { translate: 8px 0; } }

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 70px var(--pad) 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer .logo { font-size: 40px; }
.footer > p:first-of-type { color: var(--muted); font-size: 13px; letter-spacing: .25em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; font-size: 13px; font-weight: 700; letter-spacing: .15em; }
.footer-email a { color: var(--accent); font-weight: 600; }
.copyright { color: #8f8a78; font-size: 12px; letter-spacing: .12em; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .service-grid, .portfolio-list { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: calc(100vh - 82px); }
}
@media (max-width: 860px) {
  .menu-toggle { display: grid; place-items: center; }
  .talk-btn { display: none; }
  .nav {
    position: fixed;
    top: 82px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px var(--pad) 30px;
    background: var(--green);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav-link::after { display: none; }
  .about-points, .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .service-grid, .portfolio-list { grid-template-columns: 1fr; }
  .header { padding: 14px 20px; }
  .nav { top: 74px; }
  .logo { font-size: 24px; }
  .cta-section { margin-left: 16px; margin-right: 16px; }
}
