:root {
  color-scheme: light;
  --paper: var(--color-paper);
  --ink: #18343e;
  --pen: #153e50;
  --font-editorial: Sentient, Georgia, serif;
  --color-editorial: var(--color-accent);
  --gutter: clamp(24px, 4.3vw, 88px);
}
:where(.baba-site) * { box-sizing: border-box; }
.portfolio-home { margin: 0; background: var(--paper); color: var(--ink); }
.baba-site { font-family: Switzer, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: #d8e9e8; color: #153e50; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100svh;
  min-height: 720px;
  container-type: size;
}
.masthead {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 32px var(--gutter);
  font-size: 14px;
  line-height: 1.5;
}
.brand { font-weight: 500; }
.navigation { display: flex; gap: clamp(28px, 5.8vw, 112px); }
.sun-cta {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: 20%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}
.sun-art { width: clamp(100px, 8.8vw, 160px); aspect-ratio: 1; position: relative; }
.sun-art img { display: block; width: 100%; height: 100%; }
.sun-prompt { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; color:#85817a; font-size:clamp(10px,.7vw,12px); font-weight:400; line-height:1.1; text-align:center; }
.sun-prompt-text { display:block; }
.sun-label { font-size: 13px; line-height: 1.5; }
.hero-copy {
  position: absolute;
  z-index: 3;
  top: 12%;
  left: 26%;
  right: 11%;
  display: flex;
  flex-direction: column;
}
.signature {
  margin: 0;
  color: var(--pen);
  font-family: 'Herr Von Muellerhoff', cursive;
  font-weight: 400;
  font-size: min(20vw, 35cqh);
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}
.intro {
  align-self: flex-end;
  width: min(51%, 545px);
  margin: 30px 0 0;
  font-size: clamp(18px, 1.4vw, 26px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.gull {
  position: absolute;
  z-index: 2;
  background: url('./media/gulls-watercolor.webp') no-repeat;
  background-size: 200% 100%;
  aspect-ratio: 1;
  pointer-events: none;
}
.gull-one { width: 135px; right: 6.7%; top: 13%; background-position: right center; transform: rotate(-11deg); }
.gull-two { width: 105px; left: 25%; top: 59%; background-position: left center; transform: rotate(12deg); }
.sea { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.wave { position: absolute; overflow: hidden; width: 112%; left: -6%; height: 25.55cqw; }
.wave img { display: block; position: absolute; width: 100%; height: auto; max-width: none; }
.wave-far { top: 68%; }
.wave-far img { top: -4.6cqw; }
.wave-middle { top: 76%; }
.wave-middle img { top: -28.1cqw; }
.wave-near { top: 85%; }
.wave-near img { top: -50.1cqw; }

@media (min-aspect-ratio: 2/1) and (min-width: 901px) {
  .hero-copy { top: 10%; }
  .sun-cta { top: 18%; }
  .intro { font-size: 2.65cqh; }
}

@media (max-width: 900px) {
  .hero { min-height: 740px; }
  .masthead { padding-top: 24px; font-size: 12px; }
  .navigation { gap: 24px; }
  .sun-cta { top: 17%; gap: 8px; }
  .sun-art { width: 98px; }
  .sun-label { font-size: 11px; }
  .hero-copy { top: 28%; left: 10%; right: 8%; }
  .signature { font-size: 26vw; }
  .intro { width: 62%; margin-top: 30px; font-size: 19px; }
  .gull-one { width: 100px; right: 10%; top: 17%; }
  .gull-two { width: 80px; left: 15%; top: 57%; }
  .wave { width: 180%; left: -40%; height: 41cqw; }
  .wave-far { top: 72%; }
  .wave-far img { top: -7.4cqw; }
  .wave-middle { top: 80%; }
  .wave-middle img { top: -45.2cqw; }
  .wave-near { top: 89%; }
  .wave-near img { top: -80.5cqw; }
}

@media (max-width: 540px) {
  .hero { min-height: 680px; }
  .masthead { font-size: 11px; padding-top: 24px; }
  .navigation { gap: 18px; }
  .navigation span:first-child { display: none; }
  .sun-cta { top: 15%; left: 28px; gap: 5px; }
  .sun-art { width: 92px; }
  .hero-copy { top: 28%; left: 5%; right: 5%; }
  .signature { font-size: 32vw; line-height: 1.3; }
  .intro { width: 80%; margin-top: 24px; font-size: 16px; line-height: 1.45; }
  .gull-one { right: 12%; top: 20%; width: 92px; }
  .gull-two { left: 13%; top: 64%; width: 68px; }
  .wave { width: 250%; left: -75%; height: 57cqw; }
  .wave-far { top: 75%; height: 72cqw; }
  .wave-far img { top: -14.4cqw; transform: scaleY(1.4); transform-origin: 50% 0; }
  .wave-middle { top: 83%; }
  .wave-middle img { top: -62.8cqw; }
  .wave-near { top: 91%; }
  .wave-near img { top: -112cqw; }
}

/* Give the sea more presence on taller phones, keeping compact layouts separate. */
@media (min-width:361px) and (max-width:540px) and (min-height:741px) {
  .wave-far { top:70%; }
  .wave-middle { top:78%; }
  .wave-near { top:86%; }
}

/* Short portrait screens: keep each part in its own band of the composition. */
@media (max-width:540px) and (max-height:740px), (max-width:360px) {
  .hero { min-height:680px; }
  .masthead { padding:18px 20px; font-size:12px; }
  .navigation { gap:18px; }
  .sun-cta { top:78px; left:24px; gap:8px; }
  .sun-art { width:76px; }
  .sun-label { font-size:12px; }
  .hero-copy { top:216px; left:20px; right:20px; }
  .signature { font-size:31vw; line-height:1.3; }
  .intro { width:88%; margin-top:28px; font-size:16px; line-height:1.5; }
  .gull-one { right:28px; top:94px; width:74px; }
  .gull-two { left:24px; top:74%; width:60px; }
  .wave-far { top:81%; }
  .wave-middle { top:88%; }
  .wave-near { top:95%; }
}

@media (max-width:540px) {
  .signature { text-align:center; font-kerning:none; }
  /* Optical correction from the actual font bounds, also used by the SVG. */
  .signature-text { display:inline-block; transform:translateX(.004em); }
}

.text-editorial {
  font-family:var(--font-editorial);
  font-style:italic;
  font-weight:400;
  font-size:1.05em;
  line-height:inherit;
  letter-spacing:0;
  color:var(--color-editorial);
  font-synthesis:none;
}

.hero-content { position: absolute; inset: 0; }
.gull-flight { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
@media (min-width:901px) {
  .wave { width:128%; left:-14%; height:29.2cqw; }
  .wave-far img { top:-5.26cqw; }
  .wave-middle img { top:-32.12cqw; }
  .wave-near img { top:-57.26cqw; }
}
a { color: inherit; text-decoration: none; }
button, input, summary { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--pen); outline-offset: 6px; }
.navigation a { text-underline-offset: 5px; }
.navigation a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.sun-cta { z-index: 0; }
.sun-art { display: block; }
.sun-cta:focus-visible { outline-offset: 10px; }
.sun-label { position: relative; }
.sun-label::after { content: ''; position: absolute; bottom: -3px; height: 1px; left: 0; right: 0; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.sun-cta:hover .sun-label::after, .sun-cta:focus-visible .sun-label::after { transform: scaleX(1); }
.signature { position: relative; }
.signature-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--pen); pointer-events: none; }
.has-pen .signature-text { opacity: 0; }
.loader { position: absolute; z-index: 10; inset: 0; pointer-events: none; display: none; }
.is-animated .loader, .preparing .loader { display: block; }
.preparing .hero-content { visibility: hidden; }
.preparing .loader { background: #4a89b3; }
.cloud-loader-frame { position:absolute; inset:0; width:100%; height:100%; border:0; pointer-events:none; }

@media (max-width:540px) { .navigation a:first-child { display: none; } .masthead,.sun-label { font-size:12px; } }
@media (prefers-reduced-motion: reduce) { .sun-label::after { transition: none; } }

/* Interaction light uses the original painted edge, so it keeps its brush texture. */
.sun-art { isolation:isolate; --sun-light-opacity:.45; --sun-light-scale:1.1; }
.sun-art::before {
  content:'';
  position:absolute;
  inset:-12%;
  z-index:-1;
  background:url('./media/painted-sun.webp') center / contain no-repeat;
  opacity:0;
  transform:scale(.86) rotate(-8deg);
  transition:opacity .35s ease-out, transform .55s cubic-bezier(.16,1,.3,1);
  pointer-events:none;
}
@media (hover:hover) and (pointer:fine) {
  .sun-cta:hover .sun-art::before { opacity:var(--sun-light-opacity); transform:scale(var(--sun-light-scale)) rotate(4deg); }
}
.sun-cta:focus-visible .sun-art::before { opacity:var(--sun-light-opacity); transform:scale(var(--sun-light-scale)) rotate(4deg); }
.sun-cta:active .sun-art::before { opacity:.55; transform:scale(1.04); transition-duration:.1s; }
.hero[data-reduced-motion=true] .sun-art::before { transition:none; transform:none; }
@media (prefers-reduced-motion:reduce) { .sun-cta .sun-art::before { transition:none; transform:none; } }
