@font-face {
  font-family:Lora;
  src:url('assets/Lora-Regular.ttf') format('truetype');
  font-display:swap;
  font-weight:400
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:30px
}

body {
  margin:0;

  color:#263329;
  font:16px/1.65 'Segoe UI',Arial,sans-serif
}

a {
  color:inherit;
  text-underline-offset:5px
}

img {
  display:block;
  max-width:100%;
  object-fit:cover
}

button,input,select {
  font:inherit
}

button {
  cursor:pointer
}

button,a,summary {
  -webkit-tap-highlight-color:transparent
}

a:focus-visible,button:focus-visible,summary:focus-visible {
  outline:2px solid #aa5f40;
  outline-offset:6px
}

h1,h2,h3,p {
  margin-top:0
}

h1,h2 {
  font:600 58px/1.1 'Segoe UI',Arial,sans-serif;
  letter-spacing:normal
}

h2 {
  font-size:46px
}

h1 em,h2 em {
  font-style:normal;
  font-weight:500;
  color:#6b7f60
}

h3 {
  font-weight:500;
  line-height:1.3
}

p {
  color:#73696a
}

.wrap {
  width:min(1160px,calc(100% - 96px));
  margin-inline:auto
}

.section {
  padding-block:105px
}

.header {
  display:flex;
  align-items:center;

  border-bottom:1px solid #dfe5dc;
  gap:36px
}

.brand {
  align-items:center;
  flex-shrink:0;
  text-decoration:none
}

.brand img {
  width:288px;
  height:54px;
  object-fit:contain
}

.lead {
  max-width:425px;
  font-size:17px;
  line-height:1.75;
  margin-bottom:30px
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;

  border:1px solid transparent;
  border-radius:9px;
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  min-height:52px
}

.button.dark {
  color:#ffffff
}

.button:hover {
  filter:brightness(1.13)
}

.button.light {
  color:#39262e
}

.section-intro {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  column-gap:80px;
  align-items:end;
  margin-bottom:48px
}

.section-intro h2 {
  margin:0
}

.section-intro>p:last-child {
  max-width:320px;
  font-size:16px;
  margin-bottom:6px
}

.project {
  margin-bottom:62px
}

.project:last-child {
  margin-bottom:0
}

.project-image {
  display:block;
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#eef2e9
}

.project-image>img {
  width:100%;
  height:100%;
  transition:transform .2s
}

.project-image:hover>img {
  transform:scale(1.025)
}

.project-meta {
  display:flex;
  justify-content:space-between;
  gap:25px;

  margin-top:22px
}

.project-meta h3 {
  letter-spacing:normal;
  margin:8px 0
}

.project-meta p {
  font-size:15px;
  margin:0
}

.text-link {
  font-size:15px;
  white-space:normal;
  background:none;
  border:0;
  padding:6px 0;
  text-decoration:none;
  border-bottom:1px solid #a68e7b
}

.contact-section {
  color:#f6efe3
}

.contact-grid {
  display:grid;

  gap:130px;
  align-items:center
}

.contact-section h2 em {
  color:#cfb3a1
}

.contact-section p {
  color:#c8b9ba;
  max-width:440px;
  font-size:16px
}

.contact-email {
  display:inline-block;
  margin:18px 0;
  font:400 26px Lora,Georgia,serif;
  letter-spacing:normal;
  text-decoration:none;
  border-bottom:1px solid #a88e86;
  padding-bottom:10px
}

.contact-email span {
  padding-left:20px
}

.contact-section .contact-note {
  font-size:14px
}

.brief-card {
  padding:0 0 0 35px
}

.faq {
  max-width:760px
}

.faq details {
  border-bottom:1px solid #d2c6b8;
  padding:21px 0
}

.faq summary {
  cursor:pointer;
  font:500 19px 'Segoe UI',Arial,sans-serif;
  list-style:none;
  display:flex;
  gap:25px;
  justify-content:space-between
}

.faq summary:after {
  content:'+';
  font:20px Arial
}

.faq details[open] summary:after {
  content:'−'
}

.faq details p {
  font-size:16px;
  margin:18px 30px 0 0
}

.skip {
  position:fixed;
  top:-100px;
  left:20px;
  z-index:30;
  background:white;
  padding:12px
}

.skip:focus {
  top:10px
}

dialog {
  width:min(620px,calc(100% - 30px));
  max-height:90svh;
  overflow-y:auto;
  padding:45px;
  border:1px solid #c9bbac;
  background:#f5f1e9;
  color:#39262e
}

dialog::backdrop {
  background:#241a1f9c;
  backdrop-filter:blur(4px)
}

dialog h2 {
  font-size:34px
}

dialog>p,.brief-questions {
  font-size:16px
}

.brief-questions {
  padding-left:20px
}

.brief-questions li {
  padding:0 0 12px 5px
}

.dialog-close {
  position:absolute;
  right:16px;
  top:12px;
  font-size:27px;
  background:none;
  border:0;
  color:inherit;
  min-width:40px;
  min-height:40px
}

.dialog-close:hover {
  background:#e8dfd3
}

.dialog-close:focus-visible {
  outline-offset:0
}

.dialog-close~p:last-child {
  min-height:20px
}

.dialog-close~.dialog-actions {
  display:flex
}

.dialog-close~.dialog-actions a {
  margin-left:20px
}

.dialog-close~.dialog-actions {
  gap:20px
}

.dialog-close~.brief-questions {
  line-height:1.6
}

.dialog-close~.dialog-actions .text-link {
  white-space:normal
}

.dialog-actions {
  display:flex;
  gap:25px;
  align-items:center;
  flex-wrap:wrap
}

#copy-status {
  margin:15px 0 0
}

@media(max-width:900px) {
  .wrap {
    width:calc(100% - 56px)
  }

  .header {
    flex-wrap:wrap;
    padding-block:20px;
    gap:16px
  }

  .contact-grid {
    gap:55px
  }

  .contact-email {
    font-size:22px
  }

  .contact-email span {
    padding-left:8px
  }
}

@media(max-width:650px) {
  html {
    scroll-padding-top:20px
  }

  .wrap {
    width:calc(100% - 40px)
  }

  .header {

    flex-wrap:wrap;

    padding-block:22px
  }

  .brand {
    font-size:22px
  }

  .header .brand img {
    width:260px;
    height:49px
  }

  .lead {
    font-size:16px
  }

  .section {
    padding-block:65px
  }

  h2 {
    font-size:35px;
    letter-spacing:normal
  }

  .section-intro {
    display:block;
    margin-bottom:30px
  }

  .section-intro h2 {
    margin-bottom:22px
  }

  .section-intro>p:last-child {
    font-size:15px
  }

  .project-image {
    height:auto
  }

  .project-meta {
    display:block;
    margin-top:17px
  }

  .project-meta .text-link {
    display:inline-block;
    margin-top:14px
  }

  .project-meta h3 {
    font-size:23px
  }

  .project-meta p {
    font-size:14px
  }

  .project {
    margin-bottom:40px
  }

  .contact-grid {
    gap:35px
  }

  .contact-email {
    font-size:21px;
    overflow-wrap:anywhere
  }

  .brief-card {
    padding:10px 0 0
  }

  .faq summary {
    font-size:17px;
    gap:15px
  }

  dialog {
    padding:35px 24px
  }

  .dialog-close {
    right:8px
  }

  .button {
    max-width:100%
  }

  .dialog-actions {
    gap:18px
  }
}

@media(prefers-reduced-motion:reduce) {
  html:not(.animation-preview) {
    scroll-behavior:auto
  }

  html:not(.animation-preview) *,html:not(.animation-preview) *:before,html:not(.animation-preview) *:after {
    transition:none!important;
    animation:none!important
  }
}

.project-type {
  font-size:14px;
  color:#526349;
  margin:0 0 8px
}

.faq h2 {
  font-size:32px;
  margin-bottom:22px
}

.section-intro h2 {
  max-width:650px;
  text-wrap:balance
}

.contact-section p {
  color:#e3e9df
}

@media(max-width:650px) {
  .faq h2 {
    font-size:28px
  }
}

.work .section-intro {
  display:block
}

.contact-grid {
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:60px
}

.brief-card {
  padding:0
}

.contact-note {
  max-width:450px
}

.contact-section {
  padding-block:75px
}

@media(max-width:650px) {

  .contact-grid {
    grid-template-columns:1fr;
    gap:24px
  }

  .contact-section {
    padding-block:56px
  }
}

.work {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:36px;
  padding-block:80px
}

.work .section-intro {
  grid-column:1/-1;
  margin-bottom:0
}

.work .project {
  margin:0;
  min-width:0
}

.project-image {
  border-radius:8px
}

.project-meta {
  align-items:flex-start;
  gap:16px
}

.project-meta h3 {
  font:600 23px/1.3 'Segoe UI',Arial,sans-serif;
  margin:5px 0 0
}

.project-meta .text-link {
  white-space:nowrap;
  font-size:14px
}

.project-image>img {
  transition:transform .35s ease-out
}

.button {
  transition:transform .18s ease-out,background .18s ease-out
}

.button:active {
  transform:scale(.97)
}

.text-link span {
  display:inline-block;
  transition:transform .18s ease-out
}

.faq {
  padding-block:65px 85px
}

.faq summary {
  align-items:center;
  min-height:32px
}

.faq details[open] p {
  animation:answer-in .22s ease-out
}

.has-entered {
  animation:section-in .65s cubic-bezier(.16,1,.3,1) both
}

.hero-copy.has-entered {
  animation-duration:.75s
}

@keyframes section-in {
  from {
    opacity:0;
    transform:translateY(16px)
  }

  to {
    opacity:1;
    transform:translateY(0)
  }
}

@keyframes answer-in {
  from {
    opacity:0;
    transform:translateY(-4px)
  }

  to {
    opacity:1;
    transform:translateY(0)
  }
}

@media(hover:hover) and (pointer:fine) {
  .text-link:hover span {
    transform:translate(2px,-2px)
  }

  .button:hover {
    transform:translateY(-2px)
  }

  .project-image:hover>img {
    transform:scale(1.025)
  }
}

@media(max-width:900px) {
  .project-meta {
    display:block
  }

  .project-meta .text-link {
    display:inline-block;
    margin-top:14px
  }
}

@media(max-width:650px) {
  .work {
    grid-template-columns:1fr;
    padding-block:56px;
    gap:32px
  }

  .project-meta h3 {
    font-size:22px
  }

  .faq {
    padding-block:48px 60px
  }
}

@media(prefers-reduced-motion:reduce) {
  html:not(.animation-preview) .button:hover,html:not(.animation-preview) .button:active,html:not(.animation-preview) .project-image:hover>img {
    transform:none
  }
}

.gallery-image {
  width:100%;
  padding:0;
  border:0;
  cursor:pointer;
  text-align:initial;
  color:inherit
}

.gallery-image>img {
  aspect-ratio:1264/800;
  object-fit:cover
}

.gallery-controls {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-top:12px
}

.gallery-controls[hidden] {
  display:none
}

.gallery-controls button {
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #d5ddd2;
  border-radius:50%;
  background:transparent;
  color:#263329;
  font:22px/1 'Segoe UI',Arial,sans-serif;
  cursor:pointer;
  transition:background .18s ease-out,transform .18s ease-out
}

.gallery-controls button:hover {
  background:#edf1e9
}

.gallery-controls button:active {
  transform:scale(.97)
}

.gallery-status {
  font-size:13px;
  font-variant-numeric:tabular-nums;
  color:#526349
}

.gallery-image:focus-visible,.gallery-controls button:focus-visible {
  outline:3px solid #647b5c;
  outline-offset:4px
}

body {
  background:#f7f1eb;
  color:#402b3b
}

.header {
  border-color:#e1d4dc
}

.button.dark {
  background:#684357;
  color:#fff
}

.project-image {
  background:#e8ecef
}

.project-meta h3 {
  color:#382c35
}

.project-type,.gallery-status {
  color:#586b7d
}

.gallery-controls button {
  border-color:#ccd5dd;
  color:#3f5b76
}

.gallery-controls button:hover {
  background:#e9edf1
}

.faq details {
  border-color:#ded1d9
}

.gallery-image:focus-visible,.gallery-controls button:focus-visible,a:focus-visible,button:focus-visible,summary:focus-visible {
  outline-color:#765568
}

.contact-section {
  background:#402b3b;
  color:#fff
}

.contact-section p {
  color:#f0e7ed
}

.button.light {
  background:#f8f1eb;
  color:#402b3b
}

body {
  font-family:Manrope,"Trebuchet MS",Arial,sans-serif
}

.brand {
  color:#402b3b
}

.wordmark {
  font:400 29px/1.2 Fraunces,Georgia,serif;

  white-space:nowrap
}

.section-intro h2,.faq h2,.contact-section h2,.project-meta h3,#brief-title {
  font-family:Fraunces,Georgia,serif;
  font-weight:400;
  letter-spacing:0
}

.project-meta h3 {
  font-size:24px
}

.button,
.faq summary,
.gallery-controls button {
  font-family:Manrope,"Trebuchet MS",Arial,sans-serif
}

.button {
  border-radius:2px
}

.button {
  padding:16px 23px;
  letter-spacing:.01em
}

.gallery-controls button {
  border-radius:2px
}

.faq summary {
  font-size:18px
}

@media(max-width:650px) {
  .wordmark {
    font-size:27px
  }

  .faq summary {
    font-size:17px
  }
}

.brand {
  gap:13px
}

.brand img.brand-mark {


  flex:none
}

@media(max-width:650px) {
  .brand {
    gap:10px
  }

  .brand img.brand-mark {
    height:43px
  }
}

.header {
  gap:24px
}

@media(max-width:650px) {
  .header {
    display:flex;
    gap:9px;
    padding-block:16px
  }

  .wordmark {
    font-size:25px
  }

  .brand img.brand-mark {
    height:40px
  }
}

.header {
  min-height:94px;
  padding-block:20px
}

.brand {
  display:inline-flex;
  width:auto;
  justify-content:center
}

.wordmark {
  font-family:Fraunces,Georgia,serif;
  font-size:30px;
  letter-spacing:.015em;
  color:#402b3b
}

.hero-actions {
  display:flex;
  align-items:stretch;
  gap:12px
}

.hero-actions .button {
  justify-content:space-between;
  min-width:190px
}

.hero-actions .hero-contact {
  color:#684357;
  background:rgba(247,241,235,.78);
  border:1px solid #684357
}

.hero-actions .hero-contact:hover {
  background:#eee2e8;
  color:#402b3b
}

@media(max-width:650px) {
  .header {
    min-height:76px;
    padding-block:14px
  }

  .brand {
    width:auto
  }

  .wordmark {
    font-size:27px
  }

  .hero-actions {
    flex-direction:column;
    align-items:flex-start;
    gap:10px
  }

  .hero-actions .button {
    width:min(100%,250px);
    min-width:0
  }

  .hero-actions .hero-contact {
    background:rgba(247,241,235,.8)
  }
}

.wordmark {
  display:inline-flex;
  align-items:baseline;
  gap:0;
  white-space:nowrap;
  letter-spacing:0
}

.wordmark svg {
  display:inline-block;
  align-self:center;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  overflow:visible
}

.brand {
  gap:12px
}

.brand img.brand-mark {
  width:46px;
  height:46px;
  object-fit:contain;
  flex:none
}

.brand .wordmark {
  display:inline;
  font-family:Fraunces,Georgia,serif;
  white-space:nowrap
}

@media(max-width:650px) {
  .brand {
    gap:10px
  }

  .brand img.brand-mark {
    width:40px;
    height:40px
  }
}

.site-footer {
  background:#f7f1eb;
  color:#695764
}

.site-footer-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding-block:24px;
  font-size:14px
}

.site-footer a {
  color:inherit;
  text-underline-offset:4px
}

@media(max-width:650px) {
  .site-footer-inner {
    flex-wrap:wrap;
    gap:8px 20px
  }
}

.site-footer-brand {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:Fraunces,Georgia,serif;
  font-size:17px
}

.site-footer-brand img {
  width:36px;
  height:36px;
  object-fit:contain
}

.gallery-image {
  cursor:zoom-in
}


.header {
  justify-content:space-between;
}

.desktop-header-links {
  display:flex;
  align-items:center;
  gap:32px;
}

.desktop-header-links a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:#4b3345;
  text-decoration:none;
  font-size:15px;
  text-underline-offset:6px;
}

.desktop-header-links a:hover {
  text-decoration:underline;
}

@media(max-width:650px) {
  .header {
    justify-content:center;
  }

  .desktop-header-links {
    display:none;
  }
}


.project-band {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#e8dfe6;
}

.project-band::before,
.project-band::after {
  content:"";
  position:absolute;
  z-index:-1;
  width:clamp(220px,30vw,420px);
  aspect-ratio:1;
  border:1px solid rgba(104,67,87,.13);
  border-radius:50%;
  pointer-events:none;
}

.project-band::before {
  top:-150px;
  left:-140px;
}

.project-band::after {
  right:-150px;
  bottom:-170px;
}

.project-band.has-entered::before {
  animation:project-shape-in 1.4s ease-out both;
}

.project-band.has-entered::after {
  animation:project-shape-in 1.4s .15s ease-out both;
}

.faq-band {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background-color:#fff;
}

.faq-band::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20900%20600%22%3E%3Cg%20fill%3D%22%23e8d9b8%22%3E%3Cpath%20d%3D%22M140%2032c8%2067%2032%2091%2099%2099-67%208-91%2032-99%2099-8-67-32-91-99-99%2067-8%2091-32%2099-99z%22%2F%3E%3Cpath%20d%3D%22M770%20290c7%2054%2026%2073%2080%2080-54%207-73%2026-80%2080-7-54-26-73-80-80%2054-7%2073-26%2080-80z%22%2F%3E%3Cpath%20transform%3D%22translate%28210%200%29%22%20d%3D%22M330%20385c4%2031%2015%2042%2046%2046-31%204-42%2015-46%2046-4-31-15-42-46-46%2031-4%2042-15%2046-46z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-position:center top;
  background-repeat:no-repeat;
  background-size:100% auto;
}

@keyframes project-shape-in {
  from { opacity:0; transform:translateY(24px) scale(.97); }
  to { opacity:1; transform:translateY(0) scale(1); }
}

.header {
  position:relative;
  isolation:isolate;
}

.header::before,
.site-footer::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.7;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20380%2080%22%3E%3Cg%20fill%3D%22%23c7b798%22%3E%3Cpath%20d%3D%22M55%2013l1.5%204%204%201.5-4%201.5-1.5%204-1.5-4-4-1.5%204-1.5z%22%2F%3E%3Cpath%20d%3D%22M285%2049l1.2%203.2%203.2%201.2-3.2%201.2-1.2%203.2-1.2-3.2-3.2-1.2%203.2-1.2z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-repeat:repeat-x;
  background-position:center;
  background-size:380px 100%;
}

.site-footer {
  position:relative;
  isolation:isolate;
}

.button {
  transition:transform .18s ease-out, background-color .18s ease-out, box-shadow .18s ease-out;
}

.button:active {
  transform:scale(.97);
}

@media(hover:hover) and (pointer:fine) {
  .button:hover {
    transform:translateY(-2px);
    box-shadow:0 5px 12px rgba(64,43,59,.12);
  }
}

@media(prefers-reduced-motion:reduce) {
  html:not(.animation-preview) .button,
  html:not(.animation-preview) .gallery-controls button {
    transition:none;
  }

  html:not(.animation-preview) .button:hover,
  html:not(.animation-preview) .button:active,
  html:not(.animation-preview) .gallery-controls button:hover,
  html:not(.animation-preview) .gallery-controls button:active {
    transform:none;
  }
}

@media(max-width:650px) {
  .header::before,
  .site-footer::before {
    opacity:1;
    background-size:190px 100%;
  }

  .faq-band::before {
    background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20375%20620%22%3E%3Cg%20fill%3D%22%23e5d1a5%22%3E%3Cpath%20d%3D%22M42%2030c4%2034%2016%2046%2050%2050-34%204-46%2016-50%2050-4-34-16-46-50-50%2034-4%2046-16%2050-50z%22%2F%3E%3Cpath%20d%3D%22M320%20120c3%2028%2013%2038%2041%2041-28%203-38%2013-41%2041-3-28-13-38-41-41%2028-3%2038-13%2041-41z%22%2F%3E%3Cpath%20d%3D%22M85%20295c3%2025%2012%2034%2037%2037-25%203-34%2012-37%2037-3-25-12-34-37-37%2025-3%2034-12%2037-37z%22%2F%3E%3Cpath%20transform%3D%22translate%2838%200%29%22%20d%3D%22M300%20440c4%2032%2015%2043%2047%2047-32%204-43%2015-47%2047-4-32-15-43-47-47%2032-4%2043-15%2047-47z%22%2F%3E%3Cpath%20d%3D%22M160%20520c2%2018%209%2025%2027%2027-18%202-25%209-27%2027-2-18-9-25-27-27%2018-2%2025-9%2027-27z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    background-position:center top;
    background-size:100% auto;
    background-repeat:repeat-y;
  }
}

.faq p strong {
  color:#684357;
  font-weight:700;
}

@media(max-width:650px) {
  .faq details p {
    margin-right:0;
  }
}

.faq {
  background-color:rgba(255,255,255,.2);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
}

@media(max-width:650px) {
  .faq-band::before {
    filter:blur(2px);
  }

  .faq {
    background-color:transparent;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
}

.arrow-icon {
  display:inline-block;
  height:1em;
  vertical-align:-.14em;
  fill:currentColor;
  flex:none;
}

.contact-section .contact-note {
  margin:20px 0 0;
  font-size:16px;
  line-height:1.6;
}

.portfolio-hero {
  position:relative;
  isolation:isolate;
  display:grid;
  align-items:center;
  min-height:clamp(520px, 72svh, 700px);
  padding:64px 0;
  overflow:hidden;
  background:#edeff0;
}

.hero-background {
  position:absolute;
  inset:0;
  z-index:-1;
  container-type:size;
  overflow:hidden;
  filter:blur(.8px);
  pointer-events:none;
}

.hero-background picture,
.hero-background-image {
  display:block;
  width:100%;
}

.hero-background-image {
  height:auto;
}

.portfolio-hero::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg, rgba(247,241,235,.96), rgba(247,241,235,.88) 34%, rgba(247,241,235,.28));
  pointer-events:none;
}

.portfolio-hero .hero-copy {
  max-width:650px;
}

.portfolio-hero h1 {
  margin:0 0 28px;
  font:400 clamp(46px, 5.3vw, 70px)/1.12 Fraunces, Georgia, serif;
  color:#382c35;
  text-wrap:balance;
}

.portfolio-hero .lead {
  margin:0 0 30px;
  max-width:430px;
  font-size:19px;
  line-height:1.65;
  color:#675661;
}

.portfolio-hero .hero-background-image {
  animation:site-scroll 32s linear infinite paused;
}

.portfolio-hero.is-moving .hero-background-image {
  animation-play-state:running;
}

@keyframes site-scroll {
  0% { transform:translateY(0); opacity:1; }
  98% { transform:translateY(calc(-100% + 100cqh)); opacity:1; }
  99% { transform:translateY(calc(-100% + 100cqh)); opacity:0; }
  100% { transform:translateY(0); opacity:0; }
}

@media (max-width:650px) {
  .portfolio-hero {
    min-height:540px;
    padding-block:60px;
  }

  .portfolio-hero::after {
    background:rgba(247,241,235,.90);
  }

  .portfolio-hero h1 {
    font-size:43px;
    margin-bottom:24px;
  }

  .portfolio-hero .lead {
    max-width:310px;
    font-size:17px;
    color:#594650;
  }

  .portfolio-hero .hero-background-image {
    animation-duration:36s;
  }
}

@media (prefers-reduced-motion:reduce) {
  html:not(.animation-preview) .portfolio-hero .hero-background-image {
    animation:none;
  }
}


.case-films {
  padding-block:clamp(40px, 7vw, 90px);
}

.case-intro {
  max-width:650px;
  margin:0 auto 24px;
}

.case-type {
  margin:0 0 8px;
  color:#765568;
  font-size:14px;
}

.case-intro h2 {
  margin:0 0 12px;
  font:400 clamp(38px, 6vw, 62px)/1.1 Fraunces, Georgia, serif;
}

.case-intro > p:not(.case-type) {
  margin:0;
  color:#67545f;
}

.case-features {
  margin:20px 0 0;
  padding-left:20px;
  color:#67545f;
  line-height:1.6;
}

.case-features li + li {
  margin-top:7px;
}

.case-features li::marker {
  color:#765568;
}

.case-features strong {
  color:#57344a;
  font-family:Fraunces,Georgia,serif;
  font-style:italic;
  font-weight:600;
}

.case-fullscreen-preview {
  width:min(100%, calc(78svh * 360 / 752));
  max-width:460px;
  margin-inline:auto;
  overflow:hidden;
  background:#f2e6d6;
}

.case-scroll-video {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:360 / 752;
  object-fit:contain;
}

.case-phone-top,
.case-phone-bottom {
  display:none;
}

.case-visit {
  display:flex;
  width:fit-content;
  margin:24px auto 0;
}

@media (max-width:650px) {
  .case-fullscreen-preview {
    width:100%;
    max-width:460px;
  }
}

@media (min-width:760px) {
  .case-films {
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(290px, 350px);
    grid-template-rows:1fr auto 1fr;
    column-gap:clamp(55px, 9vw, 140px);
    align-items:start;
  }

  .case-intro {
    grid-column:1;
    grid-row:1 / 3;
    align-self:end;
    margin:0 0 26px;
  }

  .case-visit {
    grid-column:1;
    grid-row:3;
    margin:0;
  }

  .case-fullscreen-preview {
    grid-column:2;
    grid-row:1 / 4;
    position:relative;
    width:100%;
    aspect-ratio:392 / 800;
    overflow:hidden;
    border-radius:44px;
    background:transparent;
    filter:drop-shadow(0 20px 24px rgba(51, 32, 45, .2));
  }

  .case-fullscreen-preview::after {
    content:"";
    position:absolute;
    inset:0;
    z-index:2;
    background:url("assets/iphone-15-frame.png") center / 100% 100% no-repeat;
    pointer-events:none;
  }

  .case-scroll-video {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .case-phone-screen {
    position:absolute;
    z-index:3;
    inset:10px;
    overflow:hidden;
    border-radius:46px;
    isolation:isolate;
    -webkit-mask-image:-webkit-radial-gradient(white, black);
  }

  .case-phone-top,
  .case-phone-bottom {
    display:block;
    position:absolute;
    left:0;
    right:0;
    z-index:3;
    pointer-events:none;
  }

  .case-phone-top {
    top:0;
    height:45px;
    background:linear-gradient(to bottom,#f5ead8 65%,rgba(245,234,216,0) 100%);
  }

  .case-phone-time {position:absolute;top:14px;left:9%;color:#1c1c1e;font:600 12px/1 Arial,sans-serif;}
  .case-phone-status {position:absolute;top:11px;right:8%;width:54px;height:16px;}

  .case-phone-notch {
    display:block;
    position:absolute;
    z-index:3;
    top:5px;
    left:50%;
    width:112px;
    height:24px;
    transform:translateX(-50%);
    border-radius:20px;
    background:#050505;
  }

  .case-phone-bottom {
    bottom:8px;
    left:5%;
    right:5%;
    height:53px;
    display:flex;
    align-items:center;
    gap:6px;
  }

  .case-address {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex:1;
    min-width:0;
    height:37px;
    padding:0 10px;
    box-sizing:border-box;
    border-radius:24px;
    background:rgba(130,130,125,.64);
    box-shadow:0 1px 5px rgba(0,0,0,.25);
    color:#fff;
    font:11px/1.2 Arial, sans-serif;
    text-align:center;
  }

  .case-safari-back,
  .case-safari-more {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:none;
    width:37px;
    height:37px;
    border-radius:50%;
    background:rgba(130,130,125,.64);
    box-shadow:0 1px 5px rgba(0,0,0,.25);
  }

  .case-safari-back img,
  .case-safari-more img {
    width:20px;
    height:20px;
    filter:brightness(0) invert(1);
  }

  .case-page-icon,
  .case-reload {
    font-size:17px;
  }

  .case-safari-more {
    color:#fff;
    font:700 10px/1 Arial,sans-serif;
    letter-spacing:1px;
  }

  .case-home-indicator {
    width:85px;
    height:4px;
    border-radius:4px;
    background:#171618;
  }
}

/* How the collaboration works */
.process-section { background:#f8f1eb; padding-block:90px; }
.process-layout { display:grid; grid-template-columns:minmax(0, .8fr) minmax(0, 1.2fr); gap:clamp(48px, 8vw, 120px); align-items:start; }
.process-layout h2 { margin:0; font:400 clamp(32px, 3.5vw, 44px)/1.15 Fraunces, Georgia, serif; color:#402b3b; }
.process-intro p { max-width:320px; margin:20px 0 0; font-size:16px; line-height:1.6; }
.process-steps { list-style:none; margin:0; padding:0; border-top:1px solid #d2c3cb; }
.process-steps li { display:grid; grid-template-columns:44px minmax(0, 1fr); gap:16px; padding:22px 0; border-bottom:1px solid #d2c3cb; }
.process-number { color:#765568; font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; padding-top:3px; }
.process-steps h3 { margin:0 0 7px; color:#402b3b; font:700 18px/1.4 Manrope, sans-serif; }
.process-steps p { margin:0; max-width:520px; font-size:16px; line-height:1.6; }
@media (max-width:650px) {
  .process-section { padding-block:60px; }
  .process-layout { grid-template-columns:1fr; gap:30px; }
  .process-steps li { grid-template-columns:34px minmax(0, 1fr); gap:12px; }
}

.case-preview-label {
  text-align:center;
  margin:24px 0 10px;
  color:#67545f;
  font-size:14px;
}
.copy-email {
  color:inherit;
  text-decoration:underline;
  cursor:pointer;
}
#copy-email-status {
  margin:6px 0 0;
}
@media (min-width:760px) {
  .case-preview-label {
    grid-column:2;
    grid-row:1;
    align-self:start;
    margin:-24px 0 0;
  }
}
