@font-face {
  font-family: IcePoster;
  src: url(media/type/barlow-condensed-black.ttf) format("truetype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: IceText;
  src: url(media/type/archivo-400.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root:has(.ice-portfolio) {
  color-scheme: light;
  background: #d3eaed;
}
.ice-portfolio {
  --ice-ink: #102e42;
  --ice-accent: #125f74;
  --ice-pad: clamp(20px,5vw,104px);
  color: var(--ice-ink);
  font-family: IceText, Arial, sans-serif;
  background: radial-gradient(ellipse at 100% 27%,#d8eef0,transparent 56%),linear-gradient(155deg,#edf7f4 10%,#e1f0ef 48%,#c9e4e9);
}
.ice-mast {
  position: absolute;
  z-index: 10;
  inset: 0 var(--ice-pad) auto;
  height: clamp(65px,10svh,106px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ice-ink);
}
.ice-mast nav,.ice-identity { display:flex;align-items:center; }
.ice-mast nav { gap: clamp(12px,2.1vw,40px); }
.ice-mast a {
  display: inline-flex;
  align-items:center;
  min-height:44px;
  color:inherit;
  white-space:nowrap;
  text-decoration:none;
  font-size:14px;
  font-weight:640;
}
.ice-identity { gap:11px;letter-spacing:-.055em; }
.ice-mast .ice-identity { font-size:18px; }
.ice-sign { display:flex;align-items:center;gap:2px;width:32px;height:24px;transform:skewX(-17deg); }
.ice-sign i { display:block;width:5px;height:18px;background:currentColor; }
.ice-sign i:nth-child(2) { height:11px;align-self:flex-end; }
.ice-sign i:nth-child(3),.ice-sign i:nth-child(4) { height:23px; }
.ice-sign i:nth-child(4) { margin-left:2px; }
.ice-mast nav a { position:relative; }
.ice-mast nav a::after {
  content:"";
  position:absolute;inset:auto 0 7px;
  height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:left;
  transition:transform .22s;
}
.ice-mast nav a:is(:hover,:focus-visible,[aria-current])::after { transform:scaleX(1); }
.ice-chapter {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: clip;
  color: var(--ice-ink);
  background: #d3eaed;
}
.ice-atmosphere,.ice-contours {
  position:absolute;inset:0;pointer-events:none;
}
.ice-atmosphere {
  background:
    radial-gradient(ellipse 88% 74% at 94% -32%,transparent 65%,#edfefe86 72%,transparent 83%),
    radial-gradient(ellipse 52% 80% at 82% 51%,#43889c 0%,#82c0ca 45%,transparent 86%),
    linear-gradient(135deg,#edf7f4 4%,#d3eaed 40%,#b4d8df 70%,#9fcdd5);
}
.ice-contours {
  inset:-20% -9% -15% 36%;
  transform:translate(calc(var(--ice-x,0) * -8px),calc(var(--ice-y,0) * -6px)) rotate(-23deg);
}
.ice-contours i {
  position:absolute;inset:13% 5%;
  border:1px solid #e9ffff60;border-radius:50%;
  transform:rotate(34deg) scaleX(.63);
}
.ice-contours i:nth-child(2) { inset:7% 1%; }
.ice-contours i:nth-child(3) { inset:0 -4%; }
.ice-copy {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: clamp(102px,13svh,150px) var(--ice-pad) clamp(149px,21svh,210px);
  max-width: 62vw;
  pointer-events: none;
}
.ice-copy .ice-title {
  margin:0;
  font-family:IcePoster,"Arial Black",sans-serif;
  font-size:clamp(80px,min(13.2vw,22svh),250px);
  font-weight:900;
  line-height:.76;
  letter-spacing:-.041em;
  text-transform:uppercase;
  text-wrap:nowrap;
  color:inherit;
}
.ice-title span { display:block; }
.ice-title span + span { margin-top:.05em;padding-left:.165em; }
.ice-copy p {
  max-width: 35ch;
  margin:clamp(20px,3.1svh,40px) 0 0;
  font-size:clamp(15px,1.37vw,21px);
  line-height:1.44;
  letter-spacing:-.015em;
  color:#1f4453;
}
.ice-objects { position:absolute;z-index:2;inset:10% 1% 13% 39%;pointer-events:none; }
.ice-sculpt { position:absolute;inset:-3% -5% -3% -4%; }
.ice-poster,.ice-chapter #kinetic {
  position:absolute;inset:0;display:block;width:100%;height:100%;
  pointer-events:none;
  filter:grayscale(1) sepia(.72) saturate(1.75) hue-rotate(146deg);
}
.ice-poster {
  object-fit:contain;
  transform:translate(calc(var(--ice-x,0) * 9px),calc(var(--ice-y,0) * 9px));
}
.ice-chapter #kinetic { z-index:2; }
.ice-chapter:has(#kinetic[data-painted="true"]) .ice-poster { visibility:hidden; }
.ice-rail {
  position:absolute;
  z-index:6;
  inset:auto var(--ice-pad) 0;
  display:flex;
  align-items:center;
  gap:clamp(16px,4vw,62px);
  min-height:clamp(68px,11svh,110px);
  border-top:1px solid #102e4251;
}
.ice-rail a {
  display:inline-flex;align-items:center;gap:7px;
  min-height:44px;
  font-size:clamp(13px,1.06vw,16px);
  font-weight:650;
  color:var(--ice-ink);
  text-decoration:none;
  white-space:nowrap;
}
.ice-rail a::before {
  content:"";
  width:6px;height:6px;
  border:1px solid currentColor;
  transform:rotate(45deg);
  transition:background-color .2s,transform .2s;
}
.ice-rail a:is(:hover,:focus-visible)::before { background:currentColor;transform:rotate(135deg); }
.ice-mast a:focus-visible,.ice-rail a:focus-visible { outline:2px solid var(--ice-accent);outline-offset:3px; }
.ice-portfolio :is(section,h2)[id]:not(#stage) { scroll-margin-top:24px; }
@media (max-width:740px) {
  .ice-mast { height:60px; }
  .ice-mast a { font-size:12px; }
  .ice-mast .ice-identity { font-size:15px;gap:6px; }
  .ice-sign { transform:scale(.78) skewX(-17deg);transform-origin:left center;width:25px; }
  .ice-atmosphere {
    background:
      radial-gradient(ellipse 96% 49% at 66% 61%,#5b9daf 0%,#94cbd3 51%,transparent 95%),
      linear-gradient(154deg,#edf7f4 0%,#d0e9eb 46%,#b4d8df);
  }
  .ice-copy {
    min-height: max(100svh,620px);
    max-width: none;
    align-content:start;
    padding-top:clamp(95px,14svh,130px);
  }
  .ice-copy .ice-title { font-size:clamp(62px,min(17vw,13svh),112px); }
  .ice-copy p { max-width:32ch;margin-top:15px;font-size:15px; }
  .ice-objects { inset:38% 0 17%; }
  .ice-contours { inset:18% -28% 8% -22%; }
  .ice-rail { flex-wrap:wrap;justify-content:flex-start;align-content:center;gap:0 17px;min-height:74px; }
  .ice-rail a { min-height:36px;font-size:12px; }
}
@media (max-width:345px) {
  .ice-mast { gap:7px; }
  .ice-mast nav { gap:8px; }
  .ice-mast nav a { font-size:11px; }
  .ice-sign { display:none; }
}
@media (orientation:landscape) and (max-height:550px) {
  .ice-copy { min-height:440px; }
  .ice-copy .ice-title { font-size:clamp(62px,min(12vw,26svh),128px); }
}
@media (prefers-reduced-motion:reduce) {
  .ice-mast nav a::after,.ice-rail a::before { transition:none; }
}
