/* ==========================================================================
   gauztech.com — Direction 3: "The Studio"
   Familiar agency structure, modernised. Soft white, ink, considered blue.
   ========================================================================== */

:root {
  --bg:       #fcfbf9;
  --bg-2:     #f3f1ed;
  --card:     #ffffff;
  --ink:      #101418;
  --ink-2:    #39414a;
  --muted:    #667281;
  --faint:    #97a1ad;
  --line:     #e4e2dd;
  --line-2:   #eeece8;
  --blue:     #2358d8;
  --blue-2:   #1a44ab;
  --blue-wash:#eef2fd;

  --display: 'Familjen Grotesk', -apple-system, sans-serif;
  --body:    'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif:   'Source Serif 4', Georgia, serif;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --max: 1200px;
  --gap: clamp(4.5rem, 10vw, 8rem);
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.022em; line-height: 1.1; margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

.eyebrow { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--blue); margin: 0 0 1rem; }
.lede { font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: var(--ink-2); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 2rem; }
.nav__mark { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; }
.nav__mark img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: .94rem; font-weight: 500; color: var(--ink-2); transition: color .2s ease; }
.nav__links a:hover { color: var(--blue); }
.nav__burger { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: .5rem; }

.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--body); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; border: 0; padding: .8rem 1.5rem; border-radius: 7px; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn--solid { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(35,88,216,.24), 0 8px 20px -10px rgba(35,88,216,.5); }
.btn--solid:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(35,88,216,.26), 0 14px 28px -12px rgba(35,88,216,.6); }
.btn--ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--faint); }
.btn--lg { padding: .95rem 1.85rem; font-size: 1.02rem; }
.btn__a { transition: transform .25s ease; }
.btn:hover .btn__a { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% 40% 30% -20%;
  background: radial-gradient(closest-side, rgba(35,88,216,.11), transparent 72%);
  pointer-events: none;
}
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; position: relative; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.6rem); margin-bottom: 1.35rem; max-width: 18ch; }
.hero h1 span { color: var(--blue); }
.hero__lede { font-size: clamp(1.08rem, 1.5vw, 1.26rem); color: var(--ink-2); margin: 0 0 2rem; max-width: 48ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__trust { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 2rem; }
.trust__n { font-family: var(--display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; display: block; }
.trust__l { font-size: .84rem; color: var(--muted); }

.hero__art { position: relative; }
.hero__art img { border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(16,20,24,.4); }
.hero__art figcaption { margin-top: .85rem; font-size: .82rem; color: var(--muted); text-align: center; }
.hero__art figcaption a { color: var(--blue); text-decoration: none; font-weight: 600; }


/* ---------- Sections ---------- */
.section { padding-block: var(--gap); }
.section--tint { background: var(--bg-2); }
.section__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); margin-bottom: .9rem; }

/* ---------- Services ---------- */
.svcs { display: grid; gap: 1.25rem; }
@media (min-width: 880px) { .svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.15rem); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.svc:hover { transform: translateY(-3px); border-color: rgba(35,88,216,.32); box-shadow: 0 18px 40px -24px rgba(16,20,24,.35); }
.svc__ico { width: 42px; height: 42px; border-radius: 9px; background: var(--blue-wash); color: var(--blue); display: grid; place-items: center; margin-bottom: 1.15rem; }
.svc h3 { font-size: 1.22rem; margin-bottom: .7rem; }
.svc p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Case studies ---------- */
.work { display: flex; flex-direction: column; gap: clamp(3.5rem, 7vw, 6rem); }

.case { border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.case__head { display: flex; align-items: baseline; gap: 1.1rem; margin-bottom: 1.75rem; }
.case__no {
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  color: var(--blue); letter-spacing: .04em; flex: none;
  font-variant-numeric: tabular-nums;
}
.case__sector { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 0 0 .4rem; }
.case h3 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); }

.case__body { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (min-width: 940px) {
  .case__body { grid-template-columns: 1fr 1fr; }
  .case:nth-child(even) .case__media { order: 2; }
}

.case__media a { display: block; }
.case__media img {
  border-radius: 8px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(16,20,24,.45);
  transition: transform .45s cubic-bezier(.2,.7,.3,1), box-shadow .45s ease;
}
.case__media a:hover img { transform: translateY(-4px); box-shadow: 0 28px 56px -26px rgba(16,20,24,.5); }

.case__built { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.case__built h4 {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: .8rem;
}

.case__sum { font-family: var(--serif); font-size: clamp(1.14rem, 1.7vw, 1.3rem); color: var(--ink); line-height: 1.48; margin: 0 0 1.25rem; }
.case__text p { color: var(--muted); font-size: 1rem; margin: 0 0 1.05rem; }
/* Measured outcomes. Only rendered for projects where we have real numbers. */
.result {
  background: var(--blue-wash);
  border: 1px solid rgba(35,88,216,.18);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin: 1.6rem 0 1.6rem;
}
.result h4 {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin-bottom: 1rem;
}
.result__stats { display: grid; gap: 1rem 1.5rem; margin: 0; }
@media (min-width: 520px) { .result__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.result__stats div { margin: 0; }
.result__stats dt {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -.03em; color: var(--ink); line-height: 1.1;
}
.result__stats dd { margin: .3rem 0 0; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.4rem; padding: 0; }
.pills li { font-size: .78rem; font-weight: 500; color: var(--ink-2); background: var(--bg-2); border-radius: 5px; padding: .3rem .7rem; }
.link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; color: var(--blue); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Logos ---------- */
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 620px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.logo { background: var(--card); border: 1px solid var(--line); border-radius: 9px; aspect-ratio: 16/9; display: grid; place-items: center; padding: 1.5rem; text-decoration: none; position: relative; transition: border-color .28s ease, transform .28s ease, box-shadow .28s ease; }
.logo:hover { border-color: rgba(35,88,216,.3); transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(16,20,24,.35); }
.logo { min-width: 0; }
.logo img {
  max-height: 76px;
  max-width: 78%;
  width: auto;
  object-fit: contain;
  /* Grayscale unifies a visually inconsistent set of client marks;
     colour returns on hover. Keep opacity high — several of these logos
     are already light and disappear if they are faded as well. */
  filter: grayscale(1);
  opacity: .95;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.logo:hover img { filter: none; opacity: 1; transform: scale(1.03); }
.logo__ph { font-family: var(--display); font-weight: 600; font-size: .96rem; color: var(--faint); text-align: center; }
.logo__soon { display: block; font-family: var(--body); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .3rem; color: var(--line); }
a.logo::after { content: '↗'; position: absolute; top: .55rem; right: .7rem; font-size: .78rem; color: var(--faint); opacity: 0; transition: opacity .25s ease; }
a.logo:hover::after { opacity: 1; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 1.25rem; }
@media (min-width: 880px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.25rem); display: flex; flex-direction: column; }
.quote__stars { color: var(--blue); font-size: .9rem; letter-spacing: .18em; margin-bottom: 1rem; }
.quote p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 1.5rem; flex: 1; }
.quote__by { display: flex; align-items: center; gap: .8rem; padding-top: 1.15rem; border-top: 1px solid var(--line-2); font-size: .92rem; }
.quote__av { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-wash); color: var(--blue); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .95rem; flex: none; }
.quote__by strong { display: block; font-weight: 700; }
.quote__by a { color: var(--blue); text-decoration: none; }
.quote__by small { color: var(--muted); }

/* ---------- Stack ---------- */
.stack { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 720px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .stack { grid-template-columns: repeat(4, 1fr); } }
.stack__i { background: var(--card); padding: 1.4rem 1.5rem; }
.stack__k { font-family: var(--display); font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.stack__v { font-size: .9rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  box-shadow: 0 24px 60px -40px rgba(16,20,24,.35);
}
.contact__grid { display: grid; gap: clamp(2.25rem, 4.5vw, 4rem); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: .82fr 1.18fr; } }
.contact h2 { font-size: clamp(1.9rem, 3.3vw, 2.7rem); margin-bottom: 1rem; }
.contact__lede { color: var(--muted); margin: 0 0 1.9rem; }
.contact__direct { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; font-size: .96rem; }
.contact__direct span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: .15rem; }
.contact__direct a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(35,88,216,.28); }
.contact__direct a:hover { border-bottom-color: var(--blue); }
.contact__direct li { color: var(--ink-2); }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .45rem; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .82rem 1rem;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(35,88,216,.14);
}
.field textarea { resize: vertical; min-height: 126px; }
.field__err { color: #b3261e; font-size: .84rem; margin-top: .35rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn--solid { justify-content: center; }
.ok {
  background: var(--blue-wash);
  border: 1px solid rgba(35,88,216,.3);
  color: var(--ink-2);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  font-size: .95rem;
  margin-bottom: 1.2rem;
}

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--blue); }

/* ---------- Motion ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.js .rv.in { opacity: 1; transform: none; }
.hero__grid > * { animation: rise .85s cubic-bezier(.2,.7,.3,1) backwards; }
.hero__grid > *:nth-child(1) { animation-delay: .06s; }
.hero__grid > *:nth-child(2) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

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

@media (max-width: 860px) {
  .nav__links, .nav .btn { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .25rem var(--pad) 1.25rem; }
  .nav.is-open .nav__links li { border-top: 1px solid var(--line-2); }
  .nav.is-open .nav__links a { display: block; padding: .9rem 0; font-size: 1.05rem; }
}
