/* ==============================================================
   HOWSAM DESIGN — WEBSITE STYLES
   --------------------------------------------------------------
   The values in :root are the quickest way to tune the overall
   graphic character of the site.
   ============================================================== */

* { box-sizing: border-box; }

:root {
  --ink: #1d1d1b;
  --paper: #f4f2ed;
  --brand: #7e5b55;

  --outer-margin: 6.8vw;
  --page-right-margin: 8.2vw;
  --title-column: 31%;
  --page-column-gap: 8.5%;
  --header-height: 78px;

  --nav-size: 9px;
  --nav-tracking: .28em;

  --section-title-size: clamp(34px, 3.05vw, 52px);
  --section-title-tracking: .18em;

  --body-size: 14px;
  --body-line-height: 1.70;
  --body-tracking: .035em;

  --statement-size: 17px;
  --statement-line-height: 1.52;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--ink);
}

/*
  Keep the internal-page grid in exactly the same horizontal position.
  Without this, a long page gains a desktop scrollbar while a short page
  may not, shifting the apparent grid by the scrollbar width.
*/
html.internal-page {
  scrollbar-gutter: stable;
}

/* LANDING ------------------------------------------------------ */
.landing-body {
  background: var(--brand);
  overflow: hidden;
}

.landing {
  height: 100svh;
  display: grid;
  place-items: center;
  background: var(--brand);
}

.identity {
  width: min(42vw, 520px);
  text-align: center;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  animation: arrive 1.2s ease-out .15s forwards;
}

.identity img {
  display: block;
  width: 100%;
  height: auto;
}

.established {
  margin-top: 17px;
  padding-left: .9em;
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: .9em;
  white-space: nowrap;
}

@keyframes arrive { to { opacity: 1; } }

/* INTERNAL HEADER --------------------------------------------- */
.inside { background: var(--paper); }

.site-header {
  height: var(--header-height);
  padding: 0 var(--outer-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(29,29,27,.11);
  background: var(--paper);
}

.mini-logo {
  width: 185px;
  display: block;
}

.mini-logo img {
  width: 100%;
  display: block;
}

.site-header nav {
  display: flex;
  gap: 34px;
}

.site-header nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--nav-size);
  font-weight: 700;
  letter-spacing: var(--nav-tracking);
}

.site-header nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: var(--nav-tracking);
  bottom: -8px;
  height: 1px;
  background: var(--ink);
}

/* COMMON PAGE GRID -------------------------------------------- */
.editorial {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, var(--title-column)) minmax(0, 1fr);
  column-gap: var(--page-column-gap);
  padding: 15vh var(--page-right-margin) 12vh var(--outer-margin);
  align-items: start;
}

.section-title {
  font-size: var(--section-title-size);
  line-height: 1;
  font-weight: 700;
  letter-spacing: var(--section-title-tracking);
}

.section-copy {
  max-width: 760px;
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  font-weight: 400;
  letter-spacing: var(--body-tracking);
}

.section-copy p {
  margin: 0 0 1.65em;
}

.statement {
  margin: 0 0 1.65em;
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  font-weight: 400;
  letter-spacing: var(--body-tracking);
}

.statement-block {
  margin: 0;
}

.studio-operating-model {
  margin-top: 0;
}

.founder-link {
  color: var(--ink);
  font-weight: inherit;
  text-decoration: none;
  transition: opacity .18s ease;
}

.founder-link:hover,
.founder-link:focus-visible {
  opacity: .48;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}


/* EXECUTIVE PROFILE ------------------------------------------- */
.profile-page {
  align-items: start;
}

.profile-identity {
  min-width: 0;
}

.profile-name {
  margin: 0;
  font-size: clamp(46px, 4.6vw, 76px);
  line-height: .96;
  font-weight: 700;
  letter-spacing: .16em;
}

.profile-credentials {
  margin: 2.5rem 0 0;
  font-size: 9px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .02em;
}

.profile-portrait {
  display: block;
  width: min(100%, 300px);
  margin-top: 3.6rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.profile-content {
  max-width: 720px;
}

.profile-role {
  margin: 0 0 2rem;
  text-transform: uppercase;
  font-size: 9px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .25em;
}


.profile-email {
  margin-top: 2.6rem !important;
}

.profile-email a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-tracking);
  transition: opacity .18s ease;
}

.profile-email a:hover,
.profile-email a:focus-visible {
  opacity: .48;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
}

.profile-back:hover,
.profile-back:focus-visible {
  opacity: .55;
}

/* PORTFOLIO ACCESS — visual prototype only ------------------- */
.code-box {
  margin-top: 55px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
}

.code-box span,
.code-box button {
  font: 700 9px "Montserrat", Arial, sans-serif;
  letter-spacing: .25em;
}

.code-box input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: 0;
  font: 400 14px "Montserrat", Arial, sans-serif;
  letter-spacing: .15em;
}

.code-box button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.small-note {
  margin-top: 18px !important;
  font-size: 9px;
  letter-spacing: .12em;
  opacity: .55;
}


/* CONTACT ------------------------------------------------------ */
.contact-copy {
  max-width: 720px;
}

.contact-email {
  margin: 3rem 0 !important;
}

.contact-email a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity .18s ease;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  opacity: .48;
}

/* PROJECTS — SINGLE PROJECT / LEFT INFO + RIGHT MEDIA ---------- */
.projects-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--title-column)) minmax(0, 1fr);
  column-gap: var(--page-column-gap);
  padding: 15vh var(--page-right-margin) 12vh var(--outer-margin);
  align-items: start;
}

.projects-left {
  min-width: 0;
}

.projects-left .section-title {
  margin: 0;
}

.project-information {
  margin-top: 6.4rem;
  width: 100%;
  max-width: 34ch;
}

.project-details {
  margin: 0 0 3.2rem;
  padding: 0;
}

.project-detail {
  margin: 0 0 1.35rem;
}

.project-detail dt {
  margin: 0 0 .28rem;
  text-transform: uppercase;
  font-size: 8px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .22em;
}

.project-detail dd {
  margin: 0;
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  font-weight: 400;
  letter-spacing: var(--body-tracking);
}

.project-description {
  width: 100%;
  max-width: none;
}

.projects-right {
  min-width: 0;
  padding-top: 0;
}

.projects-gallery {
  width: 100%;
}

.projects-media {
  width: 100%;
  margin: 0 0 13vh;
}

.projects-media:last-child {
  margin-bottom: 0;
}

.projects-media img,
.projects-media video {
  display: block;
  width: 100%;
  height: auto;
}

.project-video {
  background: #dedbd4;
}

.projects-media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: .7rem;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .08em;
}

.media-caption {
  max-width: 70%;
}

.media-credit {
  margin-left: auto;
  text-align: right;
  opacity: .68;
}

/* PORTFOLIO ACCESS COPY --------------------------------------- */
.portfolio-access-copy .code-box {
  margin-top: 0;
  margin-bottom: 2.5rem;
}

.portfolio-access-copy .contact-email {
  margin-top: .5rem;
}

/* MOBILE-ONLY FOOTER ------------------------------------------- */
.site-footer {
  display: none;
}

/* MOBILE ------------------------------------------------------- */
@media (max-width: 760px) {
  :root {
    --outer-margin: 10vw;
    --page-right-margin: 10vw;
    --header-height: 86px;
    --body-size: 15px;
    --body-line-height: 1.48;
    --body-tracking: 0;
  }

  .landing-body {
    overflow: hidden;
  }

  .identity {
    width: 72vw;
  }

  .established {
    margin-top: 13px;
    font-size: 5.5pt;
    letter-spacing: .72em;
  }

  /* On phone the navigation is the header. The small wordmark drops out,
     matching the supplied mobile graphic. */
  .site-header {
    height: var(--header-height);
    min-height: 0;
    padding: 0 9vw;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(29,29,27,.48);
    background: var(--paper);
  }

  .mini-logo {
    display: none;
  }

  .site-header nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .site-header nav a {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .13em;
  }

  .site-header nav a.active::after {
    bottom: -11px;
    right: .13em;
  }

  /* Phone layout becomes one clear reading column. */
  .editorial {
    min-height: auto;
    display: block;
    padding: 13vh var(--page-right-margin) 16vh var(--outer-margin);
  }

  .section-title {
    margin: 0 0 12vh;
    font-size: 54px;
    line-height: .95;
    letter-spacing: .16em;
  }

  .section-copy {
    max-width: none;
    width: 100%;
    font-size: var(--body-size);
    line-height: var(--body-line-height);
    letter-spacing: var(--body-tracking);
  }

  .section-copy p,
  .statement {
    margin: 0 0 1.75em;
    font-size: var(--body-size);
    line-height: var(--body-line-height);
    letter-spacing: var(--body-tracking);
  }

  .statement-block,
  .studio-operating-model {
    margin: 0;
  }
  .projects-layout {
    display: block;
    padding: 13vh var(--page-right-margin) 14vh var(--outer-margin);
  }

  .projects-left .section-title {
    margin: 0 0 3.2rem;
  }

  .project-information {
    margin-top: 0;
  }

  .project-details {
    margin-bottom: 2.8rem;
  }

  .project-detail {
    margin-bottom: 1.1rem;
  }

  .projects-right {
    margin-top: 7vh;
    padding-top: 0;
  }

  .projects-gallery {
    width: 100%;
  }

  .projects-media {
    width: 100%;
    margin-bottom: 9vh;
  }

  .projects-media figcaption {
    display: block;
    margin-top: .65rem;
  }

  .media-caption,
  .media-credit {
    display: block;
    max-width: none;
    text-align: left;
  }

  .media-credit {
    margin-top: .25rem;
    margin-left: 0;
  }

  .profile-name {
    margin-bottom: 0;
    font-size: 50px;
    line-height: .96;
    letter-spacing: .14em;
  }

  .profile-credentials {
    margin-top: 1.8rem;
  }

  .profile-portrait {
    width: 100%;
    max-width: 340px;
    margin-top: 2.8rem;
  }
  /* A quiet wordmark at the foot of long mobile pages. */
  .site-footer {
    min-height: 96px;
    padding: 28px 10vw 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(29,29,27,.48);
    background: var(--paper);
  }

  .site-footer a {
    display: block;
    width: 150px;
  }

  .site-footer img {
    display: block;
    width: 100%;
    height: auto;
  }
}

