:root {
  --paper: #eee8de;
  --paper-deep: #e8dfd3;
  --ink: #242321;
  --muted: #57514a;
  --gold: #a98146;
  --line: rgba(138, 101, 54, .62);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 52% 26%, rgba(255,255,255,.55), transparent 36%),
    linear-gradient(105deg, #eee7dc 0%, #f4eee6 48%, #e8dfd2 100%);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(83, 67, 48, .10));
  pointer-events: none;
  z-index: -1;
}
.palm-shadow {
  position: absolute;
  width: min(37vw, 570px);
  height: auto;
  left: -30px;
  top: -32px;
  opacity: .62;
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  width: min(690px, 64vw);
  padding-top: 90px;
  margin-left: 14.2vw;
  text-align: center;
}
.eyebrow,
.atelier {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .34em;
  line-height: 1;
}
.eyebrow {
  font-size: clamp(18px, 2vw, 28px);
  margin-bottom: 8px;
}
h1 {
  margin: 0;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: clamp(70px, 8.15vw, 126px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.atelier {
  font-size: clamp(25px, 3.1vw, 44px);
  margin-top: 18px;
}
.gold-line {
  width: 188px;
  height: 1px;
  background: var(--gold);
  margin: 17px auto 15px;
}
.tagline {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 14px;
}
.intro {
  margin: 14px 0 0;
  color: #38342f;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: .04em;
}

.principles {
  width: min(550px, 100%);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.principles article {
  min-height: 80px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}
.principles article + article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  height: 70px;
  width: 1px;
  background: var(--line);
}
.principles svg {
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.principles p {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .10em;
}

.side-nav {
  position: absolute;
  right: 5.1vw;
  top: 118px;
  display: flex;
  width: 90px;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 2;
}
.side-nav a {
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .22em;
  transition: color .25s ease, transform .25s ease;
}
.side-nav a:hover { color: var(--gold); transform: translateX(-3px); }
.side-nav span { width: 38px; height: 1px; background: var(--gold); opacity: .8; }

.services {
  padding: 0 2.4vw 29px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 15px;
}
.section-heading span { height: 1px; background: var(--line); }
.section-heading h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-weight: 500;
  font-size: 17px;
  white-space: nowrap;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.service-card { text-align: center; min-width: 0; }
.image-wrap {
  position: relative;
  display: block;
  aspect-ratio: .94;
  overflow: hidden;
  background: #ddd4c8;
}
.image-wrap::after {
  content: "View service";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(30, 26, 22, .48);
  color: white;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .3s ease;
}
.image-wrap:hover::after { opacity: 1; }
.image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s ease;
}
.image-wrap:hover img { transform: scale(1.035); }
.service-card h3 {
  margin: 16px 0 7px;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 500;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  /*font-family: Georgia, serif;*/
  font-size: 13.5px;
  line-height: 1.38;
}

footer {
  min-height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #1d1e1e, #111313, #222323);
}
footer a {
  color: #b6925e;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: .19em;
  transition: color .25s ease;
}
footer a:hover { color: #e2c18c; }

@media (max-width: 1120px) {
  .hero-content { margin-left: 9vw; width: 72vw; }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
  .image-wrap { aspect-ratio: 1.1; }
}

@media (max-width: 760px) {
  .hero { min-height: auto; padding: 62px 22px 50px; }
  .palm-shadow { width: 76vw; opacity: .45; }
  .hero-content { width: 100%; margin: 0; padding: 0; }
  h1 { font-size: clamp(58px, 18vw, 92px); letter-spacing: .07em; }
  .atelier { letter-spacing: .24em; }
  .tagline { font-size: 11px; line-height: 1.7; }
  .intro { font-size: 14px; }
  .side-nav {
    position: static;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 45px;
    gap: 10px;
  }
  .side-nav span { width: 18px; }
  .side-nav a { font-size: 9px; }
  .principles { grid-template-columns: repeat(2, 1fr); gap: 18px 0; margin-top: 30px; }
  .principles article:nth-child(3)::before { display: none; }
  .principles article { padding: 0 18px; }
  .services { padding: 28px 18px 34px; }
  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: 14px; letter-spacing: .18em; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .image-wrap { aspect-ratio: .95; }
  .service-card h3 { font-size: 14px; letter-spacing: .10em; }
  .service-card p { font-size: 12.5px; }
  footer { min-height: 64px; }
  footer a { font-size: 13px; letter-spacing: .12em; }
}

@media (max-width: 430px) {
  .side-nav a { letter-spacing: .13em; }
  .service-grid { grid-template-columns: 1fr; }
  .image-wrap { aspect-ratio: 1.25; }
  .service-card h3 { margin-top: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Reach Us popup */
button.image-wrap {
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.image-wrap::after { content: "Reach us"; }

.nav-contact,
.footer-contact {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.nav-contact {
  color: var(--ink);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .22em;
  transition: color .25s ease, transform .25s ease;
}
.nav-contact:hover { color: var(--gold); transform: translateX(-3px); }
.footer-contact {
  color: #b6925e;
  font-size: 18px;
  letter-spacing: .19em;
  transition: color .25s ease;
}
.footer-contact:hover { color: #e2c18c; }

body.modal-open { overflow: hidden; }
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}
.contact-modal.is-open {
  visibility: visible;
  opacity: 1;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 22, 19, .68);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 42px 46px 36px;
  border: 1px solid rgba(169, 129, 70, .42);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.65), transparent 42%),
    linear-gradient(135deg, #f4eee6, #e9dfd2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  transform: translateY(18px) scale(.98);
  transition: transform .25s ease;
  text-align: center;
}
.contact-modal.is-open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.modal-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.modal-panel h2 {
  margin: 0;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: 46px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.modal-line {
  width: 105px;
  height: 1px;
  margin: 13px auto 28px;
  background: var(--gold);
}
.contact-form { text-align: left; }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.contact-form label {
  display: block;
  margin-bottom: 18px;
}
.contact-form label > span {
  display: block;
  margin-bottom: 7px;
  color: #5b5147;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(128, 95, 53, .48);
  border-radius: 0;
  padding: 10px 2px;
  background: transparent;
  color: var(--ink);
  font: 15px/1.4 "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  outline: none;
  transition: border-color .2s ease;
}
.contact-form textarea {
  min-height: 92px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.submit-button {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #1e1d1b;
  padding: 14px 20px;
  background: #1e1d1b;
  color: #f2e9dc;
  font: 12px/1 "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .19em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.submit-button:hover {
  background: transparent;
  color: #1e1d1b;
}
.form-note {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.form-note a { color: var(--gold); }
.website-field {
  position: absolute !important;
  left: -9999px !important;
}

@media (max-width: 760px) {
  .nav-contact { font-size: 9px; }
  .footer-contact { font-size: 13px; letter-spacing: .12em; }
  .contact-modal { padding: 12px; }
  .modal-panel { padding: 38px 22px 28px; max-height: calc(100vh - 24px); }
  .modal-panel h2 { font-size: 37px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
