/* BLUESTEAM — bluesteambrands.com
   Rebuilt from the Squarespace original. Layout follows its 24-column grid:
   4vw gutters on desktop, 6vw on phones, 11px gaps. */

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/syne-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/syne-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #eaeaee;
  --ink: #000;
  --blue: #1470af;
  --light: #eaeaee;

  --gutter: 4vw;
  --gap: 11px;

  /* Fluid type, matched to the original at 1440px and at phone widths. */
  --fs-h1: clamp(1.9rem, 1.431rem + 3.5vw, 7.5rem);
  --fs-h2: clamp(2.1rem, 1.413rem + 3.04vw, 6.8rem);
  --fs-h3: clamp(1.7rem, 1.287rem + 1.98vw, 5rem);
  --fs-h4: clamp(1.45rem, 1.179rem + 1.38vw, 4rem);
  --fs-body: clamp(1rem, 0.9603rem + 0.303vw, 1.6rem);
  --fs-button: clamp(1.1rem, 1.0116rem + 0.486vw, 1.9rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Syne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

h1,
.h1 {
  font-size: var(--fs-h1);
  line-height: 1.046;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.066;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.114;
}

h4 {
  font-size: var(--fs-h4);
  line-height: 1.142;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.6em 1em;
  background: var(--ink);
  color: #fff;
  border-radius: 300px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2em 2em;
  border: 0;
  border-radius: 300px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: var(--fs-button);
  line-height: 1.2;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.1s linear;
}

.button:hover {
  opacity: 0.8;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Header ---------- */

.site-header {
  padding: 29px var(--gutter);
}

.site-header__logo {
  display: inline-block;
  vertical-align: top;
}

.site-header__logo img {
  width: auto;
  height: 38px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 0 var(--gutter);
}

.hero__media {
  position: relative;
  height: clamp(280px, 30.07vw, 760px);
  overflow: hidden;
  background: #0b1f3f;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.51);
}

.hero__title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.45em 4% 0.25em;
  color: var(--light);
  text-align: center;
}

.scribble {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.scribble svg {
  position: absolute;
  left: -1%;
  top: -0.077em;
  width: 102%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.scribble path {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
  padding: clamp(40px, 6.74vw, 150px) var(--gutter) 0;
}

.about__image {
  grid-column: 1 / span 12;
  aspect-ratio: 657 / 849;
  overflow: hidden;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text {
  grid-column: 15 / span 9;
  padding-top: 8.6vw;
}

.about__text h2 {
  margin-bottom: clamp(28px, 3.68vw, 84px);
}

.button--wide {
  min-width: clamp(220px, 18.55vw, 400px);
  height: clamp(56px, 4.72vw, 100px);
  padding-block: 0;
}

.about__cta {
  margin-top: clamp(14px, 2.1vw, 48px);
}

/* ---------- Our creations ---------- */

.creations {
  padding: clamp(56px, 5.49vw, 124px) var(--gutter) 0;
  text-align: center;
}

.creations h2 {
  margin-bottom: clamp(26px, 3.47vw, 78px);
}

.creations__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.creations__grid img {
  width: 100%;
  aspect-ratio: 323 / 305;
  object-fit: cover;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  padding: clamp(96px, 16.46vw, 360px) var(--gutter) 0;
  scroll-margin-top: -8vw;
}

.contact__intro {
  grid-column: 1 / span 8;
}

.contact__intro .h1 {
  margin-bottom: clamp(18px, 2.5vw, 56px);
}

.contact__email {
  grid-column: 13 / span 12;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(22px, 2.5vw, 56px);
}

.contact__address {
  color: var(--ink);
  font-size: clamp(1.1rem, 0.45rem + 2.05vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
  text-decoration: none;
}

.contact__address:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  padding: clamp(96px, 17.85vw, 390px) var(--gutter) clamp(40px, 5.14vw, 116px);
}

.site-footer__tagline {
  grid-column: 1 / span 9;
}

.site-footer__col--location {
  grid-column: 15 / span 5;
}

.site-footer__col--contact {
  grid-column: 20 / span 5;
}

.site-footer h4 {
  margin-bottom: clamp(24px, 2.5vw, 56px);
}

.site-footer p {
  margin-bottom: 0.93em;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .scribble path {
    animation: scribble-draw 0.9s ease-out 0.45s both;
  }

  @keyframes scribble-draw {
    from {
      stroke-dashoffset: 1;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Small laptops ---------- */

@media (max-width: 1199px) {
  .site-footer__col--location {
    grid-column: 12 / span 6;
  }

  .site-footer__col--contact {
    grid-column: 18 / span 7;
  }
}

/* ---------- Tablets ---------- */

@media (max-width: 1023px) {
  .about__image {
    grid-column: 1 / span 11;
  }

  .about__text {
    grid-column: 13 / span 12;
    padding-top: 3vw;
  }

  .contact__intro {
    grid-column: 1 / span 10;
  }

  .contact__email {
    grid-column: 12 / span 13;
  }

  .site-footer__tagline {
    grid-column: 1 / -1;
    margin-bottom: 48px;
  }

  .site-footer__col--location {
    grid-column: 1 / span 12;
  }

  .site-footer__col--contact {
    grid-column: 13 / span 12;
  }
}

/* ---------- Phones and small tablets ---------- */

@media (max-width: 767px) {
  :root {
    --gutter: 6vw;
  }

  .site-header {
    padding-block: 34px;
  }

  .site-header__logo img {
    height: 30px;
  }

  .hero__media {
    height: clamp(240px, 60vw, 320px);
  }

  .hero__media img {
    transform: scale(1.5);
  }

  .about,
  .contact,
  .site-footer {
    display: block;
  }

  .about {
    padding-top: 64px;
  }

  .about__text {
    padding-top: 0;
  }

  .about__text h2 {
    margin-bottom: 36px;
  }

  .button--wide {
    display: flex;
    width: 100%;
    height: 59px;
  }

  .about__cta {
    margin-top: 22px;
  }

  .about__image {
    aspect-ratio: 560 / 479;
    margin-top: 46px;
  }

  /* Text first, then the image, as on the original phone layout. */
  .about {
    display: flex;
    flex-direction: column;
  }

  .about__text {
    order: 1;
  }

  .about__image {
    order: 2;
  }

  .creations {
    padding-top: 84px;
  }

  .creations h2 {
    margin-bottom: 27px;
  }

  .creations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact {
    padding-top: 110px;
    scroll-margin-top: -40px;
  }

  .contact__intro {
    margin-bottom: 40px;
  }

  .contact__email {
    align-items: stretch;
    gap: 24px;
  }

  .contact__address {
    font-size: clamp(1.1rem, 5.2vw, 1.6rem);
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding-top: 100px;
    padding-bottom: 44px;
  }

  .site-footer__tagline {
    margin-bottom: 52px;
  }

  .site-footer__col + .site-footer__col {
    margin-top: 44px;
  }

  .site-footer h4 {
    margin-bottom: 28px;
  }

  .site-footer p {
    overflow-wrap: anywhere;
  }
}
