/* ==========================================================
   Made By Pat — madebypat.com
   Hand-built replacement for the Squarespace site.
   ========================================================== */

:root {
  /* Color */
  --black: #000;
  --white: #fff;
  --beige: #e1ccbe;
  --ink: #000;

  /* Type */
  --font-display: "Kaisei Tokumin", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(3.4rem, 8.5vw, 8.4rem);
  --fs-h2: clamp(2.4rem, 4.6vw, 4.2rem);
  --fs-body: 1rem;

  /* Layout */
  --max: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --radius-card: 30px;
  --radius-pill: 300px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
strong { font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--beige); color: var(--black);
  padding: .6rem 1rem; border-radius: var(--radius-pill);
  font-family: var(--font-ui); text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--beige); outline-offset: 3px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.h2, .section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -.005em;
}
.section-title { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.beige { color: var(--beige); }

.squiggle {
  text-decoration: underline wavy var(--white);
  text-decoration-thickness: 3px;
  text-underline-offset: .22em;
  text-decoration-skip-ink: none;
}

.inline-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.inline-link:hover { color: var(--beige); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.btn, .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .7rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover, .pill:hover { transform: translateY(-2px); }

.btn--beige  { background: var(--beige); color: var(--black); border-color: var(--black); }
.btn--beige:hover { background: var(--white); }
.btn--outline { background: transparent; color: var(--beige); border-color: var(--beige); }
.btn--outline:hover { background: var(--beige); color: var(--black); }
.btn--black  { background: var(--black); color: var(--beige); border-color: var(--black); }
.btn--black:hover { background: #1c1c1c; }

.pill {
  min-height: 2.6rem;
  padding: .45rem 1.2rem;
  font-size: .9rem;
  background: var(--beige);
  color: var(--black);
  margin-bottom: 1.6rem;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.2rem, 2.6vw, 2rem) var(--gutter);
}
.logo img { width: clamp(44px, 4vw, 56px); height: auto; }

.social { display: flex; gap: .95rem; align-items: center; }
.social a { display: grid; place-items: center; width: 22px; height: 22px; color: var(--white); transition: opacity .2s, transform .2s; }
.social a:hover { opacity: .7; transform: translateY(-1px); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.social svg.solid { fill: currentColor; stroke: none; }
.social svg .fill { fill: currentColor; }
.social--dark a { color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.35) 100%),
    linear-gradient(to right, rgba(0,0,0,.45), transparent 60%);
}
.hero__content { padding-bottom: clamp(3.5rem, 9vh, 6.5rem); padding-top: 8rem; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1;
  letter-spacing: -.01em;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--dark  { background: var(--black); color: var(--white); }
.section--beige { background: var(--beige); color: var(--ink); }

/* Featured builds */
.featured__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.featured__item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.featured__item .btn { min-width: 11rem; }

/* Split image / copy */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}
.split + .split { margin-top: var(--section-y); }
.split--reverse .split__copy { order: -1; }
.split__copy { max-width: 34rem; }
.split__copy .h2 { margin-bottom: 1.6rem; }
.split__copy p + p { margin-top: 1rem; }
.split__copy p + .btn { margin-top: 2.2rem; }
.split__copy .btn { margin-top: 2.2rem; }

.squircle {
  display: block;
  clip-path: url(#squircle);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.squircle img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
a.squircle:hover img, .dribbble-stack:hover .squircle img { transform: scale(1.04); }

/* Dribbble image + floating profile card */
.dribbble-stack { position: relative; display: block; }
.dribbble-stack__card {
  position: absolute;
  right: -2%;
  bottom: -6%;
  width: 52%;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  transition: transform .6s var(--ease);
}
.dribbble-stack:hover .dribbble-stack__card { transform: translateY(-6px); }

/* Latest designs gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4.5vw, 4.5rem);
}
.gallery__item {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(0,0,0,.06);
  aspect-ratio: 16 / 10.4;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .8s var(--ease);
}
a.gallery__item:hover img { transform: scale(1.03); }

/* Partners */
.partners .section-title { margin-bottom: 2.5rem; }
.partners__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
}
.partners__row img { height: clamp(26px, 3vw, 36px); width: auto; transition: opacity .2s; }
.partners__row a:hover img { opacity: .6; }

/* Testimonial */
.testimonial__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 1000px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.testimonial figcaption {
  font-family: var(--font-display);
  color: var(--beige);
  font-size: 1.05rem;
}
.testimonial__photo {
  width: clamp(160px, 22vw, 260px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 50px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  color: var(--black);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__legal { font-size: .78rem; margin-bottom: 1.2rem; }
.footer__made {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.footer__email { font-size: .78rem; letter-spacing: .02em; text-underline-offset: 3px; }
.footer__email:hover { opacity: .65; }

/* ---------- Scroll reveal (only active when JS is on) ---------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__copy { order: 0; }
  .split__media { max-width: 520px; width: 100%; }
  .featured__grid { grid-template-columns: 1fr; gap: 0; }
  .featured__item video { margin-bottom: 1.5rem; }
  .featured__item + .featured__item { margin-top: 3.5rem; }
  .testimonial__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item { border-radius: 22px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
