/* Kais Wood: static rebuild of the original Squarespace design */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.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; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-ext-300-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.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; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.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; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --white: #e8e8e8;      /* "white" sections and page background */
  --light: #d4d4d4;      /* "light" sections */
  --dark: #091416;       /* footer */
  --black: #000;
  --text: #000;
  --text-inverse: #e9e8e8;
  --accent: #c97f08;     /* buttons */
  --accent-hover: #b06e05;
  --font: "Poppins", sans-serif;
  --gutter: clamp(16px, 3vw, 44px);
  --h2: clamp(2rem, 1.4rem + 2.2vw, 2.8rem);
  /* Room for phone system bars (Android navigation bar, notches). Needs viewport-fit=cover. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  padding-left: var(--safe-left); padding-right: var(--safe-right);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, .h2 { font-size: var(--h2); font-weight: 500; line-height: 1.3; }
h3, .h4 { font-size: 1.2rem; font-weight: 500; line-height: 1.39; }
p + p { margin-top: 1rem; }
strong { font-weight: 700; }
.center { text-align: center; }
.anchor { display: block; position: relative; top: 0; }
:target { scroll-margin-top: 0; }

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%); z-index: 100;
  background: var(--accent); color: #fff; padding: 12px 24px; border-radius: 6px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* Themes */
.theme-white { background: var(--white); }
.theme-light { background: var(--light); }
.theme-dark { background: var(--dark); color: var(--text-inverse); }

/* Layout */
.container { width: 100%; max-width: calc(900px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: calc(1200px + 2 * var(--gutter)); }
.container--narrow { max-width: calc(600px + 2 * var(--gutter)); }
.section { padding: 80px 0; }
.section--text { padding: 80px 0 40px; }
.section--tight { padding: 48px 0; }

/* Buttons */
.btn {
  display: inline-block;
  font: 500 1rem/1.2 var(--font);
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 6.4px;
  padding: 19.2px 32px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, opacity .2s;
}
.btn:hover, .btn:focus-visible { background: var(--accent-hover); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--text-inverse); box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(255, 255, 255, .1); }
.btn--small { padding: 10px 18px; font-size: .875rem; }

/* Header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter);
  color: var(--text-inverse);
}
.logo img { width: 64px; height: 64px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav > ul { display: flex; gap: 23px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 1rem; font-weight: 300; line-height: 1.8; }
.nav > ul > li > a { display: inline-block; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s; }
.nav > ul > li > a:hover, .nav > ul > li > a:focus-visible { background-size: 100% 1px; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; right: -16px; top: 100%;
  list-style: none; margin: 0; padding: 8px 16px;
  background: var(--black); text-align: right; min-width: 232px;
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.dropdown a { display: block; line-height: 1.5; }
.dropdown a:hover { opacity: .7; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; }

.burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; color: inherit; }
.burger span { position: absolute; left: 6px; right: 6px; height: 1px; background: currentColor; transition: transform .25s, top .25s; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 15;
  background: var(--black); color: var(--text-inverse);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: calc(100px + var(--safe-top)) calc(var(--gutter) + var(--safe-right)) calc(40px + var(--safe-bottom)) calc(var(--gutter) + var(--safe-left));
  height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  justify-content: safe center;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.mobile-menu a { text-decoration: none; font-size: 1.6rem; line-height: 2; }
.mobile-menu .sub a { font-size: 1.15rem; opacity: .85; }
body.menu-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative; min-height: 602px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-inverse); text-align: center; overflow: hidden;
  background: #1b1d1c;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__content { position: relative; max-width: calc(900px + 2 * var(--gutter)); padding: 140px var(--gutter) 90px; }
.hero__kicker { margin-bottom: 1.6rem; }
.hero__actions { margin-top: 2.4rem; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* About */
.about h2 { text-align: center; margin-bottom: 2.6rem; }
.about h2 span { display: block; font-weight: 300; }

/* Series intro */
.series h2 { margin-bottom: 2.4rem; }

/* Material cards */
.cards { display: grid; gap: 34px; list-style: none; margin: 0 auto; padding: 0; }
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); max-width: 1200px; }
.cards + .cards { margin-top: 48px; }
.card { margin: 0; }
.card img { width: 90%; margin-left: 10%; aspect-ratio: 4 / 3; object-fit: cover; }
.card figcaption {
  position: relative; width: 90%; margin-top: -20%;
  background: var(--white); padding: 23px 25px;
}
.card h3 { font-size: 1.2rem; }
.card p { font-size: 1.375rem; line-height: 1.5; margin-top: .5rem; }

/* Portfolio */
.portfolio-label { text-align: center; font-size: 1.375rem; line-height: 90px; height: 90px; }
.gallery { position: relative; background: var(--white); }
.gallery__track {
  display: flex; height: 675px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img { height: 100%; width: auto; max-width: none; flex: none; scroll-snap-align: center; object-fit: cover; background: var(--light); }
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--white); color: var(--black); border: 0; border-radius: 0; cursor: pointer; padding: 0;
  opacity: .9; transition: opacity .2s;
}
.gallery__arrow:hover, .gallery__arrow:focus-visible { opacity: 1; }
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--next { right: 14px; }
.gallery__arrow svg { width: 24px; height: 24px; }

/* How it works */
.how h2 { margin-bottom: 2.4rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-size: var(--h2); font-weight: 500; line-height: 1; color: var(--accent); margin-bottom: 1rem;
}
.steps h3 { margin-bottom: .5rem; }
.how .actions { margin-top: 3rem; text-align: center; }

/* Concealed systems */
.concealed { padding: 110px 0 70px; }
.concealed h2 { margin-bottom: 2.4rem; }
.concealed p, .how-lead { font-size: 1.375rem; line-height: 1.8; }
.concealed-image { height: 594px; width: 100%; object-fit: cover; }

/* Contact */
.contact { padding: 95px 0 100px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.ceo { position: relative; margin: 0; min-height: 420px; }
.ceo img { width: 70%; margin-left: 30%; aspect-ratio: 3 / 4; object-fit: cover; }
.ceo figcaption {
  position: absolute; left: 0; top: 22px; width: 45%;
  background: var(--white); padding: 22px;
}
.ceo h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.contact__info h2 { margin-bottom: 2rem; }
.contact__info a { text-decoration: none; }
.contact__info a:hover { text-decoration: underline; }
.contact__social { text-align: center; margin: 2.2rem 0 1.6rem; }
.contact__social a { display: inline-block; width: 28px; height: 28px; }
.contact__social svg { width: 100%; height: 100%; }
.contact__action { text-align: center; }

/* Footer */
.site-footer { padding: 70px var(--gutter) calc(70px + var(--safe-bottom)); text-align: center; }
.site-footer a { text-decoration: none; }
.site-footer .sep { margin: 0 .7em; }

/* Image viewer */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .97); color: var(--text-inverse);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
/* Image area stays clear of the notch and the phone's navigation bar. */
.lightbox__stage {
  position: absolute; display: flex; align-items: center; justify-content: center;
  inset: calc(60px + var(--safe-top)) calc(16px + var(--safe-right)) calc(60px + var(--safe-bottom)) calc(16px + var(--safe-left));
}
.lightbox__img { max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }
.lightbox__caption {
  position: absolute; left: calc(60px + var(--safe-left)); right: calc(60px + var(--safe-right)); bottom: var(--safe-bottom);
  height: 60px; display: flex; align-items: center; justify-content: center;
  font-size: .875rem; letter-spacing: .04em; text-align: center; white-space: pre-wrap;
}
.lightbox__close, .lightbox__arrow {
  position: absolute; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 0; padding: 0; background: none; color: var(--text-inverse); cursor: pointer; opacity: .8;
}
.lightbox__close:hover, .lightbox__arrow:hover, .lightbox__close:focus-visible, .lightbox__arrow:focus-visible { opacity: 1; }
.lightbox__close { top: calc(6px + var(--safe-top)); right: calc(6px + var(--safe-right)); font-size: 36px; line-height: 1; }
.lightbox__arrow { top: 50%; margin-top: -24px; background: rgba(0, 0, 0, .45); }
.lightbox__arrow svg { width: 26px; height: 26px; }
.lightbox__arrow--prev { left: calc(8px + var(--safe-left)); }
.lightbox__arrow--next { right: calc(8px + var(--safe-right)); }
.lightbox--single .lightbox__arrow { display: none; }

/* Quote form dialog */
.quote-dialog {
  width: min(640px, calc(100% - 32px));
  /* Keep the whole form inside the visible screen, above the phone's navigation bar. */
  inset: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  max-height: calc(100% - 32px - var(--safe-top) - var(--safe-bottom));
  max-height: calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  border: 0; padding: 0; background: var(--white); color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.quote-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.quote-dialog__inner { padding: 48px 44px 40px; position: relative; }
.quote-dialog__close {
  position: absolute; right: 12px; top: 12px; width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer; font-size: 28px; line-height: 1; color: var(--text);
}
.quote-dialog h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: .6rem; }
.quote-dialog__lead { margin-bottom: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .9rem; line-height: 1.4; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: 300 1rem/1.5 var(--font); color: var(--text);
  background: #fafafa; border: 1px solid #a9a9a9; border-radius: 0; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; }
.form-actions { margin-top: 24px; }
.form-note { font-size: .85rem; line-height: 1.6; margin-top: 16px; }
.form-status { margin-top: 12px; font-weight: 500; }
.form-status.is-error { color: #a30000; }
.form-success { text-align: center; padding: 40px 0 20px; font-size: 1.375rem; }

/* 404 */
.not-found { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding: 160px var(--gutter) 80px; }

/* Responsive */
@media (max-width: 1100px) {
  .nav > ul { gap: 18px; }
  .nav .btn--small { display: none; }
}
@media (max-width: 960px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: block; }
  .site-header { padding: 20px var(--gutter); }
  .logo img { width: 44px; height: 44px; }
}
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .section--text { padding: 48px 0 40px; }
  .section--tight { padding: 40px 0; }
  .hero { min-height: 606px; }
  .hero__content { padding: 110px var(--gutter) 70px; }
  .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; max-width: 420px; gap: 40px; }
  .cards + .cards { margin-top: 40px; }
  .gallery__track { height: min(528px, 135vw); }
  .gallery__track img { width: 100vw; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .concealed { padding: 64px 0 48px; }
  .concealed-image { height: 505px; }
  .contact { padding: 64px 0; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .ceo { min-height: 0; }
  .ceo img { width: 90%; margin-left: 10%; }
  .ceo figcaption { position: relative; top: auto; width: 90%; margin-top: -18%; }
  .quote-dialog__inner { padding: 44px 20px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer .sep { margin: 0 .4em; }
}
