/* Archivist marketing site — single global stylesheet. */
/** Font binding — Merriweather & Titillium (WOFF2 inlined for speed) **/





:root {
  /* Warm archival palette (from app) */
  --color-bg: #1a1815;
  --color-bg-elevated: #242220;
  --color-border: #3d3935;
  --color-border-subtle: #2d2a27;
  --color-text: #f5f0e8;
  --color-text-muted: #a09890;
  --color-text-subtle: #706860;
  --color-accent: #c9a66b;
  --color-accent-hover: rgb(212, 180, 122);
  --color-bg-hover: rgba(128, 96, 80, 0.15);

  --font-heading: "Titillium", system-ui, sans-serif;
  --font-copy: "Merriweather", Georgia, "Times New Roman", serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-8: 3rem;
  --radius-sm: 2px;
  --radius-md: 4px;
  --max: 72rem;
  --content-pad: clamp(1.25rem, 4vw, 2rem);
  --je-pad:  clamp(1rem, 1.3vw, 1.2rem) clamp(1rem, 4vw, 8rem);
  --header-h: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
  font-size:14pt;
  line-height:1.3rem;
  font-family: var(--font-copy);
  background-color: var(--color-bg);
}

/* --- Type: heading (Titillium) — one role, size steps only --- */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--color-text);
  margin-top:1rem;
  position:relative;
  padding: 0 var(--space-8);
  padding: var(--je-pad)
}

h1
{
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 300;
  margin: 0 0 var(--space-4);
}

h2
{
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  margin-top:1.5rem;

}

h3{
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  line-height:1.3rem;
  margin: 0.5rem 0 ;
  align-self: baseline;
}




body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,1), 5vh, rgba(0,0,0,.8), 90vh, rgba(0,0,0,0));
  color: var(--color-text-muted);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

strong {
  color:var(--color-text);
  font-weight:bold;
}

figure
{
  position:relative;
}

figcaption
{
  font-family: Titillium;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02rem;
  position:absolute;
  bottom:-0.2REM;
  color: var(--color-text-subtle);
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent-hover);
}

p {
  margin-bottom:2rem;
  max-width: 35rem;
  line-height:clamp(1.4rem, 2.2vw, 2.0rem);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  padding: var(--je-pad);
  letter-spacing: 0.01rem;
  text-wrap:pretty;
}


/* this is for a hero, profile, or feature section */
section
{
  display:block;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-text-subtle);
}
section:first-of-type
{
  border-top:none;
}

.matrix li
{
  display:grid;
  grid-template-columns:  1fr;
  grid-template-rows:   repeat(auto-fit);
  grid-template-areas:  
                        "head" 
                        "img"                    
                        "copy"
                        ;
  
  border-bottom:1px dotted rgba(255,255,255, 0.2);
  padding:0;
  margin:0;
  
}
.matrix li:nth-child(even)
{
  background-color: rgba(0, 0, 0, 0.45);
}

.matrix  li > img
{
  grid-area: img;
  
  overflow:hidden;
  height: calc(100% -20px);
  max-width: 100%;
  padding:0 1rem;
  border-radius: var(--space-2);

}
.matrix li > h3
{
  /* background: linear-gradient(to bottom, rgba(0,0,0,0.8) 2rem, rgba(0,0,0, 0) 3.5rem);
  --color-bg-rgb must be defined as "r,g,b" (e.g., 20,24,18) in your root for this to work. */
  text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0px 2px #000;
  z-index:1;
  margin-top:0;
}
.profile
{
  display:flex;  
  flex-flow:column;
  
}


@media (min-width: 768px) {
  section 
  {
    padding:0;
  }
  

  .matrix li
  {
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 3rem 1fr 1rem;
    grid-template-areas:  "head img img" 
                          "copy img img";
    gap: var(--space-1);
    padding-top:2rem;
    margin-top:0;
    min-width: 0;
    box-sizing: border-box;
  }
  .matrix li > img,
  .matrix li > h3,
  .matrix li > p {
    min-width: 0;
  }
  .matrix li:nth-child(even)
  {
    background-color: rgba(0, 0, 0, 0.45);
    grid-template-areas:  "img img head" 
                          "img img copy";
  }
  .matrix li:nth-child(even) > img
  {
    align-self:self-end;
    justify-self:end;
  }

  .matrix li > img 
  {
    margin-block: 2rem;
    margin: 2rem 0;
    margin-inline: 0;
    padding:0;
    max-height:50vh;
    border:2px solid rgb(12,12,12);
    box-shadow: 0 0 1rem 0 rgba(0,0,0,0.5);
    align-self:self-start;
    justify-self:start;
  }
  .profile
  { 
  flex-flow:row;
  
  }
} 

.matrix  li > h3
{
  grid-area: head;
  position:relative; z-index:1;
  background-color: transparent;
}
.matrix  li > p
{
  grid-area: copy;
  margin: 0;
}



.profile div
{
  flex: 1 1 0;
  
}

.profile div > h3
{
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  z-index: 1;
  position:relative;
  padding-left:3rem;
}

.profile  figure
{
  position:absolute;
  left:1.5rem; top:0; width:calc(100% - 3rem);
  padding:1rem;
  object-fit:contain;
  z-index:-1;
  box-shadow: 0 0 1rem 0 rgba(0,0,0,0.8),inset 0 0rem 12rem rgba(128,32,0,0.2);;
  aspect-ratio: 1 / 1;
  background-color: var(--color-text);
}
.profile figure > img
{
  width:100%;
  position:relative;
  object-fit:cover;
  height:100%;
  max-width:100%;
  display:block;
}
.profile figure::after
{
  box-shadow: inset 0 2rem 5rem rgba(0,0,0,0.9);
  display: block;
  position:absolute;
  left:1rem;
  top:1rem;
  right:1rem;
  bottom:1rem;
  content: " ";
  
  z-index:300;
}








.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top:-0.25rem;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-subtle);

}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: var(--header-h);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
  z-index:111;
}

.logo:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-cb {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  padding: 0.5rem;
  z-index: 120;
  margin-left: auto;
}

.nav-burger__line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  cursor: pointer;
  margin: 0;
}

.nav-cb:checked ~ .nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

.nav-cb:checked + .nav-burger .nav-burger__line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-cb:checked + .nav-burger .nav-burger__line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (min-width: 768px) {
  .site-header
  {
    border-radius: 0.25rem;
    box-shadow: 0 0 1rem 0 rgba(0,0,0,0.8);
    max-width:var(--max);
    margin: 0 auto;
  }
  .nav-burger,
  .nav-scrim {
    display: none;
  }
}


/* Top navigation  items */

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left:0;
  width:100%;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 5rem 1.5rem 1.5rem;
  background: var(--color-bg-elevated);
  border-left: 1px solid var(--color-border);
  transform: translateX(100%);
  transition: transform 0.2s;
}

.nav-cb:checked ~ .site-nav {
  transform: translateX(0);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  width: 100%;
}

.site-nav li {
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .site-nav {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    
    background: none;
    transform: none;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    width: auto;
  }
}

.site-nav__link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
}




@media (min-width: 768px) {
  .site-nav__link {
    border: 0;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
  }
  .site-nav__link:focus,
  .site-nav__link:hover {
    color: var(--color-text);
    text-decoration: none;
    background: var(--color-bg-hover);
    outline:none;
  }
}

.site-nav__link--cta,
.cta {
  display: inline-flex;
  clear:both;
  position:relative;
  font-family: var(--font-heading);
  line-height:clamp(1.4rem, 2.2vw, 2.0rem);
  font-size: clamp(1rem, 1vw, 1.2rem);
  align-items: center;
  justify-content: center;
  padding: 0.2rem 1rem;
  margin:0.2rem;
  text-wrap-mode: nowrap;
  border-radius: var(--radius-md);
  font-weight: 300;
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
  border: 1px solid var(--color-accent);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.site-nav__link--cta:hover,
.site-nav__link--cta:focus,
.cta:focus,
.cta:hover  {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-bg);
  outline: 1px solid var(--color-accent-hover);
  outline-offset: -1px;
  z-index:1;
}

.cta.disabled,
.cta:hover.disabled
{
  cursor:pointer;
  background:  rgba(234, 202, 141, 0.5);
  border: 0;
  position:relative
}
.cta.disabled .aside 
{
  font-size: 0.8rem;
  position:absolute;
  top:-0.1rem;
  color: rgb(244, 220, 202);
  left: 100%;
  padding:0;
  padding-left:0.5rem;
  width: 6rem;
  
  text-wrap-mode:wrap;
  text-wrap-style:balance;
  line-height:1rem;
}

@media (max-width: 600px)
{
  .no_mobile {
    display:none !important;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-subtle);
}



/*** per page visual effects ***/

  /* inline the style so that it doesn't pollute the main css*/
.hero
{
  position:relative;
}
.hero h1,
.hero p
  {
      max-width: 35rem;
  }
.hero h1
{
  padding-top:10vh;
}  


  .hero .trybox
  { display:none }

  .hero .cta
  {
    display: inline-flex;
    margin: 0 1rem;
  }

  @media (min-width: 768px) {  
    .hero .trybox
    {
        display:block;
        position:absolute;
        right: 2rem;
        bottom: 2rem;
        width: calc(40% - 4rem);
    }
    .hero .cta
    {
      display: none;
    }
    .hero h1
    {
      padding-top:40vh;
    }
  
  }

  /* 1. Setup the floating elements */
.shape {
  position: fixed; /* Keeps them in view while scrolling */
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0; /* Keep them behind text */
  opacity:0;
}




/* 2. Define the Scroll-Linked Animations */
@keyframes scatter-1 {
  from { transform: translate(0, 0) rotate(0deg);opacity:1;  }
  to { transform: translate(100vh, -30vh) rotate(20deg);opacity:0;  }
}

@keyframes scatter-2 {
  from { transform: translate(0, 0) rotate(0deg); opacity:1; }
  to { transform: translate(-50vh, 0) rotate(15deg);opacity:0;  }
}

@keyframes scatter-3 {
  from { transform: translate(0, -0) rotate(35deg);
         opacity:1; }
  to { transform: translate(25vh,-50vh) rotate(0deg);
      opacity:0; }
}

@keyframes fade-1 {
  from {
         opacity:0; }
  to {
      opacity:1; }
}


@supports not (animation-timeline: scroll() ) {
    .letter_no_animation {
      animation: mask_ffx linear; 
      top: -8%; right: 10%;
      background-image: url('/img/grandpasaul.png');
      width: 60%;
      height: 50%;
      display:block;
      opacity:1;
      position:absolute;
      transform: translate(0, -0) rotate(35deg);
    }
  }


@supports (animation-timeline: scroll() ) {
  .card {
    top: 2vh; right: -20%;
    width: 45%;
    height: 30vh;
    background-image: url('/img/card.png');
    animation: scatter-1 linear;
    animation-timeline: scroll(); /* The Magic Line */
    animation-range:  0 50vh;

  }

  .keys {
    width: 45%;
    height: 40%;
    top: 4vh; left: 0;
    background-image: url('/img/key3.png');
    animation: scatter-2 linear;
    animation-timeline: scroll();
    animation-range:  0 40vh;
    
  }
  .letter {
    top: -5%; right: 10%;
    background-image: url('/img/grandpasaul.png');
    width: 45%;
    height: 45%;
    animation: scatter-3 linear;
    animation-timeline: scroll();
    animation-range:  0 100vh;
  }
}
@supports (animation-timeline: scroll() ) {

  .fade {
    animation: fade-1 cubic-bezier(.3,0,.3,1) both;
    animation-timeline: scroll();
    animation-range:60vh 90vh;
  }
}
@supports not (animation-timeline: scroll() ) {
  .fade {
    opacity:0;
  }
}

  /** form items **/
  button {
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    display:inline-flex;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-md);
    align-items: center;
    color: var(--color-text);
    font-weight:500;
    min-width:5rem;
    box-sizing: border-box;
  }
  
  button[type="submit"] {
    background: var(--color-accent);
    color: var(--color-bg);
  }
  
  button[type="submit"]:hover {
    background: var(--color-accent-hover);
  }
  button:focus,
  button:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-border);
    outline:none;
  }
  
  form
  {
    display:flex;
    padding: 1rem;
    max-width:30rem;
    flex-flow:column;
    z-index:5;
    position:relative;
  }

  input {
		display: block;
		width: 100%;
		box-sizing: border-box;
    padding: 0.9rem 1rem 0.1rem 1rem;
		border: 1px solid var(--color-border, #3d3935);
		border-radius: var(--radius-md, 4px);
		background: var(--color-bg-elevated, #242220);
		color: var(--color-text, #f5f0e8);
		font-family: var(--font-copy);
		font-size: 1rem;
    line-height:1.2rem;
	}

  input:placeholder-shown
  {
    padding: .7rem 1rem 0.7rem 1rem;
  }

	input::placeholder {
		color: var(--color-text-subtle, #706860);
		font-style: oblique;
	}

	input:focus {
		outline:1px solid var(--color-accent); 
		outline-offset: 0;
		background-color:black;
	}

	input + label
	{
		display:block;
    font-size: 0.6rem;
    letter-spacing: 0.02rem;
    font-family: var(--font-heading);
    font-weight:bold;
    color:var(--color-text-muted);
    padding-left:1rem;
	}
	input:placeholder-shown + label
	{
		display:none;
	}


  
  