/* The photographs follow the edges of the viewport. Text follows its own measure. */
:is(.home-page, .portfolio-page) {
  --home-edge: clamp(16px, 2.6vw, 72px);
  --section-pad: clamp(3.25rem, 5.3vw, 6rem);
  --column-gap: clamp(2.25rem, 4.25vw, 5.25rem);
  --sea-blue: #426984;
  --pale-blue: #bed9e8;
  --home-rule: #bfcbd1;
}
#main .section-wrap,
:is(.home-page, .portfolio-page) .footer > .section-wrap {
  width: calc(100% - var(--home-edge) - var(--home-edge));
  max-width: none;
  margin-inline: auto;
}
@media (scripting: enabled) {
  html:has(:is(.home-page, .portfolio-page)) { scroll-padding-top: 76px }
}
:is(.home-page, .portfolio-page) .header { padding-inline: var(--home-edge) }
.header > .nav {
  font-size: clamp(1.0625rem, 1.28vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.35;
  gap: clamp(1rem, 1.6vw, 1.75rem);
}
.header-contact {
  font-size: clamp(1.0625rem, 1.2vw, 1.125rem);
  font-weight: 500;
  line-height: 1.35;
}
@media (min-width: 1051px) and (max-width: 1240px) {
  .header > .nav { font-size: clamp(1.03125rem, 1.55vw, 1.125rem); gap: clamp(.75rem, 1.3vw, 1.05rem) }
}
@media (min-width: 901px) and (max-width: 1050px) {
  .header, .header.scrolled {
    grid-template: auto 1fr / minmax(0, 1fr) auto;
    row-gap: 0;
    padding-block: .5rem .25rem;
  }
  .header.scrolled { height: 104px }
  .header > .nav { grid-area: 2 / 1 / 3 / -1; gap: 1.75rem }
  .header-actions { grid-area: 1 / 2 }
  html:has(:is(.home-page, .portfolio-page)) { scroll-padding-top: 104px }
}
@media (max-width: 900px) {
  .header.menu-open .nav { font-size: 1.25rem }
  .header-contact { font-size: 1rem }
}
@media (max-width: 900px) and (scripting: enabled) {
  :is(.home-page, .portfolio-page) { --masthead-height: 84px }
  :is(.home-page, .portfolio-page) .header {
    height: var(--masthead-height);
    grid-template: 1fr / minmax(0, 1fr) auto;
    align-items: center;
    padding-block: .4rem;
  }
  :is(.home-page, .portfolio-page) .header-identity { display: flex; min-width: 0; gap: clamp(1rem, 3vw, 2rem) }
  :is(.home-page, .portfolio-page) .header-social { gap: .15rem }
  :is(.home-page, .portfolio-page) .header-social a { width: 44px; height: 44px; position: relative; border: 0 }
  :is(.home-page, .portfolio-page) .header-social a::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--home-rule); border-radius: 50% }
  :is(.home-page, .portfolio-page) #menu-toggle { width: 44px; height: 44px }
  :is(.home-page, .portfolio-page).header-fixed { padding-top: var(--masthead-height) }
  :is(.home-page, .portfolio-page) .header.scrolled { height: 70px }
  html:has(:is(.home-page, .portfolio-page)) { scroll-padding-top: 70px }
}
@media (max-width: 640px) and (scripting: enabled) {
  :is(.home-page, .portfolio-page) { --masthead-height: 98px }
  :is(.home-page, .portfolio-page) .header:not(.scrolled) {
    grid-template: 1fr 44px / minmax(0, 1fr) auto;
    gap: 0 8px;
    padding-block: 5px;
  }
  :is(.home-page, .portfolio-page) .header:not(.scrolled) .header-identity { display: contents }
  :is(.home-page, .portfolio-page) .header:not(.scrolled) .brand { grid-row: 1 / 3 }
  :is(.home-page, .portfolio-page) .header:not(.scrolled) .header-social { grid-column: 2; justify-self: center; gap: 0 }
  :is(.home-page, .portfolio-page) .header .brand img { width: clamp(115px, 39vw, 163px) }
  :is(.home-page, .portfolio-page) .header-actions { gap: 5px }
  .header-contact { font-size: 1rem }
}
@media (max-width: 370px) and (scripting: enabled) {
  :is(.home-page, .portfolio-page) .header:not(.scrolled) .brand { grid-row: 1; }
  :is(.home-page, .portfolio-page) .header:not(.scrolled) .header-social { grid-column: 1 / -1; grid-row: 2; }
  .header-contact { font-size: .9375rem }
}
.home-page .boat-hero { --hero-inset: var(--home-edge) }
.home-page .boat-intro p { text-wrap: pretty }
.home-page :is(.projects .section-heading h2, #place-title, .press-heading h2, .questions-intro h2) {
  font-size: clamp(2.35rem, 3.9vw, 4.5rem);
  line-height: 1.14;
  letter-spacing: -.045em;
}
.home-page :is(#projects-title, #place-title) em,
.home-page #contact-title span { color: var(--sea-blue) }
.home-page :is(.projects, .founders-section, .place.destination, .press, .questions, .contact) {
  padding-block: var(--section-pad);
}

/* The gallery is an index followed by a single large, uncropped view. */
.home-page .projects { background: #f0eee8 }
.home-page .projects .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--column-gap);
  margin: 0 0 clamp(1.5rem, 2.1vw, 2.5rem);
}
.home-page .projects .section-heading > p {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1.075rem, 1.38vw, 1.55rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.home-page .project-browse {
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin: 0;
  padding-block: .5rem;
  border-top: 1px solid var(--home-rule);
}
.project-index-link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-block-size: 44px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}
.project-index-link:hover { text-decoration: underline; text-underline-offset: .3em }
.project-index-link .icon { width: 1.2em; height: 1.2em }
.home-page .project-arrows button,
.home-page .press-arrows button { border-radius: 50%; border-color: #b0bfc8 }
.home-page .project-tabs { gap: clamp(.65rem, 1.05vw, 1.5rem); margin-bottom: clamp(1.3rem, 2.25vw, 2.75rem) }
.home-page .project-tabs button > span,
.home-page .project-information h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.025em;
}
.home-page .project-tabs button > span { font-size: clamp(1.25rem, 1.52vw, 2rem); line-height: 1.25 }
.home-page .project-panel {
  padding: 0;
  gap: 0;
  border: 0;
  border-block: 1px solid var(--home-rule);
  background: #faf8f2;
}
.home-page .project-photo { margin: 0 }
.home-page .project-image-meta {
  min-height: 2.65rem;
  padding-inline: clamp(.9rem, 1.35vw, 1.75rem);
  border-bottom: 0;
}
.home-page .project-details { padding: clamp(20px, 2.6vw, 52px); overflow-wrap: anywhere }
.home-page .project-information h3 { font-size: clamp(2.65rem, 3.8vw, 4.8rem); line-height: 1.05 }
.home-page .project-tagline { font-size: clamp(1.55rem, 1.85vw, 2.25rem); line-height: 1.28 }
.home-page .project-description { max-width: 54ch; font-size: clamp(1.05rem, 1.05vw, 1.25rem); line-height: 1.7 }
.home-page .project-facts > div { font-size: clamp(.925rem, .93vw, 1.125rem) }
.home-page .projects-foot { padding-top: 1rem }
.home-page .projects-foot .text-link { margin-inline-start: 0; min-height: 44px }
@media (min-width: 1151px) {
  .home-page .project-panel { grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr) }
}
@media (min-width: 701px) and (max-width: 1150px) {
  .home-page .project-panel { grid-template-columns: minmax(0, 1fr) }
  @supports (grid-template-rows: subgrid) {
    .home-page .project-details {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: repeat(4, auto);
      column-gap: var(--column-gap);
    }
    .home-page .project-details .project-information {
      grid-column: 1 / -1;
      grid-row: 1 / span 4;
      grid-template-columns: subgrid;
    }
    .home-page .project-information > :is(.eyebrow, h3, .project-tagline, .project-description) { grid-column: 1 }
    .home-page .project-information .project-facts { grid-area: 1 / 2 / 4 / 3; align-self: start }
    .home-page .project-information .button { grid-area: 4 / 2; align-self: end }
  }
}

/* The full-width navy section separates the people behind the projects from the portfolio. */
.home-page .founders-section {
  width: 100%;
  max-width: none;
  border: 0;
  background: #132d49;
  color: #faf7ee;
}
.home-page .founders-layout { gap: var(--column-gap) }
.home-page .founders-content { gap: clamp(1.4rem, 1.8vw, 2.1rem) }
.home-page .expertise-heading > .eyebrow {
  margin: 0 0 .85rem;
  color: #d1dfe6;
  font-size: .9rem;
}
.home-page #expertise-title { font-size: clamp(2.1rem, 3.25vw, 3.85rem); line-height: 1.15; color: #faf7ee }
.home-page #expertise-title > span { color: inherit }
.home-page #expertise-title > span + span { margin-top: .04em; color: var(--pale-blue) }
.home-page .founders-section .expertise-lead {
  max-width: 53ch;
  margin-block-start: clamp(1rem, 1.45vw, 1.6rem);
  color: #e4ebee;
  font-size: clamp(1.065rem, 1.13vw, 1.35rem);
  line-height: 1.7;
}
.home-page .founder-grid { gap: clamp(.8rem, 1.1vw, 1.35rem) }
.home-page .founder-film-stage {
  min-height: 0;
  border-start-end-radius: clamp(2.25rem, 4.75vw, 6rem);
  background: #0c2138;
}
.home-page .film-brand { top: 44%; width: min(56%, 23rem) }
.home-page .film-watch {
  inset: auto clamp(1.25rem, 2vw, 2.5rem) clamp(1.25rem, 2vw, 2.5rem) auto;
  transform: none;
  flex-direction: row;
  gap: .8rem;
}
.home-page .film-watch-icon { width: 3.15rem; height: 3.15rem }
.home-page .founders-contact { color: #f7f5ef; border-color: #9bb4c3; min-height: 44px }
.home-page .founders-section :is(figcaption, .daroma-film-status) { color: #cddce5 }
.home-page .founders-section a:focus-visible { outline-color: #fff }
@media (min-width: 901px) {
  .home-page .founders-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) }
  .home-page .founder-card {
    display: grid;
    align-items: end;
    min-height: clamp(14rem, 20.5vw, 29rem);
    height: auto;
    aspect-ratio: auto;
  }
  .home-page .founder-details { position: relative; inset: auto }
  .home-page .founder-photo { object-position: 50% 23% }
  .home-page .founders-film { gap: .7rem }
}

/* Balance the collage against short, scannable reasons for choosing the area. */
.home-page .destination-lead {
  max-width: 52ch;
  font-size: clamp(1.125rem, 1.3vw, 1.5rem);
  line-height: 1.65;
}
.home-page .destination-reasons p { max-width: 56ch; line-height: 1.7 }
.home-page .destination-contact { min-height: 44px }
@media (min-width: 901px) {
  .home-page .place.destination .destination-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: var(--column-gap);
    align-items: center;
    grid-template-areas: "clippings story";
  }
  .home-page .place.destination .destination-copy { grid-area: story; align-self: center; padding: 0 }
  .home-page .place.destination .destination-editorial { grid-area: clippings; width: 100%; max-width: none }
  .home-page .collage-heading { align-items: baseline }
}
@media (min-width: 1280px) {
  .home-page .destination-reasons li {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr);
    gap: clamp(1.1rem, 2vw, 2.5rem);
    align-items: baseline;
    padding-block: 1.4rem;
  }
  .home-page .destination-reasons li p { margin: 0 }
}

/* Give the article headlines, questions and contact form the same edges as the work. */
.home-page .press-heading { margin: 0 0 clamp(1.25rem, 2.2vw, 2.5rem) }
.home-page .press-card h3 { font-size: clamp(1.3rem, 1.5vw, 1.75rem); line-height: 1.45 }
.home-page .press-card { box-shadow: none }
.home-page .press-card-body { padding: clamp(1rem, 1.4vw, 1.8rem) }
.home-page .faq-list summary { font-size: clamp(1.075rem, 1.23vw, 1.45rem); padding-block: 1.3rem }
.home-page .faq-answer p { max-width: 62ch; line-height: 1.7 }
.home-page .faq-list summary > span { margin-inline-start: 1rem }
.home-page .contact::after { display: none }
.home-page #contact-title { font-size: clamp(2.8rem, 5.3vw, 6rem); line-height: 1.09; letter-spacing: -.05em }
.home-page .contact-copy > p:not(.eyebrow) {
  max-width: 43ch;
  font-size: clamp(1.075rem, 1.2vw, 1.4rem);
  line-height: 1.65;
}
.home-page .contact-form-wrap { padding: 0; min-width: 0 }
.home-page .contact-form .form-fields input:not([type=checkbox]) { padding-block: .55rem }
.home-page .contact-form .form-fields label { font-size: 1rem }
.home-page .contact-direct { margin-top: 1.1rem }
@media (min-width: 901px) {
  .home-page .press-grid { gap: clamp(1rem, 1.35vw, 1.8rem) }
  .home-page .press-image { aspect-ratio: 1.8 }
  .home-page .questions, .home-page .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: var(--column-gap);
  }
  .home-page .questions { align-items: start }
  .home-page .contact-form-wrap {
    border-inline-start: 1px solid var(--home-rule);
    padding-inline-start: clamp(2rem, 4vw, 5rem);
  }
  .home-page .contact-form, .home-page .contact-direct { max-width: 56rem }
  :is(.home-page, .portfolio-page) .footer { padding-bottom: max(3.5rem, var(--home-edge)) }
}
@media (max-width: 900px) {
  .home-page .founders-layout { gap: 1.5rem }
  .home-page .contact-form-wrap { margin-top: 2rem }
  .home-page .place.destination .destination-copy { display: block; width: 100%; padding: 0 }
  .home-page .place.destination .destination-editorial { margin-top: 2.25rem }
}
@media (max-width: 640px) {
  .home-page .projects .section-heading { display: grid; gap: .8rem; margin-bottom: 1.25rem }
  .home-page .projects .section-heading > p { max-width: 40ch }
  .home-page .project-browse { padding-block: .35rem }
  .home-page .project-tabs { grid-auto-columns: clamp(8.4rem, 40vw, 12.5rem) }
  .home-page .founder-film-stage { aspect-ratio: 1.14 }
  .home-page .film-brand { width: min(65%, 18rem); gap: .6rem }
  .home-page .film-watch { inset: auto 16px 16px auto; max-width: calc(100% - 32px); font-size: .95rem; line-height: 1.35; white-space: normal }
  .home-page .film-watch-icon { flex: none; height: 44px; width: 44px }
  .home-page #expertise-title .expertise-phrase { display: inline; white-space: normal }
  .home-page .founder-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr)); align-items: start }
  .home-page .founder-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-width: none;
    aspect-ratio: auto;
    border: 0;
    background: none;
    overflow: visible;
  }
  .home-page .founder-photo {
    position: static;
    display: block;
    height: auto;
    aspect-ratio: 4/5;
    object-position: 50% 24%;
    transform: none;
  }
  .home-page .founder-details { position: static; background: none; padding: .7rem 0 0 }
  .home-page .founder-trigger { align-items: start; gap: .35rem; min-height: 44px; font-size: clamp(1.12rem, 4.8vw, 1.55rem) }
  .home-page .founder-trigger small { margin-top: .22rem; font-size: .82rem }
  .home-page .founder-plus { width: 1.6rem; height: 1.6rem; font-size: 1.15rem }
  .home-page .founder-bio { padding-top: .65rem; font-size: 1rem; line-height: 1.6 }
  .home-page .destination-editorial { width: calc(100% + 2 * var(--home-edge)); margin-inline: calc(-1 * var(--home-edge)) }
  .home-page .collage-heading { margin-inline: var(--home-edge) }
  .home-page .press-collage { padding-inline: var(--home-edge); scroll-padding-inline: var(--home-edge) }
  .home-page .press-grid { grid-auto-columns: calc(100% - 1.65rem) }
  :is(.home-page, .portfolio-page) .footer { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)) }
}
