/* Hiser.digital
   One stylesheet, ordered: tokens, base, sections top to bottom, motion, then breakpoints (wide to narrow). */

@font-face{font-family:'Hiser Sans';src:url('/fonts/hiser-sans.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Hiser Sans';src:url('/fonts/hiser-sans-medium.woff') format('woff');font-weight:600 800;font-style:normal;font-display:swap}
@font-face{font-family:'Hiser Editorial';src:url('/fonts/hiser-serif-italic.woff') format('woff');font-weight:400;font-style:italic;font-display:swap}

:root{
  --navy:#112332;
  --white:#f8f9f8;
  --muted:#b9c7cf;
  --accent:#eab17d;
  --line:#ffffff2a;
  --ink-soft:#53616c;
  --rule:#c8d1d6;
  --sans:'Hiser Sans',Arial,sans-serif;
  --serif:'Hiser Editorial',Georgia,serif;
  --ease-out:cubic-bezier(.22,1,.36,1);
  color-scheme:light;
}

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:30px}
body{margin:0;font-family:var(--sans);font-size:18px;line-height:1.65;background:var(--white);color:var(--navy);-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,p{margin:0}
a{color:inherit;text-decoration:none}
button{font:inherit}
a,button{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:7px}
::selection{background:var(--accent);color:var(--navy)}
.wrap{width:min(1280px,calc(100% - 120px));margin:auto}
.skip{position:fixed;left:20px;top:-100px;z-index:20;background:#fff;color:var(--navy);padding:10px}
.skip:focus{top:12px}
.reading-line{position:fixed;top:0;left:0;z-index:20;width:100%;height:3px;background:var(--accent);transform:scaleX(0);transform-origin:left}
.eyebrow{font-size:13px;line-height:1.6;letter-spacing:1.55px;text-transform:uppercase}
.period{color:var(--accent)}

/* Vector direction mark, shared by every link that points somewhere */
.direction{width:25px;height:25px;flex:0 0 auto;overflow:visible;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round;transition:transform .5s var(--ease-out)}
.direction-stem{stroke-dasharray:26;stroke-dashoffset:0;transition:stroke-dashoffset .45s}
.direction-head{transform-origin:25px 7px;transition:transform .5s}
.direction-down{display:flex;transform:rotate(135deg)}
.direction-up{display:flex;transform:rotate(-45deg)}
a:hover>.direction,a:focus-visible>.direction{transform:translate(3px,-3px)}

.underlink{position:relative;display:inline-flex;align-items:center;gap:30px;min-height:38px;margin-top:24px;padding-bottom:7px;border-bottom:1px solid currentColor;font-size:15px;line-height:1.35}
.underlink span{transition:transform .3s}
.underlink:hover .direction-down{transform:rotate(135deg) translate(2px,-2px)}
.underlink:hover .direction-stem{stroke-dashoffset:5}

/* Opening: header, hero, about on navy */
.opening{position:relative;isolation:isolate;overflow:hidden;background:var(--navy);color:var(--white)}
.flow{position:absolute;top:-35px;right:-13%;z-index:-1;width:110%;height:1250px;color:#78a1be;opacity:.27;pointer-events:none;-webkit-mask-image:linear-gradient(#000 52%,transparent 90%);mask-image:linear-gradient(#000 52%,transparent 90%)}
.flow-group{transform-origin:70% 40%;animation:drift 22s ease-in-out infinite alternate}
.lit{stroke:var(--accent);stroke-width:1.6;stroke-dasharray:130 1700;animation:stream 18s linear infinite}

header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:34px 0}
.brand{display:flex;align-items:center;font-size:40px;font-weight:600;line-height:1;letter-spacing:-4px}
.brand-dot{color:var(--accent)}
.brand-text{margin-left:20px;font-size:16px;font-weight:400;letter-spacing:-.3px}
nav{display:flex;gap:38px;font-size:14px}
nav a{position:relative;padding:8px 0}
nav a:after{content:'';position:absolute;left:0;bottom:4px;width:100%;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .3s}
nav a:hover:after{transform:scaleX(1)}

.hero{padding:43px 0 26px}
.hero-top{display:flex;justify-content:space-between;align-items:start;gap:24px}
.edition{max-width:220px;font-size:14px;line-height:1.45;text-align:right;color:var(--muted)}
h1{margin:50px 0 30px;font-weight:500;line-height:.9;letter-spacing:-.075em}
.given{display:block;font-size:clamp(60px,7.2vw,106px);font-weight:400;letter-spacing:-.06em}
.surname{display:block;font-size:clamp(135px,24vw,340px);line-height:1;letter-spacing:-.07em}
.hero-bottom{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}
.hero-bottom>p{font-family:var(--serif);font-style:italic;font-size:43px;line-height:1.12;letter-spacing:-.8px}
.hero-note{justify-self:end;width:100%;max-width:410px;font-size:18px;color:var(--muted)}
.hero-note .underlink{color:var(--white)}
.hero-foot{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:66px;padding-top:22px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
#motion-toggle{min-height:36px;padding:0;border:0;background:none;color:inherit;font-size:14px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}

.section-meta{display:flex;align-items:center;justify-content:space-between;gap:32px;font-size:14px}
.small-rule{flex:1;height:1px;background:currentColor;opacity:.2}
h2{font-size:clamp(36px,4.1vw,57px);font-weight:400;line-height:1.15;letter-spacing:-2.5px}
h2 em{font-family:var(--serif);font-size:1.09em;font-weight:400;letter-spacing:-.045em;color:var(--accent)}

.about{padding-top:115px;padding-bottom:125px}
.about-grid,.outside-grid{display:grid;grid-template-columns:1.1fr 1fr;margin-top:55px}
.about-grid{gap:100px}
.about h2{font-size:clamp(40px,4.2vw,60px);line-height:1.13}
.about-copy{max-width:34em;font-size:18px;color:var(--muted)}
.about-copy p+p{margin-top:20px}
.about-copy .underlink{margin-top:27px;color:var(--white)}

/* Projects */
.projects{padding:100px 0 110px}
.projects-heading{display:flex;justify-content:space-between;align-items:end;gap:40px;margin:40px 0 60px}
.projects-heading h2{font-size:clamp(44px,5vw,70px);line-height:1.05;letter-spacing:-3px}
.projects-heading em{color:#476882}
.projects-heading>p{font-size:17px;line-height:1.5;color:#5e6a75}

.project{display:grid;grid-template-columns:1.08fr 1fr;min-height:520px;margin-top:56px;border-top:1px solid var(--rule)}
.project:last-of-type{border-bottom:1px solid var(--rule)}
.project-identity{position:relative;display:flex;flex-direction:column;padding:36px 40px;overflow:hidden}
.project-kicker{display:flex;justify-content:space-between;gap:20px;font-size:13px;line-height:1.4}
.project-title{display:block;min-width:0;margin:auto 0 22px;padding-top:48px}
.project-brand{display:block;width:100%;margin:0;font-size:clamp(52px,5.8vw,84px);font-weight:500;line-height:1}
.project-arrow{position:absolute;right:40px;bottom:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:56px;height:56px;border:1px solid #294d5f55;border-radius:50%;transition:background .4s,border-color .4s}
.project-arrow .direction{width:33px;height:33px;stroke-width:1.25}
.project-title:is(:hover,:focus-visible) .project-arrow{background:var(--navy);border-color:var(--navy);color:var(--white)}
.project-title:is(:hover,:focus-visible) .direction{transform:translate(3px,-3px)}
.project-motto{font-size:18px;line-height:1.4}
.project-tags{display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-height:56px;margin-top:auto;padding:48px 76px 0 0}
.project-tags span{padding:5px 13px;border:1px solid;border-radius:30px;font-size:13px}

.project-description{display:flex;flex-direction:column;align-items:flex-start;padding:36px 0 40px 56px}
.project-description .eyebrow{font-size:12px;letter-spacing:1.1px;color:#52636e}
.project-description h4{margin:30px 0 24px;font-size:39px;font-weight:400;line-height:1.1;letter-spacing:-1.6px}
.project-description>p:not(.eyebrow){max-width:440px;margin-bottom:17px;font-size:17px;color:var(--ink-soft)}
.project-description .underlink{margin-top:14px}

/* MyCyberTutor: original book mark and lowercase wordmark */
.cyber .project-identity{background:#e6eedc;color:#20362e}
.cyber .project-kicker,.cyber .project-motto{color:#355244}
.cyber .project-tags span{border-color:#194a3c40}
.cyber-lockup{display:flex;align-items:center;gap:18px;width:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,Arial,sans-serif}
.cyber-mark{display:grid;place-items:center;flex-shrink:0;width:72px;height:72px;border-radius:21px;background:#194a3c;color:#e4f2c6}
.cyber-mark svg{width:46px;height:46px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.cyber-wordmark{font-size:clamp(32px,3.5vw,50px);font-weight:730;line-height:1;letter-spacing:-1.7px;white-space:nowrap;color:#20362e}
.cyber-light{font-weight:400}
.cyber-dot{color:#6f9657}

/* Joke Academy: supplied SVG logo, wordmark, and tagline */
.joke .project-identity{background:#fbf5e9;color:#243349}
.joke .project-kicker,.joke .project-motto{color:#536071}
.joke .project-tags span{border-color:#24334940}
.joke .project-arrow{border-color:#60492e66}
.joke-wordmark{display:block;width:100%;max-width:470px;height:auto}

/* Outside work */
.outside{padding-top:15px;padding-bottom:125px}
.outside-grid{gap:90px}
.outside h2 em{color:#52768b}
.life-list{font-size:30px;line-height:1.5;letter-spacing:-.75px}
.life-list span{display:inline-block;margin-top:12px;font-family:var(--serif);font-style:italic;font-size:1.16em;line-height:1.3;color:#9b5426}
.outside-note{max-width:420px;margin-top:28px;font-size:17px;color:var(--ink-soft)}

/* Footer */
footer{padding:60px 0 24px;background:var(--navy);color:var(--white)}
.contact-link{display:flex;justify-content:space-between;align-items:center;gap:35px;padding:54px 0 68px;font-size:clamp(50px,8.4vw,118px);line-height:1.1;letter-spacing:-.065em}
.contact-link>.direction{width:95px;height:95px;stroke-width:.85}
.contact-link:hover>.direction{transform:translate(7px,-7px)}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:25px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.footer-bottom a{display:inline-flex;align-items:center;gap:14px;min-height:40px}
.footer-bottom a:hover{text-decoration:underline}
.footer-bottom .direction{width:20px;height:20px}

/* Missing page */
.lost .opening{display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
.lost .hero{display:flex;flex-direction:column;flex:1;padding-bottom:32px}
.lost .hero-foot{margin-top:auto;padding-top:22px}
.lost .hero-bottom{margin-bottom:66px}
.lost .surname{margin-top:-.12em}

/* Motion */
.entrance{animation:enter 1s var(--ease-out) both}
.hero h1{animation-delay:.1s}
.hero-bottom{animation-delay:.22s}
.motion-enabled .reveal{opacity:0;transform:translateY(32px);transition:opacity 1s ease,transform 1s var(--ease-out)}
.motion-enabled .reveal.visible{opacity:1;transform:none}
.motion-enabled :is(.about-grid,.outside-grid)>.reveal+.reveal,.motion-enabled .projects-heading.reveal{transition-delay:.12s}
.paused *{animation-play-state:paused!important}
.paused .reveal{opacity:1;transform:none;transition:none}
.paused{scroll-behavior:auto}
@keyframes drift{from{transform:translate(-20px,-20px) rotate(-3deg)}to{transform:translate(30px,25px) rotate(4deg)}}
@keyframes stream{to{stroke-dashoffset:-1830}}
@keyframes enter{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}

/* Breakpoints */
@media(min-width:901px) and (max-width:1100px){
  .project-arrow{width:48px;height:48px}
  .cyber-lockup{flex-wrap:wrap;gap:11px}
  .cyber-mark{width:50px;height:50px;border-radius:15px}
  .cyber-mark svg{width:31px;height:31px}
  .cyber-wordmark{font-size:32px}
}
@media(max-width:1000px){
  .wrap{width:calc(100% - 72px)}
  .hero-top .eyebrow{font-size:12px}
  .edition{max-width:180px}
  .hero-bottom{gap:45px}
  .hero-bottom>p{font-size:36px}
  .about-grid,.outside-grid{gap:55px}
  .projects-heading h2{font-size:55px}
  .project-identity{padding:30px}
  .project-arrow{right:30px;bottom:30px}
  .project-tags{padding-right:64px}
  .project-kicker{flex-direction:column;gap:7px}
  .project-brand{font-size:62px}
  .project-description{padding-left:36px}
  .project-description h4{font-size:34px}
  .life-list{font-size:27px}
}
@media(max-width:900px){
  .edition{display:none}
  .project{grid-template-columns:1fr}
  .project-identity{min-height:400px}
  .project-kicker{flex-direction:row;gap:20px}
  .project-description{padding:34px 0 44px}
  .project-description>p:not(.eyebrow){max-width:560px}
}
@media(min-width:701px) and (max-width:900px){
  .cyber-mark{width:66px;height:66px;border-radius:19px}
  .cyber-mark svg{width:42px;height:42px}
  .cyber-wordmark{font-size:46px}
  .joke-wordmark{max-width:430px}
}
@media(max-width:700px){
  .wrap{width:calc(100% - 44px)}
  header{padding:24px 0}
  .brand-text{display:none}
  nav{gap:27px}
  .flow{top:20px;right:-97%;width:220%;height:1150px;opacity:.24;-webkit-mask-image:linear-gradient(#000 60%,transparent 96%);mask-image:linear-gradient(#000 60%,transparent 96%)}
  .hero{padding-top:40px}
  .hero-top .eyebrow{font-size:11px;letter-spacing:1.2px}
  h1{margin:42px 0 32px}
  .given{font-size:57px}
  .surname{font-size:clamp(136px,31vw,220px)}
  .hero-bottom{grid-template-columns:1fr;gap:27px}
  .hero-bottom>p{font-size:35px}
  .hero-note{justify-self:start;font-size:17px}
  .hero-foot{gap:12px;margin-top:46px;font-size:12px}
  .hero-foot>span{max-width:195px}
  #motion-toggle{font-size:12px;white-space:nowrap}
  .section-meta .eyebrow{font-size:12px;letter-spacing:1.2px}
  .about{padding-top:75px;padding-bottom:80px}
  .about-grid,.outside-grid{grid-template-columns:1fr;gap:33px;margin-top:35px}
  .about h2{font-size:44px}
  .about-copy{font-size:17px}
  .about-copy p+p{margin-top:18px}
  .projects{padding:70px 0 75px}
  .projects-heading{flex-direction:column;align-items:start;gap:25px;margin:34px 0}
  .projects-heading h2{font-size:49px;letter-spacing:-2px}
  .projects-heading>p{font-size:16px}
  .projects-heading>p br{display:none}
  .project{margin-top:35px}
  .project-identity{min-height:365px;padding:28px}
  .project-kicker{font-size:12px}
  .project-title{padding-top:40px;margin-bottom:18px}
  .project-brand{font-size:68px}
  .project-arrow{right:28px;bottom:28px;width:48px;height:48px}
  .project-motto{font-size:16px}
  .project-tags{gap:8px;min-height:48px;padding-top:36px;padding-right:58px}
  .project-tags span{padding:4px 11px;font-size:12px}
  .project-description h4{margin:22px 0;font-size:35px}
  .cyber-lockup{gap:10px}
  .cyber-mark{width:41px;height:41px;border-radius:12px}
  .cyber-mark svg{width:26px;height:26px}
  .cyber-wordmark{font-size:clamp(24px,6.4vw,38px);letter-spacing:-1.25px}
  .outside{padding-top:0;padding-bottom:75px}
  .outside h2{font-size:42px}
  .life-list{font-size:27px}
  .contact-link{gap:16px;padding:40px 0 45px;font-size:clamp(41px,8.7vw,60px);letter-spacing:-2px}
  .contact-link>.direction{width:45px;height:45px;stroke-width:1.1}
  .footer-bottom{flex-wrap:wrap;gap:14px;font-size:12px}
  .footer-bottom p:last-child{width:100%}
  .footer-bottom .direction{width:18px;height:18px}
}
@media(max-width:620px){
  .section-meta{gap:18px}
  .about h2,.outside h2{letter-spacing:-1.8px}
  footer{padding-top:40px}
  footer .section-meta>span:last-child{display:none}
}
@media(max-width:360px){
  .wrap{width:calc(100% - 36px)}
  nav{gap:22px}
  .hero-foot>span{max-width:155px}
  .project-identity{padding:23px}
  .project-brand{font-size:57px}
  .project-arrow{right:23px;bottom:23px;width:42px;height:42px}
  .project-tags{padding-right:52px}
  .project-kicker{flex-direction:column;gap:2px}
  .cyber-lockup{gap:8px}
  .cyber-mark{width:34px;height:34px;border-radius:10px}
  .cyber-mark svg{width:22px;height:22px}
  .cyber-wordmark{font-size:22px;letter-spacing:-1.1px}
  .contact-link{font-size:39px}
}
/* Very narrow viewports, such as a phone at 200% zoom */
@media(max-width:300px){
  .wrap{width:calc(100% - 28px)}
  header{flex-wrap:wrap;gap:8px 20px}
  nav{flex-wrap:wrap;gap:4px 16px}
  .given{font-size:19vw}
  .surname{font-size:40vw}
  .hero-bottom>p{font-size:26px}
  .hero-foot{flex-wrap:wrap}
  .about h2,.outside h2,.projects-heading h2{font-size:32px;letter-spacing:-1px}
  .underlink{gap:14px}
  .project-identity{min-height:0;padding:18px}
  .project-kicker{font-size:11px}
  .project-arrow{right:18px;bottom:18px;width:38px;height:38px}
  .project-tags{padding-right:46px}
  .cyber-lockup{flex-wrap:wrap}
  .cyber-wordmark{font-size:20px}
  .project-description h4{font-size:28px}
  .life-list{font-size:22px}
  .contact-link{font-size:30px}
  .contact-link>.direction{width:30px;height:30px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{animation:none!important;transition:none!important}
  .motion-enabled .reveal{opacity:1;transform:none}
}
