/*
Theme Name: Trust the Beard
Theme URI: https://trustthebeard.net/
Author: Vernon Zehr / OpenAI collaboration
Description: A lean custom ClassicPress theme for Trust the Beard: one-page portfolio, animated day/night hero, sticky navigation, section tracking, and contact modal.
Version: 0.1.21
Requires PHP: 7.4
Text Domain: trust-the-beard
*/

/* LOCAL VARIABLE FONTS */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('./fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('./fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Encode Sans';
  src: url('./fonts/EncodeSans-VariableFont_wdth,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('./fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('./fonts/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --ttb-day: #f2be24;
  --ttb-night: #086fa6;
  --ttb-blue: #0489af;
  --ttb-red: #bc0000;
  --ttb-gray: #54626e;
  --ttb-dark: #282929;
  --ttb-cream: #f6f2e8;
  --ttb-white: #ffffff;
  /* Navigation scales gently with browser width; the min/max keep it sane. */
  --ttb-nav-height: clamp(58px, 4.25vw, 72px);
  --ttb-nav-height-small: clamp(40px, 2.8vw, 46px);
  --ttb-content: 1180px;
}


/* moved the heading parallax section header styles from inline to here for testing */


.ttb-parallax-layer.three-viewings { 
    --data-parallax:7;
    --bottom:-30%;
    --width:17.2308vw;
    --height:auto;
    --x:89.4615vw;
    --y:-2.1538vw;
}

.ttb-parallax-layer.the-nerd { 
    --data-parallax:12;
    --bottom:-30%;
    --width:17.3846vw;
    --height:auto;
    --x:80vw;
    --y:8.3846vw;
}

.ttb-parallax-layer.rock-roll-heaven { 
    --data-parallax:3;
    --bottom:-30%;
    --width:12.7692vw;
    --height:auto;
    --x:77.0769vw;
    --y:-5.3077vw;
}

.ttb-parallax-layer.motf { 
    --data-parallax:4;
    --bottom:-30%;
    --width:25.7692vw;
    --height:auto;
    --x:23.4615vw;
    --y:-4.1538vw;
}

.ttb-parallax-layer.lifex3 { 
    --data-parallax:5;
    --bottom:-30%;
    --width:15.0769vw;
    --height:auto;
    --x:75.4615vw;
    --y:-6.1538vw;
}

.ttb-parallax-layer.mineola-twins { 
    --data-parallax:6;
    --bottom:-30%;
    --width:30.4615vw;
    --height:auto;
    --x:54vw;
    --y:-11.1538vw;
}

.ttb-parallax-layer.ballyhoo { 
    --data-parallax:7;
    --bottom:-30%;
    --width:25.6923vw;
    --height:auto;
    --x:50.9231vw;
    --y:-10vw;
}

.ttb-parallax-layer.cmt { 
    --data-parallax:8;
    --bottom:-30%;
    --width:21.3077vw;
    --height:auto;
    --x:67.3846vw;
    --y:-7.0769vw;
}

.ttb-parallax-layer.youcanttakeitwithyou { 
    --data-parallax:9;
    --bottom:-30%;
    --width:17.1538vw;
    --height:auto;
    --x:-3.3846vw;
    --y:-0.9231vw;
}

.ttb-parallax-layer.love-song { 
    --data-parallax:10;
    --bottom:-30%;
    --width:10vw;
    --height:auto;
    --x:84.4615vw;
    --y:-3.1538vw;
}

.ttb-parallax-layer.doubt { 
    --data-parallax:11;
    --bottom:-30%;
    --width:13.5385vw;
    --height:auto;
    --x:1.5385vw;
    --y:3.0769vw;
}

.ttb-parallax-layer.dearly-departed { 
    --data-parallax:12;
    --bottom:-30%;
    --width:20.8462vw;
    --height:auto;
    --x:60.8462vw;
    --y:3.9231vw;
}

.ttb-parallax-layer.end-of-the-world4 { 
    --data-parallax:13;
    --bottom:-30%;
    --width:18.3077vw;
    --height:auto;
    --x:5.8462vw;
    --y:-0.4615vw;
}

.ttb-parallax-layer.blue-hotel { 
    --data-parallax:14;
    --bottom:-30%;
    --width:21.6154vw;
    --height:auto;
    --x:35.5385vw;
    --y:-2.7692vw;
}

.ttb-parallax-layer.ktmkts { 
    --data-parallax:15;
    --bottom:-30%;
    --width:20.1538vw;
    --height:auto;
    --x:13.1538vw;
    --y:-3.6154vw;
}

.ttb-parallax-layer.almost-maine { 
    --data-parallax:16;
    --bottom:-30%;
    --width:12.6923vw;
    --height:auto;
    --x:20.5385vw;
    --y:-0.9231vw;
}

.ttb-parallax-layer.all-in-the-timing { 
    --data-parallax:17;
    --bottom:-30%;
    --width:19.7692vw;
    --height:auto;
    --x:49.3846vw;
    --y:-3vw;
}

.ttb-parallax-layer.harvey-painting { 
    --data-parallax:18;
    --bottom:-30%;
    --width:10.0769vw;
    --height:auto;
    --x:35.9231vw;
    --y:5.4615vw;
}

.ttb-parallax-layer.harvey-2012 { 
    --data-parallax:19;
    --bottom:-30%;
    --width:13.4615vw;
    --height:auto;
    --x:41.7692vw;
    --y:6.3077vw;
}

.ttb-parallax-layer.odd-couple {
    --data-parallax:4;
    --bottom:-30%;
    --width:24.3846vw;
    --height:auto;
    --x:96.8462vw;
    --y:-5.3077vw;
}

.ttb-parallax-layer.enchanted-april { 
    --data-parallax:21;
    --bottom:-30%;
    --width:14.6154vw;
    --height:auto;
    --x:25.4615vw;
    --y:3.9231vw;
}

.ttb-parallax-layer.arsenic-old-lace { 
    --data-parallax:22;
    --bottom:-30%;
    --width:15.1538vw;
    --height:auto;
    --x:105.4615vw;
    --y:6.5385vw;
}

.ttb-parallax-layer.deathtrap { 
    --data-parallax:23;
    --bottom:-30%;
    --width:16.0769vw;
    --height:auto;
    --x:45.6154vw;
    --y:9.9231vw;
}

/* =============================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--ttb-nav-height-small); }
body {
  margin: 0;
  color: var(--ttb-dark);
  background: var(--ttb-white);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ttb-blue); text-decoration: none; }
a:hover { opacity: .72; }
img, svg { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.ttb-container { width: min(calc(100% - 48px), var(--ttb-content)); margin-inline: auto; }
.ttb-display,
h1, h2, h3, .site-nav { font-family: "Plus Jakarta Sans", Arial, sans-serif; }

/* NAVIGATION */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--ttb-nav-height);
  background: var(--ttb-white);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  transition: height .28s ease, box-shadow .28s ease;
}
.site-header.is-compact {
  height: var(--ttb-nav-height-small);
  box-shadow: 0 3px 16px rgba(0,0,0,.08);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand {
  display: flex;
  align-items: center;
  color: var(--ttb-dark);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.06em;
  transition: transform .28s ease, opacity .28s ease;
  transform-origin: left center;
}
.site-brand__mark { display: block; }
.site-brand__mark img { display: block; width: auto; height: calc(var(--ttb-nav-height) * .77); }
.site-header.is-compact .site-brand { transform: scale(.76); opacity: .72; }

.site-nav {
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
}
.primary-menu {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-menu > li { margin: 0; padding: 0; }
.primary-menu > li + li { border-left: 2px solid #ccc; }
.primary-menu > li > a {
  display: block;
  padding: 0 10px;
  color: var(--ttb-gray);
  transition: color .18s ease, opacity .18s ease;
}
.primary-menu > li > a.is-active { color: var(--ttb-blue); }
.primary-menu .contact-link { color: var(--ttb-gray); cursor: pointer; }
.primary-menu .contact-link:hover { color: var(--ttb-blue); }

/* HERO */
#home { scroll-margin-top: 0; }

/*
 * HERO TUNING
 * -----------
 * These are the useful knobs. They intentionally use direct, readable values
 * rather than nested formulas so future tweaks are obvious.
 *
 * --ttb-head-*             size / position of the beard SVG
 * --ttb-daynight-*         size / rotation-center position of the day/night SVG
 */
#parallax-window-hero {
  /* Easy visual controls inside the proportional hero stage. */
  --ttb-head-top: 5%;
  --ttb-head-right: 10%;
  --ttb-head-width: 100%;
  --ttb-head-ratio: 10 / 7;

  /*--ttb-daynight-width: 125%;
  --ttb-daynight-pivot-x: 50%;
  --ttb-daynight-pivot-y: 155%;*/
	
  --ttb-daynight-width: 145%;
  --ttb-daynight-pivot-x: 50%;
  --ttb-daynight-pivot-y: 131%;

  /*
   * ONE PROPORTIONAL STAGE
   * ----------------------
   * The hero keeps this same shape at every browser width. There is no
   * load-time measurement or second sizing mode, so loading narrow and
   * resizing down from wide produce the same composition.
   */
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1.84 / 1;
  overflow: hidden;
  isolation: isolate;
}

.hero-color-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden; /* this is the mask/window for the huge rotating layer */
  background-color: var(--ttb-hero-day, var(--ttb-day));
}

/*
 * DAY / NIGHT ROTATING ARTWORK
 * ----------------------------
 * The SVG itself is the rotating object. No fake Divi sizing box, no cover,
 * no contain, and no side cropping. The element uses the SVG's real viewBox
 * ratio (1287.3 x 1657.6), so the artwork always fits its box exactly.
 *
 * left/top identify the artwork's rotation center. Because day-night.js uses
 * translate(-50%, -50%), that center sits at the easy-to-tune pivot values
 * below. As the hero stage scales, the artwork and pivot scale with it.
 */
.split-time-bg {
  position: absolute;
  z-index: 1;
  left: var(--ttb-daynight-pivot-x);
  top: var(--ttb-daynight-pivot-y);
  width: var(--ttb-daynight-width);
  aspect-ratio: 1896.4 / 2177.2;
  max-width: none;

  background-image: url("assets/images/day-night.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  transform-origin: center center;
  pointer-events: none;
  will-change: transform;
}

/*
 * ORIGINAL head geometry. This is now known to work with Fluent Snippets OFF.
 * Keep this layer boring: one element, one SVG background, one parallax target.
 */
#homepage-hero-parallax-bg {
  position: absolute !important;
  top: var(--ttb-head-top);
  right: var(--ttb-head-right) !important;
  width: var(--ttb-head-width) !important;
  height: auto !important;
  aspect-ratio: var(--ttb-head-ratio);
  background-size: contain !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
  z-index: 2 !important;
  pointer-events: none !important;
  will-change: transform;
	filter: drop-shadow(0px 0px 25px rgba(0, 0, 0, 0.25)) !important;
}

/* #text-block = parallax target; dynamic-time-text-group = color target. */
.hero-copy {
  position: absolute;
  z-index: 3;
  left: clamp(28px, 7vw, 130px);
  top: 20%;
  width: min(42vw, 690px);
  color: var(--ttb-night);
  will-change: transform;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.3rem, 7.3vw, 8.1rem);
  line-height: .79;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.hero-copy p { margin: 18px 0 0; font-size: clamp(1.05rem, 1.8vw, 2.05rem); line-height: 1.08; }

.dynamic-time-text-group h1,
.dynamic-time-text-group h2,
.dynamic-time-text-group h3 { color: inherit !important; }

.is-daytime-mode { background-color: var(--ttb-hero-day, var(--ttb-day)) !important; }
.is-daytime-mode .dynamic-time-text-group { color: var(--ttb-hero-day-text, var(--ttb-night)) !important; }
.is-nighttime-mode { background-color: var(--ttb-hero-night, var(--ttb-night)) !important; }
.is-nighttime-mode .dynamic-time-text-group { color: var(--ttb-hero-night-text, var(--ttb-day)) !important; }

/* HERO BRAND TYPOGRAPHY */
.logo-beard {
  margin: 0;
  font-family: 'Encode Sans', Helvetica, Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 9vw !important;
  letter-spacing: -.1em !important;
  line-height: .75;
}
.logo-trust {
  margin: 0;
  font-family: 'Encode Sans', Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 5.25vw !important;
  letter-spacing: -.05em !important;
}
.logo-tagline {
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 2.5vw !important;
  line-height: 2.25vw !important;
}

#text-block {
  top: 12vw !important;
  left: 6vw;
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.5));
}

/* INTRO 
.intro { position: relative; z-index: 10; background: var(--ttb-white); padding: clamp(58px, 7vw, 110px) 0; }*/
.intro { position: relative; z-index: 10; background: var(--ttb-white); padding: 4vw 0; }
.intro p { max-width: 920px; margin: 0 auto; margin-bottom: 55px; text-align: center; color: var(--ttb-gray); font-size: clamp(1.15rem, 2vw, 1.6rem); }

/* MAJOR SECTIONS */
.ttb-section { scroll-margin-top: calc(var(--ttb-nav-height-small)-10); background: white; }
.section-visual {
  position: relative;
  min-height: clamp(250px, 33vw, 420px);
  overflow: hidden;
  display: grid;
  place-items: end center;
  padding: 36px 24px;
  background:
    linear-gradient(110deg, rgba(4,137,175,.96), rgba(8,111,166,.86)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 42px);
}
.section-visual--design { background: linear-gradient(110deg, rgba(84,98,110,.96), rgba(40,41,41,.90)); }
.section-visual--standard {
  min-height: clamp(180px, 20vw, 300px);
  background: linear-gradient(110deg, rgba(84,98,110,.96), rgba(40,41,41,.90));
}

.section-heading {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.96);
  padding: 2vw 0 3vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}
.section-heading h2 { margin: 0; color: var(--ttb-gray); font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.045em; line-height: 1; }
.section-heading p { margin: 0; color: var(--ttb-gray); font-size: clamp(.92rem, 1.45vw, 1.35rem); text-transform: uppercase; letter-spacing: .03em; }

/*.section-content { padding: clamp(55px, 7vw, 100px) 0 clamp(90px, 10vw, 150px); }*/

.section-content { padding: 0 0 6vw; }


/* FOOTER */
.site-footer { min-height: 138px; /*height: 8vw;*/ display: flex; align-items: center; background: #171717; color: #818181; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.footer-brand { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; letter-spacing: -.04em; }
.footer-brand img { width: 30%; }

/* CONTACT MODAL */
.contact-modal[hidden] { display: none; }
.contact-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.5); }
.contact-dialog { width: min(680px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: white; border-radius: 18px; box-shadow: 0 22px 70px rgba(0,0,0,.27); }
.contact-dialog__head { position: relative; padding: 28px 46px 24px; text-align: center; background: #2f6ead; color: var(--ttb-day); border-radius: 18px 18px 0 0; }
.contact-dialog__head h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.6rem); line-height: 1; }
.contact-dialog__head p { margin: 6px 0 0; font-size: 1.15rem; }
.contact-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; color: white; font-size: 2rem; line-height: 1; cursor: pointer; }
.contact-form { padding: 30px 42px 36px; }
.contact-form label { display: block; margin-bottom: 18px; }
.contact-form span { display: block; font-size: .8rem; color: var(--ttb-gray); margin-bottom: 3px; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid #bbb; border-radius: 0; padding: 9px 0; outline: none; background: transparent; }
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ttb-blue); }
.contact-form button[type=submit] { float: right; border: 0; border-radius: 999px; background: #2f6ead; color: white; padding: 9px 20px; margin-bottom: 20px; font-weight: 700; cursor: pointer; }
.contact-status { clear: both; padding-top: 18px; color: var(--ttb-gray); font-size: .9rem; }

/* BASIC CONTENT TEMPLATES */
.site-main-generic { padding: calc(var(--ttb-nav-height) + 55px) 0 100px; }
.site-main-generic h1 { font-size: clamp(2.4rem, 6vw, 5rem); }

@media (max-width: 980px) {
  .hero-copy { left: 28px; width: 48vw; }
  /*#homepage-hero-parallax-bg { top: -1.5%; }*/
}
@media (max-width: 720px) {
  :root { --ttb-nav-height: 66px; --ttb-nav-height-small: 56px; }
  .ttb-container { width: min(calc(100% - 30px), var(--ttb-content)); }
  .site-brand__mark { font-size: .95rem; }
  .site-nav { font-size: .8rem; }
  .primary-menu > li > a { padding-inline: 7px; }
  .hero-copy { left: 20px; top: 20%; width: 78vw; }
  .hero-copy h1 { font-size: clamp(3rem, 16vw, 5.4rem); }
	
    #homepage-hero-parallax-bg {
        top: 17.75% !important;
    }
	
#text-block {
  top: 18vw !important;
}

	
/*	
  #homepage-hero-parallax-bg {
    top: -0.75%;
    right: -18vw !important;
    width: 125% !important;
    height: 88vw !important;
  }
*/
	
	
  .section-heading { align-items: center; flex-direction: row; }
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; }
  .contact-form { padding-inline: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}



/* MOTION PARALLAX HEADER
   The movement engine is reusable: future parallax sections only need a
   [data-ttb-parallax] stage and layers carrying data-parallax values. */
.section-visual--motion {
  min-height: 0;
  height: 23vw;
  padding: 0;
  display: block;
  background: none;
}

.section-visual--design {
  background: url(assets/images/design/design-head-A.webp);
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 0;
  height: 18vw;
  padding: 0;
  display: block;
}


.section-visual--motion::before { content: none; }
.section-visual--motion .section-heading {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  z-index: 40;
}

.ttb-parallax-stage {
  --layer-scale: 1;
  --x-scale: 1;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* section heading parallax inner inset shadow */
.ttb-parallax-layer.layer-shadow {
	box-shadow: inset 0px 0px 30px 0px rgba(0, 0, 0, .5);
	z-index: 10;
	position: relative;
	width: 100%;
	height: 100%;
	display: block;
}

.ttb-parallax-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgb(49 152 226) 0%,
    rgb(108 201 255) 34%,
    rgb(108 201 255) 75%,
    rgb(0 95 163) 100%
  );
}

.section-visual--design .ttb-parallax-viewport  {
background: none;
}

.ttb-parallax-layer {
  position: absolute;
  left: calc(var(--x, 0) * var(--x-scale));
  bottom: calc(var(--bottom, 0) * var(--layer-scale));
  width: calc(var(--width, auto) * var(--layer-scale));
  height: calc(var(--height, auto) * var(--layer-scale));
  z-index: var(--z, 1);
  transform: translate3d(var(--parallax-x, 0px), 0, 0);
  will-change: transform;
}
.ttb-parallax-layer > img,
.ttb-parallax-layer > video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgb(0 0 0 / 30%));
}
.ttb-parallax-logo {
  top: 0;
  left: 0;
  bottom: auto;
  width: 320%;
  height: 8vw;
  background: url('assets/images/motion/ttb_head.svg') repeat-x 0 0 / 30% auto;
  background-position-x: var(--parallax-x, 0px);
  transform: none;
  z-index: 0;
  will-change: background-position;
}
.ttb-parallax-layer--jonathon { overflow: visible; }
.ttb-parallax-layer--jonathon > .jonathon-body,
.ttb-parallax-layer--jonathon > .jonathon-head {
  position: absolute;
  inset: 0;
}
.ttb-nested-parallax {
  transform: translate3d(var(--parallax-x, 0px), 0, 0);
  will-change: transform;
}
.ttb-parallax-layer--glow {
  filter:
    drop-shadow(0 0 12px rgb(255 255 255 / 40%))
    drop-shadow(0 0 6px rgb(255 255 255 / 100%));
}
.ttb-parallax-layer--glow > img { filter: none; }
.ttb-parallax-layer.is-returning,
.ttb-nested-parallax.is-returning { transition: transform 500ms ease-in-out; }
.ttb-parallax-logo.is-returning { transition: background-position 500ms ease-in-out; }

@media (max-width: 980px) {
  .section-visual--motion { height: 21vw; }
  .motion-parallax { --layer-scale: .9; }
}

/* These are the original prototype's phone art-direction values.
   Mobile presentation is intentionally still provisional. */
@media (max-width: 479px) {
  .section-visual--motion { height: 33vw; }
  .motion-parallax { --layer-scale: 1.4; }
  .motion-parallax .elaine    { --x:-2vw !important; }
  .motion-parallax .tech      { --x:-.25vw !important; }
  .motion-parallax .jonathon  { --x:4vw !important; --bottom:-11% !important; }
  .motion-parallax .don       { --x:78vw !important; }
  .motion-parallax .sidney    { --x:53vw !important; }
  .motion-parallax .larry     { --x:13vw !important; }
  .motion-parallax .agent     { --x:12vw !important; }
  .motion-parallax .fritz     { --x:37vw !important; }
  .motion-parallax .alex      { --x:39vw !important; }
  .motion-parallax .gary      { --x:45vw !important; }
  .motion-parallax .happybear { --x:8vw !important; }
  .motion-parallax .moho      { --x:5vw !important; --bottom:-3% !important; --width:25vw !important; --z:15 !important; margin-bottom:4%; }
  .motion-parallax .vern      { --x:23vw !important; --z:16 !important; }
  .motion-parallax .toongirl  { --x:60vw !important; --bottom:-24% !important; }
	
  #text-block {
    top: 23vw !important;
  }

  #homepage-hero-parallax-bg {
        top: 21.25% !important;
        width: 88% !important;
  }

  .section-heading h2 { font-size: clamp(1.5rem, 4vw, 3.6rem); }
.section-heading p { font-size: clamp(.8rem, 1.45vw, 1.35rem); }


}

/* =Galleries from Twenty Seventeen
----------------------------------------------- */
.gallery {
    margin-bottom: 1.5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px; /* Clean spacing between thumbs */
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    margin: 0;
}

/* Flexible grid mapping based on chosen columns */
.gallery-columns-2 .gallery-item { max-width: calc(50% - 8px); }
.gallery-columns-3 .gallery-item { max-width: calc(33.33% - 11px); }
.gallery-columns-4 .gallery-item { max-width: calc(25% - 12px); }
.gallery-columns-5 .gallery-item { max-width: calc(20% - 13px); }
.gallery-columns-6 .gallery-item { max-width: calc(16.66% - 14px); }
.gallery-columns-7 .gallery-item { max-width: calc(14.28% - 14px); }
.gallery-columns-8 .gallery-item { max-width: calc(12.5% - 14px); }
.gallery-columns-9 .gallery-item { max-width: calc(11.11% - 14px); }

.gallery-icon img {
    margin: 0 auto;
}

.gallery-caption {
    display: block;
    font-size: 13px;
    font-style: italic;
    line-height: 1.3;
    padding: 8px 0;
}
/* Maintain the exact native size and shape without any cropping */
.gallery-item img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important; /* Disables the square forcing */
    object-fit: fill !important;    /* Tells the image to render its full uncropped content */
    display: block !important;
}

/* section H2 subheads */

    /* The Independent Fading Background & Border Layer */

	.fading-heading {
	  position: relative;
	  z-index: 1;
	  padding: 10px 0;
	  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
	  /* Centering and Width Controls */
	  width: 80%;
	  margin: 0vw auto 1vw auto; /* 0 top/bottom, auto left/right centers the block */
	  
	  /* Typography Rules */
	  color: #54626e;
	  text-align: center; /* Centers the text inside the block */
	  text-transform: uppercase;
	  font-weight: 500;
	  font-size: 1.5em;
	  text-box-trim: trim-both;
	  text-box-edge: cap alphabetic;
	}
	
	.fading-heading ~ p {
      font-family: 'Roboto', system-ui, -apple-system, sans-serif;
		font-weight: 200;
		font-size: 1.2em;
		padding: 0;
		margin: 0;
		padding-bottom: 1vw;
	 	text-align: center; /* Centers the text inside the block */
	}

/* Background and mask applied only to the pseudo-layer */
    .fading-heading::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      z-index: -1;
      
      background-color: #f6f2e8;
      border-top: 1px solid #bbbbbb;
      border-bottom: 1px solid #bbbbbb;
      
      -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
      mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    }


