/* ==========================================================================
   Hershey Hernandez, static rebuild
   Layout mirrors the original Squarespace Fluid Engine grid:
   8 columns on mobile, 24 columns from 768px, plus a gutter column each side.
   ========================================================================== */

:root {
  /* Colors */
  --c-primary: #194027;      /* body text, headings, dark "black" theme bg */
  --c-muted: #9faea5;        /* muted accent text */
  --c-black: #000000;
  --c-white: #ffffff;
  --c-bright: #e8e1fd;       /* lavender "bright" theme */
  --c-light: #f1f2ea;        /* "light-bold" theme */
  --c-shape: #eff483;        /* about page shape block */
  --c-input-border: rgba(25, 64, 39, 0.45);
  --c-focus: #1a73e8;

  /* Type */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tracking: -0.03em;
  --vw: min(1vw, 14px);               /* font scaling stops at 1400px */
  --fs-h1: calc(3.6 * var(--vw) + 1rem);    /* size 4.0 */
  --fs-h2: calc(2.16 * var(--vw) + 1rem);   /* size 2.8 */
  --fs-h3: calc(1.44 * var(--vw) + 1rem);   /* size 2.2 */
  --fs-h4: calc(0.72 * var(--vw) + 1rem);   /* size 1.6 */
  --fs-body: calc(0.24 * var(--vw) + 1rem); /* size 1.2 */
  --fs-large: calc(0.6 * var(--vw) + 1rem); /* size 1.5 */
  --fs-small: 1rem;                         /* size 1.0 */
  --fs-marquee-big: calc(5.52 * var(--vw) + 1rem);

  /* Layout */
  --gutter: 6vw;
  --max-w: 1400px;
  --header-h: 88px;
  --pad-small: 3.3vw;
  --pad-medium: 6.6vw;
  --row-scale: 0.0215;
  --radius-pill: 300px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-primary);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.2;
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; color: inherit; }
h1 { font-size: var(--fs-h1); line-height: 1.056; }
h2 { font-size: var(--fs-h2); line-height: 1.114; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.171; }
p { font-size: var(--fs-body); line-height: 1.2; }
.h1 { font-size: var(--fs-h1); line-height: 1.056; }
.h2 { font-size: var(--fs-h2); line-height: 1.114; }
.h4 { font-size: var(--fs-h4); line-height: 1.171; }
p.scaled { line-height: 1; }
.blk-text p + p, .blk-text h1 + p, .blk-text h2 + p, .blk-text h3 + p, .blk-text h4 + p { margin-top: 0.5em; }
.sqsrte-small { font-size: var(--fs-small); }
.sqsrte-large { font-size: var(--fs-large); }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--c-muted); }
strong { font-weight: 700; }
em { font-style: italic; }
ul { padding-left: 1.4em; }
li > p { margin: 0.5em 0; }
hr { border: 0; height: 1px; margin: 0; background: currentColor; width: 100%; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: inherit; }
.blk-text a, .site-footer a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size 0.3s ease, opacity 0.2s ease;
}
.blk-text a:hover, .site-footer a:hover { background-size: 0 1px; background-position: 100% 100%; }
.blk-text h1 a { background-size: 100% 2px; }
.blk-text h1 a:hover { background-size: 0 2px; }

:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.theme-black :focus-visible, .site-footer .theme-black :focus-visible { outline-color: var(--c-white); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  padding: 0.6rem 1.2rem; background: var(--c-primary); color: var(--c-white);
  border-radius: var(--radius-pill); text-decoration: none; font-size: var(--fs-small);
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: var(--fs-body); letter-spacing: var(--tracking); line-height: 1.2;
  padding: 0.6rem 1.2rem; border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer; transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-outline { background: transparent; color: var(--c-black); border: 2px solid var(--c-black); }
.btn-outline:hover { background: var(--c-black); color: var(--c-white); }
.btn-block { width: 100%; font-size: var(--fs-small); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 2vw var(--gutter); min-height: 72px;
  max-width: calc(var(--max-w) + 2 * var(--gutter)); margin: 0 auto;
}
.logo { justify-self: start; display: block; width: 109px; }
.logo img { width: 109px; height: auto; aspect-ratio: 109 / 32; }
.main-nav { display: flex; gap: 1.2em; justify-self: center; }
.nav-link {
  font-size: var(--fs-body); line-height: 1.7; padding: 0.1em 0; text-decoration: none;
  letter-spacing: normal; color: var(--c-primary);
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-size: 0 1px; background-position: 0 100%; transition: background-size 0.3s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { background-size: 100% 1px; }
.header-cta { justify-self: end; }
.burger {
  display: none; justify-self: end; width: 44px; height: 44px; padding: 0; border: 0; background: none;
  cursor: pointer; position: relative; color: var(--c-primary);
}
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform 0.3s ease, top 0.3s ease; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1; background: var(--c-white);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 8vw) var(--gutter) 8vw;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 0.6em; }
.mnav-link { font-size: 8.5vw; line-height: 1.2; text-decoration: none; color: var(--c-primary); }
.mnav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.mobile-cta { width: 100%; }
body.menu-open { overflow: hidden; }

@media (max-width: 767px) {
  /* Squarespace scales type by viewport height on phones */
  :root { --vw: 1vh; }
  .blk.blk-mhide { display: none; }
  .logo, .logo img { width: 102px; }
  .header-inner { grid-template-columns: 1fr auto; padding: 4vw var(--gutter); min-height: 104px; }
  .main-nav, .header-cta { display: none; }
  .burger { display: block; }
}

/* --------------------------------------------------------------------------
   Sections + Fluid grid
   -------------------------------------------------------------------------- */
.sec { position: relative; isolation: isolate; }
.sec-bg { position: absolute; inset: 0; z-index: -1; background: var(--sec-bg, var(--c-white)); }
.sec.w-inset { padding-block: var(--gutter); }
.sec.w-inset .sec-bg { inset: var(--gutter); }
.sec.h-custom > .fe { padding-block: 0.1vw; }
.h-small { min-height: 33vh; }
.h-medium { min-height: 66vh; }
.h-large { min-height: 100vh; }
.sec.h-small > .fe { padding-block: var(--pad-small); }
.sec.h-medium > .fe { padding-block: var(--pad-medium); }
.sec { display: flex; flex-direction: column; justify-content: center; }
main > .sec:first-child { padding-top: var(--header-h); }

.theme-white, .theme-white-bold { --sec-bg: var(--c-white); color: var(--c-primary); }
.theme-light-bold { --sec-bg: var(--c-light); color: var(--c-black); }
.theme-bright { --sec-bg: var(--c-bright); color: var(--c-black); }
.theme-black { --sec-bg: var(--c-primary); color: var(--c-white); }

.fe {
  --cols: 8;
  --g: var(--gap, 11px);
  --grid-gutter: calc(var(--gutter) - var(--g));
  --cell: calc((var(--max-w) - var(--g) * (var(--cols) - 1)) / var(--cols));
  display: grid; position: relative; width: 100%;
  grid-template-columns: minmax(var(--grid-gutter), 1fr) repeat(var(--cols), minmax(0, var(--cell))) minmax(var(--grid-gutter), 1fr);
  grid-template-rows: repeat(var(--rows-m), minmax(24px, auto));
  gap: var(--g);
  overflow-x: clip;
}
.w-inset .fe { --grid-gutter: calc(var(--gutter) * 2 - var(--g)); }
@media (min-width: 768px) {
  .fe {
    --cols: 24;
    --cw: min(var(--max-w), calc(100vw - var(--gutter) * 2));
    grid-template-rows: repeat(var(--rows-d), minmax(calc(var(--cw) * var(--row-scale)), auto));
  }
  .w-inset .fe { --cw: min(var(--max-w), calc(100vw - var(--gutter) * 4)); --cell: calc((var(--cw) - var(--g) * 23) / 24); }
}

.blk {
  grid-area: var(--ma); z-index: var(--mz, 1); min-width: 0;
  display: flex; flex-direction: column; justify-content: var(--mj, flex-start);
}
@media (min-width: 768px) {
  .blk { grid-area: var(--da); z-index: var(--dz, 1); justify-content: var(--dj, flex-start); }
}
.blk-hr { justify-content: center; }
.blk-shape { background: var(--shape); }

/* Scaled headline text (fitted to the block width by main.js) */
.scaled { font-size: var(--fs-h1); line-height: 1; white-space: nowrap; }
.scaled.is-fitted { white-space: nowrap; }
h3.scaled { line-height: 1; }

/* --------------------------------------------------------------------------
   Images
   -------------------------------------------------------------------------- */
.blk-image { position: relative; min-height: 1px; }
.img-link { display: block; position: absolute; inset: 0; }
.img-reveal { position: absolute; inset: 0; clip-path: inset(0 0 0 0); }
.img-frame { width: 100%; height: 100%; overflow: hidden; }
.img-frame picture, .img-frame img { width: 100%; height: 100%; }
.img-frame img { object-fit: cover; object-position: 50% 50%; }
.img-frame.fit-contain img { object-fit: contain; }
.img-link .img-frame img { transition: transform 0.6s ease; }
.img-link:hover .img-frame img { transform: scale(1.03); }
/* Shaped images keep the shape's own proportions and sit centered in their block (as on Squarespace) */
.img-reveal:has(> [class*="shape-"]) { container-type: size; display: flex; align-items: center; justify-content: center; }
.img-frame[class*="shape-"] { width: min(100cqw, 100cqh * var(--ar)); height: min(100cqh, 100cqw / var(--ar)); flex: none; }
.shape-ellipse, .shape-circle { --ar: 1; }
.shape-double, .shape-bowtie, .shape-scallop { --ar: 1.5; }
.shape-slant { --ar: 0.666; }
.shape-ellipse { clip-path: url(#clip-ellipse); }
.shape-circle { clip-path: url(#clip-circle); }
.shape-double { clip-path: url(#clip-double); }
.shape-bowtie { clip-path: url(#clip-bowtie); }
.shape-scallop { clip-path: url(#clip-scallop); }
.shape-slant { clip-path: url(#clip-slant); }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.blk-marquee { justify-content: center; }
.marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 30s) linear infinite; }
.marquee__item { font-size: var(--fs-h1); line-height: 1.4; white-space: nowrap; padding-right: 0.6em; }
.marquee--big .marquee__item { font-size: var(--fs-marquee-big); line-height: 1.2; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */
.blk-acc { justify-content: flex-start; }
.acc { list-style: none; padding: 0; margin: 0; }
.acc__item { border-bottom: 1px solid currentColor; }
.acc__item:first-child { border-top: 1px solid currentColor; }
.acc__heading { font-size: var(--fs-body); line-height: 1.2; margin: 0; }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9em 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left;
  font: inherit; letter-spacing: var(--tracking);
}
.acc__icon { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor;
  transition: transform 0.3s ease;
}
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(0deg); }
.acc__panel { padding: 0 0 1em; }
.acc__panel p { margin: 0; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.site-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-legend { padding: 0; font-size: var(--fs-body); margin-bottom: 0.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label { font-size: var(--fs-small); }
.field label.field-label-lg { font-size: var(--fs-body); }
.req { font-size: 0.85rem; color: #5f7166; margin-left: 0.2em; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-body); letter-spacing: normal; color: var(--c-primary);
  background: transparent; border: 1px solid var(--c-input-border); border-radius: 20px;
  padding: 0.45rem 0.9rem; min-height: 40px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--c-primary); outline: 2px solid var(--c-focus); outline-offset: 2px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b00020; }
.field-msg { font-size: 0.85rem; color: #b00020; }
.form-error { color: #b00020; font-size: var(--fs-small); }
.form-success p { font-size: var(--fs-body); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }


/* --------------------------------------------------------------------------
   Work index grid
   -------------------------------------------------------------------------- */
.sec-work-grid { padding-bottom: var(--pad-medium); }
.container { width: 100%; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4.8vw; row-gap: 8.5vw; }
.work-card a { display: block; text-decoration: none; color: inherit; }
.work-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.work-card__img picture, .work-card__img img { width: 100%; height: 100%; }
.work-card__img img { object-fit: cover; transition: transform 0.6s ease; }
.work-card a:hover .work-card__img img { transform: scale(1.05); }
.work-card__title { font-size: var(--fs-h4); line-height: 1.2; margin-top: 1.2rem; }
.work-card a:focus-visible { outline-offset: 6px; }
@media (max-width: 767px) { .work-grid { grid-template-columns: 1fr; row-gap: 24vw; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer .sec.h-small > .fe { padding-block: var(--pad-small); }

/* --------------------------------------------------------------------------
   Scroll animations (fade + rise, like the original "flex" animation)
   -------------------------------------------------------------------------- */
.js .anim { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .anim.in { opacity: 1; transform: none; }
.js .blk-image.anim { transform: none; }
.js .blk-image.anim .img-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.19,1,.22,1); }
.js .blk-image.anim.in .img-reveal { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .js .anim, .js .blk-image.anim .img-reveal { opacity: 1; transform: none; clip-path: none; transition: none; }
}
