/* Agarta 2.5: content first, one desktop viewport when it is sufficiently tall.
   No viewport clipping or scale. Expanded text, errors and resized fields may scroll. */
:root{--agm-view-height:100vh;--agm-vh:1vh}
@supports(height:100svh){:root{--agm-view-height:100svh;--agm-vh:1svh}}

/* Latest approved Space title: two phrases, each with its own alpha gradient. */
body.agm-page[data-theme=space] .agm-hero h1{
 font-size:clamp(24px,4.45vw,64px);line-height:1.04;max-inline-size:650px;
}
body.agm-page[data-theme=space] .agm-title-space>span{
 display:block;inline-size:max-content;max-inline-size:100%;color:#fff;
}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
 body.agm-page[data-theme=space] .agm-title-space>span{
  background-image:linear-gradient(to top right,rgba(255,255,255,.25) 0%,rgba(255,255,255,.70) 52%,#fff 74%);
  background-repeat:no-repeat;background-size:100% 100%;
  background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
 }
}
body.agm-page[data-theme=space] .agm-title-space>span::selection{
 background:#fff;color:#07101e;-webkit-text-fill-color:#07101e;
}
@media(max-width:580px){
 body.agm-page[data-theme=space] .agm-hero h1{font-size:clamp(24px,6.5vw,36px)}
}
@media(prefers-contrast:more),(prefers-reduced-transparency:reduce){
 body.agm-page[data-theme=space] .agm-title-space>span{
  background-image:none;color:#fff;-webkit-text-fill-color:#fff;
 }
}
@media(forced-colors:active){
 body.agm-page[data-theme=space] .agm-title-space>span{
  background-image:none;color:CanvasText;-webkit-text-fill-color:CanvasText;
 }
}

/* Two desktop entry points cover common short browser windows, including 638px.
   At smaller dimensions the original natural-flow layout stays active. */
@media (min-width:1100px) and (min-height:620px), (min-width:1024px) and (min-height:640px){
 body.agm-page[data-theme]{
  --agm-copy-top:clamp(60px,calc(var(--agm-vh)*8.8),96px);
  --agm-copy-bottom:clamp(28px,calc(var(--agm-vh)*4.3),44px);
  --agm-inline-pad:clamp(24px,2.3vw,38px);
  min-block-size:var(--agm-view-height);
 }
 body.agm-page[data-theme] .agm-shell{
  block-size:var(--agm-view-height);padding-block:10px;
  display:grid;grid-template-rows:auto minmax(min-content,1fr) auto;
 }
 body.agm-page[data-theme] .agm-switch{
  min-block-size:0;block-size:60px;padding-block:3px;
 }
 body.agm-page[data-theme] .agm-switch__control{grid-template-rows:32px 22px}
 body.agm-page[data-theme] .agm-switch input[type=range]{block-size:32px}
 body.agm-page[data-theme] .agm-switch__labels button{
  min-block-size:22px;padding-block:2px;font-size:11px;line-height:1.4;
 }
 body.agm-page[data-theme] .agm-switch__caption{font-size:11px}
 body.agm-page[data-theme] .agm-experience{
  display:grid;grid-template-rows:minmax(min-content,1fr) auto;
  min-block-size:min-content;overflow:visible;
 }
 body.agm-page[data-theme] .agm-hero{
  min-block-size:min-content;align-items:center;container-type:inline-size;
  border-start-start-radius:var(--agm-radius);border-start-end-radius:var(--agm-radius);
 }
 body.agm-page[data-theme] .agm-header{
  padding:12px var(--agm-inline-pad);gap:20px;
 }
 body.agm-page[data-theme] .agm-brand img{inline-size:40px;block-size:40px}
 body.agm-page[data-theme] .agm-brand__type{font-size:16px}
 body.agm-page[data-theme] .agm-brand small{font-size:6px;margin-block-start:6px}
 body.agm-page[data-theme] .agm-nav{gap:22px;margin-inline-end:12px}
 body.agm-page[data-theme] .agm-nav a{font-size:11px}
 body.agm-page[data-theme] .agm-header__contact{
  min-block-size:36px;padding:8px 14px;font-size:11px;line-height:1.4;
 }
 body.agm-page[data-theme] .agm-hero__copy{
  inline-size:100%;max-inline-size:none;
  padding:var(--agm-copy-top) 5.5% var(--agm-copy-bottom) 10%;
 }
 body.agm-page[data-theme] .agm-status{
  font-size:10px;line-height:1.4;margin-block-end:8px;
 }
 body.agm-page[data-theme] .agm-hero__intro{
  max-inline-size:420px;font-size:clamp(12px,calc(var(--agm-vh)*1.65),14px);
  line-height:1.55;margin-block:12px 16px;
 }
 body.agm-page[data-theme] .agm-hero__cta{
  min-block-size:40px;padding:9px 15px;font-size:11px;line-height:1.4;
 }
 body.agm-page[data-theme] .agm-scene-note{
  inset-block-end:14px;inset-inline-start:var(--agm-inline-pad);
 }
 body.agm-page[data-theme] .agm-scroll{
  inset-block-end:14px;inset-inline-end:var(--agm-inline-pad);
 }
 body.agm-page[data-theme=space] .agm-hero h1{
  font-size:clamp(36px,min(4.45vw,calc(var(--agm-vh)*7.6)),64px);
  max-inline-size:min(650px,55cqw);line-height:1.04;
 }
 body.agm-page[data-theme] .agm-contact{
  grid-template-columns:minmax(min-content,180px) minmax(0,1fr);gap:24px;align-items:start;
  padding:clamp(12px,calc(var(--agm-vh)*2),20px) var(--agm-inline-pad);
  border-end-start-radius:var(--agm-radius);border-end-end-radius:var(--agm-radius);
 }
 body.agm-page[data-theme] .agm-eyebrow{
  font-size:10px;line-height:1.4;margin-block-end:6px;
 }
 body.agm-page[data-theme] .agm-contact h2{
  font-size:clamp(22px,calc(var(--agm-vh)*3),27px);line-height:1.06;margin-block-end:8px;
 }
 body.agm-page[data-theme] .agm-contact__heading>p:last-child{
  font-size:11px;line-height:1.5;max-inline-size:none;
 }
 body.agm-page[data-theme] .agm-form{
  grid-template-columns:1fr 1.05fr 1.2fr;gap:8px 14px;
 }
 body.agm-page[data-theme] .agm-field label{
  min-block-size:26px;align-content:end;margin-block-end:5px;font-size:11px;line-height:1.35;
 }
 body.agm-page[data-theme] .agm-field label span{font-size:9px}
 body.agm-page[data-theme] .agm-field input,
 body.agm-page[data-theme] .agm-field textarea{
  min-block-size:40px;padding:9px 12px;font-size:13px;line-height:1.4;
 }
 body.agm-page[data-theme] .agm-field textarea{block-size:max(40px,calc(1.4em + 20px))}
 body.agm-page[data-theme] .agm-consent{
  max-inline-size:none;font-size:11px;line-height:1.4;margin-block-start:0;
 }
 body.agm-page[data-theme] .agm-consent input{inline-size:16px;block-size:16px}
 body.agm-page[data-theme] .agm-button{
  min-block-size:40px;padding:9px 12px;font-size:12px;line-height:1.4;
 }
 body.agm-page[data-theme] .agm-form__note{
  font-size:10px;line-height:1.4;margin-block-start:-4px;
 }
 body.agm-page[data-theme] .agm-form__error{font-size:12px;line-height:1.5}
 body.agm-page[data-theme] .agm-footer{
  padding-block:7px;min-block-size:30px;font-size:10px;line-height:1.4;
 }
 body.agm-page[data-theme] .agm-footer__signature{font-size:9px}

 /* Ocean keeps its own artwork depth; both photo layers still share cover/center.
    Intro and CTA share a row so the title can stay below the large background word. */
 body.agm-page[data-theme=ocean] .agm-header{
  inset:12px 18px auto;padding:8px 12px;
 }
 body.agm-page[data-theme=ocean] .agm-brand img{inline-size:34px;block-size:34px}
 body.agm-page[data-theme=ocean] .agm-ocean-word{inset-block-start:68px}
 body.agm-page[data-theme=ocean] .agm-hero__copy{
  display:grid;grid-template-columns:minmax(0,360px) auto;column-gap:20px;
  inline-size:min(780px,100%);align-self:end;padding-inline:5%;
  padding-block-start:clamp(96px,calc(var(--agm-vh)*15.6),170px);
 }
 body.agm-page[data-theme=ocean] .agm-status,
 body.agm-page[data-theme=ocean] .agm-hero h1{grid-column:1/-1}
 body.agm-page[data-theme=ocean] .agm-hero h1{
  font-size:clamp(30px,min(3.2vw,calc(var(--agm-vh)*5.4)),44px);
  max-inline-size:none;line-height:1.04;
 }
 body.agm-page[data-theme=ocean] .agm-hero__intro{
  grid-column:1;margin-block:12px 0;max-inline-size:360px;font-size:12px;
 }
 body.agm-page[data-theme=ocean] .agm-hero__cta{
  grid-column:2;align-self:center;justify-self:start;margin-block-start:12px;
  inline-size:max-content;max-inline-size:100%;min-inline-size:0;
 }
 body.agm-page[data-theme=ocean] .agm-scene-note{
  inset-inline-start:auto;inset-inline-end:var(--agm-inline-pad);
  padding:6px 10px;
 }
 body.agm-page[data-theme=world]{
  --agm-world-white-size:clamp(28px,min(3.8vw,calc(var(--agm-vh)*5.2)),48px);
 }
 body.agm-page[data-theme=world] .agm-hero h1{max-inline-size:650px}
}

@media (min-width:1100px) and (min-height:620px) and (max-height:700px),
       (min-width:1024px) and (min-height:640px) and (max-height:700px){
 body.agm-page[data-theme]{--agm-copy-top:60px;--agm-copy-bottom:28px}
 body.agm-page[data-theme] .agm-switch{block-size:54px}
 body.agm-page[data-theme] .agm-hero__intro{margin-block:10px 14px}
 body.agm-page[data-theme=ocean] .agm-hero__intro{margin-block:12px 0}
 body.agm-page[data-theme=ocean] .agm-ocean-word{
  font-size:min(20.247934cqw,calc(var(--agm-vh)*26));
 }
}
