/* ============================================================
   CLARTÉ ACQUISITION — shared styles (index.html + work-with-us.html)
   Palette: cream + charcoal only. Typeface: Georgia only.
   ============================================================ */
:root{
  --bg:        #F6F2EB;               /* plain page background */
  --text:      #343431;               /* charcoal */
  --line:      rgba(52,52,49,.28);    /* hairlines on light backgrounds */
  --ink-deep:  #1F1F1D;               /* button hover sweep */
  --dark:      #343431;               /* dark band */
  --on-dark:   #F6F2EB;               /* text on the dark band */

  --serif: Georgia, 'Times New Roman', serif;
  --sans:  Georgia, 'Times New Roman', serif;   /* Georgia throughout */

  --ease-out:  cubic-bezier(.22,1,.36,1);
  --ease-soft: cubic-bezier(.45,0,.15,1);

  --nav-h: 84px;
  --pad-x: clamp(1.4rem, 5vw, 3rem);
}

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

html{ scroll-behavior:smooth; scroll-padding-top:100px; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-weight:400;
  font-size:1.05rem;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* No bold anywhere */
strong, b{ font-weight:400; font-style:normal; }

/* Main headings (h1/h2): Georgia italic, set tight. Sub-headings (h3) are upright. */
h1,h2,h3{
  font-family:var(--serif);
  font-style:italic;
  font-weight:400;
  line-height:1.08;
  letter-spacing:-.03em;
  word-spacing:-.06em;
  color:var(--text);
}
h3{ font-style:normal; letter-spacing:-.02em; word-spacing:-.04em; line-height:1.15; }

a{ color:inherit; }
::selection{ background:var(--text); color:var(--bg); }
:focus-visible{ outline:2px solid var(--text); outline-offset:4px; border-radius:1px; }

.skip-link{
  position:absolute; top:-100%; left:1rem; z-index:300;
  background:var(--text); color:var(--bg);
  padding:.75rem 1.5rem; font-size:.9rem;
  text-decoration:none; transition:top .25s var(--ease-out);
}
.skip-link:focus{ top:1rem; }

main, .nav, footer{ position:relative; z-index:2; }

/* ============================================================
   BUTTON — charcoal; a deeper charcoal sweeps in from the left and
   an arrow slides out beside the label. Inverts on the dark band.
   ============================================================ */
.btn{
  --btn-bg:#343431; --btn-fg:#F6F2EB; --btn-sweep:#1F1F1D;
  position:relative;
  display:inline-flex; align-items:center; justify-content:center;
  padding:1.05em 2.4em;
  font-family:var(--sans); font-weight:400; font-size:1rem; line-height:1;
  color:var(--btn-fg); text-decoration:none;
  background:var(--btn-bg);
  border:1px solid var(--btn-bg);
  cursor:pointer;
  overflow:hidden; isolation:isolate;
  transition:transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.btn::before{
  content:"";
  position:absolute; inset:-1px;
  background:var(--btn-sweep);
  transform:scaleX(0); transform-origin:left center;
  transition:transform .55s var(--ease-out);
  z-index:-1;
}
.btn .btn-label{ display:inline-block; }
.btn .btn-arrow{
  display:inline-block; width:0; overflow:hidden; opacity:0;
  transform:translateX(-10px);
  transition:width .5s var(--ease-out), margin .5s var(--ease-out), opacity .4s ease, transform .5s var(--ease-out);
}
.btn:hover, .btn:focus-visible{ transform:translateY(-2px); box-shadow:0 14px 30px -14px rgba(52,52,49,.55); }
.btn:hover::before, .btn:focus-visible::before{ transform:scaleX(1); }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow{ width:1.1em; margin-left:.7em; opacity:1; transform:none; }
.btn:active{ transform:translateY(0); }
.btn[disabled]{ opacity:.65; cursor:default; transform:none; box-shadow:none; }

/* ============================================================
   HEADER — a floating glass capsule. A charcoal indicator slides
   to whichever link you hover, and rests on the section you're in.
   ============================================================ */
.nav{
  position:fixed; top:14px; left:0; right:0; z-index:100;
  display:flex; justify-content:center;
  padding:0 var(--pad-x);
  pointer-events:none;
}
.nav-pill{
  pointer-events:auto;
  position:relative; overflow:hidden;
  width:100%; max-width:1120px; height:70px;
  display:flex; align-items:center; justify-content:space-between; gap:1.4rem;
  padding:0 .75rem 0 1.5rem;
  border-radius:999px;
  background:rgba(246,242,235,.7);
  -webkit-backdrop-filter:blur(22px) saturate(1.5);
  backdrop-filter:blur(22px) saturate(1.5);
  border:1px solid rgba(52,52,49,.16);
  box-shadow:0 18px 50px -26px rgba(52,52,49,.4), inset 0 1px 0 rgba(255,255,255,.7);
  transition:max-width .7s var(--ease-out), height .6s var(--ease-out), box-shadow .6s var(--ease-out), background .6s ease;
  animation:nav-in 1.1s var(--ease-out) .15s both;
}
@keyframes nav-in{ from{ transform:translateY(-160%); opacity:0; } to{ transform:none; opacity:1; } }
.nav.is-frosted .nav-pill{
  max-width:960px; height:60px;
  background:rgba(246,242,235,.84);
  box-shadow:0 22px 60px -24px rgba(52,52,49,.5), inset 0 1px 0 rgba(255,255,255,.7);
}

/* logo lockup, CSS-cropped to its content box (x42-1282, y162-632 of 1366x768) */
.brand{ display:block; text-decoration:none; flex:none; }
.brand-logo{
  position:relative; display:block;
  height:42px; aspect-ratio:1240/470;
  overflow:hidden;
  transition:height .6s var(--ease-out);
}
.brand-logo img{ position:absolute; width:110.17%; left:-3.39%; top:-34.47%; }
.nav.is-frosted .brand-logo{ height:36px; }

.nav-main{ display:none; position:relative; }
.nav-links{ list-style:none; display:flex; align-items:center; gap:.55rem; }
.nav-links a{
  position:relative; z-index:1; display:block;
  font-size:.95rem; line-height:1; color:var(--text); text-decoration:none;
  padding:.78em 1.25em; border-radius:999px;
  border:1px solid var(--text);
  transition:color .35s ease;
}
.nav-links a.is-on{ color:var(--bg); }
.nav-ind{
  position:absolute; z-index:0; left:0; top:50%;
  height:100%; width:0;
  border-radius:999px; background:var(--text);
  transform:translate(0,-50%);
  opacity:0;
  transition:transform .6s var(--ease-out), width .6s var(--ease-out), opacity .3s ease;
  pointer-events:none;
}
@media (min-width: 900px){ .nav-main{ display:block; } }

/* menu button: a charcoal disc whose lines fold into an X */
.nav-toggle{
  position:relative; z-index:130; flex:none;
  width:46px; height:46px; border-radius:50%;
  background:var(--text); border:none; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  transition:transform .5s var(--ease-out);
}
.nav-toggle:hover{ transform:scale(1.06) rotate(-8deg); }
.nav-toggle span{ display:block; width:20px; height:1px; background:var(--bg); transition:transform .45s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ transform:translateY(-3.5px) rotate(-45deg); }
@media (min-width: 900px){ .nav-toggle{ display:none; } }

/* Mobile menu — full-screen glass */
.menu{
  position:fixed; inset:0; z-index:98; /* below .nav so the capsule rides the glass */
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.3rem;
  background:rgba(246,242,235,.82);
  -webkit-backdrop-filter:blur(30px) saturate(1.4);
  backdrop-filter:blur(30px) saturate(1.4);
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .5s var(--ease-soft), visibility 0s linear .5s;
}
.menu.is-open{ opacity:1; visibility:visible; pointer-events:auto; transition:opacity .5s var(--ease-soft); }
.menu a{
  font-family:var(--serif); font-style:normal; letter-spacing:-.02em;
  font-size:clamp(2rem, 8vw, 2.8rem); line-height:1.5;
  color:var(--text); text-decoration:none;
  opacity:0; transform:translateY(18px);
  transition:opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.menu.is-open a{ opacity:1; transform:none; }
.menu.is-open a:nth-child(1){ transition-delay:.08s; }
.menu.is-open a:nth-child(2){ transition-delay:.14s; }
.menu.is-open a:nth-child(3){ transition-delay:.20s; }
.menu.is-open a:nth-child(4){ transition-delay:.26s; }
.menu.is-open a:nth-child(5){ transition-delay:.32s; }
body.menu-locked{ overflow:hidden; }

/* ============================================================
   SECTION CHROME
   ============================================================ */
.section{ position:relative; padding:clamp(4.5rem, 10vw, 8rem) var(--pad-x); }
.section-inner{ max-width:1080px; margin:0 auto; }
.section-title{ text-align:center; font-size:clamp(2.2rem, 5.2vw, 4rem); margin-bottom:clamp(2.4rem, 5vw, 3.6rem); }

/* DARK BAND — charcoal panel, light text. The text variables are
   redefined, so everything inside inverts automatically. */
.dark-zone{
  --text:var(--on-dark);
  --line:rgba(246,242,235,.3);
  position:relative; z-index:2;
  background:var(--dark);
  color:var(--on-dark);
  margin-inline:var(--inset, 0);
  border-radius:var(--rad, 56px) var(--rad, 56px) 56px 56px;
}
.dark-zone :focus-visible{ outline-color:var(--on-dark); }
.dark-zone .btn{ --btn-bg:#F6F2EB; --btn-fg:#343431; --btn-sweep:#DAD6CE; }

/* ============================================================
   WORD-BY-WORD HEADLINE REVEAL (JS wraps each word)
   ============================================================ */
.w{ display:inline-block; overflow:hidden; vertical-align:top; padding:.08em .12em .2em; margin:-.08em -.12em -.2em; }
.wi{
  display:inline-block;
  transform:translateY(118%) rotate(5deg); transform-origin:left bottom;
  transition:transform 1.1s var(--ease-out);
  transition-delay:calc(var(--i, 0) * 70ms + var(--base, 0ms));
}
.is-in > .w > .wi, .is-in .w > .wi{ transform:none; }

/* ============================================================
   REVEALS — gated on .js so the page is fully visible without scripts
   ============================================================ */
.js .reveal{
  opacity:0; transform:translateY(34px);
  transition:opacity .95s var(--ease-out), transform .95s var(--ease-out);
  transition-delay:calc(var(--stagger, 0) * 130ms);
}
.js .reveal.is-in{ opacity:1; transform:none; }

/* clip the child, not the observed element — an observed element that is fully clipped never "intersects" */
.js .wipe img{ clip-path:inset(0 100% 0 0); transition:clip-path 1.8s var(--ease-out); }
.js .wipe.is-in img{ clip-path:inset(0 0 0 0); }

@keyframes crest-draw{ to{ stroke-dashoffset:0; } }
@keyframes crest-bud{ to{ opacity:1; transform:scale(1); } }

.divider{ display:flex; align-items:center; justify-content:center; gap:1.6rem; padding:0 var(--pad-x); }
.divider::before, .divider::after{ content:""; height:1px; background:var(--line); flex:1; max-width:220px; }
.divider svg{ width:44px; height:auto; flex:none; }
.divider svg path{ stroke:var(--text); fill:none; stroke-width:1.1; stroke-linecap:round; }
.divider svg .dv{ stroke-dasharray:var(--len); stroke-dashoffset:var(--len); }
.divider.is-in svg .dv{ animation:crest-draw 1.4s var(--ease-soft) forwards; }
.divider svg .bud{ fill:var(--text); stroke:none; opacity:0; transform:scale(.4); transform-origin:center; }
.divider.is-in svg .bud{ animation:crest-bud .7s var(--ease-out) 1s forwards; }

/* ============================================================
   FOOTER — light, charcoal text. Three aligned columns:
   small logo + line, Info, Connect.
   ============================================================ */
footer{
  background:var(--bg);
  color:var(--text);
  border-top:1px solid var(--line);
  padding:clamp(4rem, 8vw, 6rem) var(--pad-x) 2.4rem;
}
.footer-inner{ max-width:1080px; margin:0 auto; }
.footer-top{
  display:grid; gap:2.8rem 3rem;
  padding-bottom:3.2rem;
  border-bottom:1px solid var(--line);
}
@media (min-width: 760px){ .footer-top{ grid-template-columns:minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); } }

/* every column opens with a 56px-tall row so the three tops align */
.footer-brand .brand-logo{ height:56px; }
.footer-brand p{ margin-top:1.1rem; }
.footer-col h2{ height:56px; display:flex; align-items:center; font-style:normal; font-size:1.6rem; margin-bottom:1.1rem; }
.footer-col ul{ list-style:none; display:grid; gap:.6rem; }
.footer-col ul a{ position:relative; color:var(--text); text-decoration:none; font-size:1rem; padding-bottom:.15em; }
.footer-col ul a::after{
  content:""; position:absolute; left:0; bottom:0; width:100%; height:1px; background:var(--text);
  transform:scaleX(0); transform-origin:right center; transition:transform .5s var(--ease-out);
}
.footer-col ul a:hover::after, .footer-col ul a:focus-visible::after{ transform:scaleX(1); transform-origin:left center; }

.footer-col .social{ display:flex; flex-wrap:wrap; gap:.9rem; }
.footer-col .social a{
  width:46px; height:46px; padding:0; border-radius:50%;
  border:1px solid var(--text); color:var(--text);
  display:flex; align-items:center; justify-content:center;
  transition:background .4s var(--ease-out), color .4s var(--ease-out), transform .5s var(--ease-out);
}
.footer-col .social a::after{ display:none; }
.footer-col .social a:hover, .footer-col .social a:focus-visible{ background:var(--text); color:var(--bg); transform:translateY(-4px) rotate(-6deg); }
.social svg{ width:20px; height:20px; display:block; }

/* the big CLARTÉ — charcoal wordmark, CSS-cropped (x14-1280, y160-506 of 1366x768) */
.footer-wordmark{ position:relative; width:100%; aspect-ratio:1266/346; overflow:hidden; margin-top:clamp(3rem, 7vw, 5rem); }
.footer-wordmark img{ position:absolute; width:107.9%; left:-1.11%; top:-46.24%; }
.footer-bottom{ padding-top:2rem; font-size:.85rem; }

/* small confirmation toast (email copied) */
.toast{
  position:fixed; left:50%; bottom:1.6rem; z-index:400;
  max-width:calc(100vw - 2rem);
  padding:.85em 1.5em; border-radius:999px;
  background:var(--text); color:var(--bg);
  font-size:.95rem; line-height:1.3; text-align:center;
  box-shadow:0 14px 40px -14px rgba(52,52,49,.6);
  opacity:0; transform:translate(-50%, 16px); pointer-events:none;
  transition:opacity .4s ease, transform .5s var(--ease-out);
}
.toast.is-on{ opacity:1; transform:translate(-50%, 0); }

/* ============================================================
   REDUCED MOTION — everything arrives settled
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.001s !important;
    animation-delay:0s !important;
    transition-duration:.001s !important;
    transition-delay:0s !important;
  }
  .rise, .js .reveal{ opacity:1 !important; transform:none !important; }
  .wi{ transform:none !important; }
  .js .wipe img{ clip-path:none !important; }
  .crest .draw, .divider svg .dv{ stroke-dashoffset:0 !important; animation:none !important; }
  .crest .bud, .divider svg .bud{ opacity:1 !important; transform:none !important; animation:none !important; }
}
