:root {
  --wine: #3d2525;
  --wine-deep: #2d1c1c;
  --wine-soft: #553333;
  --paper: #f3f0ea;
  --paper-muted: #d9d2c8;
  --copper: #965d43;
  --copper-light: #c99477;
  --stone: #9a978d;
  --line: rgba(243, 240, 234, 0.19);
  --line-soft: rgba(243, 240, 234, 0.10);
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "EB Garamond", Georgia, serif;
  /* Novantique Serif is loaded through an Adobe Fonts Web Project. */
  --display-serif: "novantique-serif", "Novantique Serif", var(--serif);
  --ease-out: cubic-bezier(.18,.8,.25,1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--wine); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 76% 44%, rgba(150, 93, 67, .12), transparent 34%),
    linear-gradient(135deg, var(--wine-deep), var(--wine) 46%, #462929);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--wine);
  font-size: .8rem;
  font-weight: 700;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.ambient,
.ambient > * {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.ambient { z-index: 0; overflow: hidden; }
.ambient__glow {
  width: 46vw;
  height: 46vw;
  min-width: 460px;
  min-height: 460px;
  border-radius: 50%;
  filter: blur(4px);
  opacity: .18;
}
.ambient__glow--one {
  inset: auto -18vw -26vw auto;
  background: radial-gradient(circle, rgba(201,148,119,.65), rgba(150,93,67,.08) 55%, transparent 70%);
  animation: drift-one 18s ease-in-out infinite alternate;
}
.ambient__glow--two {
  inset: -34vw auto auto -30vw;
  background: radial-gradient(circle, rgba(243,240,234,.18), transparent 68%);
  animation: drift-two 22s ease-in-out infinite alternate;
}
.ambient__grain {
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.58'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.ambient__grid {
  opacity: .42;
  background-image:
    linear-gradient(to right, transparent calc(100% - 1px), rgba(243,240,234,.032) 1px),
    linear-gradient(to bottom, transparent calc(100% - 1px), rgba(243,240,234,.026) 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 48px) clamp(22px, 4.4vw, 76px) clamp(22px, 2.4vw, 40px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
}
.site-header {
  justify-content: space-between;
  min-height: 46px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  text-decoration: none;
  font-size: clamp(1.35rem, 1.7vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -.055em;
}
.wordmark__logo {
  display: block;
  width: clamp(125px, 11vw, 175px);
  height: auto;
  object-fit: contain;
}
.wordmark i {
  color: var(--copper-light);
  font-family: var(--serif);
  font-size: 1.25em;
  line-height: .8;
}
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-muted);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.status__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper-light);
  box-shadow: 0 0 0 5px rgba(201,148,119,.08);
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(201,148,119,.35);
  border-radius: inherit;
  animation: status-pulse 2.8s ease-out infinite;
}

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(400px, .93fr);
  gap: clamp(42px, 7vw, 120px);
  align-items: center;
  padding: clamp(58px, 8vh, 106px) 0 clamp(48px, 7vh, 90px);
}
.hero__copy { position: relative; z-index: 2; max-width: 800px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 clamp(24px, 3.4vh, 42px);
  color: var(--paper-muted);
  font-size: .69rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow i {
  width: 32px;
  height: 1px;
  background: var(--copper-light);
}
h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display-serif);
  font-size: clamp(3.6rem, 6.15vw, 7.4rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.035em;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  text-wrap: balance;
}
h1 em {
  display: block;
  margin-top: .06em;
  color: var(--copper-light);
  font-family: inherit;
  font-style: italic;
  font-weight: 400;
}
.intro {
  max-width: 580px;
  margin: clamp(28px, 4vh, 46px) 0 0;
  color: var(--paper-muted);
  font-size: clamp(.98rem, 1.16vw, 1.17rem);
  line-height: 1.72;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.4vw, 54px);
  margin-top: clamp(34px, 5vh, 58px);
}
.contact-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 2px 15px;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 650;
  letter-spacing: .03em;
}
.contact-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--copper-light);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.contact-link svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  transition: transform .35s var(--ease-out);
}
.contact-link:hover::after { transform: scaleX(.58); }
.contact-link:hover svg { transform: translateX(5px); }
.domains {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: rgba(243,240,234,.52);
  font-size: .64rem;
  letter-spacing: .08em;
}

.portal-stage {
  position: relative;
  min-height: min(68vh, 690px);
  display: grid;
  place-items: center;
}
.portal-wrap {
  --px: 0px;
  --py: 0px;
  position: relative;
  width: min(100%, 570px);
  aspect-ratio: 520 / 700;
  transform: translate3d(var(--px), var(--py), 0);
  transition: transform .8s var(--ease-out);
  isolation: isolate;
}
.portal-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18% 5% 7%;
  border-radius: 50% 50% 18% 18%;
  background: radial-gradient(circle at 50% 52%, rgba(201,148,119,.15), transparent 58%);
  filter: blur(22px);
}
.portal { width: 100%; height: 100%; overflow: visible; }
.portal__line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal__line--outer { stroke: rgba(243,240,234,.20); stroke-width: 1.3; }
.portal__line--middle { stroke: rgba(243,240,234,.13); stroke-width: 1.1; }
.portal__line--inner { stroke: rgba(243,240,234,.09); stroke-width: 1; }
.portal__line--door {
  stroke: url(#copper);
  stroke-width: 2.4;
  filter: url(#softGlow);
  stroke-dasharray: 1040;
  stroke-dashoffset: 1040;
  animation: draw-portal 2.2s .45s var(--ease-out) forwards;
}
.portal__fill { fill: rgba(150,93,67,.055); }
.portal__light { fill: url(#light); opacity: .55; }
.portal__threshold { stroke: rgba(201,148,119,.52); stroke-width: 1.5; }
.portal__point { fill: var(--copper-light); opacity: .8; }
.portal__point--one { animation: point-float 5s ease-in-out infinite; }
.portal__point--two { animation: point-float 5s 1.7s ease-in-out infinite reverse; }
.portal-monogram {
  position: absolute;
  left: 50%;
  bottom: 9.8%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  color: rgba(243,240,234,.76);
  font-size: clamp(.57rem, .72vw, .72rem);
  font-weight: 650;
  letter-spacing: .32em;
}
.portal-monogram i { width: 1px; height: 20px; background: var(--copper-light); }
.portal-kicker {
  position: absolute;
  z-index: 2;
  color: rgba(243,240,234,.42);
  font-size: .6rem;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.portal-kicker--top { top: 19%; right: 2%; }
.portal-kicker--bottom { bottom: 17%; left: 3%; transform: rotate(180deg); }

.site-footer {
  min-height: 44px;
  gap: 22px;
  color: rgba(243,240,234,.52);
  font-size: .61rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.role { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.role strong { color: var(--paper); font-size: .64rem; font-weight: 650; }
.footer-line { width: min(11vw, 140px); height: 1px; background: var(--line); }
.location { margin: 0 0 0 auto; text-align: right; }

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
}
body.is-ready .reveal-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity .9s var(--ease-out) var(--delay, 0ms),
    transform .9s var(--ease-out) var(--delay, 0ms);
}

@keyframes draw-portal { to { stroke-dashoffset: 0; } }
@keyframes status-pulse { 0% { opacity: .8; transform: scale(.5); } 70%, 100% { opacity: 0; transform: scale(1.55); } }
@keyframes point-float { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-12px); opacity: 1; } }
@keyframes drift-one { to { transform: translate(-4vw, -3vw) scale(1.08); } }
@keyframes drift-two { to { transform: translate(4vw, 3vw) scale(.94); } }

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
    gap: 32px;
  }
  h1 { font-size: clamp(3.55rem, 7.2vw, 6.4rem); }
  .portal-stage { min-height: 570px; }
  .site-footer { flex-wrap: wrap; }
  .location { width: 100%; margin: 0; text-align: left; }
}

@media (max-width: 760px) {
  body { min-height: 100svh; }
  .ambient__grid { background-size: 48px 48px; opacity: .34; }
  .page-shell {
    min-height: 100svh;
    padding: 22px 20px 25px;
  }
  .site-header { min-height: 38px; }
  .wordmark { font-size: 1.35rem; }
  .status { font-size: .58rem; letter-spacing: .14em; }
  .hero {
    min-height: auto;
    display: block;
    padding: 75px 0 54px;
  }
  .hero__copy { max-width: none; }
  .eyebrow { margin-bottom: 24px; font-size: .59rem; gap: 9px; }
  .eyebrow i { width: 20px; }
  h1 { font-size: clamp(3.15rem, 15.2vw, 5.2rem); line-height: .89; }
  .intro { max-width: 34rem; margin-top: 26px; font-size: .93rem; line-height: 1.64; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 22px; margin-top: 30px; }
  .contact-link { padding-top: 12px; }
  .domains { flex-direction: row; gap: 14px; }
  .domains span + span::before { content: "·"; margin-right: 14px; color: var(--copper-light); }
  .portal-stage {
    min-height: 0;
    height: clamp(300px, 84vw, 430px);
    margin: -18px -20px 0;
    overflow: hidden;
  }
  .portal-wrap { width: min(112%, 470px); opacity: .84; transform: translate3d(10%, 0, 0); }
  .portal-kicker { display: none; }
  .site-footer { padding-top: 20px; border-top: 1px solid var(--line-soft); gap: 11px 16px; }
  .footer-line { width: 34px; }
  .location { margin-top: 5px; font-size: .56rem; }
}

@media (max-width: 600px) {
  .wordmark__logo {
    width: 120px;
  }
}

@media (max-width: 420px) {
  .page-shell { padding-inline: 17px; }
  .hero { padding-top: 62px; }
  h1 { font-size: clamp(3rem, 15.5vw, 4.1rem); }
  .portal-stage { margin-inline: -17px; }
  .role span { display: none; }
  .role::before { color: rgba(243,240,234,.46); }
  .role:first-of-type::before { content: "Design"; }
  .role--right::before { content: "Development"; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .portal__line--door { stroke-dashoffset: 0; }
  .reveal-item { opacity: 1; transform: none; }
}

/* =========================================================
   Single-screen layout
   Keeps the coming-soon page inside the visible viewport.
   ========================================================= */
html,
body {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body {
  height: 100dvh;
  min-height: 100dvh;
}

.page-shell {
  height: 100dvh;
  min-height: 0;
  padding-top: max(clamp(16px, 2.4vh, 32px), env(safe-area-inset-top));
  padding-bottom: max(clamp(14px, 2vh, 28px), env(safe-area-inset-bottom));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.hero {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(12px, 2.5vh, 26px) 0;
  overflow: visible;
}

.portal-stage {
  height: 100%;
  min-height: 0;
}

.portal-wrap {
  width: auto;
  height: min(100%, 630px);
  max-width: 100%;
}

.site-footer {
  min-height: 0;
}

@media (max-width: 1040px) {
  .portal-stage { min-height: 0; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .page-shell {
    padding-inline: clamp(26px, 4vw, 58px);
  }

  .hero {
    gap: clamp(28px, 5vw, 74px);
  }

  h1 {
    font-size: clamp(3.25rem, 5.35vw, 5.8rem);
  }

  .eyebrow { margin-bottom: clamp(16px, 2.4vh, 24px); }
  .intro { margin-top: clamp(18px, 2.8vh, 28px); }
  .hero__actions { margin-top: clamp(20px, 3.4vh, 34px); }
  .portal-wrap { height: min(100%, 540px); }
}

@media (max-width: 760px) {
  body {
    height: 100dvh;
    min-height: 100dvh;
  }

  .page-shell {
    height: 100dvh;
    min-height: 0;
    padding: max(16px, env(safe-area-inset-top)) 20px max(14px, env(safe-area-inset-bottom));
  }

  .site-header { min-height: 34px; }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(105px, 1fr);
    gap: 0;
    min-height: 0;
    padding: clamp(10px, 2vh, 18px) 0 2px;
  }

  .eyebrow {
    margin-bottom: clamp(12px, 1.8vh, 18px);
  }

  h1 {
    font-size: clamp(2.65rem, min(12.4vw, 7.2vh), 4.25rem);
    line-height: .88;
  }

  .intro {
    margin-top: clamp(12px, 1.8vh, 19px);
    font-size: clamp(.8rem, 2.55vw, .92rem);
    line-height: 1.5;
  }

  .hero__actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: clamp(12px, 1.9vh, 20px);
  }

  .contact-link {
    flex: 0 0 auto;
    gap: 14px;
    padding: 8px 2px 9px;
    font-size: .77rem;
  }

  .contact-link svg { width: 18px; }

  .domains {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
    font-size: .56rem;
  }

  .domains span + span::before { content: none; }

  .portal-stage {
    position: relative;
    width: calc(100% + 40px);
    height: auto;
    min-height: 105px;
    margin: -3px -20px -8px;
    overflow: hidden;
  }

  .portal-wrap {
    position: absolute;
    top: -18%;
    right: -8%;
    width: min(102vw, 440px);
    height: auto;
    max-width: none;
    opacity: .72;
    transform: none;
  }

  .site-footer {
    min-height: 0;
    padding-top: 8px;
    gap: 7px 13px;
  }

  .footer-line { width: 26px; }
  .location { margin-top: 1px; }
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 16px;
  }

  .hero {
    padding-top: 9px;
  }

  h1 {
    font-size: clamp(2.45rem, min(12.6vw, 7vh), 3.65rem);
  }

  .intro {
    font-size: clamp(.77rem, 3.4vw, .86rem);
  }

  .portal-stage {
    width: calc(100% + 32px);
    margin-inline: -16px;
  }

  .portal-wrap {
    right: -13%;
    width: min(112vw, 430px);
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .page-shell {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .site-header { min-height: 30px; }
  .wordmark { font-size: 1.18rem; }
  .status { font-size: .52rem; }

  .hero {
    grid-template-rows: auto minmax(78px, 1fr);
    padding-top: 6px;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: .53rem;
  }

  h1 {
    font-size: clamp(2.2rem, min(11.6vw, 6.7vh), 3.15rem);
  }

  .intro {
    margin-top: 9px;
    font-size: .75rem;
    line-height: 1.4;
  }

  .hero__actions { margin-top: 9px; }
  .contact-link { padding-block: 6px 7px; }
  .portal-stage { min-height: 78px; }
  .portal-wrap { top: -30%; opacity: .62; }

  .site-footer {
    padding-top: 5px;
    font-size: .53rem;
  }

  .role span { display: none; }
  .role::before { color: rgba(243,240,234,.46); }
  .role:first-of-type::before { content: "Design"; }
  .role--right::before { content: "Development"; }
  .location { font-size: .49rem; }
}

@media (max-height: 520px) {
  .page-shell {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(170px, .45fr);
    grid-template-rows: 1fr;
    gap: 18px;
    align-items: center;
    padding-block: 4px;
  }

  h1 { font-size: clamp(2.1rem, 7.2vh, 3.1rem); }
  .intro { max-width: 520px; }
  .portal-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
  }
  .portal-wrap {
    top: -22%;
    right: -22%;
    width: min(52vw, 330px);
  }
  .site-footer .location { display: none; }
}

@media (max-width: 760px) {
  .portal {
    display: block;
    height: auto;
  }
}

/* Mobile composition: the portal becomes a background motif instead of
   consuming vertical space, keeping the entire page inside one screen. */
@media (max-width: 760px) {
  .hero {
    position: relative;
    isolation: isolate;
    display: block;
  }

  .hero__copy {
    position: relative;
    z-index: 2;
  }

  .portal-stage {
    position: absolute;
    z-index: 0;
    inset: 0 -20px;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .portal-wrap {
    top: auto;
    right: -54px;
    bottom: -118px;
    width: min(86vw, 350px);
    height: auto;
    opacity: .36;
  }
}

@media (max-width: 420px) {
  .portal-stage {
    inset-inline: -16px;
    width: auto;
    margin: 0;
  }

  .portal-wrap {
    right: -58px;
    bottom: -108px;
    width: min(88vw, 330px);
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .portal-wrap {
    right: -52px;
    bottom: -100px;
    width: min(78vw, 295px);
    opacity: .30;
  }
}

@media (max-height: 520px) {
  .hero {
    display: block;
  }

  .portal-stage {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
  }

  .portal-wrap {
    top: auto;
    right: -42px;
    bottom: -130px;
    width: min(34vw, 260px);
    opacity: .28;
  }
}
